Imported Upstream version 3.3.0
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580   # Remove one level of quotation (which was required for Make).
581   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582   ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587   # Discard the --no-reexec flag, and continue.
588   shift
589 elif test "X$1" = X--fallback-echo; then
590   # Avoid inline document here, it may be left over
591   :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593   # Yippee, $ECHO works!
594   :
595 else
596   # Restart under the correct shell.
597   exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601   # used as fallback echo
602   shift
603   cat <<_LT_EOF
604 $*
605 _LT_EOF
606   exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614   if test "X${echo_test_string+set}" != Xset; then
615     # find a string as large as possible, as long as the shell can cope with it
616     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620       then
621         break
622       fi
623     done
624   fi
625
626   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628      test "X$echo_testing_string" = "X$echo_test_string"; then
629     :
630   else
631     # The Solaris, AIX, and Digital Unix default echo programs unquote
632     # backslashes.  This makes it impossible to quote backslashes using
633     #   echo "$something" | sed 's/\\/\\\\/g'
634     #
635     # So, first we look for a working echo in the user's PATH.
636
637     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638     for dir in $PATH /usr/ucb; do
639       IFS="$lt_save_ifs"
640       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643          test "X$echo_testing_string" = "X$echo_test_string"; then
644         ECHO="$dir/echo"
645         break
646       fi
647     done
648     IFS="$lt_save_ifs"
649
650     if test "X$ECHO" = Xecho; then
651       # We didn't find a better echo, so look for alternatives.
652       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654          test "X$echo_testing_string" = "X$echo_test_string"; then
655         # This shell has a builtin print -r that does the trick.
656         ECHO='print -r'
657       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658            test "X$CONFIG_SHELL" != X/bin/ksh; then
659         # If we have ksh, try running configure again with it.
660         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661         export ORIGINAL_CONFIG_SHELL
662         CONFIG_SHELL=/bin/ksh
663         export CONFIG_SHELL
664         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665       else
666         # Try using printf.
667         ECHO='printf %s\n'
668         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670            test "X$echo_testing_string" = "X$echo_test_string"; then
671           # Cool, printf works
672           :
673         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674              test "X$echo_testing_string" = 'X\t' &&
675              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676              test "X$echo_testing_string" = "X$echo_test_string"; then
677           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678           export CONFIG_SHELL
679           SHELL="$CONFIG_SHELL"
680           export SHELL
681           ECHO="$CONFIG_SHELL $0 --fallback-echo"
682         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683              test "X$echo_testing_string" = 'X\t' &&
684              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685              test "X$echo_testing_string" = "X$echo_test_string"; then
686           ECHO="$CONFIG_SHELL $0 --fallback-echo"
687         else
688           # maybe with a smaller string...
689           prev=:
690
691           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693             then
694               break
695             fi
696             prev="$cmd"
697           done
698
699           if test "$prev" != 'sed 50q "$0"'; then
700             echo_test_string=`eval $prev`
701             export echo_test_string
702             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703           else
704             # Oops.  We lost completely, so just stick with echo.
705             ECHO=echo
706           fi
707         fi
708       fi
709     fi
710   fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME=
745 PACKAGE_TARNAME=
746 PACKAGE_VERSION=
747 PACKAGE_STRING=
748 PACKAGE_BUGREPORT=
749
750 ac_unique_file="common-src/amanda.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 #  include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 #  include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
786
787 gl_use_threads_default=
788 gl_header_list=
789 gl_func_list=
790 gl_getopt_required=POSIX
791 gl_getopt_required=POSIX
792 ac_subst_vars='gltests_LTLIBOBJS
793 gltests_LIBOBJS
794 gl_LTLIBOBJS
795 gl_LIBOBJS
796 am__EXEEXT_FALSE
797 am__EXEEXT_TRUE
798 LTLIBOBJS
799 LIBOBJS
800 WANT_NDMP_DEVICE_FALSE
801 WANT_NDMP_DEVICE_TRUE
802 WANT_DVDRW_DEVICE_FALSE
803 WANT_DVDRW_DEVICE_TRUE
804 WANT_TAPE_DEVICE_FALSE
805 WANT_TAPE_DEVICE_TRUE
806 WANT_S3_DEVICE_FALSE
807 WANT_S3_DEVICE_TRUE
808 LIBCURL
809 LIBCURL_CPPFLAGS
810 _libcurl_config
811 READLINE_LIBS
812 PKG_CONFIG
813 GLIB_MKENUMS
814 GOBJECT_QUERY
815 GLIB_GENMARSHAL
816 GLIB_LIBS
817 GLIB_CFLAGS
818 AMANDA_STATIC_LDFLAGS
819 LIBTOOL_DEPS
820 OTOOL64
821 OTOOL
822 LIPO
823 NMEDIT
824 DSYMUTIL
825 lt_ECHO
826 LN_S
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 SED
833 LIBTOOL
834 AMANDA_SWIG_PERL_CFLAGS
835 GCC_COMPILER_FALSE
836 GCC_COMPILER_TRUE
837 RPCGEN
838 PS_ARGUMENT_ARGS
839 PS_ARGUMENT
840 PS
841 LPRFLAG
842 LPR
843 UMOUNT
844 MOUNT
845 MTX
846 MT_FILE_FLAG
847 MT
848 DEFAULT_MAILER
849 MAILER
850 SORT
851 BASH
852 DD
853 YFLAGS
854 YACC
855 AR
856 LEXLIB
857 LEX_OUTPUT_ROOT
858 LEX
859 AMLINTFLAGS
860 AMLINT
861 USE_RUNDUMP
862 WANT_SAMBA_FALSE
863 WANT_SAMBA_TRUE
864 SAMBA_CLIENT
865 SUNTAR
866 STAR
867 GNUTAR
868 DUMP_RETURNS_1
869 AIX_BACKUP
870 RESTORE
871 DUMP
872 VRESTORE
873 VDUMP
874 VXRESTORE
875 VXDUMP
876 XFSRESTORE
877 XFSDUMP
878 KRB5_SECURITY
879 WANT_KRB5_SECURITY_FALSE
880 WANT_KRB5_SECURITY_TRUE
881 SSH_SECURITY
882 WANT_SSH_SECURITY_FALSE
883 WANT_SSH_SECURITY_TRUE
884 SSH
885 RSH_SECURITY
886 WANT_RSH_SECURITY_FALSE
887 WANT_RSH_SECURITY_TRUE
888 BSDUDP_SECURITY
889 WANT_BSDUDP_SECURITY_FALSE
890 WANT_BSDUDP_SECURITY_TRUE
891 BSDTCP_SECURITY
892 WANT_BSDTCP_SECURITY_FALSE
893 WANT_BSDTCP_SECURITY_TRUE
894 USE_AMANDAHOSTS
895 BSD_SECURITY
896 WANT_BSD_SECURITY_FALSE
897 WANT_BSD_SECURITY_TRUE
898 POSUB
899 INTLLIBS
900 LTLIBICONV
901 LIBICONV
902 INTL_MACOSX_LIBS
903 MSGMERGE
904 XGETTEXT_015
905 XGETTEXT
906 GMSGFMT_015
907 MSGFMT_015
908 GMSGFMT
909 USE_NLS
910 GETTEXT
911 MSGFMT
912 amdatadir
913 APPLICATION_DIR
914 amperldir
915 amincludedir
916 amlibexecdir
917 amlibdir
918 CLIENT_SCRIPTS_OPT
919 HAVE_GZIP
920 UNCOMPRESS_OPT
921 UNCOMPRESS_PATH
922 COMPRESS_BEST_OPT
923 COMPRESS_FAST_OPT
924 COMPRESS_SUFFIX
925 COMPRESS_PATH
926 CAT
927 PERLEXTLIBS
928 WANT_MANDATORY_THREAD_CHECK_FALSE
929 WANT_MANDATORY_THREAD_CHECK_TRUE
930 WANT_CYGWIN_COPY_PERL_DLL_FALSE
931 WANT_CYGWIN_COPY_PERL_DLL_TRUE
932 PERL_INC
933 PERL
934 SWIG_LIB
935 SWIG
936 LOCKING
937 WANT_AMFLOCK_LNLOCK_FALSE
938 WANT_AMFLOCK_LNLOCK_TRUE
939 WANT_AMFLOCK_LOCKF_FALSE
940 WANT_AMFLOCK_LOCKF_TRUE
941 WANT_AMFLOCK_FLOCK_FALSE
942 WANT_AMFLOCK_FLOCK_TRUE
943 WANT_AMFLOCK_POSIX_FALSE
944 WANT_AMFLOCK_POSIX_TRUE
945 GETCONF
946 DEFAULT_AMANDATES_FILE
947 EXAMPLE_TAPEDEV
948 DEFAULT_TAPE_DEVICE
949 DEFAULT_TAPE_SERVER
950 DEFAULT_CONFIG
951 DEFAULT_SERVER
952 CONFIG_CLOBBER_MY_CONFIG
953 DOC_BUILD_DATE
954 XSLREL
955 ENABLE_MANPAGE_BUILD_FALSE
956 ENABLE_MANPAGE_BUILD_TRUE
957 XSLTPROC
958 XSLTPROC_FLAGS
959 WANT_AMPLOT_FALSE
960 WANT_AMPLOT_TRUE
961 AMPLOT_CAT_PACK
962 AMPLOT_CAT_COMPRESS
963 AMPLOT_CAT_GZIP
964 AMPLOT_COMPRESS
965 GZIP
966 COMPRESS
967 PCAT
968 GNUPLOT
969 AMANDA_COMPONENTS
970 WANT_TAPE_FALSE
971 WANT_TAPE_TRUE
972 WANT_NDMP_FALSE
973 WANT_NDMP_TRUE
974 WANT_RECOVER_FALSE
975 WANT_RECOVER_TRUE
976 WANT_SERVER_FALSE
977 WANT_SERVER_TRUE
978 WANT_RESTORE_FALSE
979 WANT_RESTORE_TRUE
980 WANT_CLIENT_FALSE
981 WANT_CLIENT_TRUE
982 SYNTAX_CHECKS_FALSE
983 SYNTAX_CHECKS_TRUE
984 WANT_INSTALLPERMS_FALSE
985 WANT_INSTALLPERMS_TRUE
986 WANT_SETUID_CLIENT_FALSE
987 WANT_SETUID_CLIENT_TRUE
988 SERVICE_SUFFIX
989 AMANDA_DEBUG_DAYS
990 AMANDA_DBGDIR
991 ASSERTIONS
992 LOW_TCPPORTRANGE
993 TCPPORTRANGE
994 UDPPORTRANGE
995 BINARY_OWNER
996 CHECK_USERID_FALSE
997 CHECK_USERID_TRUE
998 CHECK_USERID
999 AMANDA_TMPDIR
1000 GNUTAR_LISTED_INCREMENTAL_DIR
1001 CONFIG_DIR
1002 SETUID_GROUP
1003 CLIENT_LOGIN
1004 AS_NEEDED_FLAGS
1005 WANT_AS_NEEDED_FALSE
1006 WANT_AS_NEEDED_TRUE
1007 AMANDA_WARNING_CFLAGS
1008 gltests_WITNESS
1009 REPLACE_ISWCNTRL
1010 HAVE_WCTYPE_H
1011 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1012 NEXT_WCTYPE_H
1013 REPLACE_ISWBLANK
1014 HAVE_ISWBLANK
1015 HAVE_ISWCNTRL
1016 HAVE_WINT_T
1017 HAVE_WCHAR_H
1018 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
1019 NEXT_WCHAR_H
1020 HAVE_UNISTD_H
1021 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1022 NEXT_UNISTD_H
1023 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
1024 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1025 TIME_H_DEFINES_STRUCT_TIMESPEC
1026 NEXT_AS_FIRST_DIRECTIVE_TIME_H
1027 NEXT_TIME_H
1028 REPLACE_TIMEGM
1029 REPLACE_NANOSLEEP
1030 REPLACE_MKTIME
1031 REPLACE_LOCALTIME_R
1032 HAVE_TIMEGM
1033 HAVE_STRPTIME
1034 HAVE_NANOSLEEP
1035 HAVE_LOCALTIME_R
1036 GNULIB_TIME_R
1037 GNULIB_TIMEGM
1038 GNULIB_STRPTIME
1039 GNULIB_NANOSLEEP
1040 GNULIB_MKTIME
1041 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1042 NEXT_SYS_STAT_H
1043 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1044 NEXT_STRING_H
1045 HAVE_RANDOM_H
1046 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1047 NEXT_STDLIB_H
1048 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
1049 NEXT_STDIO_H
1050 ASM_SYMBOL_PREFIX
1051 STDINT_H
1052 WINT_T_SUFFIX
1053 WCHAR_T_SUFFIX
1054 SIG_ATOMIC_T_SUFFIX
1055 SIZE_T_SUFFIX
1056 PTRDIFF_T_SUFFIX
1057 HAVE_SIGNED_WINT_T
1058 HAVE_SIGNED_WCHAR_T
1059 HAVE_SIGNED_SIG_ATOMIC_T
1060 BITSIZEOF_WINT_T
1061 BITSIZEOF_WCHAR_T
1062 BITSIZEOF_SIG_ATOMIC_T
1063 BITSIZEOF_SIZE_T
1064 BITSIZEOF_PTRDIFF_T
1065 HAVE_SYS_BITYPES_H
1066 HAVE_SYS_INTTYPES_H
1067 HAVE_STDINT_H
1068 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1069 NEXT_STDINT_H
1070 HAVE_SYS_TYPES_H
1071 HAVE_INTTYPES_H
1072 HAVE_UNSIGNED_LONG_LONG_INT
1073 HAVE_LONG_LONG_INT
1074 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1075 NEXT_STDDEF_H
1076 STDDEF_H
1077 HAVE_WCHAR_T
1078 REPLACE_NULL
1079 HAVE__BOOL
1080 STDBOOL_H
1081 NETINET_IN_H
1082 HAVE_NETINET_IN_H
1083 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1084 NEXT_NETINET_IN_H
1085 APPLE_UNIVERSAL_BUILD
1086 UNDEFINE_STRTOK_R
1087 REPLACE_STRTOK_R
1088 REPLACE_STRSIGNAL
1089 REPLACE_STRNLEN
1090 REPLACE_STRNDUP
1091 REPLACE_STRNCAT
1092 REPLACE_STRERROR
1093 REPLACE_STRCASESTR
1094 REPLACE_STRSTR
1095 REPLACE_STRDUP
1096 REPLACE_STPNCPY
1097 REPLACE_MEMMEM
1098 REPLACE_MEMCHR
1099 HAVE_STRVERSCMP
1100 HAVE_DECL_STRSIGNAL
1101 HAVE_DECL_STRTOK_R
1102 HAVE_STRCASESTR
1103 HAVE_STRSEP
1104 HAVE_STRPBRK
1105 HAVE_DECL_STRNLEN
1106 HAVE_DECL_STRNDUP
1107 HAVE_DECL_STRDUP
1108 HAVE_STRCHRNUL
1109 HAVE_STPNCPY
1110 HAVE_STPCPY
1111 HAVE_RAWMEMCHR
1112 HAVE_DECL_MEMRCHR
1113 HAVE_MEMPCPY
1114 HAVE_DECL_MEMMEM
1115 HAVE_MEMCHR
1116 HAVE_MBSLEN
1117 GNULIB_STRVERSCMP
1118 GNULIB_STRSIGNAL
1119 GNULIB_STRERROR
1120 GNULIB_MBSTOK_R
1121 GNULIB_MBSSEP
1122 GNULIB_MBSSPN
1123 GNULIB_MBSPBRK
1124 GNULIB_MBSCSPN
1125 GNULIB_MBSCASESTR
1126 GNULIB_MBSPCASECMP
1127 GNULIB_MBSNCASECMP
1128 GNULIB_MBSCASECMP
1129 GNULIB_MBSSTR
1130 GNULIB_MBSRCHR
1131 GNULIB_MBSCHR
1132 GNULIB_MBSNLEN
1133 GNULIB_MBSLEN
1134 GNULIB_STRTOK_R
1135 GNULIB_STRCASESTR
1136 GNULIB_STRSTR
1137 GNULIB_STRSEP
1138 GNULIB_STRPBRK
1139 GNULIB_STRNLEN
1140 GNULIB_STRNDUP
1141 GNULIB_STRNCAT
1142 GNULIB_STRDUP
1143 GNULIB_STRCHRNUL
1144 GNULIB_STPNCPY
1145 GNULIB_STPCPY
1146 GNULIB_RAWMEMCHR
1147 GNULIB_MEMRCHR
1148 GNULIB_MEMPCPY
1149 GNULIB_MEMMEM
1150 GNULIB_MEMCHR
1151 LOCALE_FR_UTF8
1152 LOCALE_ZH_CN
1153 LOCALE_JA
1154 REPLACE_UNSETENV
1155 REPLACE_STRTOD
1156 REPLACE_SETENV
1157 REPLACE_REALPATH
1158 REPLACE_REALLOC
1159 REPLACE_PUTENV
1160 REPLACE_MKSTEMP
1161 REPLACE_MALLOC
1162 REPLACE_CANONICALIZE_FILE_NAME
1163 REPLACE_CALLOC
1164 HAVE_UNSETENV
1165 HAVE_UNLOCKPT
1166 HAVE_SYS_LOADAVG_H
1167 HAVE_STRUCT_RANDOM_DATA
1168 HAVE_STRTOULL
1169 HAVE_STRTOLL
1170 HAVE_STRTOD
1171 HAVE_SETENV
1172 HAVE_RPMATCH
1173 HAVE_REALPATH
1174 HAVE_RANDOM_R
1175 HAVE_PTSNAME
1176 HAVE_MKSTEMPS
1177 HAVE_MKSTEMP
1178 HAVE_MKOSTEMPS
1179 HAVE_MKOSTEMP
1180 HAVE_MKDTEMP
1181 HAVE_GRANTPT
1182 HAVE_GETSUBOPT
1183 HAVE_DECL_GETLOADAVG
1184 HAVE_CANONICALIZE_FILE_NAME
1185 HAVE_ATOLL
1186 HAVE__EXIT
1187 GNULIB_UNSETENV
1188 GNULIB_UNLOCKPT
1189 GNULIB_STRTOULL
1190 GNULIB_STRTOLL
1191 GNULIB_STRTOD
1192 GNULIB_SETENV
1193 GNULIB_RPMATCH
1194 GNULIB_REALPATH
1195 GNULIB_REALLOC_POSIX
1196 GNULIB_RANDOM_R
1197 GNULIB_PUTENV
1198 GNULIB_PTSNAME
1199 GNULIB_MKSTEMPS
1200 GNULIB_MKSTEMP
1201 GNULIB_MKOSTEMPS
1202 GNULIB_MKOSTEMP
1203 GNULIB_MKDTEMP
1204 GNULIB_MALLOC_POSIX
1205 GNULIB_GRANTPT
1206 GNULIB_GETSUBOPT
1207 GNULIB_GETLOADAVG
1208 GNULIB_CANONICALIZE_FILE_NAME
1209 GNULIB_CALLOC_POSIX
1210 GNULIB_ATOLL
1211 GNULIB__EXIT
1212 REPLACE_UTIMENSAT
1213 REPLACE_STAT
1214 REPLACE_MKNOD
1215 REPLACE_MKFIFO
1216 REPLACE_MKDIR
1217 REPLACE_LSTAT
1218 REPLACE_FUTIMENS
1219 REPLACE_FSTATAT
1220 REPLACE_FSTAT
1221 HAVE_UTIMENSAT
1222 HAVE_MKNODAT
1223 HAVE_MKNOD
1224 HAVE_MKFIFOAT
1225 HAVE_MKFIFO
1226 HAVE_MKDIRAT
1227 HAVE_LSTAT
1228 HAVE_LCHMOD
1229 HAVE_FUTIMENS
1230 HAVE_FSTATAT
1231 HAVE_FCHMODAT
1232 GNULIB_UTIMENSAT
1233 GNULIB_STAT
1234 GNULIB_MKNODAT
1235 GNULIB_MKNOD
1236 GNULIB_MKFIFOAT
1237 GNULIB_MKFIFO
1238 GNULIB_MKDIRAT
1239 GNULIB_LSTAT
1240 GNULIB_LCHMOD
1241 GNULIB_FUTIMENS
1242 GNULIB_FSTATAT
1243 GNULIB_FCHMODAT
1244 LTLIBMULTITHREAD
1245 LIBMULTITHREAD
1246 LTLIBTHREAD
1247 LIBTHREAD
1248 LTLIBPTH
1249 LIBPTH
1250 LOCALCHARSET_TESTS_ENVIRONMENT
1251 GLIBC21
1252 HAVE_LANGINFO_ERA
1253 HAVE_LANGINFO_CODESET
1254 HAVE_LANGINFO_H
1255 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1256 NEXT_LANGINFO_H
1257 REPLACE_NL_LANGINFO
1258 HAVE_NL_LANGINFO
1259 GNULIB_NL_LANGINFO
1260 INET_PTON_LIB
1261 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1262 NEXT_SYS_TIME_H
1263 REPLACE_GETTIMEOFDAY
1264 HAVE_SYS_TIME_H
1265 HAVE_STRUCT_TIMEVAL
1266 HAVE_GETTIMEOFDAY
1267 GNULIB_GETTIMEOFDAY
1268 LTLIBINTL
1269 LIBINTL
1270 GETOPT_H
1271 HAVE_GETOPT_H
1272 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1273 NEXT_GETOPT_H
1274 GETADDRINFO_LIB
1275 INET_NTOP_LIB
1276 SERVENT_LIB
1277 HOSTENT_LIB
1278 HAVE_NETDB_H
1279 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1280 NEXT_NETDB_H
1281 HAVE_DECL_GETNAMEINFO
1282 HAVE_DECL_GETADDRINFO
1283 HAVE_DECL_GAI_STRERROR
1284 HAVE_DECL_FREEADDRINFO
1285 HAVE_STRUCT_ADDRINFO
1286 GNULIB_GETADDRINFO
1287 HAVE_WINSOCK2_H
1288 HAVE_WS2TCPIP_H
1289 HAVE_SYS_SOCKET_H
1290 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1291 NEXT_SYS_SOCKET_H
1292 HAVE_ACCEPT4
1293 HAVE_SA_FAMILY_T
1294 HAVE_STRUCT_SOCKADDR_STORAGE
1295 GNULIB_ACCEPT4
1296 GNULIB_SHUTDOWN
1297 GNULIB_SETSOCKOPT
1298 GNULIB_SENDTO
1299 GNULIB_RECVFROM
1300 GNULIB_SEND
1301 GNULIB_RECV
1302 GNULIB_LISTEN
1303 GNULIB_GETSOCKOPT
1304 GNULIB_GETSOCKNAME
1305 GNULIB_GETPEERNAME
1306 GNULIB_BIND
1307 GNULIB_ACCEPT
1308 GNULIB_CONNECT
1309 GNULIB_SOCKET
1310 REPLACE_VSPRINTF
1311 REPLACE_VSNPRINTF
1312 REPLACE_VPRINTF
1313 REPLACE_VFPRINTF
1314 REPLACE_VDPRINTF
1315 REPLACE_VASPRINTF
1316 REPLACE_TMPFILE
1317 REPLACE_STDIO_WRITE_FUNCS
1318 REPLACE_SPRINTF
1319 REPLACE_SNPRINTF
1320 REPLACE_RENAMEAT
1321 REPLACE_RENAME
1322 REPLACE_REMOVE
1323 REPLACE_PRINTF
1324 REPLACE_POPEN
1325 REPLACE_PERROR
1326 REPLACE_OBSTACK_PRINTF
1327 REPLACE_GETLINE
1328 REPLACE_GETDELIM
1329 REPLACE_FTELLO
1330 REPLACE_FTELL
1331 REPLACE_FSEEKO
1332 REPLACE_FSEEK
1333 REPLACE_FREOPEN
1334 REPLACE_FPURGE
1335 REPLACE_FPRINTF
1336 REPLACE_FOPEN
1337 REPLACE_FFLUSH
1338 REPLACE_FCLOSE
1339 REPLACE_DPRINTF
1340 HAVE_VDPRINTF
1341 HAVE_VASPRINTF
1342 HAVE_RENAMEAT
1343 HAVE_FTELLO
1344 HAVE_FSEEKO
1345 HAVE_DPRINTF
1346 HAVE_DECL_VSNPRINTF
1347 HAVE_DECL_SNPRINTF
1348 HAVE_DECL_OBSTACK_PRINTF
1349 HAVE_DECL_GETLINE
1350 HAVE_DECL_GETDELIM
1351 HAVE_DECL_FPURGE
1352 GNULIB_VSPRINTF_POSIX
1353 GNULIB_VSNPRINTF
1354 GNULIB_VPRINTF_POSIX
1355 GNULIB_VPRINTF
1356 GNULIB_VFPRINTF_POSIX
1357 GNULIB_VFPRINTF
1358 GNULIB_VDPRINTF
1359 GNULIB_VASPRINTF
1360 GNULIB_TMPFILE
1361 GNULIB_STDIO_H_SIGPIPE
1362 GNULIB_SPRINTF_POSIX
1363 GNULIB_SNPRINTF
1364 GNULIB_RENAMEAT
1365 GNULIB_RENAME
1366 GNULIB_REMOVE
1367 GNULIB_PUTS
1368 GNULIB_PUTCHAR
1369 GNULIB_PUTC
1370 GNULIB_PRINTF_POSIX
1371 GNULIB_PRINTF
1372 GNULIB_POPEN
1373 GNULIB_PERROR
1374 GNULIB_OBSTACK_PRINTF_POSIX
1375 GNULIB_OBSTACK_PRINTF
1376 GNULIB_GETLINE
1377 GNULIB_GETDELIM
1378 GNULIB_FWRITE
1379 GNULIB_FTELLO
1380 GNULIB_FTELL
1381 GNULIB_FSEEKO
1382 GNULIB_FSEEK
1383 GNULIB_FREOPEN
1384 GNULIB_FPUTS
1385 GNULIB_FPUTC
1386 GNULIB_FPURGE
1387 GNULIB_FPRINTF_POSIX
1388 GNULIB_FPRINTF
1389 GNULIB_FOPEN
1390 GNULIB_FFLUSH
1391 GNULIB_FCLOSE
1392 GNULIB_DPRINTF
1393 FLOAT_H
1394 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1395 NEXT_FLOAT_H
1396 EOVERFLOW_VALUE
1397 EOVERFLOW_HIDDEN
1398 ENOLINK_VALUE
1399 ENOLINK_HIDDEN
1400 EMULTIHOP_VALUE
1401 EMULTIHOP_HIDDEN
1402 ERRNO_H
1403 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1404 NEXT_ERRNO_H
1405 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1406 UNISTD_H_HAVE_WINSOCK2_H
1407 REPLACE_WRITE
1408 REPLACE_USLEEP
1409 REPLACE_UNLINKAT
1410 REPLACE_UNLINK
1411 REPLACE_TTYNAME_R
1412 REPLACE_SYMLINK
1413 REPLACE_SLEEP
1414 REPLACE_RMDIR
1415 REPLACE_READLINK
1416 REPLACE_PWRITE
1417 REPLACE_PREAD
1418 REPLACE_LSEEK
1419 REPLACE_LINKAT
1420 REPLACE_LINK
1421 REPLACE_LCHOWN
1422 REPLACE_GETPAGESIZE
1423 REPLACE_GETGROUPS
1424 REPLACE_GETCWD
1425 REPLACE_FCHOWNAT
1426 REPLACE_DUP2
1427 REPLACE_DUP
1428 REPLACE_CLOSE
1429 REPLACE_CHOWN
1430 HAVE_SYS_PARAM_H
1431 HAVE_OS_H
1432 HAVE_DECL_GETUSERSHELL
1433 HAVE_DECL_GETPAGESIZE
1434 HAVE_DECL_GETLOGIN_R
1435 HAVE_DECL_ENVIRON
1436 HAVE_USLEEP
1437 HAVE_UNLINKAT
1438 HAVE_TTYNAME_R
1439 HAVE_SYMLINKAT
1440 HAVE_SYMLINK
1441 HAVE_SLEEP
1442 HAVE_READLINKAT
1443 HAVE_READLINK
1444 HAVE_PWRITE
1445 HAVE_PREAD
1446 HAVE_PIPE2
1447 HAVE_LINKAT
1448 HAVE_LINK
1449 HAVE_LCHOWN
1450 HAVE_GETPAGESIZE
1451 HAVE_GETLOGIN
1452 HAVE_GETHOSTNAME
1453 HAVE_GETGROUPS
1454 HAVE_GETDTABLESIZE
1455 HAVE_GETDOMAINNAME
1456 HAVE_FTRUNCATE
1457 HAVE_FSYNC
1458 HAVE_FCHOWNAT
1459 HAVE_FCHDIR
1460 HAVE_FACCESSAT
1461 HAVE_EUIDACCESS
1462 HAVE_DUP3
1463 HAVE_DUP2
1464 HAVE_CHOWN
1465 GNULIB_WRITE
1466 GNULIB_USLEEP
1467 GNULIB_UNLINKAT
1468 GNULIB_UNLINK
1469 GNULIB_UNISTD_H_SIGPIPE
1470 GNULIB_UNISTD_H_GETOPT
1471 GNULIB_TTYNAME_R
1472 GNULIB_SYMLINKAT
1473 GNULIB_SYMLINK
1474 GNULIB_SLEEP
1475 GNULIB_RMDIR
1476 GNULIB_READLINKAT
1477 GNULIB_READLINK
1478 GNULIB_PWRITE
1479 GNULIB_PREAD
1480 GNULIB_PIPE2
1481 GNULIB_LSEEK
1482 GNULIB_LINKAT
1483 GNULIB_LINK
1484 GNULIB_LCHOWN
1485 GNULIB_GETUSERSHELL
1486 GNULIB_GETPAGESIZE
1487 GNULIB_GETLOGIN_R
1488 GNULIB_GETLOGIN
1489 GNULIB_GETHOSTNAME
1490 GNULIB_GETGROUPS
1491 GNULIB_GETDTABLESIZE
1492 GNULIB_GETDOMAINNAME
1493 GNULIB_GETCWD
1494 GNULIB_FTRUNCATE
1495 GNULIB_FSYNC
1496 GNULIB_FCHOWNAT
1497 GNULIB_FCHDIR
1498 GNULIB_FACCESSAT
1499 GNULIB_EUIDACCESS
1500 GNULIB_ENVIRON
1501 GNULIB_DUP3
1502 GNULIB_DUP2
1503 GNULIB_CLOSE
1504 GNULIB_CHOWN
1505 LOCALE_FR
1506 REPLACE_WCWIDTH
1507 REPLACE_WCSNRTOMBS
1508 REPLACE_WCSRTOMBS
1509 REPLACE_WCRTOMB
1510 REPLACE_MBSNRTOWCS
1511 REPLACE_MBSRTOWCS
1512 REPLACE_MBRLEN
1513 REPLACE_MBRTOWC
1514 REPLACE_MBSINIT
1515 REPLACE_WCTOB
1516 REPLACE_BTOWC
1517 REPLACE_MBSTATE_T
1518 HAVE_DECL_WCWIDTH
1519 HAVE_DECL_WCTOB
1520 HAVE_WCSNRTOMBS
1521 HAVE_WCSRTOMBS
1522 HAVE_WCRTOMB
1523 HAVE_MBSNRTOWCS
1524 HAVE_MBSRTOWCS
1525 HAVE_MBRLEN
1526 HAVE_MBRTOWC
1527 HAVE_MBSINIT
1528 HAVE_BTOWC
1529 GNULIB_WCWIDTH
1530 GNULIB_WCSNRTOMBS
1531 GNULIB_WCSRTOMBS
1532 GNULIB_WCRTOMB
1533 GNULIB_MBSNRTOWCS
1534 GNULIB_MBSRTOWCS
1535 GNULIB_MBRLEN
1536 GNULIB_MBRTOWC
1537 GNULIB_MBSINIT
1538 GNULIB_WCTOB
1539 GNULIB_BTOWC
1540 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1541 NEXT_ARPA_INET_H
1542 PRAGMA_SYSTEM_HEADER
1543 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1544 INCLUDE_NEXT
1545 HAVE_ARPA_INET_H
1546 HAVE_DECL_INET_PTON
1547 HAVE_DECL_INET_NTOP
1548 GNULIB_INET_PTON
1549 GNULIB_INET_NTOP
1550 ALLOCA_H
1551 ALLOCA
1552 GL_COND_LIBTOOL_FALSE
1553 GL_COND_LIBTOOL_TRUE
1554 EGREP
1555 CPP
1556 RANLIB
1557 am__fastdepCC_FALSE
1558 am__fastdepCC_TRUE
1559 CCDEPMODE
1560 AMDEPBACKSLASH
1561 AMDEP_FALSE
1562 AMDEP_TRUE
1563 am__quote
1564 am__include
1565 DEPDIR
1566 OBJEXT
1567 EXEEXT
1568 ac_ct_CC
1569 CPPFLAGS
1570 LDFLAGS
1571 CFLAGS
1572 CC
1573 VERSION_COMMENT
1574 VERSION_PATCH
1575 VERSION_MINOR
1576 VERSION_MAJOR
1577 SNAPSHOT_STAMP
1578 am__untar
1579 am__tar
1580 AMTAR
1581 am__leading_dot
1582 SET_MAKE
1583 AWK
1584 mkdir_p
1585 MKDIR_P
1586 INSTALL_STRIP_PROGRAM
1587 STRIP
1588 install_sh
1589 MAKEINFO
1590 AUTOHEADER
1591 AUTOMAKE
1592 AUTOCONF
1593 ACLOCAL
1594 VERSION
1595 CYGPATH_W
1596 am__isrc
1597 INSTALL_DATA
1598 INSTALL_SCRIPT
1599 INSTALL_PROGRAM
1600 GIT
1601 SVN
1602 GREP
1603 PACKAGE
1604 host_os
1605 host_vendor
1606 host_cpu
1607 host
1608 build_os
1609 build_vendor
1610 build_cpu
1611 build
1612 target_alias
1613 host_alias
1614 build_alias
1615 LIBS
1616 ECHO_T
1617 ECHO_N
1618 ECHO_C
1619 DEFS
1620 mandir
1621 localedir
1622 libdir
1623 psdir
1624 pdfdir
1625 dvidir
1626 htmldir
1627 infodir
1628 docdir
1629 oldincludedir
1630 includedir
1631 localstatedir
1632 sharedstatedir
1633 sysconfdir
1634 datadir
1635 datarootdir
1636 libexecdir
1637 sbindir
1638 bindir
1639 program_transform_name
1640 prefix
1641 exec_prefix
1642 PACKAGE_BUGREPORT
1643 PACKAGE_STRING
1644 PACKAGE_VERSION
1645 PACKAGE_TARNAME
1646 PACKAGE_NAME
1647 PATH_SEPARATOR
1648 SHELL'
1649 ac_subst_files=''
1650 ac_user_opts='
1651 enable_option_checking
1652 enable_dependency_tracking
1653 enable_threads
1654 with_gnu_ld
1655 enable_rpath
1656 with_libpth_prefix
1657 with_included_regex
1658 enable_largefile
1659 with_cflags
1660 with_includes
1661 with_libraries
1662 enable_as_needed
1663 with_user
1664 with_group
1665 with_dumperdir
1666 with_configdir
1667 with_indexdir
1668 with_dbdir
1669 with_logdir
1670 with_suffixes
1671 with_gnutar_listdir
1672 with_gnutar_listed_incremental
1673 with_tmpdir
1674 with_force_uid
1675 with_owner
1676 with_fqdn
1677 with_reuseports
1678 with_low_tcpportrange
1679 with_tcpportrange
1680 with_udpportrange
1681 with_buffered_dump
1682 with_maxtapeblocksize
1683 with_assertions
1684 with_debugging
1685 with_debug_days
1686 with_testing
1687 with_single_userid
1688 enable_installperms
1689 enable_syntax_checks
1690 with_server
1691 with_client
1692 with_restore
1693 with_amrecover
1694 with_client_only
1695 with_server_only
1696 with_ndmp
1697 with_gnuplot
1698 enable_manpage_build
1699 with_xsltproc
1700 with_xsltproc_flags
1701 with_index_server
1702 with_config
1703 with_tape_server
1704 with_tape_device
1705 with_changer_device
1706 with_amandates
1707 with_perlextlibs
1708 with_ipv6
1709 with_amlibdir
1710 with_amlibexecdir
1711 with_amperldir
1712 with_amdatadir
1713 enable_nls
1714 with_libiconv_prefix
1715 with_libintl_prefix
1716 with_bsd_security
1717 with_amandahosts
1718 with_bsdtcp_security
1719 with_bsdudp_security
1720 with_rsh_security
1721 with_ssh_security
1722 with_ssh_options
1723 with_krb5_security
1724 with_dump_honor_nodump
1725 with_gnutar
1726 with_star
1727 with_suntar
1728 with_smbclient
1729 with_samba_user
1730 with_rundump
1731 enable_werror
1732 enable_swig_error
1733 enable_shared
1734 enable_static
1735 with_pic
1736 enable_fast_install
1737 enable_libtool_lock
1738 enable_static_binary
1739 enable_glibtest
1740 with_readline
1741 with_libcurl
1742 enable_s3_device
1743 enable_dvdrw_device
1744 enable_ndmp_device
1745 '
1746       ac_precious_vars='build_alias
1747 host_alias
1748 target_alias
1749 CC
1750 CFLAGS
1751 LDFLAGS
1752 LIBS
1753 CPPFLAGS
1754 CPP
1755 GNUPLOT
1756 SWIG
1757 PERL
1758 GNUTAR
1759 STAR
1760 SUNTAR
1761 YACC
1762 YFLAGS
1763 MTX
1764 MOUNT
1765 UMOUNT
1766 GLIB_CFLAGS
1767 GLIB_LIBS
1768 GLIB_GENMARSHAL
1769 GOBJECT_QUERY
1770 GLIB_MKENUMS
1771 PKG_CONFIG'
1772
1773
1774 # Initialize some variables set by options.
1775 ac_init_help=
1776 ac_init_version=false
1777 ac_unrecognized_opts=
1778 ac_unrecognized_sep=
1779 # The variables have the same names as the options, with
1780 # dashes changed to underlines.
1781 cache_file=/dev/null
1782 exec_prefix=NONE
1783 no_create=
1784 no_recursion=
1785 prefix=NONE
1786 program_prefix=NONE
1787 program_suffix=NONE
1788 program_transform_name=s,x,x,
1789 silent=
1790 site=
1791 srcdir=
1792 verbose=
1793 x_includes=NONE
1794 x_libraries=NONE
1795
1796 # Installation directory options.
1797 # These are left unexpanded so users can "make install exec_prefix=/foo"
1798 # and all the variables that are supposed to be based on exec_prefix
1799 # by default will actually change.
1800 # Use braces instead of parens because sh, perl, etc. also accept them.
1801 # (The list follows the same order as the GNU Coding Standards.)
1802 bindir='${exec_prefix}/bin'
1803 sbindir='${exec_prefix}/sbin'
1804 libexecdir='${exec_prefix}/libexec'
1805 datarootdir='${prefix}/share'
1806 datadir='${datarootdir}'
1807 sysconfdir='${prefix}/etc'
1808 sharedstatedir='${prefix}/com'
1809 localstatedir='${prefix}/var'
1810 includedir='${prefix}/include'
1811 oldincludedir='/usr/include'
1812 docdir='${datarootdir}/doc/${PACKAGE}'
1813 infodir='${datarootdir}/info'
1814 htmldir='${docdir}'
1815 dvidir='${docdir}'
1816 pdfdir='${docdir}'
1817 psdir='${docdir}'
1818 libdir='${exec_prefix}/lib'
1819 localedir='${datarootdir}/locale'
1820 mandir='${datarootdir}/man'
1821
1822 ac_prev=
1823 ac_dashdash=
1824 for ac_option
1825 do
1826   # If the previous option needs an argument, assign it.
1827   if test -n "$ac_prev"; then
1828     eval $ac_prev=\$ac_option
1829     ac_prev=
1830     continue
1831   fi
1832
1833   case $ac_option in
1834   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1835   *)    ac_optarg=yes ;;
1836   esac
1837
1838   # Accept the important Cygnus configure options, so we can diagnose typos.
1839
1840   case $ac_dashdash$ac_option in
1841   --)
1842     ac_dashdash=yes ;;
1843
1844   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1845     ac_prev=bindir ;;
1846   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1847     bindir=$ac_optarg ;;
1848
1849   -build | --build | --buil | --bui | --bu)
1850     ac_prev=build_alias ;;
1851   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1852     build_alias=$ac_optarg ;;
1853
1854   -cache-file | --cache-file | --cache-fil | --cache-fi \
1855   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1856     ac_prev=cache_file ;;
1857   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1858   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1859     cache_file=$ac_optarg ;;
1860
1861   --config-cache | -C)
1862     cache_file=config.cache ;;
1863
1864   -datadir | --datadir | --datadi | --datad)
1865     ac_prev=datadir ;;
1866   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1867     datadir=$ac_optarg ;;
1868
1869   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1870   | --dataroo | --dataro | --datar)
1871     ac_prev=datarootdir ;;
1872   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1873   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1874     datarootdir=$ac_optarg ;;
1875
1876   -disable-* | --disable-*)
1877     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1878     # Reject names that are not valid shell variable names.
1879     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1880       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1881    { (exit 1); exit 1; }; }
1882     ac_useropt_orig=$ac_useropt
1883     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1884     case $ac_user_opts in
1885       *"
1886 "enable_$ac_useropt"
1887 "*) ;;
1888       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1889          ac_unrecognized_sep=', ';;
1890     esac
1891     eval enable_$ac_useropt=no ;;
1892
1893   -docdir | --docdir | --docdi | --doc | --do)
1894     ac_prev=docdir ;;
1895   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1896     docdir=$ac_optarg ;;
1897
1898   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1899     ac_prev=dvidir ;;
1900   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1901     dvidir=$ac_optarg ;;
1902
1903   -enable-* | --enable-*)
1904     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1905     # Reject names that are not valid shell variable names.
1906     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1907       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1908    { (exit 1); exit 1; }; }
1909     ac_useropt_orig=$ac_useropt
1910     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1911     case $ac_user_opts in
1912       *"
1913 "enable_$ac_useropt"
1914 "*) ;;
1915       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1916          ac_unrecognized_sep=', ';;
1917     esac
1918     eval enable_$ac_useropt=\$ac_optarg ;;
1919
1920   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1921   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1922   | --exec | --exe | --ex)
1923     ac_prev=exec_prefix ;;
1924   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1925   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1926   | --exec=* | --exe=* | --ex=*)
1927     exec_prefix=$ac_optarg ;;
1928
1929   -gas | --gas | --ga | --g)
1930     # Obsolete; use --with-gas.
1931     with_gas=yes ;;
1932
1933   -help | --help | --hel | --he | -h)
1934     ac_init_help=long ;;
1935   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1936     ac_init_help=recursive ;;
1937   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1938     ac_init_help=short ;;
1939
1940   -host | --host | --hos | --ho)
1941     ac_prev=host_alias ;;
1942   -host=* | --host=* | --hos=* | --ho=*)
1943     host_alias=$ac_optarg ;;
1944
1945   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1946     ac_prev=htmldir ;;
1947   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1948   | --ht=*)
1949     htmldir=$ac_optarg ;;
1950
1951   -includedir | --includedir | --includedi | --included | --include \
1952   | --includ | --inclu | --incl | --inc)
1953     ac_prev=includedir ;;
1954   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1955   | --includ=* | --inclu=* | --incl=* | --inc=*)
1956     includedir=$ac_optarg ;;
1957
1958   -infodir | --infodir | --infodi | --infod | --info | --inf)
1959     ac_prev=infodir ;;
1960   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1961     infodir=$ac_optarg ;;
1962
1963   -libdir | --libdir | --libdi | --libd)
1964     ac_prev=libdir ;;
1965   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1966     libdir=$ac_optarg ;;
1967
1968   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1969   | --libexe | --libex | --libe)
1970     ac_prev=libexecdir ;;
1971   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1972   | --libexe=* | --libex=* | --libe=*)
1973     libexecdir=$ac_optarg ;;
1974
1975   -localedir | --localedir | --localedi | --localed | --locale)
1976     ac_prev=localedir ;;
1977   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1978     localedir=$ac_optarg ;;
1979
1980   -localstatedir | --localstatedir | --localstatedi | --localstated \
1981   | --localstate | --localstat | --localsta | --localst | --locals)
1982     ac_prev=localstatedir ;;
1983   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1984   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1985     localstatedir=$ac_optarg ;;
1986
1987   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1988     ac_prev=mandir ;;
1989   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1990     mandir=$ac_optarg ;;
1991
1992   -nfp | --nfp | --nf)
1993     # Obsolete; use --without-fp.
1994     with_fp=no ;;
1995
1996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1997   | --no-cr | --no-c | -n)
1998     no_create=yes ;;
1999
2000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2002     no_recursion=yes ;;
2003
2004   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2005   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2006   | --oldin | --oldi | --old | --ol | --o)
2007     ac_prev=oldincludedir ;;
2008   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2009   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2010   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2011     oldincludedir=$ac_optarg ;;
2012
2013   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2014     ac_prev=prefix ;;
2015   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2016     prefix=$ac_optarg ;;
2017
2018   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2019   | --program-pre | --program-pr | --program-p)
2020     ac_prev=program_prefix ;;
2021   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2022   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2023     program_prefix=$ac_optarg ;;
2024
2025   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2026   | --program-suf | --program-su | --program-s)
2027     ac_prev=program_suffix ;;
2028   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2029   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2030     program_suffix=$ac_optarg ;;
2031
2032   -program-transform-name | --program-transform-name \
2033   | --program-transform-nam | --program-transform-na \
2034   | --program-transform-n | --program-transform- \
2035   | --program-transform | --program-transfor \
2036   | --program-transfo | --program-transf \
2037   | --program-trans | --program-tran \
2038   | --progr-tra | --program-tr | --program-t)
2039     ac_prev=program_transform_name ;;
2040   -program-transform-name=* | --program-transform-name=* \
2041   | --program-transform-nam=* | --program-transform-na=* \
2042   | --program-transform-n=* | --program-transform-=* \
2043   | --program-transform=* | --program-transfor=* \
2044   | --program-transfo=* | --program-transf=* \
2045   | --program-trans=* | --program-tran=* \
2046   | --progr-tra=* | --program-tr=* | --program-t=*)
2047     program_transform_name=$ac_optarg ;;
2048
2049   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2050     ac_prev=pdfdir ;;
2051   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2052     pdfdir=$ac_optarg ;;
2053
2054   -psdir | --psdir | --psdi | --psd | --ps)
2055     ac_prev=psdir ;;
2056   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2057     psdir=$ac_optarg ;;
2058
2059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2060   | -silent | --silent | --silen | --sile | --sil)
2061     silent=yes ;;
2062
2063   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2064     ac_prev=sbindir ;;
2065   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2066   | --sbi=* | --sb=*)
2067     sbindir=$ac_optarg ;;
2068
2069   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2070   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2071   | --sharedst | --shareds | --shared | --share | --shar \
2072   | --sha | --sh)
2073     ac_prev=sharedstatedir ;;
2074   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2075   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2076   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2077   | --sha=* | --sh=*)
2078     sharedstatedir=$ac_optarg ;;
2079
2080   -site | --site | --sit)
2081     ac_prev=site ;;
2082   -site=* | --site=* | --sit=*)
2083     site=$ac_optarg ;;
2084
2085   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2086     ac_prev=srcdir ;;
2087   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2088     srcdir=$ac_optarg ;;
2089
2090   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2091   | --syscon | --sysco | --sysc | --sys | --sy)
2092     ac_prev=sysconfdir ;;
2093   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2094   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2095     sysconfdir=$ac_optarg ;;
2096
2097   -target | --target | --targe | --targ | --tar | --ta | --t)
2098     ac_prev=target_alias ;;
2099   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2100     target_alias=$ac_optarg ;;
2101
2102   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2103     verbose=yes ;;
2104
2105   -version | --version | --versio | --versi | --vers | -V)
2106     ac_init_version=: ;;
2107
2108   -with-* | --with-*)
2109     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2110     # Reject names that are not valid shell variable names.
2111     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2112       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2113    { (exit 1); exit 1; }; }
2114     ac_useropt_orig=$ac_useropt
2115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2116     case $ac_user_opts in
2117       *"
2118 "with_$ac_useropt"
2119 "*) ;;
2120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2121          ac_unrecognized_sep=', ';;
2122     esac
2123     eval with_$ac_useropt=\$ac_optarg ;;
2124
2125   -without-* | --without-*)
2126     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2127     # Reject names that are not valid shell variable names.
2128     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2129       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2130    { (exit 1); exit 1; }; }
2131     ac_useropt_orig=$ac_useropt
2132     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2133     case $ac_user_opts in
2134       *"
2135 "with_$ac_useropt"
2136 "*) ;;
2137       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2138          ac_unrecognized_sep=', ';;
2139     esac
2140     eval with_$ac_useropt=no ;;
2141
2142   --x)
2143     # Obsolete; use --with-x.
2144     with_x=yes ;;
2145
2146   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2147   | --x-incl | --x-inc | --x-in | --x-i)
2148     ac_prev=x_includes ;;
2149   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2150   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2151     x_includes=$ac_optarg ;;
2152
2153   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2154   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2155     ac_prev=x_libraries ;;
2156   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2157   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2158     x_libraries=$ac_optarg ;;
2159
2160   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2161 Try \`$0 --help' for more information." >&2
2162    { (exit 1); exit 1; }; }
2163     ;;
2164
2165   *=*)
2166     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2167     # Reject names that are not valid shell variable names.
2168     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2169       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2170    { (exit 1); exit 1; }; }
2171     eval $ac_envvar=\$ac_optarg
2172     export $ac_envvar ;;
2173
2174   *)
2175     # FIXME: should be removed in autoconf 3.0.
2176     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2177     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2178       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2179     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2180     ;;
2181
2182   esac
2183 done
2184
2185 if test -n "$ac_prev"; then
2186   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2187   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2188    { (exit 1); exit 1; }; }
2189 fi
2190
2191 if test -n "$ac_unrecognized_opts"; then
2192   case $enable_option_checking in
2193     no) ;;
2194     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
2195    { (exit 1); exit 1; }; } ;;
2196     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2197   esac
2198 fi
2199
2200 # Check all directory arguments for consistency.
2201 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2202                 datadir sysconfdir sharedstatedir localstatedir includedir \
2203                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2204                 libdir localedir mandir
2205 do
2206   eval ac_val=\$$ac_var
2207   # Remove trailing slashes.
2208   case $ac_val in
2209     */ )
2210       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2211       eval $ac_var=\$ac_val;;
2212   esac
2213   # Be sure to have absolute directory names.
2214   case $ac_val in
2215     [\\/$]* | ?:[\\/]* )  continue;;
2216     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2217   esac
2218   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2219    { (exit 1); exit 1; }; }
2220 done
2221
2222 # There might be people who depend on the old broken behavior: `$host'
2223 # used to hold the argument of --host etc.
2224 # FIXME: To remove some day.
2225 build=$build_alias
2226 host=$host_alias
2227 target=$target_alias
2228
2229 # FIXME: To remove some day.
2230 if test "x$host_alias" != x; then
2231   if test "x$build_alias" = x; then
2232     cross_compiling=maybe
2233     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2234     If a cross compiler is detected then cross compile mode will be used." >&2
2235   elif test "x$build_alias" != "x$host_alias"; then
2236     cross_compiling=yes
2237   fi
2238 fi
2239
2240 ac_tool_prefix=
2241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2242
2243 test "$silent" = yes && exec 6>/dev/null
2244
2245
2246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2247 ac_ls_di=`ls -di .` &&
2248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2249   { $as_echo "$as_me: error: working directory cannot be determined" >&2
2250    { (exit 1); exit 1; }; }
2251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2252   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2253    { (exit 1); exit 1; }; }
2254
2255
2256 # Find the source files, if location was not specified.
2257 if test -z "$srcdir"; then
2258   ac_srcdir_defaulted=yes
2259   # Try the directory containing this script, then the parent directory.
2260   ac_confdir=`$as_dirname -- "$as_myself" ||
2261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2262          X"$as_myself" : 'X\(//\)[^/]' \| \
2263          X"$as_myself" : 'X\(//\)$' \| \
2264          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2265 $as_echo X"$as_myself" |
2266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2267             s//\1/
2268             q
2269           }
2270           /^X\(\/\/\)[^/].*/{
2271             s//\1/
2272             q
2273           }
2274           /^X\(\/\/\)$/{
2275             s//\1/
2276             q
2277           }
2278           /^X\(\/\).*/{
2279             s//\1/
2280             q
2281           }
2282           s/.*/./; q'`
2283   srcdir=$ac_confdir
2284   if test ! -r "$srcdir/$ac_unique_file"; then
2285     srcdir=..
2286   fi
2287 else
2288   ac_srcdir_defaulted=no
2289 fi
2290 if test ! -r "$srcdir/$ac_unique_file"; then
2291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2292   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2293    { (exit 1); exit 1; }; }
2294 fi
2295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2296 ac_abs_confdir=`(
2297         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2298    { (exit 1); exit 1; }; }
2299         pwd)`
2300 # When building in place, set srcdir=.
2301 if test "$ac_abs_confdir" = "$ac_pwd"; then
2302   srcdir=.
2303 fi
2304 # Remove unnecessary trailing slashes from srcdir.
2305 # Double slashes in file names in object file debugging info
2306 # mess up M-x gdb in Emacs.
2307 case $srcdir in
2308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2309 esac
2310 for ac_var in $ac_precious_vars; do
2311   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2312   eval ac_env_${ac_var}_value=\$${ac_var}
2313   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2314   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2315 done
2316
2317 #
2318 # Report the --help message.
2319 #
2320 if test "$ac_init_help" = "long"; then
2321   # Omit some internal or obsolete options to make the list less imposing.
2322   # This message is too long to be a string in the A/UX 3.1 sh.
2323   cat <<_ACEOF
2324 \`configure' configures this package to adapt to many kinds of systems.
2325
2326 Usage: $0 [OPTION]... [VAR=VALUE]...
2327
2328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2329 VAR=VALUE.  See below for descriptions of some of the useful variables.
2330
2331 Defaults for the options are specified in brackets.
2332
2333 Configuration:
2334   -h, --help              display this help and exit
2335       --help=short        display options specific to this package
2336       --help=recursive    display the short help of all the included packages
2337   -V, --version           display version information and exit
2338   -q, --quiet, --silent   do not print \`checking...' messages
2339       --cache-file=FILE   cache test results in FILE [disabled]
2340   -C, --config-cache      alias for \`--cache-file=config.cache'
2341   -n, --no-create         do not create output files
2342       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2343
2344 Installation directories:
2345   --prefix=PREFIX         install architecture-independent files in PREFIX
2346                           [$ac_default_prefix]
2347   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2348                           [PREFIX]
2349
2350 By default, \`make install' will install all the files in
2351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2353 for instance \`--prefix=\$HOME'.
2354
2355 For better control, use the options below.
2356
2357 Fine tuning of the installation directories:
2358   --bindir=DIR            user executables [EPREFIX/bin]
2359   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2360   --libexecdir=DIR        program executables [EPREFIX/libexec]
2361   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2362   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2363   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2364   --libdir=DIR            object code libraries [EPREFIX/lib]
2365   --includedir=DIR        C header files [PREFIX/include]
2366   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2367   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2368   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2369   --infodir=DIR           info documentation [DATAROOTDIR/info]
2370   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2371   --mandir=DIR            man documentation [DATAROOTDIR/man]
2372   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2373   --htmldir=DIR           html documentation [DOCDIR]
2374   --dvidir=DIR            dvi documentation [DOCDIR]
2375   --pdfdir=DIR            pdf documentation [DOCDIR]
2376   --psdir=DIR             ps documentation [DOCDIR]
2377 _ACEOF
2378
2379   cat <<\_ACEOF
2380
2381 Program names:
2382   --program-prefix=PREFIX            prepend PREFIX to installed program names
2383   --program-suffix=SUFFIX            append SUFFIX to installed program names
2384   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2385
2386 System types:
2387   --build=BUILD     configure for building on BUILD [guessed]
2388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2389 _ACEOF
2390 fi
2391
2392 if test -n "$ac_init_help"; then
2393
2394   cat <<\_ACEOF
2395
2396 Optional Features:
2397   --disable-option-checking  ignore unrecognized --enable/--with options
2398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2400   --disable-dependency-tracking  speeds up one-time build
2401   --enable-dependency-tracking   do not reject slow dependency extractors
2402   --enable-threads={posix|solaris|pth|win32}
2403                           specify multithreading API
2404   --disable-threads       build without multithread safety
2405   --disable-rpath         do not hardcode runtime library paths
2406   --disable-largefile     omit support for large files
2407   --enable-as-needed      enable use od --as-needed linker flag
2408   --disable-installperms  do not modify ownership and permissions on installed
2409                           files
2410   --enable-syntax-checks  Perform syntax checks when installing - developers
2411                           only
2412   --enable-manpage-build  Build the manpages from their XML source (shipped
2413                           manpages are usually sufficient)
2414   --disable-nls           do not use Native Language Support
2415   --enable-werror         To compile with -Werror compiler flag
2416   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2417   --enable-shared[=PKGS]  build shared libraries [default=yes]
2418   --enable-static[=PKGS]  build static libraries [default=yes]
2419   --enable-fast-install[=PKGS]
2420                           optimize for fast installation [default=yes]
2421   --disable-libtool-lock  avoid locking (might break parallel builds)
2422   --enable-static-binary  To build statically linked binaries
2423   --disable-glibtest      do not try to compile and run a test GLIB program
2424   --disable-s3-device     disable the S3 device
2425   --disable-dvdrw-device  disable the DVD-RW device
2426   --disable-ndmp-device   disable the NDMP device
2427
2428 Optional Packages:
2429   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2430   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2431   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2432   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2433   --without-libpth-prefix     don't search for libpth in includedir and libdir
2434   --without-included-regex
2435                           don't compile regex; this is the default on systems
2436                           with recent-enough versions of the GNU C Library
2437                           (use with caution on other systems).
2438   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2439   --with-includes=INCLUDE-DIRS
2440                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2441   --with-libraries=LIBRARY-DIRS
2442                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2443                           -R on Solaris, NetBSD)
2444   --with-user=USER        force execution to USER on client systems (REQUIRED)
2445   --with-group=GROUP      group allowed to execute setuid-root programs
2446                           (REQUIRED)
2447   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2448   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2449   --with-indexdir         deprecated: use indexdir in amanda.conf
2450   --with-dbdir            deprecated: use infofile in amanda.conf
2451   --with-logdir           deprecated: use logfile in amanda.conf
2452
2453   --with-gnutar-listdir=DIR
2454                           put gnutar directory lists in DIR (default:
2455                           localstatedir/amanda/gnutar-lists)
2456   --with-gnutar-listed-incremental
2457                           deprecated; use --with-gnutar-listdir
2458   --with-tmpdir           directory for temporary and debugging files
2459                           (default: /tmp/amanda)
2460   --without-force-uid     do not check userids when running programs
2461   --with-owner=USER
2462             force ownership of installed files to USER (default same as --with-user)
2463
2464   --with-fqdn             use FQDN's to backup multiple networks
2465   --without-reuseaddr     Don't reuse network connections until full timeout
2466                           period
2467   --with-low-tcpportrange=low,high
2468                           bind reserved TCP server sockets to ports within
2469   --with-tcpportrange=low,high
2470                           bind unreserved TCP server sockets to ports within
2471   --with-udpportrange=low,high
2472                           bind reserved UDP server sockets to ports within
2473   --with-buffered-dump    buffer the dumping sockets on the server for speed
2474 (deprecated)
2475   --with-assertions       compile assertions into code
2476   --with-debugging=DIR
2477             put debug logs in DIR (default same as --with-tmpdir)
2478
2479   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2480   --with-testing[=SUFFIX] use alternate service names with suffix (default
2481                           'test')
2482   --with-single-userid
2483             force amanda to run as a single userid (for testing)
2484
2485   --without-server        do not build server stuff (set --without-restore)
2486   --without-client        do not build client stuff
2487   --without-restore       do not build amrestore nor amidxtaped
2488   --without-amrecover     do not build amrecover
2489   --with-client-only      deprecated: use --without-server
2490   --with-server-only      deprecated: use --without-client
2491   --without-ndmp          do not build ndmp
2492   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2493   --with-xsltproc[[[=PATH]]]
2494                           Use the xsltproc binary in in PATH.
2495     --with-xsltproc-flags=FLAGS
2496                           Flags to pass to xsltproc (default --nonet)
2497   --with-index-server=HOST
2498                           default amanda index server (default: `uname -n`)
2499   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2500   --with-tape-server=HOST default tape server for restore (default: same as
2501                           index-server)
2502   --with-tape-device=DEVICE
2503                           default device on restore tape server
2504   --with-changer-device=DEV
2505                           (deprecated)
2506   --with-amandates        default location for 'amandates' (default:
2507                           $localstatedir/amanda/amandates)
2508   --with-perlextlibs=libs extra LIBS for Perl extensions
2509   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2510           --without-ipv6          disable IPv6
2511   --with-amlibdir[[[=PATH]]]
2512                           Where library are installed, default: $libdir/amanda
2513           --without-amlibdir      Library are installed in $libdir
2514   --with-amlibexecdir[[[=PATH]]]
2515                           Where amanda own programs are installed, default:
2516                           $libexecdir/amanda
2517           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2518   --with-amperldir[[[=PATH]]]
2519                           Where amanda's perl modules are installed; default:
2520                           installsitelib
2521           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2522   --with-amdatadir[[[=PATH]]]
2523                           Where amanda's templates and examples are installed;
2524                           default: $datadir/amanda
2525   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2526   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2527   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2528   --without-libintl-prefix     don't search for libintl in includedir and libdir
2529   --without-bsd-security  do not include BSD authentication
2530    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2531   --with-bsdtcp-security  include BSDTCP authentication
2532   --with-bsdudp-security  include BSDUDP authentication
2533   --with-rsh-security     include RSH authentication
2534   --with-ssh-security     include SSH authentication
2535    --with-ssh-options=[OPTIONS]
2536                           Use these ssh options for ssh security; the default
2537                           should work
2538   --with-krb5-security=DIR
2539                           Location of Kerberos V software [/usr/kerberos
2540                           /usr/cygnus /usr /opt/kerberos]
2541   --with-dump-honor-nodump
2542                           if dump supports -h, use it for level0s too
2543   --with-gnutar=PROG      use PROG as GNU 'tar'
2544   --with-star=PROG        use PROG as 'star'
2545   --with-suntar=PROG      use PROG as 'suntar'
2546   --with-smbclient=PROG   use PROG as 'smbclient'
2547   --with-samba-user       deprecated; place username in 'amandapass'
2548   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2549   --with-pic              try to use only PIC/non-PIC objects [default=use
2550                           both]
2551   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2552   --with-readline         require readline support (for amrecover)
2553   --without-readline      don't search for readline
2554   --with-libcurl=PREFIX   look for the curl library in PREFIX/lib and headers
2555                           in PREFIX/include
2556
2557 Some influential environment variables:
2558   CC          C compiler command
2559   CFLAGS      C compiler flags
2560   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2561               nonstandard directory <lib dir>
2562   LIBS        libraries to pass to the linker, e.g. -l<library>
2563   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2564               you have headers in a nonstandard directory <include dir>
2565   CPP         C preprocessor
2566   GNUPLOT     Location of the 'gnuplot' binary
2567   SWIG        Path to the 'swig' binary (developers only)
2568   PERL        Path to the 'perl' binary
2569   GNUTAR      Location of the GNU 'tar' binary
2570   STAR        Location of the 'star' binary
2571   SUNTAR      Location of the 'suntar' binary
2572   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2573               the first program found out of: `bison -y', `byacc', `yacc'.
2574   YFLAGS      The list of arguments that will be passed by default to $YACC.
2575               This script will default YFLAGS to the empty string to avoid a
2576               default value of `-d' given by some make applications.
2577   MTX         Path to the 'mtx' binary
2578   MOUNT       Path to the 'mount' binary
2579   UMOUNT      Path to the 'umount' binary
2580   GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config
2581   GLIB_LIBS   libraries to build with glib; disables use of pkg-config
2582   GLIB_GENMARSHAL
2583               genmarshal binary to use with glib; disables use of pkg-config
2584   GOBJECT_QUERY
2585               gobject_query binary to use with glib; disables use of
2586               pkg-config
2587   GLIB_MKENUMS
2588               mkenums binary to use with glib; disables use of pkg-config
2589   PKG_CONFIG  path to pkg-config utility
2590
2591 Use these variables to override the choices made by `configure' or to help
2592 it to find libraries and programs with nonstandard names/locations.
2593
2594 _ACEOF
2595 ac_status=$?
2596 fi
2597
2598 if test "$ac_init_help" = "recursive"; then
2599   # If there are subdirs, report their specific --help.
2600   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2601     test -d "$ac_dir" ||
2602       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2603       continue
2604     ac_builddir=.
2605
2606 case "$ac_dir" in
2607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2608 *)
2609   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2610   # A ".." for each directory in $ac_dir_suffix.
2611   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2612   case $ac_top_builddir_sub in
2613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2615   esac ;;
2616 esac
2617 ac_abs_top_builddir=$ac_pwd
2618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2619 # for backward compatibility:
2620 ac_top_builddir=$ac_top_build_prefix
2621
2622 case $srcdir in
2623   .)  # We are building in place.
2624     ac_srcdir=.
2625     ac_top_srcdir=$ac_top_builddir_sub
2626     ac_abs_top_srcdir=$ac_pwd ;;
2627   [\\/]* | ?:[\\/]* )  # Absolute name.
2628     ac_srcdir=$srcdir$ac_dir_suffix;
2629     ac_top_srcdir=$srcdir
2630     ac_abs_top_srcdir=$srcdir ;;
2631   *) # Relative name.
2632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2633     ac_top_srcdir=$ac_top_build_prefix$srcdir
2634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2635 esac
2636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2637
2638     cd "$ac_dir" || { ac_status=$?; continue; }
2639     # Check for guested configure.
2640     if test -f "$ac_srcdir/configure.gnu"; then
2641       echo &&
2642       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2643     elif test -f "$ac_srcdir/configure"; then
2644       echo &&
2645       $SHELL "$ac_srcdir/configure" --help=recursive
2646     else
2647       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2648     fi || ac_status=$?
2649     cd "$ac_pwd" || { ac_status=$?; break; }
2650   done
2651 fi
2652
2653 test -n "$ac_init_help" && exit $ac_status
2654 if $ac_init_version; then
2655   cat <<\_ACEOF
2656 configure
2657 generated by GNU Autoconf 2.63
2658
2659 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2660 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2661 This configure script is free software; the Free Software Foundation
2662 gives unlimited permission to copy, distribute and modify it.
2663 _ACEOF
2664   exit
2665 fi
2666 cat >config.log <<_ACEOF
2667 This file contains any messages produced by compilers while
2668 running configure, to aid debugging if configure makes a mistake.
2669
2670 It was created by $as_me, which was
2671 generated by GNU Autoconf 2.63.  Invocation command line was
2672
2673   $ $0 $@
2674
2675 _ACEOF
2676 exec 5>>config.log
2677 {
2678 cat <<_ASUNAME
2679 ## --------- ##
2680 ## Platform. ##
2681 ## --------- ##
2682
2683 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2684 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2685 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2686 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2687 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2688
2689 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2690 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2691
2692 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2693 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2694 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2695 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2696 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2697 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2698 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2699
2700 _ASUNAME
2701
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707   $as_echo "PATH: $as_dir"
2708 done
2709 IFS=$as_save_IFS
2710
2711 } >&5
2712
2713 cat >&5 <<_ACEOF
2714
2715
2716 ## ----------- ##
2717 ## Core tests. ##
2718 ## ----------- ##
2719
2720 _ACEOF
2721
2722
2723 # Keep a trace of the command line.
2724 # Strip out --no-create and --no-recursion so they do not pile up.
2725 # Strip out --silent because we don't want to record it for future runs.
2726 # Also quote any args containing shell meta-characters.
2727 # Make two passes to allow for proper duplicate-argument suppression.
2728 ac_configure_args=
2729 ac_configure_args0=
2730 ac_configure_args1=
2731 ac_must_keep_next=false
2732 for ac_pass in 1 2
2733 do
2734   for ac_arg
2735   do
2736     case $ac_arg in
2737     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2738     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2739     | -silent | --silent | --silen | --sile | --sil)
2740       continue ;;
2741     *\'*)
2742       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2743     esac
2744     case $ac_pass in
2745     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2746     2)
2747       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2748       if test $ac_must_keep_next = true; then
2749         ac_must_keep_next=false # Got value, back to normal.
2750       else
2751         case $ac_arg in
2752           *=* | --config-cache | -C | -disable-* | --disable-* \
2753           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2754           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2755           | -with-* | --with-* | -without-* | --without-* | --x)
2756             case "$ac_configure_args0 " in
2757               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2758             esac
2759             ;;
2760           -* ) ac_must_keep_next=true ;;
2761         esac
2762       fi
2763       ac_configure_args="$ac_configure_args '$ac_arg'"
2764       ;;
2765     esac
2766   done
2767 done
2768 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2769 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2770
2771 # When interrupted or exit'd, cleanup temporary files, and complete
2772 # config.log.  We remove comments because anyway the quotes in there
2773 # would cause problems or look ugly.
2774 # WARNING: Use '\'' to represent an apostrophe within the trap.
2775 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2776 trap 'exit_status=$?
2777   # Save into config.log some information that might help in debugging.
2778   {
2779     echo
2780
2781     cat <<\_ASBOX
2782 ## ---------------- ##
2783 ## Cache variables. ##
2784 ## ---------------- ##
2785 _ASBOX
2786     echo
2787     # The following way of writing the cache mishandles newlines in values,
2788 (
2789   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2790     eval ac_val=\$$ac_var
2791     case $ac_val in #(
2792     *${as_nl}*)
2793       case $ac_var in #(
2794       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2795 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2796       esac
2797       case $ac_var in #(
2798       _ | IFS | as_nl) ;; #(
2799       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2800       *) $as_unset $ac_var ;;
2801       esac ;;
2802     esac
2803   done
2804   (set) 2>&1 |
2805     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2806     *${as_nl}ac_space=\ *)
2807       sed -n \
2808         "s/'\''/'\''\\\\'\'''\''/g;
2809           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2810       ;; #(
2811     *)
2812       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2813       ;;
2814     esac |
2815     sort
2816 )
2817     echo
2818
2819     cat <<\_ASBOX
2820 ## ----------------- ##
2821 ## Output variables. ##
2822 ## ----------------- ##
2823 _ASBOX
2824     echo
2825     for ac_var in $ac_subst_vars
2826     do
2827       eval ac_val=\$$ac_var
2828       case $ac_val in
2829       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2830       esac
2831       $as_echo "$ac_var='\''$ac_val'\''"
2832     done | sort
2833     echo
2834
2835     if test -n "$ac_subst_files"; then
2836       cat <<\_ASBOX
2837 ## ------------------- ##
2838 ## File substitutions. ##
2839 ## ------------------- ##
2840 _ASBOX
2841       echo
2842       for ac_var in $ac_subst_files
2843       do
2844         eval ac_val=\$$ac_var
2845         case $ac_val in
2846         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2847         esac
2848         $as_echo "$ac_var='\''$ac_val'\''"
2849       done | sort
2850       echo
2851     fi
2852
2853     if test -s confdefs.h; then
2854       cat <<\_ASBOX
2855 ## ----------- ##
2856 ## confdefs.h. ##
2857 ## ----------- ##
2858 _ASBOX
2859       echo
2860       cat confdefs.h
2861       echo
2862     fi
2863     test "$ac_signal" != 0 &&
2864       $as_echo "$as_me: caught signal $ac_signal"
2865     $as_echo "$as_me: exit $exit_status"
2866   } >&5
2867   rm -f core *.core core.conftest.* &&
2868     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2869     exit $exit_status
2870 ' 0
2871 for ac_signal in 1 2 13 15; do
2872   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2873 done
2874 ac_signal=0
2875
2876 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2877 rm -f -r conftest* confdefs.h
2878
2879 # Predefined preprocessor variables.
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define PACKAGE_NAME "$PACKAGE_NAME"
2883 _ACEOF
2884
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2888 _ACEOF
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2893 _ACEOF
2894
2895
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_STRING "$PACKAGE_STRING"
2898 _ACEOF
2899
2900
2901 cat >>confdefs.h <<_ACEOF
2902 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2903 _ACEOF
2904
2905
2906 # Let the site file select an alternate cache file if it wants to.
2907 # Prefer an explicitly selected file to automatically selected ones.
2908 ac_site_file1=NONE
2909 ac_site_file2=NONE
2910 if test -n "$CONFIG_SITE"; then
2911   ac_site_file1=$CONFIG_SITE
2912 elif test "x$prefix" != xNONE; then
2913   ac_site_file1=$prefix/share/config.site
2914   ac_site_file2=$prefix/etc/config.site
2915 else
2916   ac_site_file1=$ac_default_prefix/share/config.site
2917   ac_site_file2=$ac_default_prefix/etc/config.site
2918 fi
2919 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2920 do
2921   test "x$ac_site_file" = xNONE && continue
2922   if test -r "$ac_site_file"; then
2923     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2924 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2925     sed 's/^/| /' "$ac_site_file" >&5
2926     . "$ac_site_file"
2927   fi
2928 done
2929
2930 if test -r "$cache_file"; then
2931   # Some versions of bash will fail to source /dev/null (special
2932   # files actually), so we avoid doing that.
2933   if test -f "$cache_file"; then
2934     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2935 $as_echo "$as_me: loading cache $cache_file" >&6;}
2936     case $cache_file in
2937       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2938       *)                      . "./$cache_file";;
2939     esac
2940   fi
2941 else
2942   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2943 $as_echo "$as_me: creating cache $cache_file" >&6;}
2944   >$cache_file
2945 fi
2946
2947 gl_header_list="$gl_header_list arpa/inet.h"
2948 gl_func_list="$gl_func_list btowc"
2949 gl_header_list="$gl_header_list errno.h"
2950 gl_header_list="$gl_header_list float.h"
2951 gl_header_list="$gl_header_list sys/param.h"
2952 gl_header_list="$gl_header_list sys/vfs.h"
2953 gl_header_list="$gl_header_list sys/fs_types.h"
2954 gl_func_list="$gl_func_list ftruncate"
2955 gl_header_list="$gl_header_list sys/socket.h"
2956 gl_header_list="$gl_header_list netdb.h"
2957 gl_header_list="$gl_header_list netinet/in.h"
2958 gl_getopt_required=GNU
2959 gl_header_list="$gl_header_list getopt.h"
2960 gl_header_list="$gl_header_list sys/time.h"
2961 gl_func_list="$gl_func_list gettimeofday"
2962 gl_header_list="$gl_header_list langinfo.h"
2963 gl_func_list="$gl_func_list lstat"
2964 gl_func_list="$gl_func_list mbsinit"
2965 gl_func_list="$gl_func_list mbrtowc"
2966 gl_header_list="$gl_header_list sys/mman.h"
2967 gl_func_list="$gl_func_list mprotect"
2968 gl_func_list="$gl_func_list memchr"
2969 gl_func_list="$gl_func_list nl_langinfo"
2970 gl_header_list="$gl_header_list locale.h"
2971 gl_func_list="$gl_func_list isblank"
2972 gl_func_list="$gl_func_list iswctype"
2973 gl_func_list="$gl_func_list wcscoll"
2974 gl_header_list="$gl_header_list stddef.h"
2975 gl_header_list="$gl_header_list stdint.h"
2976 gl_header_list="$gl_header_list wchar.h"
2977 gl_header_list="$gl_header_list stdio.h"
2978 gl_header_list="$gl_header_list stdlib.h"
2979 gl_header_list="$gl_header_list string.h"
2980 gl_header_list="$gl_header_list sys/stat.h"
2981 gl_header_list="$gl_header_list time.h"
2982 gl_header_list="$gl_header_list unistd.h"
2983 gl_func_list="$gl_func_list vasnprintf"
2984 gl_func_list="$gl_func_list wcrtomb"
2985 gl_func_list="$gl_func_list iswcntrl"
2986 gl_func_list="$gl_func_list iswblank"
2987 gl_header_list="$gl_header_list wctype.h"
2988 # Check that the precious variables saved in the cache have kept the same
2989 # value.
2990 ac_cache_corrupted=false
2991 for ac_var in $ac_precious_vars; do
2992   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2993   eval ac_new_set=\$ac_env_${ac_var}_set
2994   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2995   eval ac_new_val=\$ac_env_${ac_var}_value
2996   case $ac_old_set,$ac_new_set in
2997     set,)
2998       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2999 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3000       ac_cache_corrupted=: ;;
3001     ,set)
3002       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3004       ac_cache_corrupted=: ;;
3005     ,);;
3006     *)
3007       if test "x$ac_old_val" != "x$ac_new_val"; then
3008         # differences in whitespace do not lead to failure.
3009         ac_old_val_w=`echo x $ac_old_val`
3010         ac_new_val_w=`echo x $ac_new_val`
3011         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3012           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
3013 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3014           ac_cache_corrupted=:
3015         else
3016           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3017 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3018           eval $ac_var=\$ac_old_val
3019         fi
3020         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
3021 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3022         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
3023 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3024       fi;;
3025   esac
3026   # Pass precious variables to config.status.
3027   if test "$ac_new_set" = set; then
3028     case $ac_new_val in
3029     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3030     *) ac_arg=$ac_var=$ac_new_val ;;
3031     esac
3032     case " $ac_configure_args " in
3033       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3034       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
3035     esac
3036   fi
3037 done
3038 if $ac_cache_corrupted; then
3039   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3041   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
3042 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3043   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3044 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3045    { (exit 1); exit 1; }; }
3046 fi
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064 ac_ext=c
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3069
3070
3071
3072 ac_aux_dir=
3073 for ac_dir in config "$srcdir"/config; do
3074   if test -f "$ac_dir/install-sh"; then
3075     ac_aux_dir=$ac_dir
3076     ac_install_sh="$ac_aux_dir/install-sh -c"
3077     break
3078   elif test -f "$ac_dir/install.sh"; then
3079     ac_aux_dir=$ac_dir
3080     ac_install_sh="$ac_aux_dir/install.sh -c"
3081     break
3082   elif test -f "$ac_dir/shtool"; then
3083     ac_aux_dir=$ac_dir
3084     ac_install_sh="$ac_aux_dir/shtool install -c"
3085     break
3086   fi
3087 done
3088 if test -z "$ac_aux_dir"; then
3089   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
3090 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
3091    { (exit 1); exit 1; }; }
3092 fi
3093
3094 # These three variables are undocumented and unsupported,
3095 # and are intended to be withdrawn in a future Autoconf release.
3096 # They can cause serious problems if a builder's source tree is in a directory
3097 # whose full name contains unusual characters.
3098 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3099 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3100 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3101
3102
3103
3104 # Make sure we can run config.sub.
3105 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3106   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3107 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3108    { (exit 1); exit 1; }; }
3109
3110 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3111 $as_echo_n "checking build system type... " >&6; }
3112 if test "${ac_cv_build+set}" = set; then
3113   $as_echo_n "(cached) " >&6
3114 else
3115   ac_build_alias=$build_alias
3116 test "x$ac_build_alias" = x &&
3117   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3118 test "x$ac_build_alias" = x &&
3119   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3120 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3121    { (exit 1); exit 1; }; }
3122 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3123   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3124 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3125    { (exit 1); exit 1; }; }
3126
3127 fi
3128 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3129 $as_echo "$ac_cv_build" >&6; }
3130 case $ac_cv_build in
3131 *-*-*) ;;
3132 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3133 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3134    { (exit 1); exit 1; }; };;
3135 esac
3136 build=$ac_cv_build
3137 ac_save_IFS=$IFS; IFS='-'
3138 set x $ac_cv_build
3139 shift
3140 build_cpu=$1
3141 build_vendor=$2
3142 shift; shift
3143 # Remember, the first character of IFS is used to create $*,
3144 # except with old shells:
3145 build_os=$*
3146 IFS=$ac_save_IFS
3147 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3148
3149
3150 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3151 $as_echo_n "checking host system type... " >&6; }
3152 if test "${ac_cv_host+set}" = set; then
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test "x$host_alias" = x; then
3156   ac_cv_host=$ac_cv_build
3157 else
3158   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3159     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3161    { (exit 1); exit 1; }; }
3162 fi
3163
3164 fi
3165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3166 $as_echo "$ac_cv_host" >&6; }
3167 case $ac_cv_host in
3168 *-*-*) ;;
3169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3171    { (exit 1); exit 1; }; };;
3172 esac
3173 host=$ac_cv_host
3174 ac_save_IFS=$IFS; IFS='-'
3175 set x $ac_cv_host
3176 shift
3177 host_cpu=$1
3178 host_vendor=$2
3179 shift; shift
3180 # Remember, the first character of IFS is used to create $*,
3181 # except with old shells:
3182 host_os=$*
3183 IFS=$ac_save_IFS
3184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3185
3186
3187
3188 PACKAGE=amanda
3189
3190
3191
3192     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3193     # expand prefix or exec_prefix in LOCPATH
3194     LOCPATH=`(
3195         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3196         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3197         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3198     )`
3199     SYSLOCPATH="$SYSPATH:$LOCPATH"
3200     LOCSYSPATH="$LOCPATH:$SYSPATH"
3201
3202
3203
3204     # Extract the first word of "grep", so it can be a program name with args.
3205 set dummy grep; ac_word=$2
3206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_path_GREP+set}" = set; then
3209   $as_echo_n "(cached) " >&6
3210 else
3211   case $GREP in
3212   [\\/]* | ?:[\\/]*)
3213   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3214   ;;
3215   *)
3216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $LOCSYSPATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221   for ac_exec_ext in '' $ac_executable_extensions; do
3222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3224     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228 done
3229 IFS=$as_save_IFS
3230
3231   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3232   ;;
3233 esac
3234 fi
3235 GREP=$ac_cv_path_GREP
3236 if test -n "$GREP"; then
3237   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
3238 $as_echo "$GREP" >&6; }
3239 else
3240   { $as_echo "$as_me:$LINENO: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245
3246 cat >>confdefs.h <<_ACEOF
3247 #define GREP "$GREP"
3248 _ACEOF
3249
3250
3251
3252
3253
3254
3255
3256     # Extract the first word of "svn", so it can be a program name with args.
3257 set dummy svn; ac_word=$2
3258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_path_SVN+set}" = set; then
3261   $as_echo_n "(cached) " >&6
3262 else
3263   case $SVN in
3264   [\\/]* | ?:[\\/]*)
3265   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3266   ;;
3267   *)
3268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $LOCSYSPATH
3270 do
3271   IFS=$as_save_IFS
3272   test -z "$as_dir" && as_dir=.
3273   for ac_exec_ext in '' $ac_executable_extensions; do
3274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3276     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277     break 2
3278   fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283   ;;
3284 esac
3285 fi
3286 SVN=$ac_cv_path_SVN
3287 if test -n "$SVN"; then
3288   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
3289 $as_echo "$SVN" >&6; }
3290 else
3291   { $as_echo "$as_me:$LINENO: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296     { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
3297 $as_echo_n "checking Subversion revision information... " >&6; }
3298     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3299         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3300         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3301         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3302         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3303         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3304         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3305         ( echo '#define BUILT_REV "'$SVN_REV'"'
3306           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3307         ) > common-src/svn-info.h
3308
3309         { $as_echo "$as_me:$LINENO: result: updated" >&5
3310 $as_echo "updated" >&6; }
3311     else
3312         # Makefiles will be upset if the file doesn't exist, so double-check
3313         if test -f common-src/svn-info.h; then
3314             : # all good
3315             { $as_echo "$as_me:$LINENO: result: not changed" >&5
3316 $as_echo "not changed" >&6; }
3317         else
3318             echo '/* no information available */' > common-src/svn-info.h
3319             { $as_echo "$as_me:$LINENO: result: not available" >&5
3320 $as_echo "not available" >&6; }
3321         fi
3322     fi
3323
3324     rm -f conftemp.svn
3325
3326
3327
3328
3329
3330     # Extract the first word of "git", so it can be a program name with args.
3331 set dummy git; ac_word=$2
3332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if test "${ac_cv_path_GIT+set}" = set; then
3335   $as_echo_n "(cached) " >&6
3336 else
3337   case $GIT in
3338   [\\/]* | ?:[\\/]*)
3339   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3340   ;;
3341   *)
3342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $LOCSYSPATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_exec_ext in '' $ac_executable_extensions; do
3348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3350     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357   ;;
3358 esac
3359 fi
3360 GIT=$ac_cv_path_GIT
3361 if test -n "$GIT"; then
3362   { $as_echo "$as_me:$LINENO: result: $GIT" >&5
3363 $as_echo "$GIT" >&6; }
3364 else
3365   { $as_echo "$as_me:$LINENO: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369
3370     { $as_echo "$as_me:$LINENO: checking git revision information" >&5
3371 $as_echo_n "checking git revision information... " >&6; }
3372     if test -d $srcdir/.git -a -n "$GIT"; then
3373         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3374         if test -n "$GIT_SHA1"; then
3375             { $as_echo "$as_me:$LINENO: result: $GIT_SHA1" >&5
3376 $as_echo "$GIT_SHA1" >&6; }
3377         else
3378             { $as_echo "$as_me:$LINENO: result: 'git rev-parse HEAD' failed" >&5
3379 $as_echo "'git rev-parse HEAD' failed" >&6; }
3380         fi
3381     else
3382         { $as_echo "$as_me:$LINENO: result: not available" >&5
3383 $as_echo "not available" >&6; }
3384     fi
3385
3386     rm -f conftemp.git
3387
3388
3389     if test -f FULL_VERSION; then
3390         VERSION=`cat FULL_VERSION`
3391     else if test -f $srcdir/FULL_VERSION; then
3392         VERSION=`cat $srcdir/FULL_VERSION`
3393     else
3394         VERSION=`cat $srcdir/VERSION`
3395     fi
3396     fi
3397     { $as_echo "$as_me:$LINENO: \"version: $VERSION\"" >&5
3398 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3399
3400 am__api_version='1.11'
3401
3402 # Find a good install program.  We prefer a C program (faster),
3403 # so one script is as good as another.  But avoid the broken or
3404 # incompatible versions:
3405 # SysV /etc/install, /usr/sbin/install
3406 # SunOS /usr/etc/install
3407 # IRIX /sbin/install
3408 # AIX /bin/install
3409 # AmigaOS /C/install, which installs bootblocks on floppy discs
3410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3413 # OS/2's system install, which has a completely different semantic
3414 # ./install, which can be erroneously created by make from ./install.sh.
3415 # Reject install programs that cannot install multiple files.
3416 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3417 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3418 if test -z "$INSTALL"; then
3419 if test "${ac_cv_path_install+set}" = set; then
3420   $as_echo_n "(cached) " >&6
3421 else
3422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425   IFS=$as_save_IFS
3426   test -z "$as_dir" && as_dir=.
3427   # Account for people who put trailing slashes in PATH elements.
3428 case $as_dir/ in
3429   ./ | .// | /cC/* | \
3430   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3431   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3432   /usr/ucb/* ) ;;
3433   *)
3434     # OSF1 and SCO ODT 3.0 have their own names for install.
3435     # Don't use installbsd from OSF since it installs stuff as root
3436     # by default.
3437     for ac_prog in ginstall scoinst install; do
3438       for ac_exec_ext in '' $ac_executable_extensions; do
3439         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3440           if test $ac_prog = install &&
3441             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3442             # AIX install.  It has an incompatible calling convention.
3443             :
3444           elif test $ac_prog = install &&
3445             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3446             # program-specific install script used by HP pwplus--don't use.
3447             :
3448           else
3449             rm -rf conftest.one conftest.two conftest.dir
3450             echo one > conftest.one
3451             echo two > conftest.two
3452             mkdir conftest.dir
3453             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3454               test -s conftest.one && test -s conftest.two &&
3455               test -s conftest.dir/conftest.one &&
3456               test -s conftest.dir/conftest.two
3457             then
3458               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3459               break 3
3460             fi
3461           fi
3462         fi
3463       done
3464     done
3465     ;;
3466 esac
3467
3468 done
3469 IFS=$as_save_IFS
3470
3471 rm -rf conftest.one conftest.two conftest.dir
3472
3473 fi
3474   if test "${ac_cv_path_install+set}" = set; then
3475     INSTALL=$ac_cv_path_install
3476   else
3477     # As a last resort, use the slow shell script.  Don't cache a
3478     # value for INSTALL within a source directory, because that will
3479     # break other packages using the cache if that directory is
3480     # removed, or if the value is a relative name.
3481     INSTALL=$ac_install_sh
3482   fi
3483 fi
3484 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3485 $as_echo "$INSTALL" >&6; }
3486
3487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3488 # It thinks the first close brace ends the variable substitution.
3489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3490
3491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3492
3493 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3494
3495 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3496 $as_echo_n "checking whether build environment is sane... " >&6; }
3497 # Just in case
3498 sleep 1
3499 echo timestamp > conftest.file
3500 # Reject unsafe characters in $srcdir or the absolute working directory
3501 # name.  Accept space and tab only in the latter.
3502 am_lf='
3503 '
3504 case `pwd` in
3505   *[\\\"\#\$\&\'\`$am_lf]*)
3506     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3507 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3508    { (exit 1); exit 1; }; };;
3509 esac
3510 case $srcdir in
3511   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3512     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3513 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3514    { (exit 1); exit 1; }; };;
3515 esac
3516
3517 # Do `set' in a subshell so we don't clobber the current shell's
3518 # arguments.  Must try -L first in case configure is actually a
3519 # symlink; some systems play weird games with the mod time of symlinks
3520 # (eg FreeBSD returns the mod time of the symlink's containing
3521 # directory).
3522 if (
3523    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3524    if test "$*" = "X"; then
3525       # -L didn't work.
3526       set X `ls -t "$srcdir/configure" conftest.file`
3527    fi
3528    rm -f conftest.file
3529    if test "$*" != "X $srcdir/configure conftest.file" \
3530       && test "$*" != "X conftest.file $srcdir/configure"; then
3531
3532       # If neither matched, then we have a broken ls.  This can happen
3533       # if, for instance, CONFIG_SHELL is bash and it inherits a
3534       # broken ls alias from the environment.  This has actually
3535       # happened.  Such a system could not be considered "sane".
3536       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3537 alias in your environment" >&5
3538 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3539 alias in your environment" >&2;}
3540    { (exit 1); exit 1; }; }
3541    fi
3542
3543    test "$2" = conftest.file
3544    )
3545 then
3546    # Ok.
3547    :
3548 else
3549    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3550 Check your system clock" >&5
3551 $as_echo "$as_me: error: newly created file is older than distributed files!
3552 Check your system clock" >&2;}
3553    { (exit 1); exit 1; }; }
3554 fi
3555 { $as_echo "$as_me:$LINENO: result: yes" >&5
3556 $as_echo "yes" >&6; }
3557 test "$program_prefix" != NONE &&
3558   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3559 # Use a double $ so make ignores it.
3560 test "$program_suffix" != NONE &&
3561   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3562 # Double any \ or $.
3563 # By default was `s,x,x', remove it if useless.
3564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3566
3567 # expand $ac_aux_dir to an absolute path
3568 am_aux_dir=`cd $ac_aux_dir && pwd`
3569
3570 if test x"${MISSING+set}" != xset; then
3571   case $am_aux_dir in
3572   *\ * | *\     *)
3573     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3574   *)
3575     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3576   esac
3577 fi
3578 # Use eval to expand $SHELL
3579 if eval "$MISSING --run true"; then
3580   am_missing_run="$MISSING --run "
3581 else
3582   am_missing_run=
3583   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3585 fi
3586
3587 if test x"${install_sh}" != xset; then
3588   case $am_aux_dir in
3589   *\ * | *\     *)
3590     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3591   *)
3592     install_sh="\${SHELL} $am_aux_dir/install-sh"
3593   esac
3594 fi
3595
3596 # Installed binaries are usually stripped using `strip' when the user
3597 # run `make install-strip'.  However `strip' might not be the right
3598 # tool to use in cross-compilation environments, therefore Automake
3599 # will honor the `STRIP' environment variable to overrule this program.
3600 if test "$cross_compiling" != no; then
3601   if test -n "$ac_tool_prefix"; then
3602   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3603 set dummy ${ac_tool_prefix}strip; ac_word=$2
3604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_STRIP+set}" = set; then
3607   $as_echo_n "(cached) " >&6
3608 else
3609   if test -n "$STRIP"; then
3610   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617   for ac_exec_ext in '' $ac_executable_extensions; do
3618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3620     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624 done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 STRIP=$ac_cv_prog_STRIP
3630 if test -n "$STRIP"; then
3631   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3632 $as_echo "$STRIP" >&6; }
3633 else
3634   { $as_echo "$as_me:$LINENO: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639 fi
3640 if test -z "$ac_cv_prog_STRIP"; then
3641   ac_ct_STRIP=$STRIP
3642   # Extract the first word of "strip", so it can be a program name with args.
3643 set dummy strip; ac_word=$2
3644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3647   $as_echo_n "(cached) " >&6
3648 else
3649   if test -n "$ac_ct_STRIP"; then
3650   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657   for ac_exec_ext in '' $ac_executable_extensions; do
3658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659     ac_cv_prog_ac_ct_STRIP="strip"
3660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667 fi
3668 fi
3669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3670 if test -n "$ac_ct_STRIP"; then
3671   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3672 $as_echo "$ac_ct_STRIP" >&6; }
3673 else
3674   { $as_echo "$as_me:$LINENO: result: no" >&5
3675 $as_echo "no" >&6; }
3676 fi
3677
3678   if test "x$ac_ct_STRIP" = x; then
3679     STRIP=":"
3680   else
3681     case $cross_compiling:$ac_tool_warned in
3682 yes:)
3683 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned=yes ;;
3686 esac
3687     STRIP=$ac_ct_STRIP
3688   fi
3689 else
3690   STRIP="$ac_cv_prog_STRIP"
3691 fi
3692
3693 fi
3694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3695
3696 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3698 if test -z "$MKDIR_P"; then
3699   if test "${ac_cv_path_mkdir+set}" = set; then
3700   $as_echo_n "(cached) " >&6
3701 else
3702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3704 do
3705   IFS=$as_save_IFS
3706   test -z "$as_dir" && as_dir=.
3707   for ac_prog in mkdir gmkdir; do
3708          for ac_exec_ext in '' $ac_executable_extensions; do
3709            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3710            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3711              'mkdir (GNU coreutils) '* | \
3712              'mkdir (coreutils) '* | \
3713              'mkdir (fileutils) '4.1*)
3714                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3715                break 3;;
3716            esac
3717          done
3718        done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi
3723
3724   if test "${ac_cv_path_mkdir+set}" = set; then
3725     MKDIR_P="$ac_cv_path_mkdir -p"
3726   else
3727     # As a last resort, use the slow shell script.  Don't cache a
3728     # value for MKDIR_P within a source directory, because that will
3729     # break other packages using the cache if that directory is
3730     # removed, or if the value is a relative name.
3731     test -d ./--version && rmdir ./--version
3732     MKDIR_P="$ac_install_sh -d"
3733   fi
3734 fi
3735 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3736 $as_echo "$MKDIR_P" >&6; }
3737
3738
3739 mkdir_p="$MKDIR_P"
3740 case $mkdir_p in
3741   [\\/$]* | ?:[\\/]*) ;;
3742   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3743 esac
3744
3745 for ac_prog in gawk mawk nawk awk
3746 do
3747   # Extract the first word of "$ac_prog", so it can be a program name with args.
3748 set dummy $ac_prog; ac_word=$2
3749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_AWK+set}" = set; then
3752   $as_echo_n "(cached) " >&6
3753 else
3754   if test -n "$AWK"; then
3755   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3756 else
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH
3759 do
3760   IFS=$as_save_IFS
3761   test -z "$as_dir" && as_dir=.
3762   for ac_exec_ext in '' $ac_executable_extensions; do
3763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764     ac_cv_prog_AWK="$ac_prog"
3765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3766     break 2
3767   fi
3768 done
3769 done
3770 IFS=$as_save_IFS
3771
3772 fi
3773 fi
3774 AWK=$ac_cv_prog_AWK
3775 if test -n "$AWK"; then
3776   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3777 $as_echo "$AWK" >&6; }
3778 else
3779   { $as_echo "$as_me:$LINENO: result: no" >&5
3780 $as_echo "no" >&6; }
3781 fi
3782
3783
3784   test -n "$AWK" && break
3785 done
3786
3787 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3788 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3789 set x ${MAKE-make}
3790 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3791 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3792   $as_echo_n "(cached) " >&6
3793 else
3794   cat >conftest.make <<\_ACEOF
3795 SHELL = /bin/sh
3796 all:
3797         @echo '@@@%%%=$(MAKE)=@@@%%%'
3798 _ACEOF
3799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3800 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3801   *@@@%%%=?*=@@@%%%*)
3802     eval ac_cv_prog_make_${ac_make}_set=yes;;
3803   *)
3804     eval ac_cv_prog_make_${ac_make}_set=no;;
3805 esac
3806 rm -f conftest.make
3807 fi
3808 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3809   { $as_echo "$as_me:$LINENO: result: yes" >&5
3810 $as_echo "yes" >&6; }
3811   SET_MAKE=
3812 else
3813   { $as_echo "$as_me:$LINENO: result: no" >&5
3814 $as_echo "no" >&6; }
3815   SET_MAKE="MAKE=${MAKE-make}"
3816 fi
3817
3818 rm -rf .tst 2>/dev/null
3819 mkdir .tst 2>/dev/null
3820 if test -d .tst; then
3821   am__leading_dot=.
3822 else
3823   am__leading_dot=_
3824 fi
3825 rmdir .tst 2>/dev/null
3826
3827 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3828   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3829   # is not polluted with repeated "-I."
3830   am__isrc=' -I$(srcdir)'
3831   # test to see if srcdir already configured
3832   if test -f $srcdir/config.status; then
3833     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3834 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3835    { (exit 1); exit 1; }; }
3836   fi
3837 fi
3838
3839 # test whether we have cygpath
3840 if test -z "$CYGPATH_W"; then
3841   if (cygpath --version) >/dev/null 2>/dev/null; then
3842     CYGPATH_W='cygpath -w'
3843   else
3844     CYGPATH_W=echo
3845   fi
3846 fi
3847
3848
3849 # Define the identity of the package.
3850  PACKAGE=amanda
3851  VERSION=$VERSION
3852
3853
3854 cat >>confdefs.h <<_ACEOF
3855 #define PACKAGE "$PACKAGE"
3856 _ACEOF
3857
3858
3859 cat >>confdefs.h <<_ACEOF
3860 #define VERSION "$VERSION"
3861 _ACEOF
3862
3863 # Some tools Automake needs.
3864
3865 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3866
3867
3868 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3869
3870
3871 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3872
3873
3874 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3875
3876
3877 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3878
3879 # We need awk for the "check" target.  The system "awk" is bad on
3880 # some platforms.
3881 # Always define AMTAR for backward compatibility.
3882
3883 AMTAR=${AMTAR-"${am_missing_run}tar"}
3884
3885 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3886
3887
3888
3889
3890
3891 ac_config_headers="$ac_config_headers config/config.h"
3892
3893
3894
3895
3896 #
3897 # Take care of some early Amanda-specific setup
3898 #
3899
3900     # initialize warnings file
3901     rm -f config.warnings
3902
3903
3904     if test -f "$srcdir/SNAPSHOT"; then
3905       cat < "$srcdir/SNAPSHOT"
3906
3907       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3908
3909       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3910       SNAPSHOT_STAMP=SNAPSHOT
3911     else
3912       SNAPSHOT_STAMP=
3913     fi
3914
3915
3916
3917
3918     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3919     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3920     if test -z "$VERSION_MINOR"; then
3921         VERSION_MINOR=0
3922         VERSION_PATCH=0
3923         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
3924     else
3925         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3926         if test -z "$VERSION_PATCH"; then
3927             VERSION_PATCH=0
3928             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
3929         else
3930             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3931         fi
3932     fi
3933
3934
3935
3936
3937
3938
3939
3940
3941 cat >>confdefs.h <<_ACEOF
3942 #define VERSION_MAJOR $VERSION_MAJOR
3943 _ACEOF
3944
3945
3946 cat >>confdefs.h <<_ACEOF
3947 #define VERSION_MINOR $VERSION_MINOR
3948 _ACEOF
3949
3950
3951 cat >>confdefs.h <<_ACEOF
3952 #define VERSION_PATCH $VERSION_PATCH
3953 _ACEOF
3954
3955
3956 cat >>confdefs.h <<_ACEOF
3957 #define VERSION_COMMENT $VERSION_COMMENT
3958 _ACEOF
3959
3960
3961
3962     if test -f config.local; then
3963         echo "running local script ./config.local"
3964         . ./config.local
3965     fi
3966
3967
3968 #
3969 # Set up compiler location, basic flags, and include locations
3970 # and library locations before we start checking the system
3971 # configuration in more detail...
3972 #
3973 ac_ext=c
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3978 if test -n "$ac_tool_prefix"; then
3979   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_CC+set}" = set; then
3984   $as_echo_n "(cached) " >&6
3985 else
3986   if test -n "$CC"; then
3987   ac_cv_prog_CC="$CC" # Let the user override the test.
3988 else
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_exec_ext in '' $ac_executable_extensions; do
3995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3997     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998     break 2
3999   fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4009 $as_echo "$CC" >&6; }
4010 else
4011   { $as_echo "$as_me:$LINENO: result: no" >&5
4012 $as_echo "no" >&6; }
4013 fi
4014
4015
4016 fi
4017 if test -z "$ac_cv_prog_CC"; then
4018   ac_ct_CC=$CC
4019   # Extract the first word of "gcc", so it can be a program name with args.
4020 set dummy gcc; ac_word=$2
4021 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4024   $as_echo_n "(cached) " >&6
4025 else
4026   if test -n "$ac_ct_CC"; then
4027   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034   for ac_exec_ext in '' $ac_executable_extensions; do
4035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036     ac_cv_prog_ac_ct_CC="gcc"
4037     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041 done
4042 IFS=$as_save_IFS
4043
4044 fi
4045 fi
4046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4047 if test -n "$ac_ct_CC"; then
4048   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4049 $as_echo "$ac_ct_CC" >&6; }
4050 else
4051   { $as_echo "$as_me:$LINENO: result: no" >&5
4052 $as_echo "no" >&6; }
4053 fi
4054
4055   if test "x$ac_ct_CC" = x; then
4056     CC=""
4057   else
4058     case $cross_compiling:$ac_tool_warned in
4059 yes:)
4060 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4061 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4062 ac_tool_warned=yes ;;
4063 esac
4064     CC=$ac_ct_CC
4065   fi
4066 else
4067   CC="$ac_cv_prog_CC"
4068 fi
4069
4070 if test -z "$CC"; then
4071           if test -n "$ac_tool_prefix"; then
4072     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}cc; ac_word=$2
4074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 $as_echo_n "checking for $ac_word... " >&6; }
4076 if test "${ac_cv_prog_CC+set}" = set; then
4077   $as_echo_n "(cached) " >&6
4078 else
4079   if test -n "$CC"; then
4080   ac_cv_prog_CC="$CC" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089     ac_cv_prog_CC="${ac_tool_prefix}cc"
4090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095 IFS=$as_save_IFS
4096
4097 fi
4098 fi
4099 CC=$ac_cv_prog_CC
4100 if test -n "$CC"; then
4101   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4102 $as_echo "$CC" >&6; }
4103 else
4104   { $as_echo "$as_me:$LINENO: result: no" >&5
4105 $as_echo "no" >&6; }
4106 fi
4107
4108
4109   fi
4110 fi
4111 if test -z "$CC"; then
4112   # Extract the first word of "cc", so it can be a program name with args.
4113 set dummy cc; ac_word=$2
4114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if test "${ac_cv_prog_CC+set}" = set; then
4117   $as_echo_n "(cached) " >&6
4118 else
4119   if test -n "$CC"; then
4120   ac_cv_prog_CC="$CC" # Let the user override the test.
4121 else
4122   ac_prog_rejected=no
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126   IFS=$as_save_IFS
4127   test -z "$as_dir" && as_dir=.
4128   for ac_exec_ext in '' $ac_executable_extensions; do
4129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4130     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4131        ac_prog_rejected=yes
4132        continue
4133      fi
4134     ac_cv_prog_CC="cc"
4135     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 if test $ac_prog_rejected = yes; then
4143   # We found a bogon in the path, so make sure we never use it.
4144   set dummy $ac_cv_prog_CC
4145   shift
4146   if test $# != 0; then
4147     # We chose a different compiler from the bogus one.
4148     # However, it has the same basename, so the bogon will be chosen
4149     # first if we set CC to just the basename; use the full file name.
4150     shift
4151     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4152   fi
4153 fi
4154 fi
4155 fi
4156 CC=$ac_cv_prog_CC
4157 if test -n "$CC"; then
4158   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4159 $as_echo "$CC" >&6; }
4160 else
4161   { $as_echo "$as_me:$LINENO: result: no" >&5
4162 $as_echo "no" >&6; }
4163 fi
4164
4165
4166 fi
4167 if test -z "$CC"; then
4168   if test -n "$ac_tool_prefix"; then
4169   for ac_prog in cl.exe
4170   do
4171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4173 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if test "${ac_cv_prog_CC+set}" = set; then
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$CC"; then
4179   ac_cv_prog_CC="$CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   for ac_exec_ext in '' $ac_executable_extensions; do
4187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4189     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 CC=$ac_cv_prog_CC
4199 if test -n "$CC"; then
4200   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4201 $as_echo "$CC" >&6; }
4202 else
4203   { $as_echo "$as_me:$LINENO: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208     test -n "$CC" && break
4209   done
4210 fi
4211 if test -z "$CC"; then
4212   ac_ct_CC=$CC
4213   for ac_prog in cl.exe
4214 do
4215   # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy $ac_prog; ac_word=$2
4217 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4220   $as_echo_n "(cached) " >&6
4221 else
4222   if test -n "$ac_ct_CC"; then
4223   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230   for ac_exec_ext in '' $ac_executable_extensions; do
4231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232     ac_cv_prog_ac_ct_CC="$ac_prog"
4233     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi
4241 fi
4242 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4243 if test -n "$ac_ct_CC"; then
4244   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4245 $as_echo "$ac_ct_CC" >&6; }
4246 else
4247   { $as_echo "$as_me:$LINENO: result: no" >&5
4248 $as_echo "no" >&6; }
4249 fi
4250
4251
4252   test -n "$ac_ct_CC" && break
4253 done
4254
4255   if test "x$ac_ct_CC" = x; then
4256     CC=""
4257   else
4258     case $cross_compiling:$ac_tool_warned in
4259 yes:)
4260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262 ac_tool_warned=yes ;;
4263 esac
4264     CC=$ac_ct_CC
4265   fi
4266 fi
4267
4268 fi
4269
4270
4271 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4274 See \`config.log' for more details." >&5
4275 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4276 See \`config.log' for more details." >&2;}
4277    { (exit 1); exit 1; }; }; }
4278
4279 # Provide some information about the compiler.
4280 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4281 set X $ac_compile
4282 ac_compiler=$2
4283 { (ac_try="$ac_compiler --version >&5"
4284 case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4289 $as_echo "$ac_try_echo") >&5
4290   (eval "$ac_compiler --version >&5") 2>&5
4291   ac_status=$?
4292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }
4294 { (ac_try="$ac_compiler -v >&5"
4295 case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4300 $as_echo "$ac_try_echo") >&5
4301   (eval "$ac_compiler -v >&5") 2>&5
4302   ac_status=$?
4303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }
4305 { (ac_try="$ac_compiler -V >&5"
4306 case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4311 $as_echo "$ac_try_echo") >&5
4312   (eval "$ac_compiler -V >&5") 2>&5
4313   ac_status=$?
4314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315   (exit $ac_status); }
4316
4317 cat >conftest.$ac_ext <<_ACEOF
4318 /* confdefs.h.  */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h.  */
4323
4324 int
4325 main ()
4326 {
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 ac_clean_files_save=$ac_clean_files
4333 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4334 # Try to create an executable without -o first, disregard a.out.
4335 # It will help us diagnose broken compilers, and finding out an intuition
4336 # of exeext.
4337 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4338 $as_echo_n "checking for C compiler default output file name... " >&6; }
4339 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4340
4341 # The possible output files:
4342 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4343
4344 ac_rmfiles=
4345 for ac_file in $ac_files
4346 do
4347   case $ac_file in
4348     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4349     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4350   esac
4351 done
4352 rm -f $ac_rmfiles
4353
4354 if { (ac_try="$ac_link_default"
4355 case "(($ac_try" in
4356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357   *) ac_try_echo=$ac_try;;
4358 esac
4359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4360 $as_echo "$ac_try_echo") >&5
4361   (eval "$ac_link_default") 2>&5
4362   ac_status=$?
4363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; then
4365   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4366 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4367 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4368 # so that the user can short-circuit this test for compilers unknown to
4369 # Autoconf.
4370 for ac_file in $ac_files ''
4371 do
4372   test -f "$ac_file" || continue
4373   case $ac_file in
4374     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4375         ;;
4376     [ab].out )
4377         # We found the default executable, but exeext='' is most
4378         # certainly right.
4379         break;;
4380     *.* )
4381         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4382         then :; else
4383            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4384         fi
4385         # We set ac_cv_exeext here because the later test for it is not
4386         # safe: cross compilers may not add the suffix if given an `-o'
4387         # argument, so we may need to know it at that point already.
4388         # Even if this section looks crufty: it has the advantage of
4389         # actually working.
4390         break;;
4391     * )
4392         break;;
4393   esac
4394 done
4395 test "$ac_cv_exeext" = no && ac_cv_exeext=
4396
4397 else
4398   ac_file=''
4399 fi
4400
4401 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4402 $as_echo "$ac_file" >&6; }
4403 if test -z "$ac_file"; then
4404   $as_echo "$as_me: failed program was:" >&5
4405 sed 's/^/| /' conftest.$ac_ext >&5
4406
4407 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4409 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4410 See \`config.log' for more details." >&5
4411 $as_echo "$as_me: error: C compiler cannot create executables
4412 See \`config.log' for more details." >&2;}
4413    { (exit 77); exit 77; }; }; }
4414 fi
4415
4416 ac_exeext=$ac_cv_exeext
4417
4418 # Check that the compiler produces executables we can run.  If not, either
4419 # the compiler is broken, or we cross compile.
4420 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4421 $as_echo_n "checking whether the C compiler works... " >&6; }
4422 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4423 # If not cross compiling, check that we can run a simple program.
4424 if test "$cross_compiling" != yes; then
4425   if { ac_try='./$ac_file'
4426   { (case "(($ac_try" in
4427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428   *) ac_try_echo=$ac_try;;
4429 esac
4430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4431 $as_echo "$ac_try_echo") >&5
4432   (eval "$ac_try") 2>&5
4433   ac_status=$?
4434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; }; then
4436     cross_compiling=no
4437   else
4438     if test "$cross_compiling" = maybe; then
4439         cross_compiling=yes
4440     else
4441         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4444 If you meant to cross compile, use \`--host'.
4445 See \`config.log' for more details." >&5
4446 $as_echo "$as_me: error: cannot run C compiled programs.
4447 If you meant to cross compile, use \`--host'.
4448 See \`config.log' for more details." >&2;}
4449    { (exit 1); exit 1; }; }; }
4450     fi
4451   fi
4452 fi
4453 { $as_echo "$as_me:$LINENO: result: yes" >&5
4454 $as_echo "yes" >&6; }
4455
4456 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4457 ac_clean_files=$ac_clean_files_save
4458 # Check that the compiler produces executables we can run.  If not, either
4459 # the compiler is broken, or we cross compile.
4460 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4461 $as_echo_n "checking whether we are cross compiling... " >&6; }
4462 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4463 $as_echo "$cross_compiling" >&6; }
4464
4465 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4466 $as_echo_n "checking for suffix of executables... " >&6; }
4467 if { (ac_try="$ac_link"
4468 case "(($ac_try" in
4469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470   *) ac_try_echo=$ac_try;;
4471 esac
4472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4473 $as_echo "$ac_try_echo") >&5
4474   (eval "$ac_link") 2>&5
4475   ac_status=$?
4476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; then
4478   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4479 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4480 # work properly (i.e., refer to `conftest.exe'), while it won't with
4481 # `rm'.
4482 for ac_file in conftest.exe conftest conftest.*; do
4483   test -f "$ac_file" || continue
4484   case $ac_file in
4485     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4486     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4487           break;;
4488     * ) break;;
4489   esac
4490 done
4491 else
4492   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4494 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4495 See \`config.log' for more details." >&5
4496 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4497 See \`config.log' for more details." >&2;}
4498    { (exit 1); exit 1; }; }; }
4499 fi
4500
4501 rm -f conftest$ac_cv_exeext
4502 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4503 $as_echo "$ac_cv_exeext" >&6; }
4504
4505 rm -f conftest.$ac_ext
4506 EXEEXT=$ac_cv_exeext
4507 ac_exeext=$EXEEXT
4508 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4509 $as_echo_n "checking for suffix of object files... " >&6; }
4510 if test "${ac_cv_objext+set}" = set; then
4511   $as_echo_n "(cached) " >&6
4512 else
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519
4520 int
4521 main ()
4522 {
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.o conftest.obj
4529 if { (ac_try="$ac_compile"
4530 case "(($ac_try" in
4531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532   *) ac_try_echo=$ac_try;;
4533 esac
4534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4535 $as_echo "$ac_try_echo") >&5
4536   (eval "$ac_compile") 2>&5
4537   ac_status=$?
4538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539   (exit $ac_status); }; then
4540   for ac_file in conftest.o conftest.obj conftest.*; do
4541   test -f "$ac_file" || continue;
4542   case $ac_file in
4543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4545        break;;
4546   esac
4547 done
4548 else
4549   $as_echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4555 See \`config.log' for more details." >&5
4556 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4557 See \`config.log' for more details." >&2;}
4558    { (exit 1); exit 1; }; }; }
4559 fi
4560
4561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4562 fi
4563 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4564 $as_echo "$ac_cv_objext" >&6; }
4565 OBJEXT=$ac_cv_objext
4566 ac_objext=$OBJEXT
4567 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4568 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4569 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4570   $as_echo_n "(cached) " >&6
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578
4579 int
4580 main ()
4581 {
4582 #ifndef __GNUC__
4583        choke me
4584 #endif
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4597 $as_echo "$ac_try_echo") >&5
4598   (eval "$ac_compile") 2>conftest.er1
4599   ac_status=$?
4600   grep -v '^ *+' conftest.er1 >conftest.err
4601   rm -f conftest.er1
4602   cat conftest.err >&5
4603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604   (exit $ac_status); } && {
4605          test -z "$ac_c_werror_flag" ||
4606          test ! -s conftest.err
4607        } && test -s conftest.$ac_objext; then
4608   ac_compiler_gnu=yes
4609 else
4610   $as_echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4612
4613         ac_compiler_gnu=no
4614 fi
4615
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4618
4619 fi
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4621 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4622 if test $ac_compiler_gnu = yes; then
4623   GCC=yes
4624 else
4625   GCC=
4626 fi
4627 ac_test_CFLAGS=${CFLAGS+set}
4628 ac_save_CFLAGS=$CFLAGS
4629 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4630 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4631 if test "${ac_cv_prog_cc_g+set}" = set; then
4632   $as_echo_n "(cached) " >&6
4633 else
4634   ac_save_c_werror_flag=$ac_c_werror_flag
4635    ac_c_werror_flag=yes
4636    ac_cv_prog_cc_g=no
4637    CFLAGS="-g"
4638    cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644
4645 int
4646 main ()
4647 {
4648
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (ac_try="$ac_compile"
4655 case "(($ac_try" in
4656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657   *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4660 $as_echo "$ac_try_echo") >&5
4661   (eval "$ac_compile") 2>conftest.er1
4662   ac_status=$?
4663   grep -v '^ *+' conftest.er1 >conftest.err
4664   rm -f conftest.er1
4665   cat conftest.err >&5
4666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); } && {
4668          test -z "$ac_c_werror_flag" ||
4669          test ! -s conftest.err
4670        } && test -s conftest.$ac_objext; then
4671   ac_cv_prog_cc_g=yes
4672 else
4673   $as_echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676         CFLAGS=""
4677       cat >conftest.$ac_ext <<_ACEOF
4678 /* confdefs.h.  */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h.  */
4683
4684 int
4685 main ()
4686 {
4687
4688   ;
4689   return 0;
4690 }
4691 _ACEOF
4692 rm -f conftest.$ac_objext
4693 if { (ac_try="$ac_compile"
4694 case "(($ac_try" in
4695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696   *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4699 $as_echo "$ac_try_echo") >&5
4700   (eval "$ac_compile") 2>conftest.er1
4701   ac_status=$?
4702   grep -v '^ *+' conftest.er1 >conftest.err
4703   rm -f conftest.er1
4704   cat conftest.err >&5
4705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } && {
4707          test -z "$ac_c_werror_flag" ||
4708          test ! -s conftest.err
4709        } && test -s conftest.$ac_objext; then
4710   :
4711 else
4712   $as_echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715         ac_c_werror_flag=$ac_save_c_werror_flag
4716          CFLAGS="-g"
4717          cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727
4728   ;
4729   return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4734 case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4739 $as_echo "$ac_try_echo") >&5
4740   (eval "$ac_compile") 2>conftest.er1
4741   ac_status=$?
4742   grep -v '^ *+' conftest.er1 >conftest.err
4743   rm -f conftest.er1
4744   cat conftest.err >&5
4745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); } && {
4747          test -z "$ac_c_werror_flag" ||
4748          test ! -s conftest.err
4749        } && test -s conftest.$ac_objext; then
4750   ac_cv_prog_cc_g=yes
4751 else
4752   $as_echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755
4756 fi
4757
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 fi
4760
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765    ac_c_werror_flag=$ac_save_c_werror_flag
4766 fi
4767 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4768 $as_echo "$ac_cv_prog_cc_g" >&6; }
4769 if test "$ac_test_CFLAGS" = set; then
4770   CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772   if test "$GCC" = yes; then
4773     CFLAGS="-g -O2"
4774   else
4775     CFLAGS="-g"
4776   fi
4777 else
4778   if test "$GCC" = yes; then
4779     CFLAGS="-O2"
4780   else
4781     CFLAGS=
4782   fi
4783 fi
4784 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4785 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4786 if test "${ac_cv_prog_cc_c89+set}" = set; then
4787   $as_echo_n "(cached) " >&6
4788 else
4789   ac_cv_prog_cc_c89=no
4790 ac_save_CC=$CC
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797 #include <stdarg.h>
4798 #include <stdio.h>
4799 #include <sys/types.h>
4800 #include <sys/stat.h>
4801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4802 struct buf { int x; };
4803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4804 static char *e (p, i)
4805      char **p;
4806      int i;
4807 {
4808   return p[i];
4809 }
4810 static char *f (char * (*g) (char **, int), char **p, ...)
4811 {
4812   char *s;
4813   va_list v;
4814   va_start (v,p);
4815   s = g (p, va_arg (v,int));
4816   va_end (v);
4817   return s;
4818 }
4819
4820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4821    function prototypes and stuff, but not '\xHH' hex character constants.
4822    These don't provoke an error unfortunately, instead are silently treated
4823    as 'x'.  The following induces an error, until -std is added to get
4824    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4825    array size at least.  It's necessary to write '\x00'==0 to get something
4826    that's true only with -std.  */
4827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4828
4829 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4830    inside strings and character constants.  */
4831 #define FOO(x) 'x'
4832 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4833
4834 int test (int i, double x);
4835 struct s1 {int (*f) (int a);};
4836 struct s2 {int (*f) (double a);};
4837 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4838 int argc;
4839 char **argv;
4840 int
4841 main ()
4842 {
4843 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4849         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4850 do
4851   CC="$ac_save_CC $ac_arg"
4852   rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4854 case "(($ac_try" in
4855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856   *) ac_try_echo=$ac_try;;
4857 esac
4858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859 $as_echo "$ac_try_echo") >&5
4860   (eval "$ac_compile") 2>conftest.er1
4861   ac_status=$?
4862   grep -v '^ *+' conftest.er1 >conftest.err
4863   rm -f conftest.er1
4864   cat conftest.err >&5
4865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } && {
4867          test -z "$ac_c_werror_flag" ||
4868          test ! -s conftest.err
4869        } && test -s conftest.$ac_objext; then
4870   ac_cv_prog_cc_c89=$ac_arg
4871 else
4872   $as_echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875
4876 fi
4877
4878 rm -f core conftest.err conftest.$ac_objext
4879   test "x$ac_cv_prog_cc_c89" != "xno" && break
4880 done
4881 rm -f conftest.$ac_ext
4882 CC=$ac_save_CC
4883
4884 fi
4885 # AC_CACHE_VAL
4886 case "x$ac_cv_prog_cc_c89" in
4887   x)
4888     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4889 $as_echo "none needed" >&6; } ;;
4890   xno)
4891     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4892 $as_echo "unsupported" >&6; } ;;
4893   *)
4894     CC="$CC $ac_cv_prog_cc_c89"
4895     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4896 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4897 esac
4898
4899
4900 ac_ext=c
4901 ac_cpp='$CPP $CPPFLAGS'
4902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4905 DEPDIR="${am__leading_dot}deps"
4906
4907 ac_config_commands="$ac_config_commands depfiles"
4908
4909
4910 am_make=${MAKE-make}
4911 cat > confinc << 'END'
4912 am__doit:
4913         @echo this is the am__doit target
4914 .PHONY: am__doit
4915 END
4916 # If we don't find an include directive, just comment out the code.
4917 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4918 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4919 am__include="#"
4920 am__quote=
4921 _am_result=none
4922 # First try GNU make style include.
4923 echo "include confinc" > confmf
4924 # Ignore all kinds of additional output from `make'.
4925 case `$am_make -s -f confmf 2> /dev/null` in #(
4926 *the\ am__doit\ target*)
4927   am__include=include
4928   am__quote=
4929   _am_result=GNU
4930   ;;
4931 esac
4932 # Now try BSD make style include.
4933 if test "$am__include" = "#"; then
4934    echo '.include "confinc"' > confmf
4935    case `$am_make -s -f confmf 2> /dev/null` in #(
4936    *the\ am__doit\ target*)
4937      am__include=.include
4938      am__quote="\""
4939      _am_result=BSD
4940      ;;
4941    esac
4942 fi
4943
4944
4945 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4946 $as_echo "$_am_result" >&6; }
4947 rm -f confinc confmf
4948
4949 # Check whether --enable-dependency-tracking was given.
4950 if test "${enable_dependency_tracking+set}" = set; then
4951   enableval=$enable_dependency_tracking;
4952 fi
4953
4954 if test "x$enable_dependency_tracking" != xno; then
4955   am_depcomp="$ac_aux_dir/depcomp"
4956   AMDEPBACKSLASH='\'
4957 fi
4958  if test "x$enable_dependency_tracking" != xno; then
4959   AMDEP_TRUE=
4960   AMDEP_FALSE='#'
4961 else
4962   AMDEP_TRUE='#'
4963   AMDEP_FALSE=
4964 fi
4965
4966
4967
4968 depcc="$CC"   am_compiler_list=
4969
4970 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4971 $as_echo_n "checking dependency style of $depcc... " >&6; }
4972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4973   $as_echo_n "(cached) " >&6
4974 else
4975   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4976   # We make a subdir and do the tests there.  Otherwise we can end up
4977   # making bogus files that we don't know about and never remove.  For
4978   # instance it was reported that on HP-UX the gcc test will end up
4979   # making a dummy file named `D' -- because `-MD' means `put the output
4980   # in D'.
4981   mkdir conftest.dir
4982   # Copy depcomp to subdir because otherwise we won't find it if we're
4983   # using a relative directory.
4984   cp "$am_depcomp" conftest.dir
4985   cd conftest.dir
4986   # We will build objects and dependencies in a subdirectory because
4987   # it helps to detect inapplicable dependency modes.  For instance
4988   # both Tru64's cc and ICC support -MD to output dependencies as a
4989   # side effect of compilation, but ICC will put the dependencies in
4990   # the current directory while Tru64 will put them in the object
4991   # directory.
4992   mkdir sub
4993
4994   am_cv_CC_dependencies_compiler_type=none
4995   if test "$am_compiler_list" = ""; then
4996      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4997   fi
4998   am__universal=false
4999   case " $depcc " in #(
5000      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5001      esac
5002
5003   for depmode in $am_compiler_list; do
5004     # Setup a source with many dependencies, because some compilers
5005     # like to wrap large dependency lists on column 80 (with \), and
5006     # we should not choose a depcomp mode which is confused by this.
5007     #
5008     # We need to recreate these files for each test, as the compiler may
5009     # overwrite some of them when testing with obscure command lines.
5010     # This happens at least with the AIX C compiler.
5011     : > sub/conftest.c
5012     for i in 1 2 3 4 5 6; do
5013       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5014       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5015       # Solaris 8's {/usr,}/bin/sh.
5016       touch sub/conftst$i.h
5017     done
5018     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5019
5020     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5021     # mode.  It turns out that the SunPro C++ compiler does not properly
5022     # handle `-M -o', and we need to detect this.  Also, some Intel
5023     # versions had trouble with output in subdirs
5024     am__obj=sub/conftest.${OBJEXT-o}
5025     am__minus_obj="-o $am__obj"
5026     case $depmode in
5027     gcc)
5028       # This depmode causes a compiler race in universal mode.
5029       test "$am__universal" = false || continue
5030       ;;
5031     nosideeffect)
5032       # after this tag, mechanisms are not by side-effect, so they'll
5033       # only be used when explicitly requested
5034       if test "x$enable_dependency_tracking" = xyes; then
5035         continue
5036       else
5037         break
5038       fi
5039       ;;
5040     msvisualcpp | msvcmsys)
5041       # This compiler won't grok `-c -o', but also, the minuso test has
5042       # not run yet.  These depmodes are late enough in the game, and
5043       # so weak that their functioning should not be impacted.
5044       am__obj=conftest.${OBJEXT-o}
5045       am__minus_obj=
5046       ;;
5047     none) break ;;
5048     esac
5049     if depmode=$depmode \
5050        source=sub/conftest.c object=$am__obj \
5051        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5052        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5053          >/dev/null 2>conftest.err &&
5054        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5055        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5056        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5057        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5058       # icc doesn't choke on unknown options, it will just issue warnings
5059       # or remarks (even with -Werror).  So we grep stderr for any message
5060       # that says an option was ignored or not supported.
5061       # When given -MP, icc 7.0 and 7.1 complain thusly:
5062       #   icc: Command line warning: ignoring option '-M'; no argument required
5063       # The diagnosis changed in icc 8.0:
5064       #   icc: Command line remark: option '-MP' not supported
5065       if (grep 'ignoring option' conftest.err ||
5066           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5067         am_cv_CC_dependencies_compiler_type=$depmode
5068         break
5069       fi
5070     fi
5071   done
5072
5073   cd ..
5074   rm -rf conftest.dir
5075 else
5076   am_cv_CC_dependencies_compiler_type=none
5077 fi
5078
5079 fi
5080 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5081 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5082 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5083
5084  if
5085   test "x$enable_dependency_tracking" != xno \
5086   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5087   am__fastdepCC_TRUE=
5088   am__fastdepCC_FALSE='#'
5089 else
5090   am__fastdepCC_TRUE='#'
5091   am__fastdepCC_FALSE=
5092 fi
5093
5094
5095 if test -n "$ac_tool_prefix"; then
5096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_RANLIB+set}" = set; then
5101   $as_echo_n "(cached) " >&6
5102 else
5103   if test -n "$RANLIB"; then
5104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109   IFS=$as_save_IFS
5110   test -z "$as_dir" && as_dir=.
5111   for ac_exec_ext in '' $ac_executable_extensions; do
5112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5114     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115     break 2
5116   fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 fi
5122 fi
5123 RANLIB=$ac_cv_prog_RANLIB
5124 if test -n "$RANLIB"; then
5125   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5126 $as_echo "$RANLIB" >&6; }
5127 else
5128   { $as_echo "$as_me:$LINENO: result: no" >&5
5129 $as_echo "no" >&6; }
5130 fi
5131
5132
5133 fi
5134 if test -z "$ac_cv_prog_RANLIB"; then
5135   ac_ct_RANLIB=$RANLIB
5136   # Extract the first word of "ranlib", so it can be a program name with args.
5137 set dummy ranlib; ac_word=$2
5138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5141   $as_echo_n "(cached) " >&6
5142 else
5143   if test -n "$ac_ct_RANLIB"; then
5144   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151   for ac_exec_ext in '' $ac_executable_extensions; do
5152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153     ac_cv_prog_ac_ct_RANLIB="ranlib"
5154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5164 if test -n "$ac_ct_RANLIB"; then
5165   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5166 $as_echo "$ac_ct_RANLIB" >&6; }
5167 else
5168   { $as_echo "$as_me:$LINENO: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172   if test "x$ac_ct_RANLIB" = x; then
5173     RANLIB=":"
5174   else
5175     case $cross_compiling:$ac_tool_warned in
5176 yes:)
5177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5179 ac_tool_warned=yes ;;
5180 esac
5181     RANLIB=$ac_ct_RANLIB
5182   fi
5183 else
5184   RANLIB="$ac_cv_prog_RANLIB"
5185 fi
5186
5187 if test "x$CC" != xcc; then
5188   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5189 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5190 else
5191   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5192 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5193 fi
5194 set dummy $CC; ac_cc=`$as_echo "$2" |
5195                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5196 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5197   $as_echo_n "(cached) " >&6
5198 else
5199   cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205
5206 int
5207 main ()
5208 {
5209
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 # Make sure it works both with $CC and with simple cc.
5215 # We do the test twice because some compilers refuse to overwrite an
5216 # existing .o file with -o, though they will create one.
5217 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5218 rm -f conftest2.*
5219 if { (case "(($ac_try" in
5220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221   *) ac_try_echo=$ac_try;;
5222 esac
5223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5224 $as_echo "$ac_try_echo") >&5
5225   (eval "$ac_try") 2>&5
5226   ac_status=$?
5227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); } &&
5229    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231   *) ac_try_echo=$ac_try;;
5232 esac
5233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5234 $as_echo "$ac_try_echo") >&5
5235   (eval "$ac_try") 2>&5
5236   ac_status=$?
5237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); };
5239 then
5240   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5241   if test "x$CC" != xcc; then
5242     # Test first that cc exists at all.
5243     if { ac_try='cc -c conftest.$ac_ext >&5'
5244   { (case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250   (eval "$ac_try") 2>&5
5251   ac_status=$?
5252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; }; then
5254       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5255       rm -f conftest2.*
5256       if { (case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262   (eval "$ac_try") 2>&5
5263   ac_status=$?
5264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } &&
5266          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268   *) ac_try_echo=$ac_try;;
5269 esac
5270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5271 $as_echo "$ac_try_echo") >&5
5272   (eval "$ac_try") 2>&5
5273   ac_status=$?
5274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); };
5276       then
5277         # cc works too.
5278         :
5279       else
5280         # cc exists but doesn't like -o.
5281         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5282       fi
5283     fi
5284   fi
5285 else
5286   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5287 fi
5288 rm -f core conftest*
5289
5290 fi
5291 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5292   { $as_echo "$as_me:$LINENO: result: yes" >&5
5293 $as_echo "yes" >&6; }
5294 else
5295   { $as_echo "$as_me:$LINENO: result: no" >&5
5296 $as_echo "no" >&6; }
5297
5298 cat >>confdefs.h <<\_ACEOF
5299 #define NO_MINUS_C_MINUS_O 1
5300 _ACEOF
5301
5302 fi
5303
5304 # FIXME: we rely on the cache variable name because
5305 # there is no other way.
5306 set dummy $CC
5307 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5308 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5309 if test "$am_t" != yes; then
5310    # Losing compiler, so override with the script.
5311    # FIXME: It is wrong to rewrite CC.
5312    # But if we don't then we get into trouble of one sort or another.
5313    # A longer-term fix would be to have automake use am__CC in this case,
5314    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5315    CC="$am_aux_dir/compile $CC"
5316 fi
5317
5318
5319
5320 ac_ext=c
5321 ac_cpp='$CPP $CPPFLAGS'
5322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5325 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5326 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5327 # On Suns, sometimes $CPP names a directory.
5328 if test -n "$CPP" && test -d "$CPP"; then
5329   CPP=
5330 fi
5331 if test -z "$CPP"; then
5332   if test "${ac_cv_prog_CPP+set}" = set; then
5333   $as_echo_n "(cached) " >&6
5334 else
5335       # Double quotes because CPP needs to be expanded
5336     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5337     do
5338       ac_preproc_ok=false
5339 for ac_c_preproc_warn_flag in '' yes
5340 do
5341   # Use a header file that comes with gcc, so configuring glibc
5342   # with a fresh cross-compiler works.
5343   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344   # <limits.h> exists even on freestanding compilers.
5345   # On the NeXT, cc -E runs the code through the compiler's parser,
5346   # not just through cpp. "Syntax error" is here to catch this case.
5347   cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353 #ifdef __STDC__
5354 # include <limits.h>
5355 #else
5356 # include <assert.h>
5357 #endif
5358                      Syntax error
5359 _ACEOF
5360 if { (ac_try="$ac_cpp conftest.$ac_ext"
5361 case "(($ac_try" in
5362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363   *) ac_try_echo=$ac_try;;
5364 esac
5365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5366 $as_echo "$ac_try_echo") >&5
5367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5368   ac_status=$?
5369   grep -v '^ *+' conftest.er1 >conftest.err
5370   rm -f conftest.er1
5371   cat conftest.err >&5
5372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); } >/dev/null && {
5374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5375          test ! -s conftest.err
5376        }; then
5377   :
5378 else
5379   $as_echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382   # Broken: fails on valid input.
5383 continue
5384 fi
5385
5386 rm -f conftest.err conftest.$ac_ext
5387
5388   # OK, works on sane cases.  Now check whether nonexistent headers
5389   # can be detected and how.
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 #include <ac_nonexistent.h>
5397 _ACEOF
5398 if { (ac_try="$ac_cpp conftest.$ac_ext"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5404 $as_echo "$ac_try_echo") >&5
5405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5406   ac_status=$?
5407   grep -v '^ *+' conftest.er1 >conftest.err
5408   rm -f conftest.er1
5409   cat conftest.err >&5
5410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); } >/dev/null && {
5412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5413          test ! -s conftest.err
5414        }; then
5415   # Broken: success on invalid input.
5416 continue
5417 else
5418   $as_echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421   # Passes both tests.
5422 ac_preproc_ok=:
5423 break
5424 fi
5425
5426 rm -f conftest.err conftest.$ac_ext
5427
5428 done
5429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430 rm -f conftest.err conftest.$ac_ext
5431 if $ac_preproc_ok; then
5432   break
5433 fi
5434
5435     done
5436     ac_cv_prog_CPP=$CPP
5437
5438 fi
5439   CPP=$ac_cv_prog_CPP
5440 else
5441   ac_cv_prog_CPP=$CPP
5442 fi
5443 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5444 $as_echo "$CPP" >&6; }
5445 ac_preproc_ok=false
5446 for ac_c_preproc_warn_flag in '' yes
5447 do
5448   # Use a header file that comes with gcc, so configuring glibc
5449   # with a fresh cross-compiler works.
5450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451   # <limits.h> exists even on freestanding compilers.
5452   # On the NeXT, cc -E runs the code through the compiler's parser,
5453   # not just through cpp. "Syntax error" is here to catch this case.
5454   cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460 #ifdef __STDC__
5461 # include <limits.h>
5462 #else
5463 # include <assert.h>
5464 #endif
5465                      Syntax error
5466 _ACEOF
5467 if { (ac_try="$ac_cpp conftest.$ac_ext"
5468 case "(($ac_try" in
5469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470   *) ac_try_echo=$ac_try;;
5471 esac
5472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5473 $as_echo "$ac_try_echo") >&5
5474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475   ac_status=$?
5476   grep -v '^ *+' conftest.er1 >conftest.err
5477   rm -f conftest.er1
5478   cat conftest.err >&5
5479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); } >/dev/null && {
5481          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5482          test ! -s conftest.err
5483        }; then
5484   :
5485 else
5486   $as_echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489   # Broken: fails on valid input.
5490 continue
5491 fi
5492
5493 rm -f conftest.err conftest.$ac_ext
5494
5495   # OK, works on sane cases.  Now check whether nonexistent headers
5496   # can be detected and how.
5497   cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h.  */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h.  */
5503 #include <ac_nonexistent.h>
5504 _ACEOF
5505 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 case "(($ac_try" in
5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508   *) ac_try_echo=$ac_try;;
5509 esac
5510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5511 $as_echo "$ac_try_echo") >&5
5512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } >/dev/null && {
5519          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5520          test ! -s conftest.err
5521        }; then
5522   # Broken: success on invalid input.
5523 continue
5524 else
5525   $as_echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.$ac_ext >&5
5527
5528   # Passes both tests.
5529 ac_preproc_ok=:
5530 break
5531 fi
5532
5533 rm -f conftest.err conftest.$ac_ext
5534
5535 done
5536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5537 rm -f conftest.err conftest.$ac_ext
5538 if $ac_preproc_ok; then
5539   :
5540 else
5541   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5543 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5544 See \`config.log' for more details." >&5
5545 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5546 See \`config.log' for more details." >&2;}
5547    { (exit 1); exit 1; }; }; }
5548 fi
5549
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556
5557 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5558 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5559 if test "${ac_cv_path_GREP+set}" = set; then
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if test -z "$GREP"; then
5563   ac_path_GREP_found=false
5564   # Loop through the user's path and test for each of PROGNAME-LIST
5565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570   for ac_prog in grep ggrep; do
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5573       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5574 # Check for GNU ac_path_GREP and select it if it is found.
5575   # Check for GNU $ac_path_GREP
5576 case `"$ac_path_GREP" --version 2>&1` in
5577 *GNU*)
5578   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5579 *)
5580   ac_count=0
5581   $as_echo_n 0123456789 >"conftest.in"
5582   while :
5583   do
5584     cat "conftest.in" "conftest.in" >"conftest.tmp"
5585     mv "conftest.tmp" "conftest.in"
5586     cp "conftest.in" "conftest.nl"
5587     $as_echo 'GREP' >> "conftest.nl"
5588     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5589     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5590     ac_count=`expr $ac_count + 1`
5591     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5592       # Best one so far, save it but keep looking for a better one
5593       ac_cv_path_GREP="$ac_path_GREP"
5594       ac_path_GREP_max=$ac_count
5595     fi
5596     # 10*(2^10) chars as input seems more than enough
5597     test $ac_count -gt 10 && break
5598   done
5599   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5600 esac
5601
5602       $ac_path_GREP_found && break 3
5603     done
5604   done
5605 done
5606 IFS=$as_save_IFS
5607   if test -z "$ac_cv_path_GREP"; then
5608     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5609 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5610    { (exit 1); exit 1; }; }
5611   fi
5612 else
5613   ac_cv_path_GREP=$GREP
5614 fi
5615
5616 fi
5617 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 $as_echo "$ac_cv_path_GREP" >&6; }
5619  GREP="$ac_cv_path_GREP"
5620
5621
5622 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5623 $as_echo_n "checking for egrep... " >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5628    then ac_cv_path_EGREP="$GREP -E"
5629    else
5630      if test -z "$EGREP"; then
5631   ac_path_EGREP_found=false
5632   # Loop through the user's path and test for each of PROGNAME-LIST
5633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5635 do
5636   IFS=$as_save_IFS
5637   test -z "$as_dir" && as_dir=.
5638   for ac_prog in egrep; do
5639     for ac_exec_ext in '' $ac_executable_extensions; do
5640       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5641       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5642 # Check for GNU ac_path_EGREP and select it if it is found.
5643   # Check for GNU $ac_path_EGREP
5644 case `"$ac_path_EGREP" --version 2>&1` in
5645 *GNU*)
5646   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5647 *)
5648   ac_count=0
5649   $as_echo_n 0123456789 >"conftest.in"
5650   while :
5651   do
5652     cat "conftest.in" "conftest.in" >"conftest.tmp"
5653     mv "conftest.tmp" "conftest.in"
5654     cp "conftest.in" "conftest.nl"
5655     $as_echo 'EGREP' >> "conftest.nl"
5656     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5658     ac_count=`expr $ac_count + 1`
5659     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5660       # Best one so far, save it but keep looking for a better one
5661       ac_cv_path_EGREP="$ac_path_EGREP"
5662       ac_path_EGREP_max=$ac_count
5663     fi
5664     # 10*(2^10) chars as input seems more than enough
5665     test $ac_count -gt 10 && break
5666   done
5667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5668 esac
5669
5670       $ac_path_EGREP_found && break 3
5671     done
5672   done
5673 done
5674 IFS=$as_save_IFS
5675   if test -z "$ac_cv_path_EGREP"; then
5676     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5677 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5678    { (exit 1); exit 1; }; }
5679   fi
5680 else
5681   ac_cv_path_EGREP=$EGREP
5682 fi
5683
5684    fi
5685 fi
5686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5687 $as_echo "$ac_cv_path_EGREP" >&6; }
5688  EGREP="$ac_cv_path_EGREP"
5689
5690
5691 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5692 $as_echo_n "checking for ANSI C header files... " >&6; }
5693 if test "${ac_cv_header_stdc+set}" = set; then
5694   $as_echo_n "(cached) " >&6
5695 else
5696   cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 #include <stdlib.h>
5703 #include <stdarg.h>
5704 #include <string.h>
5705 #include <float.h>
5706
5707 int
5708 main ()
5709 {
5710
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5717 case "(($ac_try" in
5718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719   *) ac_try_echo=$ac_try;;
5720 esac
5721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5722 $as_echo "$ac_try_echo") >&5
5723   (eval "$ac_compile") 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } && {
5730          test -z "$ac_c_werror_flag" ||
5731          test ! -s conftest.err
5732        } && test -s conftest.$ac_objext; then
5733   ac_cv_header_stdc=yes
5734 else
5735   $as_echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738         ac_cv_header_stdc=no
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742
5743 if test $ac_cv_header_stdc = yes; then
5744   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5745   cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h.  */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h.  */
5751 #include <string.h>
5752
5753 _ACEOF
5754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5755   $EGREP "memchr" >/dev/null 2>&1; then
5756   :
5757 else
5758   ac_cv_header_stdc=no
5759 fi
5760 rm -f conftest*
5761
5762 fi
5763
5764 if test $ac_cv_header_stdc = yes; then
5765   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5766   cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772 #include <stdlib.h>
5773
5774 _ACEOF
5775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776   $EGREP "free" >/dev/null 2>&1; then
5777   :
5778 else
5779   ac_cv_header_stdc=no
5780 fi
5781 rm -f conftest*
5782
5783 fi
5784
5785 if test $ac_cv_header_stdc = yes; then
5786   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5787   if test "$cross_compiling" = yes; then
5788   :
5789 else
5790   cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h.  */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h.  */
5796 #include <ctype.h>
5797 #include <stdlib.h>
5798 #if ((' ' & 0x0FF) == 0x020)
5799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5801 #else
5802 # define ISLOWER(c) \
5803                    (('a' <= (c) && (c) <= 'i') \
5804                      || ('j' <= (c) && (c) <= 'r') \
5805                      || ('s' <= (c) && (c) <= 'z'))
5806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5807 #endif
5808
5809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5810 int
5811 main ()
5812 {
5813   int i;
5814   for (i = 0; i < 256; i++)
5815     if (XOR (islower (i), ISLOWER (i))
5816         || toupper (i) != TOUPPER (i))
5817       return 2;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest$ac_exeext
5822 if { (ac_try="$ac_link"
5823 case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829   (eval "$ac_link") 2>&5
5830   ac_status=$?
5831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5833   { (case "(($ac_try" in
5834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835   *) ac_try_echo=$ac_try;;
5836 esac
5837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838 $as_echo "$ac_try_echo") >&5
5839   (eval "$ac_try") 2>&5
5840   ac_status=$?
5841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; }; then
5843   :
5844 else
5845   $as_echo "$as_me: program exited with status $ac_status" >&5
5846 $as_echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ( exit $ac_status )
5850 ac_cv_header_stdc=no
5851 fi
5852 rm -rf conftest.dSYM
5853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5854 fi
5855
5856
5857 fi
5858 fi
5859 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5860 $as_echo "$ac_cv_header_stdc" >&6; }
5861 if test $ac_cv_header_stdc = yes; then
5862
5863 cat >>confdefs.h <<\_ACEOF
5864 #define STDC_HEADERS 1
5865 _ACEOF
5866
5867 fi
5868
5869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5880                   inttypes.h stdint.h unistd.h
5881 do
5882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5884 $as_echo_n "checking for $ac_header... " >&6; }
5885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5886   $as_echo_n "(cached) " >&6
5887 else
5888   cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h.  */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h.  */
5894 $ac_includes_default
5895
5896 #include <$ac_header>
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902   *) ac_try_echo=$ac_try;;
5903 esac
5904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5905 $as_echo "$ac_try_echo") >&5
5906   (eval "$ac_compile") 2>conftest.er1
5907   ac_status=$?
5908   grep -v '^ *+' conftest.er1 >conftest.err
5909   rm -f conftest.er1
5910   cat conftest.err >&5
5911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); } && {
5913          test -z "$ac_c_werror_flag" ||
5914          test ! -s conftest.err
5915        } && test -s conftest.$ac_objext; then
5916   eval "$as_ac_Header=yes"
5917 else
5918   $as_echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921         eval "$as_ac_Header=no"
5922 fi
5923
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925 fi
5926 ac_res=`eval 'as_val=${'$as_ac_Header'}
5927                  $as_echo "$as_val"'`
5928                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5929 $as_echo "$ac_res" >&6; }
5930 as_val=`eval 'as_val=${'$as_ac_Header'}
5931                  $as_echo "$as_val"'`
5932    if test "x$as_val" = x""yes; then
5933   cat >>confdefs.h <<_ACEOF
5934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935 _ACEOF
5936
5937 fi
5938
5939 done
5940
5941
5942
5943
5944
5945   if test "${ac_cv_header_minix_config_h+set}" = set; then
5946   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5947 $as_echo_n "checking for minix/config.h... " >&6; }
5948 if test "${ac_cv_header_minix_config_h+set}" = set; then
5949   $as_echo_n "(cached) " >&6
5950 fi
5951 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5952 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5953 else
5954   # Is the header compilable?
5955 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5956 $as_echo_n "checking minix/config.h usability... " >&6; }
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 $ac_includes_default
5964 #include <minix/config.h>
5965 _ACEOF
5966 rm -f conftest.$ac_objext
5967 if { (ac_try="$ac_compile"
5968 case "(($ac_try" in
5969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970   *) ac_try_echo=$ac_try;;
5971 esac
5972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5973 $as_echo "$ac_try_echo") >&5
5974   (eval "$ac_compile") 2>conftest.er1
5975   ac_status=$?
5976   grep -v '^ *+' conftest.er1 >conftest.err
5977   rm -f conftest.er1
5978   cat conftest.err >&5
5979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } && {
5981          test -z "$ac_c_werror_flag" ||
5982          test ! -s conftest.err
5983        } && test -s conftest.$ac_objext; then
5984   ac_header_compiler=yes
5985 else
5986   $as_echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989         ac_header_compiler=no
5990 fi
5991
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5994 $as_echo "$ac_header_compiler" >&6; }
5995
5996 # Is the header present?
5997 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5998 $as_echo_n "checking minix/config.h presence... " >&6; }
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 #include <minix/config.h>
6006 _ACEOF
6007 if { (ac_try="$ac_cpp conftest.$ac_ext"
6008 case "(($ac_try" in
6009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010   *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6015   ac_status=$?
6016   grep -v '^ *+' conftest.er1 >conftest.err
6017   rm -f conftest.er1
6018   cat conftest.err >&5
6019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); } >/dev/null && {
6021          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6022          test ! -s conftest.err
6023        }; then
6024   ac_header_preproc=yes
6025 else
6026   $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029   ac_header_preproc=no
6030 fi
6031
6032 rm -f conftest.err conftest.$ac_ext
6033 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6034 $as_echo "$ac_header_preproc" >&6; }
6035
6036 # So?  What about this header?
6037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6038   yes:no: )
6039     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6040 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6041     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6042 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6043     ac_header_preproc=yes
6044     ;;
6045   no:yes:* )
6046     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6047 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6048     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6049 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6050     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6051 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6052     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6053 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6054     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6055 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6056     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6057 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6058
6059     ;;
6060 esac
6061 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6062 $as_echo_n "checking for minix/config.h... " >&6; }
6063 if test "${ac_cv_header_minix_config_h+set}" = set; then
6064   $as_echo_n "(cached) " >&6
6065 else
6066   ac_cv_header_minix_config_h=$ac_header_preproc
6067 fi
6068 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6069 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6070
6071 fi
6072 if test "x$ac_cv_header_minix_config_h" = x""yes; then
6073   MINIX=yes
6074 else
6075   MINIX=
6076 fi
6077
6078
6079   if test "$MINIX" = yes; then
6080
6081 cat >>confdefs.h <<\_ACEOF
6082 #define _POSIX_SOURCE 1
6083 _ACEOF
6084
6085
6086 cat >>confdefs.h <<\_ACEOF
6087 #define _POSIX_1_SOURCE 2
6088 _ACEOF
6089
6090
6091 cat >>confdefs.h <<\_ACEOF
6092 #define _MINIX 1
6093 _ACEOF
6094
6095   fi
6096
6097         case "$host_os" in
6098     hpux*)
6099
6100 cat >>confdefs.h <<\_ACEOF
6101 #define _XOPEN_SOURCE 500
6102 _ACEOF
6103
6104       ;;
6105   esac
6106
6107
6108
6109   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6110 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6111 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6112   $as_echo_n "(cached) " >&6
6113 else
6114   cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120
6121 #         define __EXTENSIONS__ 1
6122           $ac_includes_default
6123 int
6124 main ()
6125 {
6126
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6133 case "(($ac_try" in
6134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135   *) ac_try_echo=$ac_try;;
6136 esac
6137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6138 $as_echo "$ac_try_echo") >&5
6139   (eval "$ac_compile") 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } && {
6146          test -z "$ac_c_werror_flag" ||
6147          test ! -s conftest.err
6148        } && test -s conftest.$ac_objext; then
6149   ac_cv_safe_to_define___extensions__=yes
6150 else
6151   $as_echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154         ac_cv_safe_to_define___extensions__=no
6155 fi
6156
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6160 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6161   test $ac_cv_safe_to_define___extensions__ = yes &&
6162     cat >>confdefs.h <<\_ACEOF
6163 #define __EXTENSIONS__ 1
6164 _ACEOF
6165
6166   cat >>confdefs.h <<\_ACEOF
6167 #define _ALL_SOURCE 1
6168 _ACEOF
6169
6170   cat >>confdefs.h <<\_ACEOF
6171 #define _GNU_SOURCE 1
6172 _ACEOF
6173
6174   cat >>confdefs.h <<\_ACEOF
6175 #define _POSIX_PTHREAD_SEMANTICS 1
6176 _ACEOF
6177
6178   cat >>confdefs.h <<\_ACEOF
6179 #define _TANDEM_SOURCE 1
6180 _ACEOF
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6191 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6192 if test "${ac_cv_sys_largefile_source+set}" = set; then
6193   $as_echo_n "(cached) " >&6
6194 else
6195   while :; do
6196   cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h.  */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h.  */
6202 #include <sys/types.h> /* for off_t */
6203      #include <stdio.h>
6204 int
6205 main ()
6206 {
6207 int (*fp) (FILE *, off_t, int) = fseeko;
6208      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6209   ;
6210   return 0;
6211 }
6212 _ACEOF
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6215 case "(($ac_try" in
6216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217   *) ac_try_echo=$ac_try;;
6218 esac
6219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6220 $as_echo "$ac_try_echo") >&5
6221   (eval "$ac_link") 2>conftest.er1
6222   ac_status=$?
6223   grep -v '^ *+' conftest.er1 >conftest.err
6224   rm -f conftest.er1
6225   cat conftest.err >&5
6226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } && {
6228          test -z "$ac_c_werror_flag" ||
6229          test ! -s conftest.err
6230        } && test -s conftest$ac_exeext && {
6231          test "$cross_compiling" = yes ||
6232          $as_test_x conftest$ac_exeext
6233        }; then
6234   ac_cv_sys_largefile_source=no; break
6235 else
6236   $as_echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239
6240 fi
6241
6242 rm -rf conftest.dSYM
6243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6244       conftest$ac_exeext conftest.$ac_ext
6245   cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h.  */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h.  */
6251 #define _LARGEFILE_SOURCE 1
6252 #include <sys/types.h> /* for off_t */
6253      #include <stdio.h>
6254 int
6255 main ()
6256 {
6257 int (*fp) (FILE *, off_t, int) = fseeko;
6258      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6259   ;
6260   return 0;
6261 }
6262 _ACEOF
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (ac_try="$ac_link"
6265 case "(($ac_try" in
6266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267   *) ac_try_echo=$ac_try;;
6268 esac
6269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6270 $as_echo "$ac_try_echo") >&5
6271   (eval "$ac_link") 2>conftest.er1
6272   ac_status=$?
6273   grep -v '^ *+' conftest.er1 >conftest.err
6274   rm -f conftest.er1
6275   cat conftest.err >&5
6276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); } && {
6278          test -z "$ac_c_werror_flag" ||
6279          test ! -s conftest.err
6280        } && test -s conftest$ac_exeext && {
6281          test "$cross_compiling" = yes ||
6282          $as_test_x conftest$ac_exeext
6283        }; then
6284   ac_cv_sys_largefile_source=1; break
6285 else
6286   $as_echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289
6290 fi
6291
6292 rm -rf conftest.dSYM
6293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6294       conftest$ac_exeext conftest.$ac_ext
6295   ac_cv_sys_largefile_source=unknown
6296   break
6297 done
6298 fi
6299 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6300 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6301 case $ac_cv_sys_largefile_source in #(
6302   no | unknown) ;;
6303   *)
6304 cat >>confdefs.h <<_ACEOF
6305 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6306 _ACEOF
6307 ;;
6308 esac
6309 rm -rf conftest*
6310
6311 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6312 # in glibc 2.1.3, but that breaks too many other things.
6313 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6314 if test $ac_cv_sys_largefile_source != unknown; then
6315
6316 cat >>confdefs.h <<\_ACEOF
6317 #define HAVE_FSEEKO 1
6318 _ACEOF
6319
6320 fi
6321
6322
6323
6324
6325
6326
6327   # Check whether --enable-threads was given.
6328 if test "${enable_threads+set}" = set; then
6329   enableval=$enable_threads; gl_use_threads=$enableval
6330 else
6331   if test -n "$gl_use_threads_default"; then
6332        gl_use_threads="$gl_use_threads_default"
6333      else
6334        case "$host_os" in
6335                                                                osf*) gl_use_threads=no ;;
6336          cygwin*)
6337                case `uname -r` in
6338                  1.[0-5].*) gl_use_threads=no ;;
6339                  *)         gl_use_threads=yes ;;
6340                esac
6341                ;;
6342          *)    gl_use_threads=yes ;;
6343        esac
6344      fi
6345
6346 fi
6347
6348   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6349     # For using <pthread.h>:
6350     case "$host_os" in
6351       osf*)
6352         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6353         # groks <pthread.h>. cc also understands the flag -pthread, but
6354         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6355         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6356         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6357         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6358         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6359         ;;
6360     esac
6361     # Some systems optimize for single-threaded programs by default, and
6362     # need special flags to disable these optimizations. For example, the
6363     # definition of 'errno' in <errno.h>.
6364     case "$host_os" in
6365       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6366       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6367     esac
6368   fi
6369
6370
6371
6372
6373   # Code from module alignof:
6374   # Code from module alloca-opt:
6375   # Code from module arg-nonnull:
6376   # Code from module arpa_inet:
6377   # Code from module base64:
6378   # Code from module btowc:
6379   # Code from module c++defs:
6380   # Code from module c-ctype:
6381   # Code from module configmake:
6382   # Code from module environ:
6383   # Code from module errno:
6384   # Code from module extensions:
6385
6386   # Code from module float:
6387   # Code from module fseeko:
6388
6389   # Code from module fsusage:
6390   # Code from module ftello:
6391
6392   # Code from module ftruncate:
6393   # Code from module full-read:
6394   # Code from module full-write:
6395   # Code from module getaddrinfo:
6396   # Code from module getopt-gnu:
6397   # Code from module getopt-posix:
6398   # Code from module gettext-h:
6399   # Code from module gettimeofday:
6400   # Code from module havelib:
6401   # Code from module hostent:
6402   # Code from module include_next:
6403   # Code from module inet_ntop:
6404   # Code from module inet_pton:
6405   # Code from module langinfo:
6406   # Code from module localcharset:
6407   # Code from module lock:
6408   # Code from module lseek:
6409   # Code from module lstat:
6410   # Code from module malloc-gnu:
6411   # Code from module malloc-posix:
6412   # Code from module mbrtowc:
6413   # Code from module mbsinit:
6414   # Code from module memchr:
6415   # Code from module mkdtemp:
6416   # Code from module multiarch:
6417   # Code from module netdb:
6418   # Code from module netinet_in:
6419   # Code from module nl_langinfo:
6420   # Code from module physmem:
6421   # Code from module regex:
6422   # Code from module safe-read:
6423   # Code from module safe-write:
6424   # Code from module servent:
6425   # Code from module size_max:
6426   # Code from module snprintf:
6427   # Code from module socklen:
6428   # Code from module ssize_t:
6429   # Code from module stat:
6430   # Code from module stdbool:
6431   # Code from module stddef:
6432   # Code from module stdint:
6433   # Code from module stdio:
6434   # Code from module stdlib:
6435   # Code from module streq:
6436   # Code from module string:
6437   # Code from module sys_socket:
6438   # Code from module sys_stat:
6439   # Code from module sys_time:
6440   # Code from module tempname:
6441   # Code from module threadlib:
6442
6443
6444
6445   # Code from module time:
6446   # Code from module unistd:
6447   # Code from module vasnprintf:
6448   # Code from module verify:
6449   # Code from module warn-on-use:
6450   # Code from module wchar:
6451   # Code from module wcrtomb:
6452   # Code from module wctype:
6453   # Code from module write:
6454   # Code from module xsize:
6455
6456
6457
6458
6459
6460
6461
6462           LIBC_FATAL_STDERR_=1
6463   export LIBC_FATAL_STDERR_
6464
6465 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6466 # for constant arguments.  Useless!
6467 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6468 $as_echo_n "checking for working alloca.h... " >&6; }
6469 if test "${ac_cv_working_alloca_h+set}" = set; then
6470   $as_echo_n "(cached) " >&6
6471 else
6472   cat >conftest.$ac_ext <<_ACEOF
6473 /* confdefs.h.  */
6474 _ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h.  */
6478 #include <alloca.h>
6479 int
6480 main ()
6481 {
6482 char *p = (char *) alloca (2 * sizeof (int));
6483                           if (p) return 0;
6484   ;
6485   return 0;
6486 }
6487 _ACEOF
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (ac_try="$ac_link"
6490 case "(($ac_try" in
6491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492   *) ac_try_echo=$ac_try;;
6493 esac
6494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6495 $as_echo "$ac_try_echo") >&5
6496   (eval "$ac_link") 2>conftest.er1
6497   ac_status=$?
6498   grep -v '^ *+' conftest.er1 >conftest.err
6499   rm -f conftest.er1
6500   cat conftest.err >&5
6501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); } && {
6503          test -z "$ac_c_werror_flag" ||
6504          test ! -s conftest.err
6505        } && test -s conftest$ac_exeext && {
6506          test "$cross_compiling" = yes ||
6507          $as_test_x conftest$ac_exeext
6508        }; then
6509   ac_cv_working_alloca_h=yes
6510 else
6511   $as_echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6513
6514         ac_cv_working_alloca_h=no
6515 fi
6516
6517 rm -rf conftest.dSYM
6518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6519       conftest$ac_exeext conftest.$ac_ext
6520 fi
6521 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6522 $as_echo "$ac_cv_working_alloca_h" >&6; }
6523 if test $ac_cv_working_alloca_h = yes; then
6524
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_ALLOCA_H 1
6527 _ACEOF
6528
6529 fi
6530
6531 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6532 $as_echo_n "checking for alloca... " >&6; }
6533 if test "${ac_cv_func_alloca_works+set}" = set; then
6534   $as_echo_n "(cached) " >&6
6535 else
6536   cat >conftest.$ac_ext <<_ACEOF
6537 /* confdefs.h.  */
6538 _ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h.  */
6542 #ifdef __GNUC__
6543 # define alloca __builtin_alloca
6544 #else
6545 # ifdef _MSC_VER
6546 #  include <malloc.h>
6547 #  define alloca _alloca
6548 # else
6549 #  ifdef HAVE_ALLOCA_H
6550 #   include <alloca.h>
6551 #  else
6552 #   ifdef _AIX
6553  #pragma alloca
6554 #   else
6555 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6556 char *alloca ();
6557 #    endif
6558 #   endif
6559 #  endif
6560 # endif
6561 #endif
6562
6563 int
6564 main ()
6565 {
6566 char *p = (char *) alloca (1);
6567                                     if (p) return 0;
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6574 case "(($ac_try" in
6575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576   *) ac_try_echo=$ac_try;;
6577 esac
6578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6579 $as_echo "$ac_try_echo") >&5
6580   (eval "$ac_link") 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } && {
6587          test -z "$ac_c_werror_flag" ||
6588          test ! -s conftest.err
6589        } && test -s conftest$ac_exeext && {
6590          test "$cross_compiling" = yes ||
6591          $as_test_x conftest$ac_exeext
6592        }; then
6593   ac_cv_func_alloca_works=yes
6594 else
6595   $as_echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598         ac_cv_func_alloca_works=no
6599 fi
6600
6601 rm -rf conftest.dSYM
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603       conftest$ac_exeext conftest.$ac_ext
6604 fi
6605 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6606 $as_echo "$ac_cv_func_alloca_works" >&6; }
6607
6608 if test $ac_cv_func_alloca_works = yes; then
6609
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_ALLOCA 1
6612 _ACEOF
6613
6614 else
6615   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6616 # that cause trouble.  Some versions do not even contain alloca or
6617 # contain a buggy version.  If you still want to use their alloca,
6618 # use ar to extract alloca.o from them instead of compiling alloca.c.
6619
6620
6621
6622
6623
6624 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6625
6626 cat >>confdefs.h <<\_ACEOF
6627 #define C_ALLOCA 1
6628 _ACEOF
6629
6630
6631 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6632 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6633 if test "${ac_cv_os_cray+set}" = set; then
6634   $as_echo_n "(cached) " >&6
6635 else
6636   cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h.  */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h.  */
6642 #if defined CRAY && ! defined CRAY2
6643 webecray
6644 #else
6645 wenotbecray
6646 #endif
6647
6648 _ACEOF
6649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6650   $EGREP "webecray" >/dev/null 2>&1; then
6651   ac_cv_os_cray=yes
6652 else
6653   ac_cv_os_cray=no
6654 fi
6655 rm -f conftest*
6656
6657 fi
6658 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6659 $as_echo "$ac_cv_os_cray" >&6; }
6660 if test $ac_cv_os_cray = yes; then
6661   for ac_func in _getb67 GETB67 getb67; do
6662     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6664 $as_echo_n "checking for $ac_func... " >&6; }
6665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6666   $as_echo_n "(cached) " >&6
6667 else
6668   cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h.  */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h.  */
6674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6676 #define $ac_func innocuous_$ac_func
6677
6678 /* System header to define __stub macros and hopefully few prototypes,
6679     which can conflict with char $ac_func (); below.
6680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6681     <limits.h> exists even on freestanding compilers.  */
6682
6683 #ifdef __STDC__
6684 # include <limits.h>
6685 #else
6686 # include <assert.h>
6687 #endif
6688
6689 #undef $ac_func
6690
6691 /* Override any GCC internal prototype to avoid an error.
6692    Use char because int might match the return type of a GCC
6693    builtin and then its argument prototype would still apply.  */
6694 #ifdef __cplusplus
6695 extern "C"
6696 #endif
6697 char $ac_func ();
6698 /* The GNU C library defines this for functions which it implements
6699     to always fail with ENOSYS.  Some functions are actually named
6700     something starting with __ and the normal name is an alias.  */
6701 #if defined __stub_$ac_func || defined __stub___$ac_func
6702 choke me
6703 #endif
6704
6705 int
6706 main ()
6707 {
6708 return $ac_func ();
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6715 case "(($ac_try" in
6716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717   *) ac_try_echo=$ac_try;;
6718 esac
6719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6720 $as_echo "$ac_try_echo") >&5
6721   (eval "$ac_link") 2>conftest.er1
6722   ac_status=$?
6723   grep -v '^ *+' conftest.er1 >conftest.err
6724   rm -f conftest.er1
6725   cat conftest.err >&5
6726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); } && {
6728          test -z "$ac_c_werror_flag" ||
6729          test ! -s conftest.err
6730        } && test -s conftest$ac_exeext && {
6731          test "$cross_compiling" = yes ||
6732          $as_test_x conftest$ac_exeext
6733        }; then
6734   eval "$as_ac_var=yes"
6735 else
6736   $as_echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6738
6739         eval "$as_ac_var=no"
6740 fi
6741
6742 rm -rf conftest.dSYM
6743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6744       conftest$ac_exeext conftest.$ac_ext
6745 fi
6746 ac_res=`eval 'as_val=${'$as_ac_var'}
6747                  $as_echo "$as_val"'`
6748                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6749 $as_echo "$ac_res" >&6; }
6750 as_val=`eval 'as_val=${'$as_ac_var'}
6751                  $as_echo "$as_val"'`
6752    if test "x$as_val" = x""yes; then
6753
6754 cat >>confdefs.h <<_ACEOF
6755 #define CRAY_STACKSEG_END $ac_func
6756 _ACEOF
6757
6758     break
6759 fi
6760
6761   done
6762 fi
6763
6764 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6765 $as_echo_n "checking stack direction for C alloca... " >&6; }
6766 if test "${ac_cv_c_stack_direction+set}" = set; then
6767   $as_echo_n "(cached) " >&6
6768 else
6769   if test "$cross_compiling" = yes; then
6770   ac_cv_c_stack_direction=0
6771 else
6772   cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h.  */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h.  */
6778 $ac_includes_default
6779 int
6780 find_stack_direction ()
6781 {
6782   static char *addr = 0;
6783   auto char dummy;
6784   if (addr == 0)
6785     {
6786       addr = &dummy;
6787       return find_stack_direction ();
6788     }
6789   else
6790     return (&dummy > addr) ? 1 : -1;
6791 }
6792
6793 int
6794 main ()
6795 {
6796   return find_stack_direction () < 0;
6797 }
6798 _ACEOF
6799 rm -f conftest$ac_exeext
6800 if { (ac_try="$ac_link"
6801 case "(($ac_try" in
6802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803   *) ac_try_echo=$ac_try;;
6804 esac
6805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6806 $as_echo "$ac_try_echo") >&5
6807   (eval "$ac_link") 2>&5
6808   ac_status=$?
6809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6811   { (case "(($ac_try" in
6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813   *) ac_try_echo=$ac_try;;
6814 esac
6815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6816 $as_echo "$ac_try_echo") >&5
6817   (eval "$ac_try") 2>&5
6818   ac_status=$?
6819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   ac_cv_c_stack_direction=1
6822 else
6823   $as_echo "$as_me: program exited with status $ac_status" >&5
6824 $as_echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ( exit $ac_status )
6828 ac_cv_c_stack_direction=-1
6829 fi
6830 rm -rf conftest.dSYM
6831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6832 fi
6833
6834
6835 fi
6836 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6837 $as_echo "$ac_cv_c_stack_direction" >&6; }
6838
6839 cat >>confdefs.h <<_ACEOF
6840 #define STACK_DIRECTION $ac_cv_c_stack_direction
6841 _ACEOF
6842
6843
6844 fi
6845
6846
6847   GNULIB_INET_NTOP=0;
6848   GNULIB_INET_PTON=0;
6849     HAVE_DECL_INET_NTOP=1;
6850   HAVE_DECL_INET_PTON=1;
6851
6852
6853
6854
6855
6856
6857 for ac_header in $gl_header_list
6858 do
6859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6861   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6862 $as_echo_n "checking for $ac_header... " >&6; }
6863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6864   $as_echo_n "(cached) " >&6
6865 fi
6866 ac_res=`eval 'as_val=${'$as_ac_Header'}
6867                  $as_echo "$as_val"'`
6868                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 else
6871   # Is the header compilable?
6872 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6873 $as_echo_n "checking $ac_header usability... " >&6; }
6874 cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 $ac_includes_default
6881 #include <$ac_header>
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887   *) ac_try_echo=$ac_try;;
6888 esac
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891   (eval "$ac_compile") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } && {
6898          test -z "$ac_c_werror_flag" ||
6899          test ! -s conftest.err
6900        } && test -s conftest.$ac_objext; then
6901   ac_header_compiler=yes
6902 else
6903   $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906         ac_header_compiler=no
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6911 $as_echo "$ac_header_compiler" >&6; }
6912
6913 # Is the header present?
6914 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6915 $as_echo_n "checking $ac_header presence... " >&6; }
6916 cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922 #include <$ac_header>
6923 _ACEOF
6924 if { (ac_try="$ac_cpp conftest.$ac_ext"
6925 case "(($ac_try" in
6926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927   *) ac_try_echo=$ac_try;;
6928 esac
6929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6930 $as_echo "$ac_try_echo") >&5
6931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6932   ac_status=$?
6933   grep -v '^ *+' conftest.er1 >conftest.err
6934   rm -f conftest.er1
6935   cat conftest.err >&5
6936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); } >/dev/null && {
6938          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6939          test ! -s conftest.err
6940        }; then
6941   ac_header_preproc=yes
6942 else
6943   $as_echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946   ac_header_preproc=no
6947 fi
6948
6949 rm -f conftest.err conftest.$ac_ext
6950 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6951 $as_echo "$ac_header_preproc" >&6; }
6952
6953 # So?  What about this header?
6954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6955   yes:no: )
6956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6957 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6960     ac_header_preproc=yes
6961     ;;
6962   no:yes:* )
6963     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6964 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6965     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6966 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6967     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6968 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6969     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6970 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6971     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6972 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6973     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6974 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6975
6976     ;;
6977 esac
6978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6979 $as_echo_n "checking for $ac_header... " >&6; }
6980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6981   $as_echo_n "(cached) " >&6
6982 else
6983   eval "$as_ac_Header=\$ac_header_preproc"
6984 fi
6985 ac_res=`eval 'as_val=${'$as_ac_Header'}
6986                  $as_echo "$as_val"'`
6987                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6988 $as_echo "$ac_res" >&6; }
6989
6990 fi
6991 as_val=`eval 'as_val=${'$as_ac_Header'}
6992                  $as_echo "$as_val"'`
6993    if test "x$as_val" = x""yes; then
6994   cat >>confdefs.h <<_ACEOF
6995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6996 _ACEOF
6997
6998 fi
6999
7000 done
7001
7002
7003
7004
7005
7006
7007
7008
7009   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
7010 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7011 if test "${gl_cv_have_include_next+set}" = set; then
7012   $as_echo_n "(cached) " >&6
7013 else
7014   rm -rf conftestd1a conftestd1b conftestd2
7015      mkdir conftestd1a conftestd1b conftestd2
7016                                                   cat <<EOF > conftestd1a/conftest.h
7017 #define DEFINED_IN_CONFTESTD1
7018 #include_next <conftest.h>
7019 #ifdef DEFINED_IN_CONFTESTD2
7020 int foo;
7021 #else
7022 #error "include_next doesn't work"
7023 #endif
7024 EOF
7025      cat <<EOF > conftestd1b/conftest.h
7026 #define DEFINED_IN_CONFTESTD1
7027 #include <stdio.h>
7028 #include_next <conftest.h>
7029 #ifdef DEFINED_IN_CONFTESTD2
7030 int foo;
7031 #else
7032 #error "include_next doesn't work"
7033 #endif
7034 EOF
7035      cat <<EOF > conftestd2/conftest.h
7036 #ifndef DEFINED_IN_CONFTESTD1
7037 #error "include_next test doesn't work"
7038 #endif
7039 #define DEFINED_IN_CONFTESTD2
7040 EOF
7041      gl_save_CPPFLAGS="$CPPFLAGS"
7042      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7043      cat >conftest.$ac_ext <<_ACEOF
7044 #include <conftest.h>
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054   (eval "$ac_compile") 2>conftest.er1
7055   ac_status=$?
7056   grep -v '^ *+' conftest.er1 >conftest.err
7057   rm -f conftest.er1
7058   cat conftest.err >&5
7059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); } && {
7061          test -z "$ac_c_werror_flag" ||
7062          test ! -s conftest.err
7063        } && test -s conftest.$ac_objext; then
7064   gl_cv_have_include_next=yes
7065 else
7066   $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7070         cat >conftest.$ac_ext <<_ACEOF
7071 #include <conftest.h>
7072 _ACEOF
7073 rm -f conftest.$ac_objext
7074 if { (ac_try="$ac_compile"
7075 case "(($ac_try" in
7076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7077   *) ac_try_echo=$ac_try;;
7078 esac
7079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7080 $as_echo "$ac_try_echo") >&5
7081   (eval "$ac_compile") 2>conftest.er1
7082   ac_status=$?
7083   grep -v '^ *+' conftest.er1 >conftest.err
7084   rm -f conftest.er1
7085   cat conftest.err >&5
7086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); } && {
7088          test -z "$ac_c_werror_flag" ||
7089          test ! -s conftest.err
7090        } && test -s conftest.$ac_objext; then
7091   gl_cv_have_include_next=buggy
7092 else
7093   $as_echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7095
7096         gl_cv_have_include_next=no
7097 fi
7098
7099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7100
7101 fi
7102
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104      CPPFLAGS="$gl_save_CPPFLAGS"
7105      rm -rf conftestd1a conftestd1b conftestd2
7106
7107 fi
7108 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
7109 $as_echo "$gl_cv_have_include_next" >&6; }
7110   PRAGMA_SYSTEM_HEADER=
7111   if test $gl_cv_have_include_next = yes; then
7112     INCLUDE_NEXT=include_next
7113     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7114     if test -n "$GCC"; then
7115       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7116     fi
7117   else
7118     if test $gl_cv_have_include_next = buggy; then
7119       INCLUDE_NEXT=include
7120       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7121     else
7122       INCLUDE_NEXT=include
7123       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7124     fi
7125   fi
7126
7127
7128
7129
7130 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7131 $as_echo_n "checking for inline... " >&6; }
7132 if test "${ac_cv_c_inline+set}" = set; then
7133   $as_echo_n "(cached) " >&6
7134 else
7135   ac_cv_c_inline=no
7136 for ac_kw in inline __inline__ __inline; do
7137   cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h.  */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h.  */
7143 #ifndef __cplusplus
7144 typedef int foo_t;
7145 static $ac_kw foo_t static_foo () {return 0; }
7146 $ac_kw foo_t foo () {return 0; }
7147 #endif
7148
7149 _ACEOF
7150 rm -f conftest.$ac_objext
7151 if { (ac_try="$ac_compile"
7152 case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7157 $as_echo "$ac_try_echo") >&5
7158   (eval "$ac_compile") 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } && {
7165          test -z "$ac_c_werror_flag" ||
7166          test ! -s conftest.err
7167        } && test -s conftest.$ac_objext; then
7168   ac_cv_c_inline=$ac_kw
7169 else
7170   $as_echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173
7174 fi
7175
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177   test "$ac_cv_c_inline" != no && break
7178 done
7179
7180 fi
7181 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7182 $as_echo "$ac_cv_c_inline" >&6; }
7183
7184
7185 case $ac_cv_c_inline in
7186   inline | yes) ;;
7187   *)
7188     case $ac_cv_c_inline in
7189       no) ac_val=;;
7190       *) ac_val=$ac_cv_c_inline;;
7191     esac
7192     cat >>confdefs.h <<_ACEOF
7193 #ifndef __cplusplus
7194 #define inline $ac_val
7195 #endif
7196 _ACEOF
7197     ;;
7198 esac
7199
7200 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7201 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7202 if test "${ac_cv_c_restrict+set}" = set; then
7203   $as_echo_n "(cached) " >&6
7204 else
7205   ac_cv_c_restrict=no
7206    # The order here caters to the fact that C++ does not require restrict.
7207    for ac_kw in __restrict __restrict__ _Restrict restrict; do
7208      cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h.  */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h.  */
7214 typedef int * int_ptr;
7215         int foo (int_ptr $ac_kw ip) {
7216         return ip[0];
7217        }
7218 int
7219 main ()
7220 {
7221 int s[1];
7222         int * $ac_kw t = s;
7223         t[0] = 0;
7224         return foo(t)
7225   ;
7226   return 0;
7227 }
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233   *) ac_try_echo=$ac_try;;
7234 esac
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237   (eval "$ac_compile") 2>conftest.er1
7238   ac_status=$?
7239   grep -v '^ *+' conftest.er1 >conftest.err
7240   rm -f conftest.er1
7241   cat conftest.err >&5
7242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); } && {
7244          test -z "$ac_c_werror_flag" ||
7245          test ! -s conftest.err
7246        } && test -s conftest.$ac_objext; then
7247   ac_cv_c_restrict=$ac_kw
7248 else
7249   $as_echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252
7253 fi
7254
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256      test "$ac_cv_c_restrict" != no && break
7257    done
7258
7259 fi
7260 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7261 $as_echo "$ac_cv_c_restrict" >&6; }
7262
7263
7264  case $ac_cv_c_restrict in
7265    restrict) ;;
7266    no) cat >>confdefs.h <<\_ACEOF
7267 #define restrict /**/
7268 _ACEOF
7269  ;;
7270    *)  cat >>confdefs.h <<_ACEOF
7271 #define restrict $ac_cv_c_restrict
7272 _ACEOF
7273  ;;
7274  esac
7275
7276
7277   GNULIB_BTOWC=0;
7278   GNULIB_WCTOB=0;
7279   GNULIB_MBSINIT=0;
7280   GNULIB_MBRTOWC=0;
7281   GNULIB_MBRLEN=0;
7282   GNULIB_MBSRTOWCS=0;
7283   GNULIB_MBSNRTOWCS=0;
7284   GNULIB_WCRTOMB=0;
7285   GNULIB_WCSRTOMBS=0;
7286   GNULIB_WCSNRTOMBS=0;
7287   GNULIB_WCWIDTH=0;
7288     HAVE_BTOWC=1;
7289   HAVE_MBSINIT=1;
7290   HAVE_MBRTOWC=1;
7291   HAVE_MBRLEN=1;
7292   HAVE_MBSRTOWCS=1;
7293   HAVE_MBSNRTOWCS=1;
7294   HAVE_WCRTOMB=1;
7295   HAVE_WCSRTOMBS=1;
7296   HAVE_WCSNRTOMBS=1;
7297   HAVE_DECL_WCTOB=1;
7298   HAVE_DECL_WCWIDTH=1;
7299   REPLACE_MBSTATE_T=0;
7300   REPLACE_BTOWC=0;
7301   REPLACE_WCTOB=0;
7302   REPLACE_MBSINIT=0;
7303   REPLACE_MBRTOWC=0;
7304   REPLACE_MBRLEN=0;
7305   REPLACE_MBSRTOWCS=0;
7306   REPLACE_MBSNRTOWCS=0;
7307   REPLACE_WCRTOMB=0;
7308   REPLACE_WCSRTOMBS=0;
7309   REPLACE_WCSNRTOMBS=0;
7310   REPLACE_WCWIDTH=0;
7311
7312
7313             { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
7314 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7315 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
7316   $as_echo_n "(cached) " >&6
7317 else
7318   gl_cv_header_wchar_h_correct_inline=yes
7319      cat >conftest.$ac_ext <<_ACEOF
7320
7321        /* confdefs.h.  */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h.  */
7326 #define wcstod renamed_wcstod
7327 #include <wchar.h>
7328 extern int zero (void);
7329 int main () { return zero(); }
7330
7331 _ACEOF
7332      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7333   (eval $ac_compile) 2>&5
7334   ac_status=$?
7335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); }; then
7337        mv conftest.$ac_objext conftest1.$ac_objext
7338        cat >conftest.$ac_ext <<_ACEOF
7339
7340          /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 #define wcstod renamed_wcstod
7346 #include <wchar.h>
7347 int zero (void) { return 0; }
7348
7349 _ACEOF
7350        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351   (eval $ac_compile) 2>&5
7352   ac_status=$?
7353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; then
7355          mv conftest.$ac_objext conftest2.$ac_objext
7356          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7357            :
7358          else
7359            gl_cv_header_wchar_h_correct_inline=no
7360          fi
7361        fi
7362      fi
7363      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7364
7365 fi
7366 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
7367 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7368   if test $gl_cv_header_wchar_h_correct_inline = no; then
7369     { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7370 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7371 C99 mode. You have four options:
7372   - Add the flag -fgnu89-inline to CC and reconfigure, or
7373   - Fix your include files, using parts of
7374     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7375   - Use a gcc version older than 4.3, or
7376   - Don't use the flags -std=c99 or -std=gnu99.
7377 Configuration aborted." >&5
7378 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7379 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7380 C99 mode. You have four options:
7381   - Add the flag -fgnu89-inline to CC and reconfigure, or
7382   - Fix your include files, using parts of
7383     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7384   - Use a gcc version older than 4.3, or
7385   - Don't use the flags -std=c99 or -std=gnu99.
7386 Configuration aborted." >&2;}
7387    { (exit 1); exit 1; }; }
7388   fi
7389
7390
7391
7392
7393
7394
7395 for ac_func in $gl_func_list
7396 do
7397 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7398 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7399 $as_echo_n "checking for $ac_func... " >&6; }
7400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7401   $as_echo_n "(cached) " >&6
7402 else
7403   cat >conftest.$ac_ext <<_ACEOF
7404 /* confdefs.h.  */
7405 _ACEOF
7406 cat confdefs.h >>conftest.$ac_ext
7407 cat >>conftest.$ac_ext <<_ACEOF
7408 /* end confdefs.h.  */
7409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7411 #define $ac_func innocuous_$ac_func
7412
7413 /* System header to define __stub macros and hopefully few prototypes,
7414     which can conflict with char $ac_func (); below.
7415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7416     <limits.h> exists even on freestanding compilers.  */
7417
7418 #ifdef __STDC__
7419 # include <limits.h>
7420 #else
7421 # include <assert.h>
7422 #endif
7423
7424 #undef $ac_func
7425
7426 /* Override any GCC internal prototype to avoid an error.
7427    Use char because int might match the return type of a GCC
7428    builtin and then its argument prototype would still apply.  */
7429 #ifdef __cplusplus
7430 extern "C"
7431 #endif
7432 char $ac_func ();
7433 /* The GNU C library defines this for functions which it implements
7434     to always fail with ENOSYS.  Some functions are actually named
7435     something starting with __ and the normal name is an alias.  */
7436 #if defined __stub_$ac_func || defined __stub___$ac_func
7437 choke me
7438 #endif
7439
7440 int
7441 main ()
7442 {
7443 return $ac_func ();
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (ac_try="$ac_link"
7450 case "(($ac_try" in
7451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452   *) ac_try_echo=$ac_try;;
7453 esac
7454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7455 $as_echo "$ac_try_echo") >&5
7456   (eval "$ac_link") 2>conftest.er1
7457   ac_status=$?
7458   grep -v '^ *+' conftest.er1 >conftest.err
7459   rm -f conftest.er1
7460   cat conftest.err >&5
7461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } && {
7463          test -z "$ac_c_werror_flag" ||
7464          test ! -s conftest.err
7465        } && test -s conftest$ac_exeext && {
7466          test "$cross_compiling" = yes ||
7467          $as_test_x conftest$ac_exeext
7468        }; then
7469   eval "$as_ac_var=yes"
7470 else
7471   $as_echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474         eval "$as_ac_var=no"
7475 fi
7476
7477 rm -rf conftest.dSYM
7478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7479       conftest$ac_exeext conftest.$ac_ext
7480 fi
7481 ac_res=`eval 'as_val=${'$as_ac_var'}
7482                  $as_echo "$as_val"'`
7483                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7484 $as_echo "$ac_res" >&6; }
7485 as_val=`eval 'as_val=${'$as_ac_var'}
7486                  $as_echo "$as_val"'`
7487    if test "x$as_val" = x""yes; then
7488   cat >>confdefs.h <<_ACEOF
7489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7490 _ACEOF
7491
7492 fi
7493 done
7494
7495
7496
7497
7498
7499
7500
7501   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7502 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7503 if test "${am_cv_langinfo_codeset+set}" = set; then
7504   $as_echo_n "(cached) " >&6
7505 else
7506   cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 #include <langinfo.h>
7513 int
7514 main ()
7515 {
7516 char* cs = nl_langinfo(CODESET);
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (ac_try="$ac_link"
7523 case "(($ac_try" in
7524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525   *) ac_try_echo=$ac_try;;
7526 esac
7527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7528 $as_echo "$ac_try_echo") >&5
7529   (eval "$ac_link") 2>conftest.er1
7530   ac_status=$?
7531   grep -v '^ *+' conftest.er1 >conftest.err
7532   rm -f conftest.er1
7533   cat conftest.err >&5
7534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); } && {
7536          test -z "$ac_c_werror_flag" ||
7537          test ! -s conftest.err
7538        } && test -s conftest$ac_exeext && {
7539          test "$cross_compiling" = yes ||
7540          $as_test_x conftest$ac_exeext
7541        }; then
7542   am_cv_langinfo_codeset=yes
7543 else
7544   $as_echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7546
7547         am_cv_langinfo_codeset=no
7548 fi
7549
7550 rm -rf conftest.dSYM
7551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7552       conftest$ac_exeext conftest.$ac_ext
7553
7554 fi
7555 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7556 $as_echo "$am_cv_langinfo_codeset" >&6; }
7557   if test $am_cv_langinfo_codeset = yes; then
7558
7559 cat >>confdefs.h <<\_ACEOF
7560 #define HAVE_LANGINFO_CODESET 1
7561 _ACEOF
7562
7563   fi
7564
7565
7566
7567
7568   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
7569 $as_echo_n "checking for a traditional french locale... " >&6; }
7570 if test "${gt_cv_locale_fr+set}" = set; then
7571   $as_echo_n "(cached) " >&6
7572 else
7573
7574     cat >conftest.$ac_ext <<_ACEOF
7575 /* confdefs.h.  */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h.  */
7580
7581 #include <locale.h>
7582 #include <time.h>
7583 #if HAVE_LANGINFO_CODESET
7584 # include <langinfo.h>
7585 #endif
7586 #include <stdlib.h>
7587 #include <string.h>
7588 struct tm t;
7589 char buf[16];
7590 int main () {
7591   /* Check whether the given locale name is recognized by the system.  */
7592   if (setlocale (LC_ALL, "") == NULL) return 1;
7593   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7594      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7595      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7596      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7597      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7598      some unit tests fail.  */
7599 #if HAVE_LANGINFO_CODESET
7600   {
7601     const char *cs = nl_langinfo (CODESET);
7602     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7603       return 1;
7604   }
7605 #endif
7606 #ifdef __CYGWIN__
7607   /* On Cygwin, avoid locale names without encoding suffix, because the
7608      locale_charset() function relies on the encoding suffix.  Note that
7609      LC_ALL is set on the command line.  */
7610   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7611 #endif
7612   /* Check whether in the abbreviation of the second month, the second
7613      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7614      one byte long. This excludes the UTF-8 encoding.  */
7615   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7616   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7617   /* Check whether the decimal separator is a comma.
7618      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7619      are nl_langinfo(RADIXCHAR) are both ".".  */
7620   if (localeconv () ->decimal_point[0] != ',') return 1;
7621   return 0;
7622 }
7623
7624 _ACEOF
7625     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>&5
7627   ac_status=$?
7628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } && test -s conftest$ac_exeext; then
7630       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7631       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7632       # configure script would override the LC_ALL setting. Likewise for
7633       # LC_CTYPE, which is also set at the beginning of the configure script.
7634       # Test for the usual locale name.
7635       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7636         gt_cv_locale_fr=fr_FR
7637       else
7638         # Test for the locale name with explicit encoding suffix.
7639         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7640           gt_cv_locale_fr=fr_FR.ISO-8859-1
7641         else
7642           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7643           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7644             gt_cv_locale_fr=fr_FR.ISO8859-1
7645           else
7646             # Test for the HP-UX locale name.
7647             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7648               gt_cv_locale_fr=fr_FR.iso88591
7649             else
7650               # Test for the Solaris 7 locale name.
7651               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7652                 gt_cv_locale_fr=fr
7653               else
7654                 # None found.
7655                 gt_cv_locale_fr=none
7656               fi
7657             fi
7658           fi
7659         fi
7660       fi
7661     fi
7662     rm -fr conftest*
7663
7664 fi
7665 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
7666 $as_echo "$gt_cv_locale_fr" >&6; }
7667   LOCALE_FR=$gt_cv_locale_fr
7668
7669
7670
7671   GNULIB_CHOWN=0;
7672   GNULIB_CLOSE=0;
7673   GNULIB_DUP2=0;
7674   GNULIB_DUP3=0;
7675   GNULIB_ENVIRON=0;
7676   GNULIB_EUIDACCESS=0;
7677   GNULIB_FACCESSAT=0;
7678   GNULIB_FCHDIR=0;
7679   GNULIB_FCHOWNAT=0;
7680   GNULIB_FSYNC=0;
7681   GNULIB_FTRUNCATE=0;
7682   GNULIB_GETCWD=0;
7683   GNULIB_GETDOMAINNAME=0;
7684   GNULIB_GETDTABLESIZE=0;
7685   GNULIB_GETGROUPS=0;
7686   GNULIB_GETHOSTNAME=0;
7687   GNULIB_GETLOGIN=0;
7688   GNULIB_GETLOGIN_R=0;
7689   GNULIB_GETPAGESIZE=0;
7690   GNULIB_GETUSERSHELL=0;
7691   GNULIB_LCHOWN=0;
7692   GNULIB_LINK=0;
7693   GNULIB_LINKAT=0;
7694   GNULIB_LSEEK=0;
7695   GNULIB_PIPE2=0;
7696   GNULIB_PREAD=0;
7697   GNULIB_PWRITE=0;
7698   GNULIB_READLINK=0;
7699   GNULIB_READLINKAT=0;
7700   GNULIB_RMDIR=0;
7701   GNULIB_SLEEP=0;
7702   GNULIB_SYMLINK=0;
7703   GNULIB_SYMLINKAT=0;
7704   GNULIB_TTYNAME_R=0;
7705   GNULIB_UNISTD_H_GETOPT=0;
7706   GNULIB_UNISTD_H_SIGPIPE=0;
7707   GNULIB_UNLINK=0;
7708   GNULIB_UNLINKAT=0;
7709   GNULIB_USLEEP=0;
7710   GNULIB_WRITE=0;
7711     HAVE_CHOWN=1;
7712   HAVE_DUP2=1;
7713   HAVE_DUP3=1;
7714   HAVE_EUIDACCESS=1;
7715   HAVE_FACCESSAT=1;
7716   HAVE_FCHDIR=1;
7717   HAVE_FCHOWNAT=1;
7718   HAVE_FSYNC=1;
7719   HAVE_FTRUNCATE=1;
7720   HAVE_GETDOMAINNAME=1;
7721   HAVE_GETDTABLESIZE=1;
7722   HAVE_GETGROUPS=1;
7723   HAVE_GETHOSTNAME=1;
7724   HAVE_GETLOGIN=1;
7725   HAVE_GETPAGESIZE=1;
7726   HAVE_LCHOWN=1;
7727   HAVE_LINK=1;
7728   HAVE_LINKAT=1;
7729   HAVE_PIPE2=1;
7730   HAVE_PREAD=1;
7731   HAVE_PWRITE=1;
7732   HAVE_READLINK=1;
7733   HAVE_READLINKAT=1;
7734   HAVE_SLEEP=1;
7735   HAVE_SYMLINK=1;
7736   HAVE_SYMLINKAT=1;
7737   HAVE_TTYNAME_R=1;
7738   HAVE_UNLINKAT=1;
7739   HAVE_USLEEP=1;
7740   HAVE_DECL_ENVIRON=1;
7741   HAVE_DECL_GETLOGIN_R=1;
7742   HAVE_DECL_GETPAGESIZE=1;
7743   HAVE_DECL_GETUSERSHELL=1;
7744   HAVE_OS_H=0;
7745   HAVE_SYS_PARAM_H=0;
7746   REPLACE_CHOWN=0;
7747   REPLACE_CLOSE=0;
7748   REPLACE_DUP=0;
7749   REPLACE_DUP2=0;
7750   REPLACE_FCHOWNAT=0;
7751   REPLACE_GETCWD=0;
7752   REPLACE_GETGROUPS=0;
7753   REPLACE_GETPAGESIZE=0;
7754   REPLACE_LCHOWN=0;
7755   REPLACE_LINK=0;
7756   REPLACE_LINKAT=0;
7757   REPLACE_LSEEK=0;
7758   REPLACE_PREAD=0;
7759   REPLACE_PWRITE=0;
7760   REPLACE_READLINK=0;
7761   REPLACE_RMDIR=0;
7762   REPLACE_SLEEP=0;
7763   REPLACE_SYMLINK=0;
7764   REPLACE_TTYNAME_R=0;
7765   REPLACE_UNLINK=0;
7766   REPLACE_UNLINKAT=0;
7767   REPLACE_USLEEP=0;
7768   REPLACE_WRITE=0;
7769   UNISTD_H_HAVE_WINSOCK2_H=0;
7770   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7771
7772
7773
7774
7775
7776
7777
7778   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
7779 $as_echo_n "checking if environ is properly declared... " >&6; }
7780   if test "${gt_cv_var_environ_declaration+set}" = set; then
7781   $as_echo_n "(cached) " >&6
7782 else
7783
7784     cat >conftest.$ac_ext <<_ACEOF
7785 /* confdefs.h.  */
7786 _ACEOF
7787 cat confdefs.h >>conftest.$ac_ext
7788 cat >>conftest.$ac_ext <<_ACEOF
7789 /* end confdefs.h.  */
7790 #include <unistd.h>
7791            extern struct { int foo; } environ;
7792 int
7793 main ()
7794 {
7795 environ.foo = 1;
7796   ;
7797   return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804   *) ac_try_echo=$ac_try;;
7805 esac
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808   (eval "$ac_compile") 2>conftest.er1
7809   ac_status=$?
7810   grep -v '^ *+' conftest.er1 >conftest.err
7811   rm -f conftest.er1
7812   cat conftest.err >&5
7813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } && {
7815          test -z "$ac_c_werror_flag" ||
7816          test ! -s conftest.err
7817        } && test -s conftest.$ac_objext; then
7818   gt_cv_var_environ_declaration=no
7819 else
7820   $as_echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823         gt_cv_var_environ_declaration=yes
7824 fi
7825
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 fi
7828
7829   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
7830 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7831   if test $gt_cv_var_environ_declaration = yes; then
7832
7833 cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_ENVIRON_DECL 1
7835 _ACEOF
7836
7837   fi
7838
7839
7840   if test $gt_cv_var_environ_declaration != yes; then
7841     HAVE_DECL_ENVIRON=0
7842   fi
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
7853 $as_echo_n "checking for complete errno.h... " >&6; }
7854 if test "${gl_cv_header_errno_h_complete+set}" = set; then
7855   $as_echo_n "(cached) " >&6
7856 else
7857
7858     cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864
7865 #include <errno.h>
7866 #if !defined ENOMSG
7867 booboo
7868 #endif
7869 #if !defined EIDRM
7870 booboo
7871 #endif
7872 #if !defined ENOLINK
7873 booboo
7874 #endif
7875 #if !defined EPROTO
7876 booboo
7877 #endif
7878 #if !defined EMULTIHOP
7879 booboo
7880 #endif
7881 #if !defined EBADMSG
7882 booboo
7883 #endif
7884 #if !defined EOVERFLOW
7885 booboo
7886 #endif
7887 #if !defined ENOTSUP
7888 booboo
7889 #endif
7890 #if !defined ESTALE
7891 booboo
7892 #endif
7893 #if !defined ECANCELED
7894 booboo
7895 #endif
7896
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899   $EGREP "booboo" >/dev/null 2>&1; then
7900   gl_cv_header_errno_h_complete=no
7901 else
7902   gl_cv_header_errno_h_complete=yes
7903 fi
7904 rm -f conftest*
7905
7906
7907 fi
7908 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
7909 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7910   if test $gl_cv_header_errno_h_complete = yes; then
7911     ERRNO_H=''
7912   else
7913
7914
7915
7916
7917   :
7918
7919
7920
7921
7922
7923
7924
7925      if test $gl_cv_have_include_next = yes; then
7926        gl_cv_next_errno_h='<'errno.h'>'
7927      else
7928        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
7929 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7930 if test "${gl_cv_next_errno_h+set}" = set; then
7931   $as_echo_n "(cached) " >&6
7932 else
7933
7934           if test $ac_cv_header_errno_h = yes; then
7935             cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941 #include <errno.h>
7942
7943 _ACEOF
7944                                                                                                 case "$host_os" in
7945               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7946               *)    gl_absname_cpp="$ac_cpp" ;;
7947             esac
7948                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7949                sed -n '\#/errno.h#{
7950                  s#.*"\(.*/errno.h\)".*#\1#
7951                  s#^/[^/]#//&#
7952                  p
7953                  q
7954                }'`'"'
7955           else
7956             gl_cv_next_errno_h='<'errno.h'>'
7957           fi
7958
7959 fi
7960 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7961 $as_echo "$gl_cv_next_errno_h" >&6; }
7962      fi
7963      NEXT_ERRNO_H=$gl_cv_next_errno_h
7964
7965      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7966        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7967        gl_next_as_first_directive='<'errno.h'>'
7968      else
7969        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7970        gl_next_as_first_directive=$gl_cv_next_errno_h
7971      fi
7972      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7973
7974
7975
7976     ERRNO_H='errno.h'
7977   fi
7978
7979
7980   if test -n "$ERRNO_H"; then
7981     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7982 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7983 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7984   $as_echo_n "(cached) " >&6
7985 else
7986
7987       cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993
7994 #include <errno.h>
7995 #ifdef EMULTIHOP
7996 yes
7997 #endif
7998
7999 _ACEOF
8000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8001   $EGREP "yes" >/dev/null 2>&1; then
8002   gl_cv_header_errno_h_EMULTIHOP=yes
8003 else
8004   gl_cv_header_errno_h_EMULTIHOP=no
8005 fi
8006 rm -f conftest*
8007
8008       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
8009         cat >conftest.$ac_ext <<_ACEOF
8010 /* confdefs.h.  */
8011 _ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h.  */
8015
8016 #define _XOPEN_SOURCE_EXTENDED 1
8017 #include <errno.h>
8018 #ifdef EMULTIHOP
8019 yes
8020 #endif
8021
8022 _ACEOF
8023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8024   $EGREP "yes" >/dev/null 2>&1; then
8025   gl_cv_header_errno_h_EMULTIHOP=hidden
8026 fi
8027 rm -f conftest*
8028
8029         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8030                               if test "$cross_compiling" = yes; then
8031   # Depending upon the size, compute the lo and hi bounds.
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h.  */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h.  */
8038
8039 #define _XOPEN_SOURCE_EXTENDED 1
8040 #include <errno.h>
8041 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8042 #include <stdio.h>
8043 #include <stdlib.h>
8044
8045 int
8046 main ()
8047 {
8048 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
8049 test_array [0] = 0
8050
8051   ;
8052   return 0;
8053 }
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8057 case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8062 $as_echo "$ac_try_echo") >&5
8063   (eval "$ac_compile") 2>conftest.er1
8064   ac_status=$?
8065   grep -v '^ *+' conftest.er1 >conftest.err
8066   rm -f conftest.er1
8067   cat conftest.err >&5
8068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); } && {
8070          test -z "$ac_c_werror_flag" ||
8071          test ! -s conftest.err
8072        } && test -s conftest.$ac_objext; then
8073   ac_lo=0 ac_mid=0
8074   while :; do
8075     cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h.  */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h.  */
8081
8082 #define _XOPEN_SOURCE_EXTENDED 1
8083 #include <errno.h>
8084 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8085 #include <stdio.h>
8086 #include <stdlib.h>
8087
8088 int
8089 main ()
8090 {
8091 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8092 test_array [0] = 0
8093
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102   *) ac_try_echo=$ac_try;;
8103 esac
8104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8105 $as_echo "$ac_try_echo") >&5
8106   (eval "$ac_compile") 2>conftest.er1
8107   ac_status=$?
8108   grep -v '^ *+' conftest.er1 >conftest.err
8109   rm -f conftest.er1
8110   cat conftest.err >&5
8111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } && {
8113          test -z "$ac_c_werror_flag" ||
8114          test ! -s conftest.err
8115        } && test -s conftest.$ac_objext; then
8116   ac_hi=$ac_mid; break
8117 else
8118   $as_echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8120
8121         ac_lo=`expr $ac_mid + 1`
8122                         if test $ac_lo -le $ac_mid; then
8123                           ac_lo= ac_hi=
8124                           break
8125                         fi
8126                         ac_mid=`expr 2 '*' $ac_mid + 1`
8127 fi
8128
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130   done
8131 else
8132   $as_echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135         cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141
8142 #define _XOPEN_SOURCE_EXTENDED 1
8143 #include <errno.h>
8144 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8145 #include <stdio.h>
8146 #include <stdlib.h>
8147
8148 int
8149 main ()
8150 {
8151 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
8152 test_array [0] = 0
8153
8154   ;
8155   return 0;
8156 }
8157 _ACEOF
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8160 case "(($ac_try" in
8161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162   *) ac_try_echo=$ac_try;;
8163 esac
8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165 $as_echo "$ac_try_echo") >&5
8166   (eval "$ac_compile") 2>conftest.er1
8167   ac_status=$?
8168   grep -v '^ *+' conftest.er1 >conftest.err
8169   rm -f conftest.er1
8170   cat conftest.err >&5
8171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); } && {
8173          test -z "$ac_c_werror_flag" ||
8174          test ! -s conftest.err
8175        } && test -s conftest.$ac_objext; then
8176   ac_hi=-1 ac_mid=-1
8177   while :; do
8178     cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184
8185 #define _XOPEN_SOURCE_EXTENDED 1
8186 #include <errno.h>
8187 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8188 #include <stdio.h>
8189 #include <stdlib.h>
8190
8191 int
8192 main ()
8193 {
8194 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
8195 test_array [0] = 0
8196
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext
8202 if { (ac_try="$ac_compile"
8203 case "(($ac_try" in
8204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205   *) ac_try_echo=$ac_try;;
8206 esac
8207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8208 $as_echo "$ac_try_echo") >&5
8209   (eval "$ac_compile") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } && {
8216          test -z "$ac_c_werror_flag" ||
8217          test ! -s conftest.err
8218        } && test -s conftest.$ac_objext; then
8219   ac_lo=$ac_mid; break
8220 else
8221   $as_echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224         ac_hi=`expr '(' $ac_mid ')' - 1`
8225                         if test $ac_mid -le $ac_hi; then
8226                           ac_lo= ac_hi=
8227                           break
8228                         fi
8229                         ac_mid=`expr 2 '*' $ac_mid`
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233   done
8234 else
8235   $as_echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238         ac_lo= ac_hi=
8239 fi
8240
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 # Binary search between lo and hi bounds.
8246 while test "x$ac_lo" != "x$ac_hi"; do
8247   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8248   cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254
8255 #define _XOPEN_SOURCE_EXTENDED 1
8256 #include <errno.h>
8257 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8258 #include <stdio.h>
8259 #include <stdlib.h>
8260
8261 int
8262 main ()
8263 {
8264 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8265 test_array [0] = 0
8266
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8273 case "(($ac_try" in
8274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275   *) ac_try_echo=$ac_try;;
8276 esac
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279   (eval "$ac_compile") 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } && {
8286          test -z "$ac_c_werror_flag" ||
8287          test ! -s conftest.err
8288        } && test -s conftest.$ac_objext; then
8289   ac_hi=$ac_mid
8290 else
8291   $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294         ac_lo=`expr '(' $ac_mid ')' + 1`
8295 fi
8296
8297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 done
8299 case $ac_lo in
8300 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
8301 '')  ;;
8302 esac
8303 else
8304   cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310
8311 #define _XOPEN_SOURCE_EXTENDED 1
8312 #include <errno.h>
8313 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8314 #include <stdio.h>
8315 #include <stdlib.h>
8316
8317 static long int longval () { return EMULTIHOP; }
8318 static unsigned long int ulongval () { return EMULTIHOP; }
8319 #include <stdio.h>
8320 #include <stdlib.h>
8321 int
8322 main ()
8323 {
8324
8325   FILE *f = fopen ("conftest.val", "w");
8326   if (! f)
8327     return 1;
8328   if ((EMULTIHOP) < 0)
8329     {
8330       long int i = longval ();
8331       if (i != (EMULTIHOP))
8332         return 1;
8333       fprintf (f, "%ld", i);
8334     }
8335   else
8336     {
8337       unsigned long int i = ulongval ();
8338       if (i != (EMULTIHOP))
8339         return 1;
8340       fprintf (f, "%lu", i);
8341     }
8342   /* Do not output a trailing newline, as this causes \r\n confusion
8343      on some platforms.  */
8344   return ferror (f) || fclose (f) != 0;
8345
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest$ac_exeext
8351 if { (ac_try="$ac_link"
8352 case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357 $as_echo "$ac_try_echo") >&5
8358   (eval "$ac_link") 2>&5
8359   ac_status=$?
8360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8362   { (case "(($ac_try" in
8363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364   *) ac_try_echo=$ac_try;;
8365 esac
8366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8367 $as_echo "$ac_try_echo") >&5
8368   (eval "$ac_try") 2>&5
8369   ac_status=$?
8370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
8373 else
8374   $as_echo "$as_me: program exited with status $ac_status" >&5
8375 $as_echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8377
8378 fi
8379 rm -rf conftest.dSYM
8380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8381 fi
8382 rm -f conftest.val
8383         fi
8384       fi
8385
8386 fi
8387 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8388 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8389     case $gl_cv_header_errno_h_EMULTIHOP in
8390       yes | no)
8391         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8392         ;;
8393       *)
8394         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8395         ;;
8396     esac
8397
8398
8399   fi
8400
8401
8402   if test -n "$ERRNO_H"; then
8403     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
8404 $as_echo_n "checking for ENOLINK value... " >&6; }
8405 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
8406   $as_echo_n "(cached) " >&6
8407 else
8408
8409       cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415
8416 #include <errno.h>
8417 #ifdef ENOLINK
8418 yes
8419 #endif
8420
8421 _ACEOF
8422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8423   $EGREP "yes" >/dev/null 2>&1; then
8424   gl_cv_header_errno_h_ENOLINK=yes
8425 else
8426   gl_cv_header_errno_h_ENOLINK=no
8427 fi
8428 rm -f conftest*
8429
8430       if test $gl_cv_header_errno_h_ENOLINK = no; then
8431         cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437
8438 #define _XOPEN_SOURCE_EXTENDED 1
8439 #include <errno.h>
8440 #ifdef ENOLINK
8441 yes
8442 #endif
8443
8444 _ACEOF
8445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8446   $EGREP "yes" >/dev/null 2>&1; then
8447   gl_cv_header_errno_h_ENOLINK=hidden
8448 fi
8449 rm -f conftest*
8450
8451         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
8452                               if test "$cross_compiling" = yes; then
8453   # Depending upon the size, compute the lo and hi bounds.
8454 cat >conftest.$ac_ext <<_ACEOF
8455 /* confdefs.h.  */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h.  */
8460
8461 #define _XOPEN_SOURCE_EXTENDED 1
8462 #include <errno.h>
8463 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8464 #include <stdio.h>
8465 #include <stdlib.h>
8466
8467 int
8468 main ()
8469 {
8470 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
8471 test_array [0] = 0
8472
8473   ;
8474   return 0;
8475 }
8476 _ACEOF
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8479 case "(($ac_try" in
8480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481   *) ac_try_echo=$ac_try;;
8482 esac
8483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8484 $as_echo "$ac_try_echo") >&5
8485   (eval "$ac_compile") 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } && {
8492          test -z "$ac_c_werror_flag" ||
8493          test ! -s conftest.err
8494        } && test -s conftest.$ac_objext; then
8495   ac_lo=0 ac_mid=0
8496   while :; do
8497     cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504 #define _XOPEN_SOURCE_EXTENDED 1
8505 #include <errno.h>
8506 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8507 #include <stdio.h>
8508 #include <stdlib.h>
8509
8510 int
8511 main ()
8512 {
8513 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8514 test_array [0] = 0
8515
8516   ;
8517   return 0;
8518 }
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527 $as_echo "$ac_try_echo") >&5
8528   (eval "$ac_compile") 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } && {
8535          test -z "$ac_c_werror_flag" ||
8536          test ! -s conftest.err
8537        } && test -s conftest.$ac_objext; then
8538   ac_hi=$ac_mid; break
8539 else
8540   $as_echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543         ac_lo=`expr $ac_mid + 1`
8544                         if test $ac_lo -le $ac_mid; then
8545                           ac_lo= ac_hi=
8546                           break
8547                         fi
8548                         ac_mid=`expr 2 '*' $ac_mid + 1`
8549 fi
8550
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552   done
8553 else
8554   $as_echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557         cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563
8564 #define _XOPEN_SOURCE_EXTENDED 1
8565 #include <errno.h>
8566 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8567 #include <stdio.h>
8568 #include <stdlib.h>
8569
8570 int
8571 main ()
8572 {
8573 static int test_array [1 - 2 * !((ENOLINK) < 0)];
8574 test_array [0] = 0
8575
8576   ;
8577   return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext
8581 if { (ac_try="$ac_compile"
8582 case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8587 $as_echo "$ac_try_echo") >&5
8588   (eval "$ac_compile") 2>conftest.er1
8589   ac_status=$?
8590   grep -v '^ *+' conftest.er1 >conftest.err
8591   rm -f conftest.er1
8592   cat conftest.err >&5
8593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594   (exit $ac_status); } && {
8595          test -z "$ac_c_werror_flag" ||
8596          test ! -s conftest.err
8597        } && test -s conftest.$ac_objext; then
8598   ac_hi=-1 ac_mid=-1
8599   while :; do
8600     cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606
8607 #define _XOPEN_SOURCE_EXTENDED 1
8608 #include <errno.h>
8609 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8610 #include <stdio.h>
8611 #include <stdlib.h>
8612
8613 int
8614 main ()
8615 {
8616 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
8617 test_array [0] = 0
8618
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8630 $as_echo "$ac_try_echo") >&5
8631   (eval "$ac_compile") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } && {
8638          test -z "$ac_c_werror_flag" ||
8639          test ! -s conftest.err
8640        } && test -s conftest.$ac_objext; then
8641   ac_lo=$ac_mid; break
8642 else
8643   $as_echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646         ac_hi=`expr '(' $ac_mid ')' - 1`
8647                         if test $ac_mid -le $ac_hi; then
8648                           ac_lo= ac_hi=
8649                           break
8650                         fi
8651                         ac_mid=`expr 2 '*' $ac_mid`
8652 fi
8653
8654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8655   done
8656 else
8657   $as_echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660         ac_lo= ac_hi=
8661 fi
8662
8663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8664 fi
8665
8666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8667 # Binary search between lo and hi bounds.
8668 while test "x$ac_lo" != "x$ac_hi"; do
8669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8670   cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676
8677 #define _XOPEN_SOURCE_EXTENDED 1
8678 #include <errno.h>
8679 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8680 #include <stdio.h>
8681 #include <stdlib.h>
8682
8683 int
8684 main ()
8685 {
8686 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8687 test_array [0] = 0
8688
8689   ;
8690   return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8700 $as_echo "$ac_try_echo") >&5
8701   (eval "$ac_compile") 2>conftest.er1
8702   ac_status=$?
8703   grep -v '^ *+' conftest.er1 >conftest.err
8704   rm -f conftest.er1
8705   cat conftest.err >&5
8706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } && {
8708          test -z "$ac_c_werror_flag" ||
8709          test ! -s conftest.err
8710        } && test -s conftest.$ac_objext; then
8711   ac_hi=$ac_mid
8712 else
8713   $as_echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716         ac_lo=`expr '(' $ac_mid ')' + 1`
8717 fi
8718
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 done
8721 case $ac_lo in
8722 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
8723 '')  ;;
8724 esac
8725 else
8726   cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h.  */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h.  */
8732
8733 #define _XOPEN_SOURCE_EXTENDED 1
8734 #include <errno.h>
8735 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8736 #include <stdio.h>
8737 #include <stdlib.h>
8738
8739 static long int longval () { return ENOLINK; }
8740 static unsigned long int ulongval () { return ENOLINK; }
8741 #include <stdio.h>
8742 #include <stdlib.h>
8743 int
8744 main ()
8745 {
8746
8747   FILE *f = fopen ("conftest.val", "w");
8748   if (! f)
8749     return 1;
8750   if ((ENOLINK) < 0)
8751     {
8752       long int i = longval ();
8753       if (i != (ENOLINK))
8754         return 1;
8755       fprintf (f, "%ld", i);
8756     }
8757   else
8758     {
8759       unsigned long int i = ulongval ();
8760       if (i != (ENOLINK))
8761         return 1;
8762       fprintf (f, "%lu", i);
8763     }
8764   /* Do not output a trailing newline, as this causes \r\n confusion
8765      on some platforms.  */
8766   return ferror (f) || fclose (f) != 0;
8767
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest$ac_exeext
8773 if { (ac_try="$ac_link"
8774 case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8779 $as_echo "$ac_try_echo") >&5
8780   (eval "$ac_link") 2>&5
8781   ac_status=$?
8782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8784   { (case "(($ac_try" in
8785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786   *) ac_try_echo=$ac_try;;
8787 esac
8788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8789 $as_echo "$ac_try_echo") >&5
8790   (eval "$ac_try") 2>&5
8791   ac_status=$?
8792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
8795 else
8796   $as_echo "$as_me: program exited with status $ac_status" >&5
8797 $as_echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800 fi
8801 rm -rf conftest.dSYM
8802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8803 fi
8804 rm -f conftest.val
8805         fi
8806       fi
8807
8808 fi
8809 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
8810 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8811     case $gl_cv_header_errno_h_ENOLINK in
8812       yes | no)
8813         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8814         ;;
8815       *)
8816         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8817         ;;
8818     esac
8819
8820
8821   fi
8822
8823
8824   if test -n "$ERRNO_H"; then
8825     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
8826 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8827 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
8828   $as_echo_n "(cached) " >&6
8829 else
8830
8831       cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837
8838 #include <errno.h>
8839 #ifdef EOVERFLOW
8840 yes
8841 #endif
8842
8843 _ACEOF
8844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8845   $EGREP "yes" >/dev/null 2>&1; then
8846   gl_cv_header_errno_h_EOVERFLOW=yes
8847 else
8848   gl_cv_header_errno_h_EOVERFLOW=no
8849 fi
8850 rm -f conftest*
8851
8852       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8853         cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859
8860 #define _XOPEN_SOURCE_EXTENDED 1
8861 #include <errno.h>
8862 #ifdef EOVERFLOW
8863 yes
8864 #endif
8865
8866 _ACEOF
8867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8868   $EGREP "yes" >/dev/null 2>&1; then
8869   gl_cv_header_errno_h_EOVERFLOW=hidden
8870 fi
8871 rm -f conftest*
8872
8873         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8874                               if test "$cross_compiling" = yes; then
8875   # Depending upon the size, compute the lo and hi bounds.
8876 cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882
8883 #define _XOPEN_SOURCE_EXTENDED 1
8884 #include <errno.h>
8885 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8886 #include <stdio.h>
8887 #include <stdlib.h>
8888
8889 int
8890 main ()
8891 {
8892 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
8893 test_array [0] = 0
8894
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 rm -f conftest.$ac_objext
8900 if { (ac_try="$ac_compile"
8901 case "(($ac_try" in
8902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903   *) ac_try_echo=$ac_try;;
8904 esac
8905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8906 $as_echo "$ac_try_echo") >&5
8907   (eval "$ac_compile") 2>conftest.er1
8908   ac_status=$?
8909   grep -v '^ *+' conftest.er1 >conftest.err
8910   rm -f conftest.er1
8911   cat conftest.err >&5
8912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); } && {
8914          test -z "$ac_c_werror_flag" ||
8915          test ! -s conftest.err
8916        } && test -s conftest.$ac_objext; then
8917   ac_lo=0 ac_mid=0
8918   while :; do
8919     cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925
8926 #define _XOPEN_SOURCE_EXTENDED 1
8927 #include <errno.h>
8928 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8929 #include <stdio.h>
8930 #include <stdlib.h>
8931
8932 int
8933 main ()
8934 {
8935 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8936 test_array [0] = 0
8937
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext
8943 if { (ac_try="$ac_compile"
8944 case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8949 $as_echo "$ac_try_echo") >&5
8950   (eval "$ac_compile") 2>conftest.er1
8951   ac_status=$?
8952   grep -v '^ *+' conftest.er1 >conftest.err
8953   rm -f conftest.er1
8954   cat conftest.err >&5
8955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); } && {
8957          test -z "$ac_c_werror_flag" ||
8958          test ! -s conftest.err
8959        } && test -s conftest.$ac_objext; then
8960   ac_hi=$ac_mid; break
8961 else
8962   $as_echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965         ac_lo=`expr $ac_mid + 1`
8966                         if test $ac_lo -le $ac_mid; then
8967                           ac_lo= ac_hi=
8968                           break
8969                         fi
8970                         ac_mid=`expr 2 '*' $ac_mid + 1`
8971 fi
8972
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974   done
8975 else
8976   $as_echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979         cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985
8986 #define _XOPEN_SOURCE_EXTENDED 1
8987 #include <errno.h>
8988 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8989 #include <stdio.h>
8990 #include <stdlib.h>
8991
8992 int
8993 main ()
8994 {
8995 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8996 test_array [0] = 0
8997
8998   ;
8999   return 0;
9000 }
9001 _ACEOF
9002 rm -f conftest.$ac_objext
9003 if { (ac_try="$ac_compile"
9004 case "(($ac_try" in
9005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006   *) ac_try_echo=$ac_try;;
9007 esac
9008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9009 $as_echo "$ac_try_echo") >&5
9010   (eval "$ac_compile") 2>conftest.er1
9011   ac_status=$?
9012   grep -v '^ *+' conftest.er1 >conftest.err
9013   rm -f conftest.er1
9014   cat conftest.err >&5
9015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } && {
9017          test -z "$ac_c_werror_flag" ||
9018          test ! -s conftest.err
9019        } && test -s conftest.$ac_objext; then
9020   ac_hi=-1 ac_mid=-1
9021   while :; do
9022     cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h.  */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h.  */
9028
9029 #define _XOPEN_SOURCE_EXTENDED 1
9030 #include <errno.h>
9031 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9032 #include <stdio.h>
9033 #include <stdlib.h>
9034
9035 int
9036 main ()
9037 {
9038 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
9039 test_array [0] = 0
9040
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9047 case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9052 $as_echo "$ac_try_echo") >&5
9053   (eval "$ac_compile") 2>conftest.er1
9054   ac_status=$?
9055   grep -v '^ *+' conftest.er1 >conftest.err
9056   rm -f conftest.er1
9057   cat conftest.err >&5
9058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } && {
9060          test -z "$ac_c_werror_flag" ||
9061          test ! -s conftest.err
9062        } && test -s conftest.$ac_objext; then
9063   ac_lo=$ac_mid; break
9064 else
9065   $as_echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068         ac_hi=`expr '(' $ac_mid ')' - 1`
9069                         if test $ac_mid -le $ac_hi; then
9070                           ac_lo= ac_hi=
9071                           break
9072                         fi
9073                         ac_mid=`expr 2 '*' $ac_mid`
9074 fi
9075
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077   done
9078 else
9079   $as_echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082         ac_lo= ac_hi=
9083 fi
9084
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 fi
9087
9088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 # Binary search between lo and hi bounds.
9090 while test "x$ac_lo" != "x$ac_hi"; do
9091   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9092   cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h.  */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h.  */
9098
9099 #define _XOPEN_SOURCE_EXTENDED 1
9100 #include <errno.h>
9101 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9102 #include <stdio.h>
9103 #include <stdlib.h>
9104
9105 int
9106 main ()
9107 {
9108 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9109 test_array [0] = 0
9110
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext
9116 if { (ac_try="$ac_compile"
9117 case "(($ac_try" in
9118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9119   *) ac_try_echo=$ac_try;;
9120 esac
9121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123   (eval "$ac_compile") 2>conftest.er1
9124   ac_status=$?
9125   grep -v '^ *+' conftest.er1 >conftest.err
9126   rm -f conftest.er1
9127   cat conftest.err >&5
9128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129   (exit $ac_status); } && {
9130          test -z "$ac_c_werror_flag" ||
9131          test ! -s conftest.err
9132        } && test -s conftest.$ac_objext; then
9133   ac_hi=$ac_mid
9134 else
9135   $as_echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138         ac_lo=`expr '(' $ac_mid ')' + 1`
9139 fi
9140
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 done
9143 case $ac_lo in
9144 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
9145 '')  ;;
9146 esac
9147 else
9148   cat >conftest.$ac_ext <<_ACEOF
9149 /* confdefs.h.  */
9150 _ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h.  */
9154
9155 #define _XOPEN_SOURCE_EXTENDED 1
9156 #include <errno.h>
9157 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9158 #include <stdio.h>
9159 #include <stdlib.h>
9160
9161 static long int longval () { return EOVERFLOW; }
9162 static unsigned long int ulongval () { return EOVERFLOW; }
9163 #include <stdio.h>
9164 #include <stdlib.h>
9165 int
9166 main ()
9167 {
9168
9169   FILE *f = fopen ("conftest.val", "w");
9170   if (! f)
9171     return 1;
9172   if ((EOVERFLOW) < 0)
9173     {
9174       long int i = longval ();
9175       if (i != (EOVERFLOW))
9176         return 1;
9177       fprintf (f, "%ld", i);
9178     }
9179   else
9180     {
9181       unsigned long int i = ulongval ();
9182       if (i != (EOVERFLOW))
9183         return 1;
9184       fprintf (f, "%lu", i);
9185     }
9186   /* Do not output a trailing newline, as this causes \r\n confusion
9187      on some platforms.  */
9188   return ferror (f) || fclose (f) != 0;
9189
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198   *) ac_try_echo=$ac_try;;
9199 esac
9200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9201 $as_echo "$ac_try_echo") >&5
9202   (eval "$ac_link") 2>&5
9203   ac_status=$?
9204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9206   { (case "(($ac_try" in
9207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208   *) ac_try_echo=$ac_try;;
9209 esac
9210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9211 $as_echo "$ac_try_echo") >&5
9212   (eval "$ac_try") 2>&5
9213   ac_status=$?
9214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215   (exit $ac_status); }; }; then
9216   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
9217 else
9218   $as_echo "$as_me: program exited with status $ac_status" >&5
9219 $as_echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 fi
9223 rm -rf conftest.dSYM
9224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9225 fi
9226 rm -f conftest.val
9227         fi
9228       fi
9229
9230 fi
9231 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9232 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9233     case $gl_cv_header_errno_h_EOVERFLOW in
9234       yes | no)
9235         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9236         ;;
9237       *)
9238         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9239         ;;
9240     esac
9241
9242
9243   fi
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253   GNULIB_DPRINTF=0;
9254   GNULIB_FCLOSE=0;
9255   GNULIB_FFLUSH=0;
9256   GNULIB_FOPEN=0;
9257   GNULIB_FPRINTF=0;
9258   GNULIB_FPRINTF_POSIX=0;
9259   GNULIB_FPURGE=0;
9260   GNULIB_FPUTC=0;
9261   GNULIB_FPUTS=0;
9262   GNULIB_FREOPEN=0;
9263   GNULIB_FSEEK=0;
9264   GNULIB_FSEEKO=0;
9265   GNULIB_FTELL=0;
9266   GNULIB_FTELLO=0;
9267   GNULIB_FWRITE=0;
9268   GNULIB_GETDELIM=0;
9269   GNULIB_GETLINE=0;
9270   GNULIB_OBSTACK_PRINTF=0;
9271   GNULIB_OBSTACK_PRINTF_POSIX=0;
9272   GNULIB_PERROR=0;
9273   GNULIB_POPEN=0;
9274   GNULIB_PRINTF=0;
9275   GNULIB_PRINTF_POSIX=0;
9276   GNULIB_PUTC=0;
9277   GNULIB_PUTCHAR=0;
9278   GNULIB_PUTS=0;
9279   GNULIB_REMOVE=0;
9280   GNULIB_RENAME=0;
9281   GNULIB_RENAMEAT=0;
9282   GNULIB_SNPRINTF=0;
9283   GNULIB_SPRINTF_POSIX=0;
9284   GNULIB_STDIO_H_SIGPIPE=0;
9285   GNULIB_TMPFILE=0;
9286   GNULIB_VASPRINTF=0;
9287   GNULIB_VDPRINTF=0;
9288   GNULIB_VFPRINTF=0;
9289   GNULIB_VFPRINTF_POSIX=0;
9290   GNULIB_VPRINTF=0;
9291   GNULIB_VPRINTF_POSIX=0;
9292   GNULIB_VSNPRINTF=0;
9293   GNULIB_VSPRINTF_POSIX=0;
9294     HAVE_DECL_FPURGE=1;
9295   HAVE_DECL_GETDELIM=1;
9296   HAVE_DECL_GETLINE=1;
9297   HAVE_DECL_OBSTACK_PRINTF=1;
9298   HAVE_DECL_SNPRINTF=1;
9299   HAVE_DECL_VSNPRINTF=1;
9300   HAVE_DPRINTF=1;
9301   HAVE_FSEEKO=1;
9302   HAVE_FTELLO=1;
9303   HAVE_RENAMEAT=1;
9304   HAVE_VASPRINTF=1;
9305   HAVE_VDPRINTF=1;
9306   REPLACE_DPRINTF=0;
9307   REPLACE_FCLOSE=0;
9308   REPLACE_FFLUSH=0;
9309   REPLACE_FOPEN=0;
9310   REPLACE_FPRINTF=0;
9311   REPLACE_FPURGE=0;
9312   REPLACE_FREOPEN=0;
9313   REPLACE_FSEEK=0;
9314   REPLACE_FSEEKO=0;
9315   REPLACE_FTELL=0;
9316   REPLACE_FTELLO=0;
9317   REPLACE_GETDELIM=0;
9318   REPLACE_GETLINE=0;
9319   REPLACE_OBSTACK_PRINTF=0;
9320   REPLACE_PERROR=0;
9321   REPLACE_POPEN=0;
9322   REPLACE_PRINTF=0;
9323   REPLACE_REMOVE=0;
9324   REPLACE_RENAME=0;
9325   REPLACE_RENAMEAT=0;
9326   REPLACE_SNPRINTF=0;
9327   REPLACE_SPRINTF=0;
9328   REPLACE_STDIO_WRITE_FUNCS=0;
9329   REPLACE_TMPFILE=0;
9330   REPLACE_VASPRINTF=0;
9331   REPLACE_VDPRINTF=0;
9332   REPLACE_VFPRINTF=0;
9333   REPLACE_VPRINTF=0;
9334   REPLACE_VSNPRINTF=0;
9335   REPLACE_VSPRINTF=0;
9336
9337
9338
9339
9340
9341
9342   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
9343 $as_echo_n "checking for fseeko... " >&6; }
9344 if test "${gl_cv_func_fseeko+set}" = set; then
9345   $as_echo_n "(cached) " >&6
9346 else
9347
9348       cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 #include <stdio.h>
9355
9356 int
9357 main ()
9358 {
9359 fseeko (stdin, 0, 0);
9360   ;
9361   return 0;
9362 }
9363 _ACEOF
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (ac_try="$ac_link"
9366 case "(($ac_try" in
9367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368   *) ac_try_echo=$ac_try;;
9369 esac
9370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372   (eval "$ac_link") 2>conftest.er1
9373   ac_status=$?
9374   grep -v '^ *+' conftest.er1 >conftest.err
9375   rm -f conftest.er1
9376   cat conftest.err >&5
9377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } && {
9379          test -z "$ac_c_werror_flag" ||
9380          test ! -s conftest.err
9381        } && test -s conftest$ac_exeext && {
9382          test "$cross_compiling" = yes ||
9383          $as_test_x conftest$ac_exeext
9384        }; then
9385   gl_cv_func_fseeko=yes
9386 else
9387   $as_echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390         gl_cv_func_fseeko=no
9391 fi
9392
9393 rm -rf conftest.dSYM
9394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9395       conftest$ac_exeext conftest.$ac_ext
9396
9397 fi
9398 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
9399 $as_echo "$gl_cv_func_fseeko" >&6; }
9400
9401
9402     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
9403 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
9404 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
9405   $as_echo_n "(cached) " >&6
9406 else
9407   cat >conftest.$ac_ext <<_ACEOF
9408 /* confdefs.h.  */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h.  */
9413 #include <stdio.h>
9414 int
9415 main ()
9416 {
9417 #if defined __SL64 && defined __SCLE /* cygwin */
9418   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
9419      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
9420      it is easier to do a version check than building a runtime test.  */
9421 # include <cygwin/version.h>
9422 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
9423   choke me
9424 # endif
9425 #endif
9426   ;
9427   return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (ac_try="$ac_link"
9432 case "(($ac_try" in
9433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434   *) ac_try_echo=$ac_try;;
9435 esac
9436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9437 $as_echo "$ac_try_echo") >&5
9438   (eval "$ac_link") 2>conftest.er1
9439   ac_status=$?
9440   grep -v '^ *+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } && {
9445          test -z "$ac_c_werror_flag" ||
9446          test ! -s conftest.err
9447        } && test -s conftest$ac_exeext && {
9448          test "$cross_compiling" = yes ||
9449          $as_test_x conftest$ac_exeext
9450        }; then
9451   gl_cv_var_stdin_large_offset=yes
9452 else
9453   $as_echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9455
9456         gl_cv_var_stdin_large_offset=no
9457 fi
9458
9459 rm -rf conftest.dSYM
9460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9461       conftest$ac_exeext conftest.$ac_ext
9462 fi
9463 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
9464 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491   GNULIB_SOCKET=0;
9492   GNULIB_CONNECT=0;
9493   GNULIB_ACCEPT=0;
9494   GNULIB_BIND=0;
9495   GNULIB_GETPEERNAME=0;
9496   GNULIB_GETSOCKNAME=0;
9497   GNULIB_GETSOCKOPT=0;
9498   GNULIB_LISTEN=0;
9499   GNULIB_RECV=0;
9500   GNULIB_SEND=0;
9501   GNULIB_RECVFROM=0;
9502   GNULIB_SENDTO=0;
9503   GNULIB_SETSOCKOPT=0;
9504   GNULIB_SHUTDOWN=0;
9505   GNULIB_ACCEPT4=0;
9506   HAVE_STRUCT_SOCKADDR_STORAGE=1;
9507   HAVE_SA_FAMILY_T=1;
9508   HAVE_ACCEPT4=1;
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
9521 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9522 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
9523   $as_echo_n "(cached) " >&6
9524 else
9525
9526       cat >conftest.$ac_ext <<_ACEOF
9527 /* confdefs.h.  */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h.  */
9532 #include <sys/socket.h>
9533 int
9534 main ()
9535 {
9536
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9543 case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549   (eval "$ac_compile") 2>conftest.er1
9550   ac_status=$?
9551   grep -v '^ *+' conftest.er1 >conftest.err
9552   rm -f conftest.er1
9553   cat conftest.err >&5
9554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } && {
9556          test -z "$ac_c_werror_flag" ||
9557          test ! -s conftest.err
9558        } && test -s conftest.$ac_objext; then
9559   gl_cv_header_sys_socket_h_selfcontained=yes
9560 else
9561   $as_echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564         gl_cv_header_sys_socket_h_selfcontained=no
9565 fi
9566
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568
9569 fi
9570 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9571 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9572   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9573
9574 for ac_func in shutdown
9575 do
9576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9577 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9578 $as_echo_n "checking for $ac_func... " >&6; }
9579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9580   $as_echo_n "(cached) " >&6
9581 else
9582   cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h.  */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h.  */
9588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9590 #define $ac_func innocuous_$ac_func
9591
9592 /* System header to define __stub macros and hopefully few prototypes,
9593     which can conflict with char $ac_func (); below.
9594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9595     <limits.h> exists even on freestanding compilers.  */
9596
9597 #ifdef __STDC__
9598 # include <limits.h>
9599 #else
9600 # include <assert.h>
9601 #endif
9602
9603 #undef $ac_func
9604
9605 /* Override any GCC internal prototype to avoid an error.
9606    Use char because int might match the return type of a GCC
9607    builtin and then its argument prototype would still apply.  */
9608 #ifdef __cplusplus
9609 extern "C"
9610 #endif
9611 char $ac_func ();
9612 /* The GNU C library defines this for functions which it implements
9613     to always fail with ENOSYS.  Some functions are actually named
9614     something starting with __ and the normal name is an alias.  */
9615 #if defined __stub_$ac_func || defined __stub___$ac_func
9616 choke me
9617 #endif
9618
9619 int
9620 main ()
9621 {
9622 return $ac_func ();
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (ac_try="$ac_link"
9629 case "(($ac_try" in
9630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631   *) ac_try_echo=$ac_try;;
9632 esac
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635   (eval "$ac_link") 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } && {
9642          test -z "$ac_c_werror_flag" ||
9643          test ! -s conftest.err
9644        } && test -s conftest$ac_exeext && {
9645          test "$cross_compiling" = yes ||
9646          $as_test_x conftest$ac_exeext
9647        }; then
9648   eval "$as_ac_var=yes"
9649 else
9650   $as_echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653         eval "$as_ac_var=no"
9654 fi
9655
9656 rm -rf conftest.dSYM
9657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9658       conftest$ac_exeext conftest.$ac_ext
9659 fi
9660 ac_res=`eval 'as_val=${'$as_ac_var'}
9661                  $as_echo "$as_val"'`
9662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9663 $as_echo "$ac_res" >&6; }
9664 as_val=`eval 'as_val=${'$as_ac_var'}
9665                  $as_echo "$as_val"'`
9666    if test "x$as_val" = x""yes; then
9667   cat >>confdefs.h <<_ACEOF
9668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9669 _ACEOF
9670
9671 fi
9672 done
9673
9674     if test $ac_cv_func_shutdown = yes; then
9675       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9676 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9677 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
9678   $as_echo_n "(cached) " >&6
9679 else
9680
9681           cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687 #include <sys/socket.h>
9688 int
9689 main ()
9690 {
9691 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext
9697 if { (ac_try="$ac_compile"
9698 case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703 $as_echo "$ac_try_echo") >&5
9704   (eval "$ac_compile") 2>conftest.er1
9705   ac_status=$?
9706   grep -v '^ *+' conftest.er1 >conftest.err
9707   rm -f conftest.er1
9708   cat conftest.err >&5
9709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); } && {
9711          test -z "$ac_c_werror_flag" ||
9712          test ! -s conftest.err
9713        } && test -s conftest.$ac_objext; then
9714   gl_cv_header_sys_socket_h_shut=yes
9715 else
9716   $as_echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719         gl_cv_header_sys_socket_h_shut=no
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723
9724 fi
9725 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
9726 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9727       if test $gl_cv_header_sys_socket_h_shut = no; then
9728         SYS_SOCKET_H='sys/socket.h'
9729       fi
9730     fi
9731   fi
9732   # We need to check for ws2tcpip.h now.
9733
9734
9735
9736
9737
9738   :
9739
9740
9741
9742
9743
9744
9745
9746      if test $gl_cv_have_include_next = yes; then
9747        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9748      else
9749        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
9750 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9751 if test "${gl_cv_next_sys_socket_h+set}" = set; then
9752   $as_echo_n "(cached) " >&6
9753 else
9754
9755           if test $ac_cv_header_sys_socket_h = yes; then
9756             cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h.  */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h.  */
9762 #include <sys/socket.h>
9763
9764 _ACEOF
9765                                                                                                 case "$host_os" in
9766               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9767               *)    gl_absname_cpp="$ac_cpp" ;;
9768             esac
9769                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9770                sed -n '\#/sys/socket.h#{
9771                  s#.*"\(.*/sys/socket.h\)".*#\1#
9772                  s#^/[^/]#//&#
9773                  p
9774                  q
9775                }'`'"'
9776           else
9777             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9778           fi
9779
9780 fi
9781 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
9782 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9783      fi
9784      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9785
9786      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9787        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9788        gl_next_as_first_directive='<'sys/socket.h'>'
9789      else
9790        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9791        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9792      fi
9793      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9794
9795
9796
9797   if test $ac_cv_header_sys_socket_h = yes; then
9798     HAVE_SYS_SOCKET_H=1
9799     HAVE_WS2TCPIP_H=0
9800   else
9801     HAVE_SYS_SOCKET_H=0
9802
9803 for ac_header in ws2tcpip.h
9804 do
9805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9808 $as_echo_n "checking for $ac_header... " >&6; }
9809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9810   $as_echo_n "(cached) " >&6
9811 fi
9812 ac_res=`eval 'as_val=${'$as_ac_Header'}
9813                  $as_echo "$as_val"'`
9814                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9815 $as_echo "$ac_res" >&6; }
9816 else
9817   # Is the header compilable?
9818 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9819 $as_echo_n "checking $ac_header usability... " >&6; }
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h.  */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h.  */
9826 $ac_includes_default
9827 #include <$ac_header>
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (ac_try="$ac_compile"
9831 case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9836 $as_echo "$ac_try_echo") >&5
9837   (eval "$ac_compile") 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } && {
9844          test -z "$ac_c_werror_flag" ||
9845          test ! -s conftest.err
9846        } && test -s conftest.$ac_objext; then
9847   ac_header_compiler=yes
9848 else
9849   $as_echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852         ac_header_compiler=no
9853 fi
9854
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 $as_echo "$ac_header_compiler" >&6; }
9858
9859 # Is the header present?
9860 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 $as_echo_n "checking $ac_header presence... " >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h.  */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h.  */
9868 #include <$ac_header>
9869 _ACEOF
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9871 case "(($ac_try" in
9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873   *) ac_try_echo=$ac_try;;
9874 esac
9875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9876 $as_echo "$ac_try_echo") >&5
9877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9878   ac_status=$?
9879   grep -v '^ *+' conftest.er1 >conftest.err
9880   rm -f conftest.er1
9881   cat conftest.err >&5
9882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } >/dev/null && {
9884          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9885          test ! -s conftest.err
9886        }; then
9887   ac_header_preproc=yes
9888 else
9889   $as_echo "$as_me: failed program was:" >&5
9890 sed 's/^/| /' conftest.$ac_ext >&5
9891
9892   ac_header_preproc=no
9893 fi
9894
9895 rm -f conftest.err conftest.$ac_ext
9896 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9897 $as_echo "$ac_header_preproc" >&6; }
9898
9899 # So?  What about this header?
9900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9901   yes:no: )
9902     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9903 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9904     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9906     ac_header_preproc=yes
9907     ;;
9908   no:yes:* )
9909     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9910 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9912 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9914 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9915     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9916 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9917     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9919     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9920 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9921
9922     ;;
9923 esac
9924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9925 $as_echo_n "checking for $ac_header... " >&6; }
9926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9927   $as_echo_n "(cached) " >&6
9928 else
9929   eval "$as_ac_Header=\$ac_header_preproc"
9930 fi
9931 ac_res=`eval 'as_val=${'$as_ac_Header'}
9932                  $as_echo "$as_val"'`
9933                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9934 $as_echo "$ac_res" >&6; }
9935
9936 fi
9937 as_val=`eval 'as_val=${'$as_ac_Header'}
9938                  $as_echo "$as_val"'`
9939    if test "x$as_val" = x""yes; then
9940   cat >>confdefs.h <<_ACEOF
9941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9942 _ACEOF
9943
9944 fi
9945
9946 done
9947
9948     if test $ac_cv_header_ws2tcpip_h = yes; then
9949       HAVE_WS2TCPIP_H=1
9950     else
9951       HAVE_WS2TCPIP_H=0
9952     fi
9953   fi
9954
9955
9956
9957   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9958 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
9959 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9960   $as_echo_n "(cached) " >&6
9961 else
9962   ac_cv_type_struct_sockaddr_storage=no
9963 cat >conftest.$ac_ext <<_ACEOF
9964 /* confdefs.h.  */
9965 _ACEOF
9966 cat confdefs.h >>conftest.$ac_ext
9967 cat >>conftest.$ac_ext <<_ACEOF
9968 /* end confdefs.h.  */
9969
9970   /* sys/types.h is not needed according to POSIX, but the
9971      sys/socket.h in i386-unknown-freebsd4.10 and
9972      powerpc-apple-darwin5.5 required it. */
9973 #include <sys/types.h>
9974 #ifdef HAVE_SYS_SOCKET_H
9975 #include <sys/socket.h>
9976 #endif
9977 #ifdef HAVE_WS2TCPIP_H
9978 #include <ws2tcpip.h>
9979 #endif
9980
9981
9982 int
9983 main ()
9984 {
9985 if (sizeof (struct sockaddr_storage))
9986        return 0;
9987   ;
9988   return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9993 case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998 $as_echo "$ac_try_echo") >&5
9999   (eval "$ac_compile") 2>conftest.er1
10000   ac_status=$?
10001   grep -v '^ *+' conftest.er1 >conftest.err
10002   rm -f conftest.er1
10003   cat conftest.err >&5
10004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); } && {
10006          test -z "$ac_c_werror_flag" ||
10007          test ! -s conftest.err
10008        } && test -s conftest.$ac_objext; then
10009   cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015
10016   /* sys/types.h is not needed according to POSIX, but the
10017      sys/socket.h in i386-unknown-freebsd4.10 and
10018      powerpc-apple-darwin5.5 required it. */
10019 #include <sys/types.h>
10020 #ifdef HAVE_SYS_SOCKET_H
10021 #include <sys/socket.h>
10022 #endif
10023 #ifdef HAVE_WS2TCPIP_H
10024 #include <ws2tcpip.h>
10025 #endif
10026
10027
10028 int
10029 main ()
10030 {
10031 if (sizeof ((struct sockaddr_storage)))
10032           return 0;
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext
10038 if { (ac_try="$ac_compile"
10039 case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10044 $as_echo "$ac_try_echo") >&5
10045   (eval "$ac_compile") 2>conftest.er1
10046   ac_status=$?
10047   grep -v '^ *+' conftest.er1 >conftest.err
10048   rm -f conftest.er1
10049   cat conftest.err >&5
10050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); } && {
10052          test -z "$ac_c_werror_flag" ||
10053          test ! -s conftest.err
10054        } && test -s conftest.$ac_objext; then
10055   :
10056 else
10057   $as_echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060         ac_cv_type_struct_sockaddr_storage=yes
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064 else
10065   $as_echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10074 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
10075 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
10076
10077 cat >>confdefs.h <<_ACEOF
10078 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10079 _ACEOF
10080
10081
10082 fi
10083 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
10084 $as_echo_n "checking for sa_family_t... " >&6; }
10085 if test "${ac_cv_type_sa_family_t+set}" = set; then
10086   $as_echo_n "(cached) " >&6
10087 else
10088   ac_cv_type_sa_family_t=no
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095
10096   /* sys/types.h is not needed according to POSIX, but the
10097      sys/socket.h in i386-unknown-freebsd4.10 and
10098      powerpc-apple-darwin5.5 required it. */
10099 #include <sys/types.h>
10100 #ifdef HAVE_SYS_SOCKET_H
10101 #include <sys/socket.h>
10102 #endif
10103 #ifdef HAVE_WS2TCPIP_H
10104 #include <ws2tcpip.h>
10105 #endif
10106
10107
10108 int
10109 main ()
10110 {
10111 if (sizeof (sa_family_t))
10112        return 0;
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (ac_try="$ac_compile"
10119 case "(($ac_try" in
10120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121   *) ac_try_echo=$ac_try;;
10122 esac
10123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10124 $as_echo "$ac_try_echo") >&5
10125   (eval "$ac_compile") 2>conftest.er1
10126   ac_status=$?
10127   grep -v '^ *+' conftest.er1 >conftest.err
10128   rm -f conftest.er1
10129   cat conftest.err >&5
10130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); } && {
10132          test -z "$ac_c_werror_flag" ||
10133          test ! -s conftest.err
10134        } && test -s conftest.$ac_objext; then
10135   cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h.  */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h.  */
10141
10142   /* sys/types.h is not needed according to POSIX, but the
10143      sys/socket.h in i386-unknown-freebsd4.10 and
10144      powerpc-apple-darwin5.5 required it. */
10145 #include <sys/types.h>
10146 #ifdef HAVE_SYS_SOCKET_H
10147 #include <sys/socket.h>
10148 #endif
10149 #ifdef HAVE_WS2TCPIP_H
10150 #include <ws2tcpip.h>
10151 #endif
10152
10153
10154 int
10155 main ()
10156 {
10157 if (sizeof ((sa_family_t)))
10158           return 0;
10159   ;
10160   return 0;
10161 }
10162 _ACEOF
10163 rm -f conftest.$ac_objext
10164 if { (ac_try="$ac_compile"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10170 $as_echo "$ac_try_echo") >&5
10171   (eval "$ac_compile") 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } && {
10178          test -z "$ac_c_werror_flag" ||
10179          test ! -s conftest.err
10180        } && test -s conftest.$ac_objext; then
10181   :
10182 else
10183   $as_echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186         ac_cv_type_sa_family_t=yes
10187 fi
10188
10189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190 else
10191   $as_echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194
10195 fi
10196
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198 fi
10199 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
10200 $as_echo "$ac_cv_type_sa_family_t" >&6; }
10201 if test "x$ac_cv_type_sa_family_t" = x""yes; then
10202
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE_SA_FAMILY_T 1
10205 _ACEOF
10206
10207
10208 fi
10209
10210   if test $ac_cv_type_struct_sockaddr_storage = no; then
10211     HAVE_STRUCT_SOCKADDR_STORAGE=0
10212   fi
10213   if test $ac_cv_type_sa_family_t = no; then
10214     HAVE_SA_FAMILY_T=0
10215   fi
10216
10217
10218
10219
10220   :
10221
10222
10223
10224
10225
10226   if test $ac_cv_header_sys_socket_h != yes; then
10227
10228 for ac_header in winsock2.h
10229 do
10230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10232   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 $as_echo_n "checking for $ac_header... " >&6; }
10234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10235   $as_echo_n "(cached) " >&6
10236 fi
10237 ac_res=`eval 'as_val=${'$as_ac_Header'}
10238                  $as_echo "$as_val"'`
10239                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10240 $as_echo "$ac_res" >&6; }
10241 else
10242   # Is the header compilable?
10243 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10244 $as_echo_n "checking $ac_header usability... " >&6; }
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251 $ac_includes_default
10252 #include <$ac_header>
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (ac_try="$ac_compile"
10256 case "(($ac_try" in
10257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258   *) ac_try_echo=$ac_try;;
10259 esac
10260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10261 $as_echo "$ac_try_echo") >&5
10262   (eval "$ac_compile") 2>conftest.er1
10263   ac_status=$?
10264   grep -v '^ *+' conftest.er1 >conftest.err
10265   rm -f conftest.er1
10266   cat conftest.err >&5
10267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } && {
10269          test -z "$ac_c_werror_flag" ||
10270          test ! -s conftest.err
10271        } && test -s conftest.$ac_objext; then
10272   ac_header_compiler=yes
10273 else
10274   $as_echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277         ac_header_compiler=no
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282 $as_echo "$ac_header_compiler" >&6; }
10283
10284 # Is the header present?
10285 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286 $as_echo_n "checking $ac_header presence... " >&6; }
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <$ac_header>
10294 _ACEOF
10295 if { (ac_try="$ac_cpp conftest.$ac_ext"
10296 case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301 $as_echo "$ac_try_echo") >&5
10302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10303   ac_status=$?
10304   grep -v '^ *+' conftest.er1 >conftest.err
10305   rm -f conftest.er1
10306   cat conftest.err >&5
10307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } >/dev/null && {
10309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10310          test ! -s conftest.err
10311        }; then
10312   ac_header_preproc=yes
10313 else
10314   $as_echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317   ac_header_preproc=no
10318 fi
10319
10320 rm -f conftest.err conftest.$ac_ext
10321 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 $as_echo "$ac_header_preproc" >&6; }
10323
10324 # So?  What about this header?
10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326   yes:no: )
10327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331     ac_header_preproc=yes
10332     ;;
10333   no:yes:* )
10334     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10337 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10338     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10341 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10346
10347     ;;
10348 esac
10349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10350 $as_echo_n "checking for $ac_header... " >&6; }
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352   $as_echo_n "(cached) " >&6
10353 else
10354   eval "$as_ac_Header=\$ac_header_preproc"
10355 fi
10356 ac_res=`eval 'as_val=${'$as_ac_Header'}
10357                  $as_echo "$as_val"'`
10358                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10359 $as_echo "$ac_res" >&6; }
10360
10361 fi
10362 as_val=`eval 'as_val=${'$as_ac_Header'}
10363                  $as_echo "$as_val"'`
10364    if test "x$as_val" = x""yes; then
10365   cat >>confdefs.h <<_ACEOF
10366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10367 _ACEOF
10368
10369 fi
10370
10371 done
10372
10373   fi
10374   if test "$ac_cv_header_winsock2_h" = yes; then
10375     HAVE_WINSOCK2_H=1
10376     UNISTD_H_HAVE_WINSOCK2_H=1
10377     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10378   else
10379     HAVE_WINSOCK2_H=0
10380   fi
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400   for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
10401     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10402     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10403 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10404 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10405   $as_echo_n "(cached) " >&6
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413
10414 /* Some systems require prerequisite headers.  */
10415 #include <sys/types.h>
10416 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
10417 # include <sys/time.h>
10418 #endif
10419 #include <sys/select.h>
10420
10421 int
10422 main ()
10423 {
10424 #undef $gl_func
10425   (void) $gl_func;
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (ac_try="$ac_compile"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10437 $as_echo "$ac_try_echo") >&5
10438   (eval "$ac_compile") 2>conftest.er1
10439   ac_status=$?
10440   grep -v '^ *+' conftest.er1 >conftest.err
10441   rm -f conftest.er1
10442   cat conftest.err >&5
10443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } && {
10445          test -z "$ac_c_werror_flag" ||
10446          test ! -s conftest.err
10447        } && test -s conftest.$ac_objext; then
10448   eval "$as_gl_Symbol=yes"
10449 else
10450   $as_echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453         eval "$as_gl_Symbol=no"
10454 fi
10455
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 fi
10458 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10459                  $as_echo "$as_val"'`
10460                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10461 $as_echo "$ac_res" >&6; }
10462      as_val=`eval 'as_val=${'$as_gl_Symbol'}
10463                  $as_echo "$as_val"'`
10464    if test "x$as_val" = x""yes; then
10465   cat >>confdefs.h <<_ACEOF
10466 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10467 _ACEOF
10468
10469                      eval ac_cv_have_decl_$gl_func=yes
10470 fi
10471
10472       done
10473
10474
10475
10476   GNULIB_GETADDRINFO=0;
10477     HAVE_STRUCT_ADDRINFO=1;
10478   HAVE_DECL_FREEADDRINFO=1;
10479   HAVE_DECL_GAI_STRERROR=1;
10480   HAVE_DECL_GETADDRINFO=1;
10481   HAVE_DECL_GETNAMEINFO=1;
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492   :
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502   :
10503
10504
10505
10506
10507
10508
10509
10510      if test $gl_cv_have_include_next = yes; then
10511        gl_cv_next_netdb_h='<'netdb.h'>'
10512      else
10513        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
10514 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
10515 if test "${gl_cv_next_netdb_h+set}" = set; then
10516   $as_echo_n "(cached) " >&6
10517 else
10518
10519           if test $ac_cv_header_netdb_h = yes; then
10520             cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h.  */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h.  */
10526 #include <netdb.h>
10527
10528 _ACEOF
10529                                                                                                 case "$host_os" in
10530               aix*) gl_absname_cpp="$ac_cpp -C" ;;
10531               *)    gl_absname_cpp="$ac_cpp" ;;
10532             esac
10533                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10534                sed -n '\#/netdb.h#{
10535                  s#.*"\(.*/netdb.h\)".*#\1#
10536                  s#^/[^/]#//&#
10537                  p
10538                  q
10539                }'`'"'
10540           else
10541             gl_cv_next_netdb_h='<'netdb.h'>'
10542           fi
10543
10544 fi
10545 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
10546 $as_echo "$gl_cv_next_netdb_h" >&6; }
10547      fi
10548      NEXT_NETDB_H=$gl_cv_next_netdb_h
10549
10550      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10551        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10552        gl_next_as_first_directive='<'netdb.h'>'
10553      else
10554        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10555        gl_next_as_first_directive=$gl_cv_next_netdb_h
10556      fi
10557      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
10558
10559
10560
10561   if test $ac_cv_header_netdb_h = yes; then
10562     HAVE_NETDB_H=1
10563   else
10564     HAVE_NETDB_H=0
10565   fi
10566
10567
10568
10569
10570
10571
10572
10573   for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
10574     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10575     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10576 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10577 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10578   $as_echo_n "(cached) " >&6
10579 else
10580   cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h.  */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h.  */
10586 #include <netdb.h>
10587 int
10588 main ()
10589 {
10590 #undef $gl_func
10591   (void) $gl_func;
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (ac_try="$ac_compile"
10598 case "(($ac_try" in
10599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600   *) ac_try_echo=$ac_try;;
10601 esac
10602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603 $as_echo "$ac_try_echo") >&5
10604   (eval "$ac_compile") 2>conftest.er1
10605   ac_status=$?
10606   grep -v '^ *+' conftest.er1 >conftest.err
10607   rm -f conftest.er1
10608   cat conftest.err >&5
10609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } && {
10611          test -z "$ac_c_werror_flag" ||
10612          test ! -s conftest.err
10613        } && test -s conftest.$ac_objext; then
10614   eval "$as_gl_Symbol=yes"
10615 else
10616   $as_echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619         eval "$as_gl_Symbol=no"
10620 fi
10621
10622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 fi
10624 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10625                  $as_echo "$as_val"'`
10626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10627 $as_echo "$ac_res" >&6; }
10628      as_val=`eval 'as_val=${'$as_gl_Symbol'}
10629                  $as_echo "$as_val"'`
10630    if test "x$as_val" = x""yes; then
10631   cat >>confdefs.h <<_ACEOF
10632 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10633 _ACEOF
10634
10635                      eval ac_cv_have_decl_$gl_func=yes
10636 fi
10637
10638       done
10639
10640
10641
10642                   HOSTENT_LIB=
10643   gl_saved_libs="$LIBS"
10644   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10645 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10646 if test "${ac_cv_search_gethostbyname+set}" = set; then
10647   $as_echo_n "(cached) " >&6
10648 else
10649   ac_func_search_save_LIBS=$LIBS
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656
10657 /* Override any GCC internal prototype to avoid an error.
10658    Use char because int might match the return type of a GCC
10659    builtin and then its argument prototype would still apply.  */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 char gethostbyname ();
10664 int
10665 main ()
10666 {
10667 return gethostbyname ();
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 for ac_lib in '' nsl network net; do
10673   if test -z "$ac_lib"; then
10674     ac_res="none required"
10675   else
10676     ac_res=-l$ac_lib
10677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10678   fi
10679   rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10686 $as_echo "$ac_try_echo") >&5
10687   (eval "$ac_link") 2>conftest.er1
10688   ac_status=$?
10689   grep -v '^ *+' conftest.er1 >conftest.err
10690   rm -f conftest.er1
10691   cat conftest.err >&5
10692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693   (exit $ac_status); } && {
10694          test -z "$ac_c_werror_flag" ||
10695          test ! -s conftest.err
10696        } && test -s conftest$ac_exeext && {
10697          test "$cross_compiling" = yes ||
10698          $as_test_x conftest$ac_exeext
10699        }; then
10700   ac_cv_search_gethostbyname=$ac_res
10701 else
10702   $as_echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10704
10705
10706 fi
10707
10708 rm -rf conftest.dSYM
10709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10710       conftest$ac_exeext
10711   if test "${ac_cv_search_gethostbyname+set}" = set; then
10712   break
10713 fi
10714 done
10715 if test "${ac_cv_search_gethostbyname+set}" = set; then
10716   :
10717 else
10718   ac_cv_search_gethostbyname=no
10719 fi
10720 rm conftest.$ac_ext
10721 LIBS=$ac_func_search_save_LIBS
10722 fi
10723 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10724 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10725 ac_res=$ac_cv_search_gethostbyname
10726 if test "$ac_res" != no; then
10727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10728   if test "$ac_cv_search_gethostbyname" != "none required"; then
10729        HOSTENT_LIB="$ac_cv_search_gethostbyname"
10730      fi
10731 fi
10732
10733   LIBS="$gl_saved_libs"
10734   if test -z "$HOSTENT_LIB"; then
10735
10736 for ac_func in gethostbyname
10737 do
10738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10739 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10740 $as_echo_n "checking for $ac_func... " >&6; }
10741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10742   $as_echo_n "(cached) " >&6
10743 else
10744   cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10752 #define $ac_func innocuous_$ac_func
10753
10754 /* System header to define __stub macros and hopefully few prototypes,
10755     which can conflict with char $ac_func (); below.
10756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10757     <limits.h> exists even on freestanding compilers.  */
10758
10759 #ifdef __STDC__
10760 # include <limits.h>
10761 #else
10762 # include <assert.h>
10763 #endif
10764
10765 #undef $ac_func
10766
10767 /* Override any GCC internal prototype to avoid an error.
10768    Use char because int might match the return type of a GCC
10769    builtin and then its argument prototype would still apply.  */
10770 #ifdef __cplusplus
10771 extern "C"
10772 #endif
10773 char $ac_func ();
10774 /* The GNU C library defines this for functions which it implements
10775     to always fail with ENOSYS.  Some functions are actually named
10776     something starting with __ and the normal name is an alias.  */
10777 #if defined __stub_$ac_func || defined __stub___$ac_func
10778 choke me
10779 #endif
10780
10781 int
10782 main ()
10783 {
10784 return $ac_func ();
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 rm -f conftest.$ac_objext conftest$ac_exeext
10790 if { (ac_try="$ac_link"
10791 case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10796 $as_echo "$ac_try_echo") >&5
10797   (eval "$ac_link") 2>conftest.er1
10798   ac_status=$?
10799   grep -v '^ *+' conftest.er1 >conftest.err
10800   rm -f conftest.er1
10801   cat conftest.err >&5
10802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } && {
10804          test -z "$ac_c_werror_flag" ||
10805          test ! -s conftest.err
10806        } && test -s conftest$ac_exeext && {
10807          test "$cross_compiling" = yes ||
10808          $as_test_x conftest$ac_exeext
10809        }; then
10810   eval "$as_ac_var=yes"
10811 else
10812   $as_echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         eval "$as_ac_var=no"
10816 fi
10817
10818 rm -rf conftest.dSYM
10819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10820       conftest$ac_exeext conftest.$ac_ext
10821 fi
10822 ac_res=`eval 'as_val=${'$as_ac_var'}
10823                  $as_echo "$as_val"'`
10824                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10825 $as_echo "$ac_res" >&6; }
10826 as_val=`eval 'as_val=${'$as_ac_var'}
10827                  $as_echo "$as_val"'`
10828    if test "x$as_val" = x""yes; then
10829   cat >>confdefs.h <<_ACEOF
10830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10831 _ACEOF
10832
10833 else
10834
10835       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10836 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10837 if test "${gl_cv_w32_gethostbyname+set}" = set; then
10838   $as_echo_n "(cached) " >&6
10839 else
10840   gl_cv_w32_gethostbyname=no
10841          gl_save_LIBS="$LIBS"
10842          LIBS="$LIBS -lws2_32"
10843          cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849
10850 #ifdef HAVE_WINSOCK2_H
10851 #include <winsock2.h>
10852 #endif
10853 #include <stddef.h>
10854
10855 int
10856 main ()
10857 {
10858 gethostbyname(NULL);
10859   ;
10860   return 0;
10861 }
10862 _ACEOF
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867   *) ac_try_echo=$ac_try;;
10868 esac
10869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10870 $as_echo "$ac_try_echo") >&5
10871   (eval "$ac_link") 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } && {
10878          test -z "$ac_c_werror_flag" ||
10879          test ! -s conftest.err
10880        } && test -s conftest$ac_exeext && {
10881          test "$cross_compiling" = yes ||
10882          $as_test_x conftest$ac_exeext
10883        }; then
10884   gl_cv_w32_gethostbyname=yes
10885 else
10886   $as_echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10888
10889
10890 fi
10891
10892 rm -rf conftest.dSYM
10893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10894       conftest$ac_exeext conftest.$ac_ext
10895          LIBS="$gl_save_LIBS"
10896
10897 fi
10898 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
10899 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
10900       if test "$gl_cv_w32_gethostbyname" = "yes"; then
10901         HOSTENT_LIB="-lws2_32"
10902       fi
10903
10904 fi
10905 done
10906
10907   fi
10908
10909
10910
10911                       SERVENT_LIB=
10912   gl_saved_libs="$LIBS"
10913   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
10914 $as_echo_n "checking for library containing getservbyname... " >&6; }
10915 if test "${ac_cv_search_getservbyname+set}" = set; then
10916   $as_echo_n "(cached) " >&6
10917 else
10918   ac_func_search_save_LIBS=$LIBS
10919 cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925
10926 /* Override any GCC internal prototype to avoid an error.
10927    Use char because int might match the return type of a GCC
10928    builtin and then its argument prototype would still apply.  */
10929 #ifdef __cplusplus
10930 extern "C"
10931 #endif
10932 char getservbyname ();
10933 int
10934 main ()
10935 {
10936 return getservbyname ();
10937   ;
10938   return 0;
10939 }
10940 _ACEOF
10941 for ac_lib in '' socket network net; do
10942   if test -z "$ac_lib"; then
10943     ac_res="none required"
10944   else
10945     ac_res=-l$ac_lib
10946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10947   fi
10948   rm -f conftest.$ac_objext conftest$ac_exeext
10949 if { (ac_try="$ac_link"
10950 case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10955 $as_echo "$ac_try_echo") >&5
10956   (eval "$ac_link") 2>conftest.er1
10957   ac_status=$?
10958   grep -v '^ *+' conftest.er1 >conftest.err
10959   rm -f conftest.er1
10960   cat conftest.err >&5
10961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); } && {
10963          test -z "$ac_c_werror_flag" ||
10964          test ! -s conftest.err
10965        } && test -s conftest$ac_exeext && {
10966          test "$cross_compiling" = yes ||
10967          $as_test_x conftest$ac_exeext
10968        }; then
10969   ac_cv_search_getservbyname=$ac_res
10970 else
10971   $as_echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974
10975 fi
10976
10977 rm -rf conftest.dSYM
10978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10979       conftest$ac_exeext
10980   if test "${ac_cv_search_getservbyname+set}" = set; then
10981   break
10982 fi
10983 done
10984 if test "${ac_cv_search_getservbyname+set}" = set; then
10985   :
10986 else
10987   ac_cv_search_getservbyname=no
10988 fi
10989 rm conftest.$ac_ext
10990 LIBS=$ac_func_search_save_LIBS
10991 fi
10992 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
10993 $as_echo "$ac_cv_search_getservbyname" >&6; }
10994 ac_res=$ac_cv_search_getservbyname
10995 if test "$ac_res" != no; then
10996   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10997   if test "$ac_cv_search_getservbyname" != "none required"; then
10998        SERVENT_LIB="$ac_cv_search_getservbyname"
10999      fi
11000 fi
11001
11002   LIBS="$gl_saved_libs"
11003   if test -z "$SERVENT_LIB"; then
11004
11005 for ac_func in getservbyname
11006 do
11007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11008 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11009 $as_echo_n "checking for $ac_func... " >&6; }
11010 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11011   $as_echo_n "(cached) " >&6
11012 else
11013   cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11021 #define $ac_func innocuous_$ac_func
11022
11023 /* System header to define __stub macros and hopefully few prototypes,
11024     which can conflict with char $ac_func (); below.
11025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11026     <limits.h> exists even on freestanding compilers.  */
11027
11028 #ifdef __STDC__
11029 # include <limits.h>
11030 #else
11031 # include <assert.h>
11032 #endif
11033
11034 #undef $ac_func
11035
11036 /* Override any GCC internal prototype to avoid an error.
11037    Use char because int might match the return type of a GCC
11038    builtin and then its argument prototype would still apply.  */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char $ac_func ();
11043 /* The GNU C library defines this for functions which it implements
11044     to always fail with ENOSYS.  Some functions are actually named
11045     something starting with __ and the normal name is an alias.  */
11046 #if defined __stub_$ac_func || defined __stub___$ac_func
11047 choke me
11048 #endif
11049
11050 int
11051 main ()
11052 {
11053 return $ac_func ();
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066   (eval "$ac_link") 2>conftest.er1
11067   ac_status=$?
11068   grep -v '^ *+' conftest.er1 >conftest.err
11069   rm -f conftest.er1
11070   cat conftest.err >&5
11071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072   (exit $ac_status); } && {
11073          test -z "$ac_c_werror_flag" ||
11074          test ! -s conftest.err
11075        } && test -s conftest$ac_exeext && {
11076          test "$cross_compiling" = yes ||
11077          $as_test_x conftest$ac_exeext
11078        }; then
11079   eval "$as_ac_var=yes"
11080 else
11081   $as_echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084         eval "$as_ac_var=no"
11085 fi
11086
11087 rm -rf conftest.dSYM
11088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11089       conftest$ac_exeext conftest.$ac_ext
11090 fi
11091 ac_res=`eval 'as_val=${'$as_ac_var'}
11092                  $as_echo "$as_val"'`
11093                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11094 $as_echo "$ac_res" >&6; }
11095 as_val=`eval 'as_val=${'$as_ac_var'}
11096                  $as_echo "$as_val"'`
11097    if test "x$as_val" = x""yes; then
11098   cat >>confdefs.h <<_ACEOF
11099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11100 _ACEOF
11101
11102 else
11103
11104       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
11105 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
11106 if test "${gl_cv_w32_getservbyname+set}" = set; then
11107   $as_echo_n "(cached) " >&6
11108 else
11109   gl_cv_w32_getservbyname=no
11110          gl_save_LIBS="$LIBS"
11111          LIBS="$LIBS -lws2_32"
11112          cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118
11119 #ifdef HAVE_WINSOCK2_H
11120 #include <winsock2.h>
11121 #endif
11122 #include <stddef.h>
11123
11124 int
11125 main ()
11126 {
11127 getservbyname(NULL,NULL);
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136   *) ac_try_echo=$ac_try;;
11137 esac
11138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11139 $as_echo "$ac_try_echo") >&5
11140   (eval "$ac_link") 2>conftest.er1
11141   ac_status=$?
11142   grep -v '^ *+' conftest.er1 >conftest.err
11143   rm -f conftest.er1
11144   cat conftest.err >&5
11145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } && {
11147          test -z "$ac_c_werror_flag" ||
11148          test ! -s conftest.err
11149        } && test -s conftest$ac_exeext && {
11150          test "$cross_compiling" = yes ||
11151          $as_test_x conftest$ac_exeext
11152        }; then
11153   gl_cv_w32_getservbyname=yes
11154 else
11155   $as_echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158
11159 fi
11160
11161 rm -rf conftest.dSYM
11162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163       conftest$ac_exeext conftest.$ac_ext
11164          LIBS="$gl_save_LIBS"
11165
11166 fi
11167 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
11168 $as_echo "$gl_cv_w32_getservbyname" >&6; }
11169       if test "$gl_cv_w32_getservbyname" = "yes"; then
11170         SERVENT_LIB="-lws2_32"
11171       fi
11172
11173 fi
11174 done
11175
11176   fi
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188   :
11189
11190
11191
11192
11193
11194
11195   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
11196 $as_echo_n "checking for IPv4 sockets... " >&6; }
11197   if test "${gl_cv_socket_ipv4+set}" = set; then
11198   $as_echo_n "(cached) " >&6
11199 else
11200   cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h.  */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h.  */
11206 #include <sys/types.h>
11207 #ifdef HAVE_SYS_SOCKET_H
11208 #include <sys/socket.h>
11209 #endif
11210 #ifdef HAVE_NETINET_IN_H
11211 #include <netinet/in.h>
11212 #endif
11213 #ifdef HAVE_WINSOCK2_H
11214 #include <winsock2.h>
11215 #endif
11216 int
11217 main ()
11218 {
11219 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11220  if (&x && &y && &z) return 0;
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (ac_try="$ac_compile"
11227 case "(($ac_try" in
11228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229   *) ac_try_echo=$ac_try;;
11230 esac
11231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11232 $as_echo "$ac_try_echo") >&5
11233   (eval "$ac_compile") 2>conftest.er1
11234   ac_status=$?
11235   grep -v '^ *+' conftest.er1 >conftest.err
11236   rm -f conftest.er1
11237   cat conftest.err >&5
11238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } && {
11240          test -z "$ac_c_werror_flag" ||
11241          test ! -s conftest.err
11242        } && test -s conftest.$ac_objext; then
11243   gl_cv_socket_ipv4=yes
11244 else
11245   $as_echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248         gl_cv_socket_ipv4=no
11249 fi
11250
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252 fi
11253
11254   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
11255 $as_echo "$gl_cv_socket_ipv4" >&6; }
11256   if test $gl_cv_socket_ipv4 = yes; then
11257
11258 cat >>confdefs.h <<\_ACEOF
11259 #define HAVE_IPV4 1
11260 _ACEOF
11261
11262   fi
11263
11264   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
11265 $as_echo_n "checking for IPv6 sockets... " >&6; }
11266   if test "${gl_cv_socket_ipv6+set}" = set; then
11267   $as_echo_n "(cached) " >&6
11268 else
11269   cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 #include <sys/types.h>
11276 #ifdef HAVE_SYS_SOCKET_H
11277 #include <sys/socket.h>
11278 #endif
11279 #ifdef HAVE_NETINET_IN_H
11280 #include <netinet/in.h>
11281 #endif
11282 #ifdef HAVE_WINSOCK2_H
11283 #include <winsock2.h>
11284 #endif
11285 #ifdef HAVE_WS2TCPIP_H
11286 #include <ws2tcpip.h>
11287 #endif
11288 int
11289 main ()
11290 {
11291 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11292  if (&x && &y && &z) return 0;
11293   ;
11294   return 0;
11295 }
11296 _ACEOF
11297 rm -f conftest.$ac_objext
11298 if { (ac_try="$ac_compile"
11299 case "(($ac_try" in
11300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301   *) ac_try_echo=$ac_try;;
11302 esac
11303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11304 $as_echo "$ac_try_echo") >&5
11305   (eval "$ac_compile") 2>conftest.er1
11306   ac_status=$?
11307   grep -v '^ *+' conftest.er1 >conftest.err
11308   rm -f conftest.er1
11309   cat conftest.err >&5
11310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } && {
11312          test -z "$ac_c_werror_flag" ||
11313          test ! -s conftest.err
11314        } && test -s conftest.$ac_objext; then
11315   gl_cv_socket_ipv6=yes
11316 else
11317   $as_echo "$as_me: failed program was:" >&5
11318 sed 's/^/| /' conftest.$ac_ext >&5
11319
11320         gl_cv_socket_ipv6=no
11321 fi
11322
11323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11324 fi
11325
11326   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
11327 $as_echo "$gl_cv_socket_ipv6" >&6; }
11328   if test $gl_cv_socket_ipv6 = yes; then
11329
11330 cat >>confdefs.h <<\_ACEOF
11331 #define HAVE_IPV6 1
11332 _ACEOF
11333
11334   fi
11335
11336
11337
11338
11339
11340     :
11341
11342
11343       gl_save_LIBS=$LIBS
11344   { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
11345 $as_echo_n "checking for library containing inet_ntop... " >&6; }
11346 if test "${ac_cv_search_inet_ntop+set}" = set; then
11347   $as_echo_n "(cached) " >&6
11348 else
11349   ac_func_search_save_LIBS=$LIBS
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h.  */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h.  */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358    Use char because int might match the return type of a GCC
11359    builtin and then its argument prototype would still apply.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char inet_ntop ();
11364 int
11365 main ()
11366 {
11367 return inet_ntop ();
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 for ac_lib in '' nsl; do
11373   if test -z "$ac_lib"; then
11374     ac_res="none required"
11375   else
11376     ac_res=-l$ac_lib
11377     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11378   fi
11379   rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (ac_try="$ac_link"
11381 case "(($ac_try" in
11382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383   *) ac_try_echo=$ac_try;;
11384 esac
11385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11386 $as_echo "$ac_try_echo") >&5
11387   (eval "$ac_link") 2>conftest.er1
11388   ac_status=$?
11389   grep -v '^ *+' conftest.er1 >conftest.err
11390   rm -f conftest.er1
11391   cat conftest.err >&5
11392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); } && {
11394          test -z "$ac_c_werror_flag" ||
11395          test ! -s conftest.err
11396        } && test -s conftest$ac_exeext && {
11397          test "$cross_compiling" = yes ||
11398          $as_test_x conftest$ac_exeext
11399        }; then
11400   ac_cv_search_inet_ntop=$ac_res
11401 else
11402   $as_echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11404
11405
11406 fi
11407
11408 rm -rf conftest.dSYM
11409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11410       conftest$ac_exeext
11411   if test "${ac_cv_search_inet_ntop+set}" = set; then
11412   break
11413 fi
11414 done
11415 if test "${ac_cv_search_inet_ntop+set}" = set; then
11416   :
11417 else
11418   ac_cv_search_inet_ntop=no
11419 fi
11420 rm conftest.$ac_ext
11421 LIBS=$ac_func_search_save_LIBS
11422 fi
11423 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
11424 $as_echo "$ac_cv_search_inet_ntop" >&6; }
11425 ac_res=$ac_cv_search_inet_ntop
11426 if test "$ac_res" != no; then
11427   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11428
11429 else
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 for ac_func in inet_ntop
11440 do
11441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11442 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11443 $as_echo_n "checking for $ac_func... " >&6; }
11444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11445   $as_echo_n "(cached) " >&6
11446 else
11447   cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11455 #define $ac_func innocuous_$ac_func
11456
11457 /* System header to define __stub macros and hopefully few prototypes,
11458     which can conflict with char $ac_func (); below.
11459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11460     <limits.h> exists even on freestanding compilers.  */
11461
11462 #ifdef __STDC__
11463 # include <limits.h>
11464 #else
11465 # include <assert.h>
11466 #endif
11467
11468 #undef $ac_func
11469
11470 /* Override any GCC internal prototype to avoid an error.
11471    Use char because int might match the return type of a GCC
11472    builtin and then its argument prototype would still apply.  */
11473 #ifdef __cplusplus
11474 extern "C"
11475 #endif
11476 char $ac_func ();
11477 /* The GNU C library defines this for functions which it implements
11478     to always fail with ENOSYS.  Some functions are actually named
11479     something starting with __ and the normal name is an alias.  */
11480 #if defined __stub_$ac_func || defined __stub___$ac_func
11481 choke me
11482 #endif
11483
11484 int
11485 main ()
11486 {
11487 return $ac_func ();
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext conftest$ac_exeext
11493 if { (ac_try="$ac_link"
11494 case "(($ac_try" in
11495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496   *) ac_try_echo=$ac_try;;
11497 esac
11498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11499 $as_echo "$ac_try_echo") >&5
11500   (eval "$ac_link") 2>conftest.er1
11501   ac_status=$?
11502   grep -v '^ *+' conftest.er1 >conftest.err
11503   rm -f conftest.er1
11504   cat conftest.err >&5
11505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } && {
11507          test -z "$ac_c_werror_flag" ||
11508          test ! -s conftest.err
11509        } && test -s conftest$ac_exeext && {
11510          test "$cross_compiling" = yes ||
11511          $as_test_x conftest$ac_exeext
11512        }; then
11513   eval "$as_ac_var=yes"
11514 else
11515   $as_echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11517
11518         eval "$as_ac_var=no"
11519 fi
11520
11521 rm -rf conftest.dSYM
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523       conftest$ac_exeext conftest.$ac_ext
11524 fi
11525 ac_res=`eval 'as_val=${'$as_ac_var'}
11526                  $as_echo "$as_val"'`
11527                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11528 $as_echo "$ac_res" >&6; }
11529 as_val=`eval 'as_val=${'$as_ac_var'}
11530                  $as_echo "$as_val"'`
11531    if test "x$as_val" = x""yes; then
11532   cat >>confdefs.h <<_ACEOF
11533 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11534 _ACEOF
11535
11536 else
11537
11538     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
11539
11540 fi
11541 done
11542
11543
11544 fi
11545
11546   LIBS=$gl_save_LIBS
11547   INET_NTOP_LIB=
11548   if test "$ac_cv_search_inet_ntop" != "no" &&
11549      test "$ac_cv_search_inet_ntop" != "none required"; then
11550     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
11551   fi
11552
11553
11554
11555   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
11556 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
11557 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
11558   $as_echo_n "(cached) " >&6
11559 else
11560   cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 #include <arpa/inet.h>
11567
11568 int
11569 main ()
11570 {
11571 #ifndef inet_ntop
11572   (void) inet_ntop;
11573 #endif
11574
11575   ;
11576   return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (ac_try="$ac_compile"
11581 case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587   (eval "$ac_compile") 2>conftest.er1
11588   ac_status=$?
11589   grep -v '^ *+' conftest.er1 >conftest.err
11590   rm -f conftest.er1
11591   cat conftest.err >&5
11592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); } && {
11594          test -z "$ac_c_werror_flag" ||
11595          test ! -s conftest.err
11596        } && test -s conftest.$ac_objext; then
11597   ac_cv_have_decl_inet_ntop=yes
11598 else
11599   $as_echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602         ac_cv_have_decl_inet_ntop=no
11603 fi
11604
11605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606 fi
11607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
11608 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
11609 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
11610
11611 cat >>confdefs.h <<_ACEOF
11612 #define HAVE_DECL_INET_NTOP 1
11613 _ACEOF
11614
11615
11616 else
11617   cat >>confdefs.h <<_ACEOF
11618 #define HAVE_DECL_INET_NTOP 0
11619 _ACEOF
11620
11621
11622 fi
11623
11624
11625   if test $ac_cv_have_decl_inet_ntop = no; then
11626     HAVE_DECL_INET_NTOP=0
11627   fi
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646   :
11647
11648
11649
11650
11651
11652
11653
11654      if test $gl_cv_have_include_next = yes; then
11655        gl_cv_next_getopt_h='<'getopt.h'>'
11656      else
11657        { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
11658 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11659 if test "${gl_cv_next_getopt_h+set}" = set; then
11660   $as_echo_n "(cached) " >&6
11661 else
11662
11663           if test $ac_cv_header_getopt_h = yes; then
11664             cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h.  */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h.  */
11670 #include <getopt.h>
11671
11672 _ACEOF
11673                                                                                                 case "$host_os" in
11674               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11675               *)    gl_absname_cpp="$ac_cpp" ;;
11676             esac
11677                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11678                sed -n '\#/getopt.h#{
11679                  s#.*"\(.*/getopt.h\)".*#\1#
11680                  s#^/[^/]#//&#
11681                  p
11682                  q
11683                }'`'"'
11684           else
11685             gl_cv_next_getopt_h='<'getopt.h'>'
11686           fi
11687
11688 fi
11689 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
11690 $as_echo "$gl_cv_next_getopt_h" >&6; }
11691      fi
11692      NEXT_GETOPT_H=$gl_cv_next_getopt_h
11693
11694      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11695        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11696        gl_next_as_first_directive='<'getopt.h'>'
11697      else
11698        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11699        gl_next_as_first_directive=$gl_cv_next_getopt_h
11700      fi
11701      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11702
11703
11704
11705
11706   :
11707
11708
11709
11710
11711
11712   if test $ac_cv_header_getopt_h = yes; then
11713     HAVE_GETOPT_H=1
11714   else
11715     HAVE_GETOPT_H=0
11716   fi
11717
11718
11719   gl_replace_getopt=
11720
11721     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11722
11723 for ac_header in getopt.h
11724 do
11725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11727   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11728 $as_echo_n "checking for $ac_header... " >&6; }
11729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730   $as_echo_n "(cached) " >&6
11731 fi
11732 ac_res=`eval 'as_val=${'$as_ac_Header'}
11733                  $as_echo "$as_val"'`
11734                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11735 $as_echo "$ac_res" >&6; }
11736 else
11737   # Is the header compilable?
11738 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11739 $as_echo_n "checking $ac_header usability... " >&6; }
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 $ac_includes_default
11747 #include <$ac_header>
11748 _ACEOF
11749 rm -f conftest.$ac_objext
11750 if { (ac_try="$ac_compile"
11751 case "(($ac_try" in
11752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11753   *) ac_try_echo=$ac_try;;
11754 esac
11755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11756 $as_echo "$ac_try_echo") >&5
11757   (eval "$ac_compile") 2>conftest.er1
11758   ac_status=$?
11759   grep -v '^ *+' conftest.er1 >conftest.err
11760   rm -f conftest.er1
11761   cat conftest.err >&5
11762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); } && {
11764          test -z "$ac_c_werror_flag" ||
11765          test ! -s conftest.err
11766        } && test -s conftest.$ac_objext; then
11767   ac_header_compiler=yes
11768 else
11769   $as_echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772         ac_header_compiler=no
11773 fi
11774
11775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11777 $as_echo "$ac_header_compiler" >&6; }
11778
11779 # Is the header present?
11780 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11781 $as_echo_n "checking $ac_header presence... " >&6; }
11782 cat >conftest.$ac_ext <<_ACEOF
11783 /* confdefs.h.  */
11784 _ACEOF
11785 cat confdefs.h >>conftest.$ac_ext
11786 cat >>conftest.$ac_ext <<_ACEOF
11787 /* end confdefs.h.  */
11788 #include <$ac_header>
11789 _ACEOF
11790 if { (ac_try="$ac_cpp conftest.$ac_ext"
11791 case "(($ac_try" in
11792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793   *) ac_try_echo=$ac_try;;
11794 esac
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } >/dev/null && {
11804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11805          test ! -s conftest.err
11806        }; then
11807   ac_header_preproc=yes
11808 else
11809   $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812   ac_header_preproc=no
11813 fi
11814
11815 rm -f conftest.err conftest.$ac_ext
11816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11817 $as_echo "$ac_header_preproc" >&6; }
11818
11819 # So?  What about this header?
11820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11821   yes:no: )
11822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11823 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11826     ac_header_preproc=yes
11827     ;;
11828   no:yes:* )
11829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11830 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11832 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11834 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11835     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11836 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11837     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11839     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11840 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11841
11842     ;;
11843 esac
11844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11845 $as_echo_n "checking for $ac_header... " >&6; }
11846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847   $as_echo_n "(cached) " >&6
11848 else
11849   eval "$as_ac_Header=\$ac_header_preproc"
11850 fi
11851 ac_res=`eval 'as_val=${'$as_ac_Header'}
11852                  $as_echo "$as_val"'`
11853                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11854 $as_echo "$ac_res" >&6; }
11855
11856 fi
11857 as_val=`eval 'as_val=${'$as_ac_Header'}
11858                  $as_echo "$as_val"'`
11859    if test "x$as_val" = x""yes; then
11860   cat >>confdefs.h <<_ACEOF
11861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11862 _ACEOF
11863
11864 else
11865   gl_replace_getopt=yes
11866 fi
11867
11868 done
11869
11870   fi
11871
11872     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11873
11874 for ac_func in getopt_long_only
11875 do
11876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 $as_echo_n "checking for $ac_func... " >&6; }
11879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880   $as_echo_n "(cached) " >&6
11881 else
11882   cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11890 #define $ac_func innocuous_$ac_func
11891
11892 /* System header to define __stub macros and hopefully few prototypes,
11893     which can conflict with char $ac_func (); below.
11894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895     <limits.h> exists even on freestanding compilers.  */
11896
11897 #ifdef __STDC__
11898 # include <limits.h>
11899 #else
11900 # include <assert.h>
11901 #endif
11902
11903 #undef $ac_func
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906    Use char because int might match the return type of a GCC
11907    builtin and then its argument prototype would still apply.  */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char $ac_func ();
11912 /* The GNU C library defines this for functions which it implements
11913     to always fail with ENOSYS.  Some functions are actually named
11914     something starting with __ and the normal name is an alias.  */
11915 #if defined __stub_$ac_func || defined __stub___$ac_func
11916 choke me
11917 #endif
11918
11919 int
11920 main ()
11921 {
11922 return $ac_func ();
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (ac_try="$ac_link"
11929 case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11934 $as_echo "$ac_try_echo") >&5
11935   (eval "$ac_link") 2>conftest.er1
11936   ac_status=$?
11937   grep -v '^ *+' conftest.er1 >conftest.err
11938   rm -f conftest.er1
11939   cat conftest.err >&5
11940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } && {
11942          test -z "$ac_c_werror_flag" ||
11943          test ! -s conftest.err
11944        } && test -s conftest$ac_exeext && {
11945          test "$cross_compiling" = yes ||
11946          $as_test_x conftest$ac_exeext
11947        }; then
11948   eval "$as_ac_var=yes"
11949 else
11950   $as_echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953         eval "$as_ac_var=no"
11954 fi
11955
11956 rm -rf conftest.dSYM
11957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11958       conftest$ac_exeext conftest.$ac_ext
11959 fi
11960 ac_res=`eval 'as_val=${'$as_ac_var'}
11961                  $as_echo "$as_val"'`
11962                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11963 $as_echo "$ac_res" >&6; }
11964 as_val=`eval 'as_val=${'$as_ac_var'}
11965                  $as_echo "$as_val"'`
11966    if test "x$as_val" = x""yes; then
11967   cat >>confdefs.h <<_ACEOF
11968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11969 _ACEOF
11970
11971 else
11972   gl_replace_getopt=yes
11973 fi
11974 done
11975
11976   fi
11977
11978               if test -z "$gl_replace_getopt"; then
11979     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11980 $as_echo_n "checking whether optreset is declared... " >&6; }
11981 if test "${ac_cv_have_decl_optreset+set}" = set; then
11982   $as_echo_n "(cached) " >&6
11983 else
11984   cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 #include <getopt.h>
11991
11992 int
11993 main ()
11994 {
11995 #ifndef optreset
11996   (void) optreset;
11997 #endif
11998
11999   ;
12000   return 0;
12001 }
12002 _ACEOF
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007   *) ac_try_echo=$ac_try;;
12008 esac
12009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12010 $as_echo "$ac_try_echo") >&5
12011   (eval "$ac_compile") 2>conftest.er1
12012   ac_status=$?
12013   grep -v '^ *+' conftest.er1 >conftest.err
12014   rm -f conftest.er1
12015   cat conftest.err >&5
12016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); } && {
12018          test -z "$ac_c_werror_flag" ||
12019          test ! -s conftest.err
12020        } && test -s conftest.$ac_objext; then
12021   ac_cv_have_decl_optreset=yes
12022 else
12023   $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026         ac_cv_have_decl_optreset=no
12027 fi
12028
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 fi
12031 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
12032 $as_echo "$ac_cv_have_decl_optreset" >&6; }
12033 if test "x$ac_cv_have_decl_optreset" = x""yes; then
12034
12035 cat >>confdefs.h <<_ACEOF
12036 #define HAVE_DECL_OPTRESET 1
12037 _ACEOF
12038
12039
12040 else
12041   cat >>confdefs.h <<_ACEOF
12042 #define HAVE_DECL_OPTRESET 0
12043 _ACEOF
12044
12045 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
12046 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
12047 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
12048   $as_echo_n "(cached) " >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 #include <getopt.h>
12057
12058 int
12059 main ()
12060 {
12061 #ifndef getopt_clip
12062   (void) getopt_clip;
12063 #endif
12064
12065   ;
12066   return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext
12070 if { (ac_try="$ac_compile"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12076 $as_echo "$ac_try_echo") >&5
12077   (eval "$ac_compile") 2>conftest.er1
12078   ac_status=$?
12079   grep -v '^ *+' conftest.er1 >conftest.err
12080   rm -f conftest.er1
12081   cat conftest.err >&5
12082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); } && {
12084          test -z "$ac_c_werror_flag" ||
12085          test ! -s conftest.err
12086        } && test -s conftest.$ac_objext; then
12087   ac_cv_have_decl_getopt_clip=yes
12088 else
12089   $as_echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092         ac_cv_have_decl_getopt_clip=no
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 fi
12097 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
12098 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
12099 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
12100
12101 cat >>confdefs.h <<_ACEOF
12102 #define HAVE_DECL_GETOPT_CLIP 1
12103 _ACEOF
12104
12105
12106 else
12107   cat >>confdefs.h <<_ACEOF
12108 #define HAVE_DECL_GETOPT_CLIP 0
12109 _ACEOF
12110
12111
12112 fi
12113
12114
12115
12116 fi
12117
12118
12119   fi
12120
12121                     if test -z "$gl_replace_getopt"; then
12122     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
12123 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
12124 if test "${gl_cv_func_getopt_posix+set}" = set; then
12125   $as_echo_n "(cached) " >&6
12126 else
12127
12128                 if test "$cross_compiling" = yes; then
12129   case "$host_os" in
12130              mingw*)         gl_cv_func_getopt_posix="guessing no";;
12131              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
12132              *)              gl_cv_func_getopt_posix="guessing yes";;
12133            esac
12134
12135 else
12136   cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h.  */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h.  */
12142
12143 #include <unistd.h>
12144 #include <stdlib.h>
12145 #include <string.h>
12146
12147 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
12148 # define OPTIND_MIN 0
12149 #else
12150 # define OPTIND_MIN 1
12151 #endif
12152
12153 int
12154 main ()
12155 {
12156   {
12157     int argc = 0;
12158     char *argv[10];
12159     int c;
12160
12161     argv[argc++] = "program";
12162     argv[argc++] = "-a";
12163     argv[argc++] = "foo";
12164     argv[argc++] = "bar";
12165     argv[argc] = NULL;
12166     optind = OPTIND_MIN;
12167     opterr = 0;
12168
12169     c = getopt (argc, argv, "ab");
12170     if (!(c == 'a'))
12171       return 1;
12172     c = getopt (argc, argv, "ab");
12173     if (!(c == -1))
12174       return 2;
12175     if (!(optind == 2))
12176       return 3;
12177   }
12178   /* Some internal state exists at this point.  */
12179   {
12180     int argc = 0;
12181     char *argv[10];
12182     int c;
12183
12184     argv[argc++] = "program";
12185     argv[argc++] = "donald";
12186     argv[argc++] = "-p";
12187     argv[argc++] = "billy";
12188     argv[argc++] = "duck";
12189     argv[argc++] = "-a";
12190     argv[argc++] = "bar";
12191     argv[argc] = NULL;
12192     optind = OPTIND_MIN;
12193     opterr = 0;
12194
12195     c = getopt (argc, argv, "+abp:q:");
12196     if (!(c == -1))
12197       return 4;
12198     if (!(strcmp (argv[0], "program") == 0))
12199       return 5;
12200     if (!(strcmp (argv[1], "donald") == 0))
12201       return 6;
12202     if (!(strcmp (argv[2], "-p") == 0))
12203       return 7;
12204     if (!(strcmp (argv[3], "billy") == 0))
12205       return 8;
12206     if (!(strcmp (argv[4], "duck") == 0))
12207       return 9;
12208     if (!(strcmp (argv[5], "-a") == 0))
12209       return 10;
12210     if (!(strcmp (argv[6], "bar") == 0))
12211       return 11;
12212     if (!(optind == 1))
12213       return 12;
12214   }
12215   /* Detect MacOS 10.5, AIX 7.1 bug.  */
12216   {
12217     char *argv[3] = { "program", "-ab", NULL };
12218     optind = OPTIND_MIN;
12219     opterr = 0;
12220     if (getopt (2, argv, "ab:") != 'a')
12221       return 13;
12222     if (getopt (2, argv, "ab:") != '?')
12223       return 14;
12224     if (optopt != 'b')
12225       return 15;
12226     if (optind != 2)
12227       return 16;
12228   }
12229
12230   return 0;
12231 }
12232
12233 _ACEOF
12234 rm -f conftest$ac_exeext
12235 if { (ac_try="$ac_link"
12236 case "(($ac_try" in
12237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238   *) ac_try_echo=$ac_try;;
12239 esac
12240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12241 $as_echo "$ac_try_echo") >&5
12242   (eval "$ac_link") 2>&5
12243   ac_status=$?
12244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12246   { (case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12251 $as_echo "$ac_try_echo") >&5
12252   (eval "$ac_try") 2>&5
12253   ac_status=$?
12254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; }; then
12256   gl_cv_func_getopt_posix=yes
12257 else
12258   $as_echo "$as_me: program exited with status $ac_status" >&5
12259 $as_echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ( exit $ac_status )
12263 gl_cv_func_getopt_posix=no
12264 fi
12265 rm -rf conftest.dSYM
12266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12267 fi
12268
12269
12270
12271 fi
12272 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
12273 $as_echo "$gl_cv_func_getopt_posix" >&6; }
12274     case "$gl_cv_func_getopt_posix" in
12275       *no) gl_replace_getopt=yes ;;
12276     esac
12277   fi
12278
12279   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12280     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
12281 $as_echo_n "checking for working GNU getopt function... " >&6; }
12282 if test "${gl_cv_func_getopt_gnu+set}" = set; then
12283   $as_echo_n "(cached) " >&6
12284 else
12285   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
12286        # optstring is necessary for programs like m4 that have POSIX-mandated
12287        # semantics for supporting options interspersed with files.
12288        # Also, since getopt_long is a GNU extension, we require optind=0.
12289        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
12290        # so take care to revert to the correct (non-)export state.
12291        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
12292        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
12293          xx) gl_had_POSIXLY_CORRECT=exported ;;
12294          x)  gl_had_POSIXLY_CORRECT=yes      ;;
12295          *)  gl_had_POSIXLY_CORRECT=         ;;
12296        esac
12297        POSIXLY_CORRECT=1
12298        export POSIXLY_CORRECT
12299        if test "$cross_compiling" = yes; then
12300            case $host_os:$ac_cv_have_decl_optreset in
12301            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
12302            *:yes)               gl_cv_func_getopt_gnu=no;;
12303            *)                   gl_cv_func_getopt_gnu=yes;;
12304          esac
12305
12306 else
12307   cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313 #include <getopt.h>
12314                            #include <stddef.h>
12315                            #include <string.h>
12316
12317 int
12318 main ()
12319 {
12320
12321              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
12322                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
12323                 OSF/1 5.1, Solaris 10.  */
12324              {
12325                char *myargv[3];
12326                myargv[0] = "conftest";
12327                myargv[1] = "-+";
12328                myargv[2] = 0;
12329                opterr = 0;
12330                if (getopt (2, myargv, "+a") != '?')
12331                  return 1;
12332              }
12333              /* This code succeeds on glibc 2.8, mingw,
12334                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
12335                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
12336              {
12337                char *argv[] = { "program", "-p", "foo", "bar", NULL };
12338
12339                optind = 1;
12340                if (getopt (4, argv, "p::") != 'p')
12341                  return 2;
12342                if (optarg != NULL)
12343                  return 3;
12344                if (getopt (4, argv, "p::") != -1)
12345                  return 4;
12346                if (optind != 2)
12347                  return 5;
12348              }
12349              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
12350              {
12351                char *argv[] = { "program", "foo", "-p", NULL };
12352                optind = 0;
12353                if (getopt (3, argv, "-p") != 1)
12354                  return 6;
12355                if (getopt (3, argv, "-p") != 'p')
12356                  return 7;
12357              }
12358              /* This code fails on glibc 2.11.  */
12359              {
12360                char *argv[] = { "program", "-b", "-a", NULL };
12361                optind = opterr = 0;
12362                if (getopt (3, argv, "+:a:b") != 'b')
12363                  return 8;
12364                if (getopt (3, argv, "+:a:b") != ':')
12365                  return 9;
12366              }
12367              return 0;
12368
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest$ac_exeext
12374 if { (ac_try="$ac_link"
12375 case "(($ac_try" in
12376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377   *) ac_try_echo=$ac_try;;
12378 esac
12379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12380 $as_echo "$ac_try_echo") >&5
12381   (eval "$ac_link") 2>&5
12382   ac_status=$?
12383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12385   { (case "(($ac_try" in
12386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387   *) ac_try_echo=$ac_try;;
12388 esac
12389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12390 $as_echo "$ac_try_echo") >&5
12391   (eval "$ac_try") 2>&5
12392   ac_status=$?
12393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   gl_cv_func_getopt_gnu=yes
12396 else
12397   $as_echo "$as_me: program exited with status $ac_status" >&5
12398 $as_echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401 ( exit $ac_status )
12402 gl_cv_func_getopt_gnu=no
12403 fi
12404 rm -rf conftest.dSYM
12405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12406 fi
12407
12408
12409        case $gl_had_POSIXLY_CORRECT in
12410          exported) ;;
12411          yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
12412          *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
12413        esac
12414
12415 fi
12416 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
12417 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
12418     if test "$gl_cv_func_getopt_gnu" = "no"; then
12419       gl_replace_getopt=yes
12420     fi
12421   fi
12422
12423
12424       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12425 $as_echo_n "checking whether getenv is declared... " >&6; }
12426 if test "${ac_cv_have_decl_getenv+set}" = set; then
12427   $as_echo_n "(cached) " >&6
12428 else
12429   cat >conftest.$ac_ext <<_ACEOF
12430 /* confdefs.h.  */
12431 _ACEOF
12432 cat confdefs.h >>conftest.$ac_ext
12433 cat >>conftest.$ac_ext <<_ACEOF
12434 /* end confdefs.h.  */
12435 $ac_includes_default
12436 int
12437 main ()
12438 {
12439 #ifndef getenv
12440   (void) getenv;
12441 #endif
12442
12443   ;
12444   return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext
12448 if { (ac_try="$ac_compile"
12449 case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12454 $as_echo "$ac_try_echo") >&5
12455   (eval "$ac_compile") 2>conftest.er1
12456   ac_status=$?
12457   grep -v '^ *+' conftest.er1 >conftest.err
12458   rm -f conftest.er1
12459   cat conftest.err >&5
12460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); } && {
12462          test -z "$ac_c_werror_flag" ||
12463          test ! -s conftest.err
12464        } && test -s conftest.$ac_objext; then
12465   ac_cv_have_decl_getenv=yes
12466 else
12467   $as_echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470         ac_cv_have_decl_getenv=no
12471 fi
12472
12473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12474 fi
12475 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12476 $as_echo "$ac_cv_have_decl_getenv" >&6; }
12477 if test "x$ac_cv_have_decl_getenv" = x""yes; then
12478
12479 cat >>confdefs.h <<_ACEOF
12480 #define HAVE_DECL_GETENV 1
12481 _ACEOF
12482
12483
12484 else
12485   cat >>confdefs.h <<_ACEOF
12486 #define HAVE_DECL_GETENV 0
12487 _ACEOF
12488
12489
12490 fi
12491
12492
12493
12494
12495
12496
12497
12498
12499   if test -n "$gl_replace_getopt"; then
12500
12501
12502
12503   GETOPT_H=getopt.h
12504
12505 cat >>confdefs.h <<\_ACEOF
12506 #define __GETOPT_PREFIX rpl_
12507 _ACEOF
12508
12509
12510
12511     GNULIB_UNISTD_H_GETOPT=1
12512
12513
12514
12515
12516
12517
12518
12519
12520   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
12531
12532
12533
12534   :
12535
12536
12537
12538
12539
12540
12541
12542
12543 fi
12544
12545
12546
12547
12548   GNULIB_GETTIMEOFDAY=0;
12549     HAVE_GETTIMEOFDAY=1;
12550   HAVE_STRUCT_TIMEVAL=1;
12551   HAVE_SYS_TIME_H=1;
12552   REPLACE_GETTIMEOFDAY=0;
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564   :
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574   :
12575
12576
12577
12578
12579
12580
12581
12582      if test $gl_cv_have_include_next = yes; then
12583        gl_cv_next_sys_time_h='<'sys/time.h'>'
12584      else
12585        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
12586 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
12587 if test "${gl_cv_next_sys_time_h+set}" = set; then
12588   $as_echo_n "(cached) " >&6
12589 else
12590
12591           if test $ac_cv_header_sys_time_h = yes; then
12592             cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 #include <sys/time.h>
12599
12600 _ACEOF
12601                                                                                                 case "$host_os" in
12602               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12603               *)    gl_absname_cpp="$ac_cpp" ;;
12604             esac
12605                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12606                sed -n '\#/sys/time.h#{
12607                  s#.*"\(.*/sys/time.h\)".*#\1#
12608                  s#^/[^/]#//&#
12609                  p
12610                  q
12611                }'`'"'
12612           else
12613             gl_cv_next_sys_time_h='<'sys/time.h'>'
12614           fi
12615
12616 fi
12617 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
12618 $as_echo "$gl_cv_next_sys_time_h" >&6; }
12619      fi
12620      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
12621
12622      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12623        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12624        gl_next_as_first_directive='<'sys/time.h'>'
12625      else
12626        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12627        gl_next_as_first_directive=$gl_cv_next_sys_time_h
12628      fi
12629      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
12630
12631
12632
12633
12634   if test $ac_cv_header_sys_time_h != yes; then
12635     HAVE_SYS_TIME_H=0
12636   fi
12637
12638   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
12639 $as_echo_n "checking for struct timeval... " >&6; }
12640 if test "${gl_cv_sys_struct_timeval+set}" = set; then
12641   $as_echo_n "(cached) " >&6
12642 else
12643   cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649 #if HAVE_SYS_TIME_H
12650              #include <sys/time.h>
12651             #endif
12652             #include <time.h>
12653
12654 int
12655 main ()
12656 {
12657 static struct timeval x; x.tv_sec = x.tv_usec;
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext
12663 if { (ac_try="$ac_compile"
12664 case "(($ac_try" in
12665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666   *) ac_try_echo=$ac_try;;
12667 esac
12668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12669 $as_echo "$ac_try_echo") >&5
12670   (eval "$ac_compile") 2>conftest.er1
12671   ac_status=$?
12672   grep -v '^ *+' conftest.er1 >conftest.err
12673   rm -f conftest.er1
12674   cat conftest.err >&5
12675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); } && {
12677          test -z "$ac_c_werror_flag" ||
12678          test ! -s conftest.err
12679        } && test -s conftest.$ac_objext; then
12680   gl_cv_sys_struct_timeval=yes
12681 else
12682   $as_echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12684
12685         gl_cv_sys_struct_timeval=no
12686 fi
12687
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689 fi
12690 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
12691 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
12692   if test $gl_cv_sys_struct_timeval != yes; then
12693     HAVE_STRUCT_TIMEVAL=0
12694   fi
12695
12696
12697
12698   for gl_func in gettimeofday; do
12699     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12700     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
12701 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12702 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
12703   $as_echo_n "(cached) " >&6
12704 else
12705   cat >conftest.$ac_ext <<_ACEOF
12706 /* confdefs.h.  */
12707 _ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h.  */
12711
12712 #if HAVE_SYS_TIME_H
12713 # include <sys/time.h>
12714 #endif
12715 #include <time.h>
12716
12717 int
12718 main ()
12719 {
12720 #undef $gl_func
12721   (void) $gl_func;
12722   ;
12723   return 0;
12724 }
12725 _ACEOF
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12733 $as_echo "$ac_try_echo") >&5
12734   (eval "$ac_compile") 2>conftest.er1
12735   ac_status=$?
12736   grep -v '^ *+' conftest.er1 >conftest.err
12737   rm -f conftest.er1
12738   cat conftest.err >&5
12739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); } && {
12741          test -z "$ac_c_werror_flag" ||
12742          test ! -s conftest.err
12743        } && test -s conftest.$ac_objext; then
12744   eval "$as_gl_Symbol=yes"
12745 else
12746   $as_echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12748
12749         eval "$as_gl_Symbol=no"
12750 fi
12751
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
12755                  $as_echo "$as_val"'`
12756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12757 $as_echo "$ac_res" >&6; }
12758      as_val=`eval 'as_val=${'$as_gl_Symbol'}
12759                  $as_echo "$as_val"'`
12760    if test "x$as_val" = x""yes; then
12761   cat >>confdefs.h <<_ACEOF
12762 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12763 _ACEOF
12764
12765                      eval ac_cv_have_decl_$gl_func=yes
12766 fi
12767
12768       done
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781   GNULIB_NL_LANGINFO=0;
12782     HAVE_NL_LANGINFO=1;
12783   REPLACE_NL_LANGINFO=0;
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
12794 $as_echo_n "checking for working fcntl.h... " >&6; }
12795 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
12796   $as_echo_n "(cached) " >&6
12797 else
12798   if test "$cross_compiling" = yes; then
12799   gl_cv_header_working_fcntl_h=cross-compiling
12800 else
12801   cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 #include <sys/types.h>
12808            #include <sys/stat.h>
12809            #include <unistd.h>
12810            #include <fcntl.h>
12811            #ifndef O_NOATIME
12812             #define O_NOATIME 0
12813            #endif
12814            #ifndef O_NOFOLLOW
12815             #define O_NOFOLLOW 0
12816            #endif
12817            static int const constants[] =
12818             {
12819               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12820               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12821             };
12822
12823 int
12824 main ()
12825 {
12826
12827             int status = !constants;
12828             {
12829               static char const sym[] = "conftest.sym";
12830               if (symlink (".", sym) != 0
12831                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
12832                 status |= 32;
12833               unlink (sym);
12834             }
12835             {
12836               static char const file[] = "confdefs.h";
12837               int fd = open (file, O_RDONLY | O_NOATIME);
12838               char c;
12839               struct stat st0, st1;
12840               if (fd < 0
12841                   || fstat (fd, &st0) != 0
12842                   || sleep (1) != 0
12843                   || read (fd, &c, 1) != 1
12844                   || close (fd) != 0
12845                   || stat (file, &st1) != 0
12846                   || st0.st_atime != st1.st_atime)
12847                 status |= 64;
12848             }
12849             return status;
12850   ;
12851   return 0;
12852 }
12853 _ACEOF
12854 rm -f conftest$ac_exeext
12855 if { (ac_try="$ac_link"
12856 case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12861 $as_echo "$ac_try_echo") >&5
12862   (eval "$ac_link") 2>&5
12863   ac_status=$?
12864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12866   { (case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12871 $as_echo "$ac_try_echo") >&5
12872   (eval "$ac_try") 2>&5
12873   ac_status=$?
12874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; }; then
12876   gl_cv_header_working_fcntl_h=yes
12877 else
12878   $as_echo "$as_me: program exited with status $ac_status" >&5
12879 $as_echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12881
12882 ( exit $ac_status )
12883 case $? in #(
12884         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
12885         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
12886         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
12887          *) gl_cv_header_working_fcntl_h='no';;
12888         esac
12889 fi
12890 rm -rf conftest.dSYM
12891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12892 fi
12893
12894
12895 fi
12896 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
12897 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12898
12899   case $gl_cv_header_working_fcntl_h in #(
12900   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12901   *) ac_val=1;;
12902   esac
12903
12904 cat >>confdefs.h <<_ACEOF
12905 #define HAVE_WORKING_O_NOATIME $ac_val
12906 _ACEOF
12907
12908
12909   case $gl_cv_header_working_fcntl_h in #(
12910   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12911   *) ac_val=1;;
12912   esac
12913
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_WORKING_O_NOFOLLOW $ac_val
12916 _ACEOF
12917
12918
12919
12920       { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12921 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
12922 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12923   $as_echo_n "(cached) " >&6
12924 else
12925   cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931 $ac_includes_default
12932 int
12933 main ()
12934 {
12935 #ifndef getc_unlocked
12936   (void) getc_unlocked;
12937 #endif
12938
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 rm -f conftest.$ac_objext
12944 if { (ac_try="$ac_compile"
12945 case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12950 $as_echo "$ac_try_echo") >&5
12951   (eval "$ac_compile") 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } && {
12958          test -z "$ac_c_werror_flag" ||
12959          test ! -s conftest.err
12960        } && test -s conftest.$ac_objext; then
12961   ac_cv_have_decl_getc_unlocked=yes
12962 else
12963   $as_echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966         ac_cv_have_decl_getc_unlocked=no
12967 fi
12968
12969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970 fi
12971 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12972 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
12973 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
12974
12975 cat >>confdefs.h <<_ACEOF
12976 #define HAVE_DECL_GETC_UNLOCKED 1
12977 _ACEOF
12978
12979
12980 else
12981   cat >>confdefs.h <<_ACEOF
12982 #define HAVE_DECL_GETC_UNLOCKED 0
12983 _ACEOF
12984
12985
12986 fi
12987
12988
12989
12990
12991     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12992 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12993 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12994   $as_echo_n "(cached) " >&6
12995 else
12996   cat >conftest.$ac_ext <<_ACEOF
12997 /* confdefs.h.  */
12998 _ACEOF
12999 cat confdefs.h >>conftest.$ac_ext
13000 cat >>conftest.$ac_ext <<_ACEOF
13001 /* end confdefs.h.  */
13002
13003 #include <features.h>
13004 #ifdef __GNU_LIBRARY__
13005  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13006   Lucky GNU user
13007  #endif
13008 #endif
13009
13010 _ACEOF
13011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13012   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13013   ac_cv_gnu_library_2_1=yes
13014 else
13015   ac_cv_gnu_library_2_1=no
13016 fi
13017 rm -f conftest*
13018
13019
13020
13021 fi
13022 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13023 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13024
13025     GLIBC21="$ac_cv_gnu_library_2_1"
13026
13027
13028
13029       if test "X$prefix" = "XNONE"; then
13030     acl_final_prefix="$ac_default_prefix"
13031   else
13032     acl_final_prefix="$prefix"
13033   fi
13034   if test "X$exec_prefix" = "XNONE"; then
13035     acl_final_exec_prefix='${prefix}'
13036   else
13037     acl_final_exec_prefix="$exec_prefix"
13038   fi
13039   acl_save_prefix="$prefix"
13040   prefix="$acl_final_prefix"
13041   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13042   prefix="$acl_save_prefix"
13043
13044
13045 # Check whether --with-gnu-ld was given.
13046 if test "${with_gnu_ld+set}" = set; then
13047   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13048 else
13049   with_gnu_ld=no
13050 fi
13051
13052 # Prepare PATH_SEPARATOR.
13053 # The user is always right.
13054 if test "${PATH_SEPARATOR+set}" != set; then
13055   echo "#! /bin/sh" >conf$$.sh
13056   echo  "exit 0"   >>conf$$.sh
13057   chmod +x conf$$.sh
13058   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13059     PATH_SEPARATOR=';'
13060   else
13061     PATH_SEPARATOR=:
13062   fi
13063   rm -f conf$$.sh
13064 fi
13065 ac_prog=ld
13066 if test "$GCC" = yes; then
13067   # Check if gcc -print-prog-name=ld gives a path.
13068   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13069 $as_echo_n "checking for ld used by GCC... " >&6; }
13070   case $host in
13071   *-*-mingw*)
13072     # gcc leaves a trailing carriage return which upsets mingw
13073     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13074   *)
13075     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13076   esac
13077   case $ac_prog in
13078     # Accept absolute paths.
13079     [\\/]* | [A-Za-z]:[\\/]*)
13080       re_direlt='/[^/][^/]*/\.\./'
13081       # Canonicalize the path of ld
13082       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13083       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13084         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13085       done
13086       test -z "$LD" && LD="$ac_prog"
13087       ;;
13088   "")
13089     # If it fails, then pretend we aren't using GCC.
13090     ac_prog=ld
13091     ;;
13092   *)
13093     # If it is relative, then search for the first ld in PATH.
13094     with_gnu_ld=unknown
13095     ;;
13096   esac
13097 elif test "$with_gnu_ld" = yes; then
13098   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13099 $as_echo_n "checking for GNU ld... " >&6; }
13100 else
13101   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13102 $as_echo_n "checking for non-GNU ld... " >&6; }
13103 fi
13104 if test "${acl_cv_path_LD+set}" = set; then
13105   $as_echo_n "(cached) " >&6
13106 else
13107   if test -z "$LD"; then
13108   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13109   for ac_dir in $PATH; do
13110     test -z "$ac_dir" && ac_dir=.
13111     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13112       acl_cv_path_LD="$ac_dir/$ac_prog"
13113       # Check to see if the program is GNU ld.  I'd rather use --version,
13114       # but apparently some GNU ld's only accept -v.
13115       # Break only if it was the GNU/non-GNU ld that we prefer.
13116       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13117       *GNU* | *'with BFD'*)
13118         test "$with_gnu_ld" != no && break ;;
13119       *)
13120         test "$with_gnu_ld" != yes && break ;;
13121       esac
13122     fi
13123   done
13124   IFS="$ac_save_ifs"
13125 else
13126   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13127 fi
13128 fi
13129
13130 LD="$acl_cv_path_LD"
13131 if test -n "$LD"; then
13132   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13133 $as_echo "$LD" >&6; }
13134 else
13135   { $as_echo "$as_me:$LINENO: result: no" >&5
13136 $as_echo "no" >&6; }
13137 fi
13138 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13139 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13140    { (exit 1); exit 1; }; }
13141 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13143 if test "${acl_cv_prog_gnu_ld+set}" = set; then
13144   $as_echo_n "(cached) " >&6
13145 else
13146   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13147 case `$LD -v 2>&1 </dev/null` in
13148 *GNU* | *'with BFD'*)
13149   acl_cv_prog_gnu_ld=yes ;;
13150 *)
13151   acl_cv_prog_gnu_ld=no ;;
13152 esac
13153 fi
13154 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13155 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13156 with_gnu_ld=$acl_cv_prog_gnu_ld
13157
13158
13159
13160
13161                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13162 $as_echo_n "checking for shared library run path origin... " >&6; }
13163 if test "${acl_cv_rpath+set}" = set; then
13164   $as_echo_n "(cached) " >&6
13165 else
13166
13167     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13168     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13169     . ./conftest.sh
13170     rm -f ./conftest.sh
13171     acl_cv_rpath=done
13172
13173 fi
13174 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13175 $as_echo "$acl_cv_rpath" >&6; }
13176   wl="$acl_cv_wl"
13177   libext="$acl_cv_libext"
13178   shlibext="$acl_cv_shlibext"
13179   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13180   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13181   hardcode_direct="$acl_cv_hardcode_direct"
13182   hardcode_minus_L="$acl_cv_hardcode_minus_L"
13183     # Check whether --enable-rpath was given.
13184 if test "${enable_rpath+set}" = set; then
13185   enableval=$enable_rpath; :
13186 else
13187   enable_rpath=yes
13188 fi
13189
13190
13191
13192                   acl_libdirstem=lib
13193   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13194   if test -n "$searchpath"; then
13195     acl_save_IFS="${IFS=        }"; IFS=":"
13196     for searchdir in $searchpath; do
13197       if test -d "$searchdir"; then
13198         case "$searchdir" in
13199           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13200           *) searchdir=`cd "$searchdir" && pwd`
13201              case "$searchdir" in
13202                */lib64 ) acl_libdirstem=lib64 ;;
13203              esac ;;
13204         esac
13205       fi
13206     done
13207     IFS="$acl_save_IFS"
13208   fi
13209
13210
13211
13212   gl_threads_api=none
13213   LIBTHREAD=
13214   LTLIBTHREAD=
13215   LIBMULTITHREAD=
13216   LTLIBMULTITHREAD=
13217   if test "$gl_use_threads" != no; then
13218         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
13219 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13220 if test "${gl_cv_have_weak+set}" = set; then
13221   $as_echo_n "(cached) " >&6
13222 else
13223   gl_cv_have_weak=no
13224               cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230 extern void xyzzy ();
13231 #pragma weak xyzzy
13232 int
13233 main ()
13234 {
13235 xyzzy();
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13247 $as_echo "$ac_try_echo") >&5
13248   (eval "$ac_link") 2>conftest.er1
13249   ac_status=$?
13250   grep -v '^ *+' conftest.er1 >conftest.err
13251   rm -f conftest.er1
13252   cat conftest.err >&5
13253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); } && {
13255          test -z "$ac_c_werror_flag" ||
13256          test ! -s conftest.err
13257        } && test -s conftest$ac_exeext && {
13258          test "$cross_compiling" = yes ||
13259          $as_test_x conftest$ac_exeext
13260        }; then
13261   gl_cv_have_weak=maybe
13262 else
13263   $as_echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266
13267 fi
13268
13269 rm -rf conftest.dSYM
13270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13271       conftest$ac_exeext conftest.$ac_ext
13272        if test $gl_cv_have_weak = maybe; then
13273                            if test "$cross_compiling" = yes; then
13274                           cat >conftest.$ac_ext <<_ACEOF
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280 #ifdef __ELF__
13281                Extensible Linking Format
13282                #endif
13283
13284 _ACEOF
13285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13286   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then
13287   gl_cv_have_weak="guessing yes"
13288 else
13289   gl_cv_have_weak="guessing no"
13290 fi
13291 rm -f conftest*
13292
13293
13294 else
13295   cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h.  */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h.  */
13301
13302 #include <stdio.h>
13303 #pragma weak fputs
13304 int main ()
13305 {
13306   return (fputs == NULL);
13307 }
13308 _ACEOF
13309 rm -f conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313   *) ac_try_echo=$ac_try;;
13314 esac
13315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13316 $as_echo "$ac_try_echo") >&5
13317   (eval "$ac_link") 2>&5
13318   ac_status=$?
13319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13321   { (case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13326 $as_echo "$ac_try_echo") >&5
13327   (eval "$ac_try") 2>&5
13328   ac_status=$?
13329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; }; then
13331   gl_cv_have_weak=yes
13332 else
13333   $as_echo "$as_me: program exited with status $ac_status" >&5
13334 $as_echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 ( exit $ac_status )
13338 gl_cv_have_weak=no
13339 fi
13340 rm -rf conftest.dSYM
13341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13342 fi
13343
13344
13345        fi
13346
13347 fi
13348 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_weak" >&5
13349 $as_echo "$gl_cv_have_weak" >&6; }
13350     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13351       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13352       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
13353       if test "${ac_cv_header_pthread_h+set}" = set; then
13354   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13355 $as_echo_n "checking for pthread.h... " >&6; }
13356 if test "${ac_cv_header_pthread_h+set}" = set; then
13357   $as_echo_n "(cached) " >&6
13358 fi
13359 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13360 $as_echo "$ac_cv_header_pthread_h" >&6; }
13361 else
13362   # Is the header compilable?
13363 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
13364 $as_echo_n "checking pthread.h usability... " >&6; }
13365 cat >conftest.$ac_ext <<_ACEOF
13366 /* confdefs.h.  */
13367 _ACEOF
13368 cat confdefs.h >>conftest.$ac_ext
13369 cat >>conftest.$ac_ext <<_ACEOF
13370 /* end confdefs.h.  */
13371 $ac_includes_default
13372 #include <pthread.h>
13373 _ACEOF
13374 rm -f conftest.$ac_objext
13375 if { (ac_try="$ac_compile"
13376 case "(($ac_try" in
13377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378   *) ac_try_echo=$ac_try;;
13379 esac
13380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13381 $as_echo "$ac_try_echo") >&5
13382   (eval "$ac_compile") 2>conftest.er1
13383   ac_status=$?
13384   grep -v '^ *+' conftest.er1 >conftest.err
13385   rm -f conftest.er1
13386   cat conftest.err >&5
13387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); } && {
13389          test -z "$ac_c_werror_flag" ||
13390          test ! -s conftest.err
13391        } && test -s conftest.$ac_objext; then
13392   ac_header_compiler=yes
13393 else
13394   $as_echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13396
13397         ac_header_compiler=no
13398 fi
13399
13400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13401 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13402 $as_echo "$ac_header_compiler" >&6; }
13403
13404 # Is the header present?
13405 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
13406 $as_echo_n "checking pthread.h presence... " >&6; }
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h.  */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h.  */
13413 #include <pthread.h>
13414 _ACEOF
13415 if { (ac_try="$ac_cpp conftest.$ac_ext"
13416 case "(($ac_try" in
13417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418   *) ac_try_echo=$ac_try;;
13419 esac
13420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13421 $as_echo "$ac_try_echo") >&5
13422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13423   ac_status=$?
13424   grep -v '^ *+' conftest.er1 >conftest.err
13425   rm -f conftest.er1
13426   cat conftest.err >&5
13427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } >/dev/null && {
13429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13430          test ! -s conftest.err
13431        }; then
13432   ac_header_preproc=yes
13433 else
13434   $as_echo "$as_me: failed program was:" >&5
13435 sed 's/^/| /' conftest.$ac_ext >&5
13436
13437   ac_header_preproc=no
13438 fi
13439
13440 rm -f conftest.err conftest.$ac_ext
13441 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13442 $as_echo "$ac_header_preproc" >&6; }
13443
13444 # So?  What about this header?
13445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13446   yes:no: )
13447     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13448 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13449     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
13450 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
13451     ac_header_preproc=yes
13452     ;;
13453   no:yes:* )
13454     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13455 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13456     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
13457 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
13458     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
13459 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
13460     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
13461 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13462     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13463 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
13464     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
13465 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
13466
13467     ;;
13468 esac
13469 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13470 $as_echo_n "checking for pthread.h... " >&6; }
13471 if test "${ac_cv_header_pthread_h+set}" = set; then
13472   $as_echo_n "(cached) " >&6
13473 else
13474   ac_cv_header_pthread_h=$ac_header_preproc
13475 fi
13476 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13477 $as_echo "$ac_cv_header_pthread_h" >&6; }
13478
13479 fi
13480 if test "x$ac_cv_header_pthread_h" = x""yes; then
13481   gl_have_pthread_h=yes
13482 else
13483   gl_have_pthread_h=no
13484 fi
13485
13486
13487       if test "$gl_have_pthread_h" = yes; then
13488         # Other possible tests:
13489         #   -lpthreads (FSU threads, PCthreads)
13490         #   -lgthreads
13491         gl_have_pthread=
13492         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13493         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13494         # the second one only in libpthread, and lock.c needs it.
13495         cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h.  */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h.  */
13501 #include <pthread.h>
13502 int
13503 main ()
13504 {
13505 pthread_mutex_lock((pthread_mutex_t*)0);
13506                pthread_mutexattr_init((pthread_mutexattr_t*)0);
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext conftest$ac_exeext
13512 if { (ac_try="$ac_link"
13513 case "(($ac_try" in
13514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515   *) ac_try_echo=$ac_try;;
13516 esac
13517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13518 $as_echo "$ac_try_echo") >&5
13519   (eval "$ac_link") 2>conftest.er1
13520   ac_status=$?
13521   grep -v '^ *+' conftest.er1 >conftest.err
13522   rm -f conftest.er1
13523   cat conftest.err >&5
13524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); } && {
13526          test -z "$ac_c_werror_flag" ||
13527          test ! -s conftest.err
13528        } && test -s conftest$ac_exeext && {
13529          test "$cross_compiling" = yes ||
13530          $as_test_x conftest$ac_exeext
13531        }; then
13532   gl_have_pthread=yes
13533 else
13534   $as_echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537
13538 fi
13539
13540 rm -rf conftest.dSYM
13541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13542       conftest$ac_exeext conftest.$ac_ext
13543         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13544         # since it is defined as a macro on OSF/1.)
13545         if test -n "$gl_have_pthread"; then
13546           # The program links fine without libpthread. But it may actually
13547           # need to link with libpthread in order to create multiple threads.
13548           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13549 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13550 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13551   $as_echo_n "(cached) " >&6
13552 else
13553   ac_check_lib_save_LIBS=$LIBS
13554 LIBS="-lpthread  $LIBS"
13555 cat >conftest.$ac_ext <<_ACEOF
13556 /* confdefs.h.  */
13557 _ACEOF
13558 cat confdefs.h >>conftest.$ac_ext
13559 cat >>conftest.$ac_ext <<_ACEOF
13560 /* end confdefs.h.  */
13561
13562 /* Override any GCC internal prototype to avoid an error.
13563    Use char because int might match the return type of a GCC
13564    builtin and then its argument prototype would still apply.  */
13565 #ifdef __cplusplus
13566 extern "C"
13567 #endif
13568 char pthread_kill ();
13569 int
13570 main ()
13571 {
13572 return pthread_kill ();
13573   ;
13574   return 0;
13575 }
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (ac_try="$ac_link"
13579 case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584 $as_echo "$ac_try_echo") >&5
13585   (eval "$ac_link") 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } && {
13592          test -z "$ac_c_werror_flag" ||
13593          test ! -s conftest.err
13594        } && test -s conftest$ac_exeext && {
13595          test "$cross_compiling" = yes ||
13596          $as_test_x conftest$ac_exeext
13597        }; then
13598   ac_cv_lib_pthread_pthread_kill=yes
13599 else
13600   $as_echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13602
13603         ac_cv_lib_pthread_pthread_kill=no
13604 fi
13605
13606 rm -rf conftest.dSYM
13607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13608       conftest$ac_exeext conftest.$ac_ext
13609 LIBS=$ac_check_lib_save_LIBS
13610 fi
13611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13612 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13613 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13614   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13615              # On Solaris and HP-UX, most pthread functions exist also in libc.
13616              # Therefore pthread_in_use() needs to actually try to create a
13617              # thread: pthread_create from libc will fail, whereas
13618              # pthread_create will actually create a thread.
13619              case "$host_os" in
13620                solaris* | hpux*)
13621
13622 cat >>confdefs.h <<\_ACEOF
13623 #define PTHREAD_IN_USE_DETECTION_HARD 1
13624 _ACEOF
13625
13626              esac
13627
13628 fi
13629
13630         else
13631           # Some library is needed. Try libpthread and libc_r.
13632           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13633 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13634 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13635   $as_echo_n "(cached) " >&6
13636 else
13637   ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lpthread  $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647    Use char because int might match the return type of a GCC
13648    builtin and then its argument prototype would still apply.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char pthread_kill ();
13653 int
13654 main ()
13655 {
13656 return pthread_kill ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13668 $as_echo "$ac_try_echo") >&5
13669   (eval "$ac_link") 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } && {
13676          test -z "$ac_c_werror_flag" ||
13677          test ! -s conftest.err
13678        } && test -s conftest$ac_exeext && {
13679          test "$cross_compiling" = yes ||
13680          $as_test_x conftest$ac_exeext
13681        }; then
13682   ac_cv_lib_pthread_pthread_kill=yes
13683 else
13684   $as_echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13686
13687         ac_cv_lib_pthread_pthread_kill=no
13688 fi
13689
13690 rm -rf conftest.dSYM
13691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13692       conftest$ac_exeext conftest.$ac_ext
13693 LIBS=$ac_check_lib_save_LIBS
13694 fi
13695 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13696 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13697 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13698   gl_have_pthread=yes
13699              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
13700              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13701 fi
13702
13703           if test -z "$gl_have_pthread"; then
13704             # For FreeBSD 4.
13705             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
13706 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13707 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
13708   $as_echo_n "(cached) " >&6
13709 else
13710   ac_check_lib_save_LIBS=$LIBS
13711 LIBS="-lc_r  $LIBS"
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718
13719 /* Override any GCC internal prototype to avoid an error.
13720    Use char because int might match the return type of a GCC
13721    builtin and then its argument prototype would still apply.  */
13722 #ifdef __cplusplus
13723 extern "C"
13724 #endif
13725 char pthread_kill ();
13726 int
13727 main ()
13728 {
13729 return pthread_kill ();
13730   ;
13731   return 0;
13732 }
13733 _ACEOF
13734 rm -f conftest.$ac_objext conftest$ac_exeext
13735 if { (ac_try="$ac_link"
13736 case "(($ac_try" in
13737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738   *) ac_try_echo=$ac_try;;
13739 esac
13740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13741 $as_echo "$ac_try_echo") >&5
13742   (eval "$ac_link") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } && {
13749          test -z "$ac_c_werror_flag" ||
13750          test ! -s conftest.err
13751        } && test -s conftest$ac_exeext && {
13752          test "$cross_compiling" = yes ||
13753          $as_test_x conftest$ac_exeext
13754        }; then
13755   ac_cv_lib_c_r_pthread_kill=yes
13756 else
13757   $as_echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13759
13760         ac_cv_lib_c_r_pthread_kill=no
13761 fi
13762
13763 rm -rf conftest.dSYM
13764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13765       conftest$ac_exeext conftest.$ac_ext
13766 LIBS=$ac_check_lib_save_LIBS
13767 fi
13768 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
13769 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13770 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
13771   gl_have_pthread=yes
13772                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
13773                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
13774 fi
13775
13776           fi
13777         fi
13778         if test -n "$gl_have_pthread"; then
13779           gl_threads_api=posix
13780
13781 cat >>confdefs.h <<\_ACEOF
13782 #define USE_POSIX_THREADS 1
13783 _ACEOF
13784
13785           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
13786             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13787
13788 cat >>confdefs.h <<\_ACEOF
13789 #define USE_POSIX_THREADS_WEAK 1
13790 _ACEOF
13791
13792               LIBTHREAD=
13793               LTLIBTHREAD=
13794             fi
13795           fi
13796         fi
13797       fi
13798     fi
13799     if test -z "$gl_have_pthread"; then
13800       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
13801         gl_have_solaristhread=
13802         gl_save_LIBS="$LIBS"
13803         LIBS="$LIBS -lthread"
13804         cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h.  */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h.  */
13810
13811 #include <thread.h>
13812 #include <synch.h>
13813
13814 int
13815 main ()
13816 {
13817 thr_self();
13818   ;
13819   return 0;
13820 }
13821 _ACEOF
13822 rm -f conftest.$ac_objext conftest$ac_exeext
13823 if { (ac_try="$ac_link"
13824 case "(($ac_try" in
13825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826   *) ac_try_echo=$ac_try;;
13827 esac
13828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13829 $as_echo "$ac_try_echo") >&5
13830   (eval "$ac_link") 2>conftest.er1
13831   ac_status=$?
13832   grep -v '^ *+' conftest.er1 >conftest.err
13833   rm -f conftest.er1
13834   cat conftest.err >&5
13835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836   (exit $ac_status); } && {
13837          test -z "$ac_c_werror_flag" ||
13838          test ! -s conftest.err
13839        } && test -s conftest$ac_exeext && {
13840          test "$cross_compiling" = yes ||
13841          $as_test_x conftest$ac_exeext
13842        }; then
13843   gl_have_solaristhread=yes
13844 else
13845   $as_echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13847
13848
13849 fi
13850
13851 rm -rf conftest.dSYM
13852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13853       conftest$ac_exeext conftest.$ac_ext
13854         LIBS="$gl_save_LIBS"
13855         if test -n "$gl_have_solaristhread"; then
13856           gl_threads_api=solaris
13857           LIBTHREAD=-lthread
13858           LTLIBTHREAD=-lthread
13859           LIBMULTITHREAD="$LIBTHREAD"
13860           LTLIBMULTITHREAD="$LTLIBTHREAD"
13861
13862 cat >>confdefs.h <<\_ACEOF
13863 #define USE_SOLARIS_THREADS 1
13864 _ACEOF
13865
13866           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13867
13868 cat >>confdefs.h <<\_ACEOF
13869 #define USE_SOLARIS_THREADS_WEAK 1
13870 _ACEOF
13871
13872             LIBTHREAD=
13873             LTLIBTHREAD=
13874           fi
13875         fi
13876       fi
13877     fi
13878     if test "$gl_use_threads" = pth; then
13879       gl_save_CPPFLAGS="$CPPFLAGS"
13880
13881
13882
13883
13884
13885   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
13886 $as_echo_n "checking how to link with libpth... " >&6; }
13887 if test "${ac_cv_libpth_libs+set}" = set; then
13888   $as_echo_n "(cached) " >&6
13889 else
13890
13891
13892
13893
13894     use_additional=yes
13895
13896   acl_save_prefix="$prefix"
13897   prefix="$acl_final_prefix"
13898   acl_save_exec_prefix="$exec_prefix"
13899   exec_prefix="$acl_final_exec_prefix"
13900
13901     eval additional_includedir=\"$includedir\"
13902     eval additional_libdir=\"$libdir\"
13903
13904   exec_prefix="$acl_save_exec_prefix"
13905   prefix="$acl_save_prefix"
13906
13907
13908 # Check whether --with-libpth-prefix was given.
13909 if test "${with_libpth_prefix+set}" = set; then
13910   withval=$with_libpth_prefix;
13911     if test "X$withval" = "Xno"; then
13912       use_additional=no
13913     else
13914       if test "X$withval" = "X"; then
13915
13916   acl_save_prefix="$prefix"
13917   prefix="$acl_final_prefix"
13918   acl_save_exec_prefix="$exec_prefix"
13919   exec_prefix="$acl_final_exec_prefix"
13920
13921           eval additional_includedir=\"$includedir\"
13922           eval additional_libdir=\"$libdir\"
13923
13924   exec_prefix="$acl_save_exec_prefix"
13925   prefix="$acl_save_prefix"
13926
13927       else
13928         additional_includedir="$withval/include"
13929         additional_libdir="$withval/$acl_libdirstem"
13930       fi
13931     fi
13932
13933 fi
13934
13935       LIBPTH=
13936   LTLIBPTH=
13937   INCPTH=
13938   rpathdirs=
13939   ltrpathdirs=
13940   names_already_handled=
13941   names_next_round='pth '
13942   while test -n "$names_next_round"; do
13943     names_this_round="$names_next_round"
13944     names_next_round=
13945     for name in $names_this_round; do
13946       already_handled=
13947       for n in $names_already_handled; do
13948         if test "$n" = "$name"; then
13949           already_handled=yes
13950           break
13951         fi
13952       done
13953       if test -z "$already_handled"; then
13954         names_already_handled="$names_already_handled $name"
13955                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13956         eval value=\"\$HAVE_LIB$uppername\"
13957         if test -n "$value"; then
13958           if test "$value" = yes; then
13959             eval value=\"\$LIB$uppername\"
13960             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
13961             eval value=\"\$LTLIB$uppername\"
13962             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
13963           else
13964                                     :
13965           fi
13966         else
13967                               found_dir=
13968           found_la=
13969           found_so=
13970           found_a=
13971           if test $use_additional = yes; then
13972             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13973               found_dir="$additional_libdir"
13974               found_so="$additional_libdir/lib$name.$shlibext"
13975               if test -f "$additional_libdir/lib$name.la"; then
13976                 found_la="$additional_libdir/lib$name.la"
13977               fi
13978             else
13979               if test -f "$additional_libdir/lib$name.$libext"; then
13980                 found_dir="$additional_libdir"
13981                 found_a="$additional_libdir/lib$name.$libext"
13982                 if test -f "$additional_libdir/lib$name.la"; then
13983                   found_la="$additional_libdir/lib$name.la"
13984                 fi
13985               fi
13986             fi
13987           fi
13988           if test "X$found_dir" = "X"; then
13989             for x in $LDFLAGS $LTLIBPTH; do
13990
13991   acl_save_prefix="$prefix"
13992   prefix="$acl_final_prefix"
13993   acl_save_exec_prefix="$exec_prefix"
13994   exec_prefix="$acl_final_exec_prefix"
13995   eval x=\"$x\"
13996   exec_prefix="$acl_save_exec_prefix"
13997   prefix="$acl_save_prefix"
13998
13999               case "$x" in
14000                 -L*)
14001                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14002                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14003                     found_dir="$dir"
14004                     found_so="$dir/lib$name.$shlibext"
14005                     if test -f "$dir/lib$name.la"; then
14006                       found_la="$dir/lib$name.la"
14007                     fi
14008                   else
14009                     if test -f "$dir/lib$name.$libext"; then
14010                       found_dir="$dir"
14011                       found_a="$dir/lib$name.$libext"
14012                       if test -f "$dir/lib$name.la"; then
14013                         found_la="$dir/lib$name.la"
14014                       fi
14015                     fi
14016                   fi
14017                   ;;
14018               esac
14019               if test "X$found_dir" != "X"; then
14020                 break
14021               fi
14022             done
14023           fi
14024           if test "X$found_dir" != "X"; then
14025                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
14026             if test "X$found_so" != "X"; then
14027                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14028                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14029               else
14030                                                                                 haveit=
14031                 for x in $ltrpathdirs; do
14032                   if test "X$x" = "X$found_dir"; then
14033                     haveit=yes
14034                     break
14035                   fi
14036                 done
14037                 if test -z "$haveit"; then
14038                   ltrpathdirs="$ltrpathdirs $found_dir"
14039                 fi
14040                                 if test "$hardcode_direct" = yes; then
14041                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14042                 else
14043                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14044                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14045                                                             haveit=
14046                     for x in $rpathdirs; do
14047                       if test "X$x" = "X$found_dir"; then
14048                         haveit=yes
14049                         break
14050                       fi
14051                     done
14052                     if test -z "$haveit"; then
14053                       rpathdirs="$rpathdirs $found_dir"
14054                     fi
14055                   else
14056                                                                                 haveit=
14057                     for x in $LDFLAGS $LIBPTH; do
14058
14059   acl_save_prefix="$prefix"
14060   prefix="$acl_final_prefix"
14061   acl_save_exec_prefix="$exec_prefix"
14062   exec_prefix="$acl_final_exec_prefix"
14063   eval x=\"$x\"
14064   exec_prefix="$acl_save_exec_prefix"
14065   prefix="$acl_save_prefix"
14066
14067                       if test "X$x" = "X-L$found_dir"; then
14068                         haveit=yes
14069                         break
14070                       fi
14071                     done
14072                     if test -z "$haveit"; then
14073                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
14074                     fi
14075                     if test "$hardcode_minus_L" != no; then
14076                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14077                     else
14078                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14079                     fi
14080                   fi
14081                 fi
14082               fi
14083             else
14084               if test "X$found_a" != "X"; then
14085                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
14086               else
14087                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
14088               fi
14089             fi
14090                         additional_includedir=
14091             case "$found_dir" in
14092               */$acl_libdirstem | */$acl_libdirstem/)
14093                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14094                 additional_includedir="$basedir/include"
14095                 ;;
14096             esac
14097             if test "X$additional_includedir" != "X"; then
14098                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14099                 haveit=
14100                 if test "X$additional_includedir" = "X/usr/local/include"; then
14101                   if test -n "$GCC"; then
14102                     case $host_os in
14103                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14104                     esac
14105                   fi
14106                 fi
14107                 if test -z "$haveit"; then
14108                   for x in $CPPFLAGS $INCPTH; do
14109
14110   acl_save_prefix="$prefix"
14111   prefix="$acl_final_prefix"
14112   acl_save_exec_prefix="$exec_prefix"
14113   exec_prefix="$acl_final_exec_prefix"
14114   eval x=\"$x\"
14115   exec_prefix="$acl_save_exec_prefix"
14116   prefix="$acl_save_prefix"
14117
14118                     if test "X$x" = "X-I$additional_includedir"; then
14119                       haveit=yes
14120                       break
14121                     fi
14122                   done
14123                   if test -z "$haveit"; then
14124                     if test -d "$additional_includedir"; then
14125                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
14126                     fi
14127                   fi
14128                 fi
14129               fi
14130             fi
14131                         if test -n "$found_la"; then
14132                                                         save_libdir="$libdir"
14133               case "$found_la" in
14134                 */* | *\\*) . "$found_la" ;;
14135                 *) . "./$found_la" ;;
14136               esac
14137               libdir="$save_libdir"
14138                             for dep in $dependency_libs; do
14139                 case "$dep" in
14140                   -L*)
14141                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14142                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14143                       haveit=
14144                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14145                         if test -n "$GCC"; then
14146                           case $host_os in
14147                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14148                           esac
14149                         fi
14150                       fi
14151                       if test -z "$haveit"; then
14152                         haveit=
14153                         for x in $LDFLAGS $LIBPTH; do
14154
14155   acl_save_prefix="$prefix"
14156   prefix="$acl_final_prefix"
14157   acl_save_exec_prefix="$exec_prefix"
14158   exec_prefix="$acl_final_exec_prefix"
14159   eval x=\"$x\"
14160   exec_prefix="$acl_save_exec_prefix"
14161   prefix="$acl_save_prefix"
14162
14163                           if test "X$x" = "X-L$additional_libdir"; then
14164                             haveit=yes
14165                             break
14166                           fi
14167                         done
14168                         if test -z "$haveit"; then
14169                           if test -d "$additional_libdir"; then
14170                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
14171                           fi
14172                         fi
14173                         haveit=
14174                         for x in $LDFLAGS $LTLIBPTH; do
14175
14176   acl_save_prefix="$prefix"
14177   prefix="$acl_final_prefix"
14178   acl_save_exec_prefix="$exec_prefix"
14179   exec_prefix="$acl_final_exec_prefix"
14180   eval x=\"$x\"
14181   exec_prefix="$acl_save_exec_prefix"
14182   prefix="$acl_save_prefix"
14183
14184                           if test "X$x" = "X-L$additional_libdir"; then
14185                             haveit=yes
14186                             break
14187                           fi
14188                         done
14189                         if test -z "$haveit"; then
14190                           if test -d "$additional_libdir"; then
14191                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
14192                           fi
14193                         fi
14194                       fi
14195                     fi
14196                     ;;
14197                   -R*)
14198                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14199                     if test "$enable_rpath" != no; then
14200                                                                   haveit=
14201                       for x in $rpathdirs; do
14202                         if test "X$x" = "X$dir"; then
14203                           haveit=yes
14204                           break
14205                         fi
14206                       done
14207                       if test -z "$haveit"; then
14208                         rpathdirs="$rpathdirs $dir"
14209                       fi
14210                                                                   haveit=
14211                       for x in $ltrpathdirs; do
14212                         if test "X$x" = "X$dir"; then
14213                           haveit=yes
14214                           break
14215                         fi
14216                       done
14217                       if test -z "$haveit"; then
14218                         ltrpathdirs="$ltrpathdirs $dir"
14219                       fi
14220                     fi
14221                     ;;
14222                   -l*)
14223                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14224                     ;;
14225                   *.la)
14226                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14227                     ;;
14228                   *)
14229                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
14230                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
14231                     ;;
14232                 esac
14233               done
14234             fi
14235           else
14236                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14237             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
14238           fi
14239         fi
14240       fi
14241     done
14242   done
14243   if test "X$rpathdirs" != "X"; then
14244     if test -n "$hardcode_libdir_separator"; then
14245                         alldirs=
14246       for found_dir in $rpathdirs; do
14247         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14248       done
14249             acl_save_libdir="$libdir"
14250       libdir="$alldirs"
14251       eval flag=\"$hardcode_libdir_flag_spec\"
14252       libdir="$acl_save_libdir"
14253       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14254     else
14255             for found_dir in $rpathdirs; do
14256         acl_save_libdir="$libdir"
14257         libdir="$found_dir"
14258         eval flag=\"$hardcode_libdir_flag_spec\"
14259         libdir="$acl_save_libdir"
14260         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14261       done
14262     fi
14263   fi
14264   if test "X$ltrpathdirs" != "X"; then
14265             for found_dir in $ltrpathdirs; do
14266       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
14267     done
14268   fi
14269
14270     ac_cv_libpth_libs="$LIBPTH"
14271     ac_cv_libpth_ltlibs="$LTLIBPTH"
14272     ac_cv_libpth_cppflags="$INCPTH"
14273
14274 fi
14275 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
14276 $as_echo "$ac_cv_libpth_libs" >&6; }
14277   LIBPTH="$ac_cv_libpth_libs"
14278   LTLIBPTH="$ac_cv_libpth_ltlibs"
14279   INCPTH="$ac_cv_libpth_cppflags"
14280
14281   for element in $INCPTH; do
14282     haveit=
14283     for x in $CPPFLAGS; do
14284
14285   acl_save_prefix="$prefix"
14286   prefix="$acl_final_prefix"
14287   acl_save_exec_prefix="$exec_prefix"
14288   exec_prefix="$acl_final_exec_prefix"
14289   eval x=\"$x\"
14290   exec_prefix="$acl_save_exec_prefix"
14291   prefix="$acl_save_prefix"
14292
14293       if test "X$x" = "X$element"; then
14294         haveit=yes
14295         break
14296       fi
14297     done
14298     if test -z "$haveit"; then
14299       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14300     fi
14301   done
14302
14303
14304
14305       HAVE_LIBPTH=yes
14306
14307
14308
14309       gl_have_pth=
14310       gl_save_LIBS="$LIBS"
14311       LIBS="$LIBS -lpth"
14312       cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 #include <pth.h>
14319 int
14320 main ()
14321 {
14322 pth_self();
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14334 $as_echo "$ac_try_echo") >&5
14335   (eval "$ac_link") 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } && {
14342          test -z "$ac_c_werror_flag" ||
14343          test ! -s conftest.err
14344        } && test -s conftest$ac_exeext && {
14345          test "$cross_compiling" = yes ||
14346          $as_test_x conftest$ac_exeext
14347        }; then
14348   gl_have_pth=yes
14349 else
14350   $as_echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353
14354 fi
14355
14356 rm -rf conftest.dSYM
14357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14358       conftest$ac_exeext conftest.$ac_ext
14359       LIBS="$gl_save_LIBS"
14360       if test -n "$gl_have_pth"; then
14361         gl_threads_api=pth
14362         LIBTHREAD="$LIBPTH"
14363         LTLIBTHREAD="$LTLIBPTH"
14364         LIBMULTITHREAD="$LIBTHREAD"
14365         LTLIBMULTITHREAD="$LTLIBTHREAD"
14366
14367 cat >>confdefs.h <<\_ACEOF
14368 #define USE_PTH_THREADS 1
14369 _ACEOF
14370
14371         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14372           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
14373
14374 cat >>confdefs.h <<\_ACEOF
14375 #define USE_PTH_THREADS_WEAK 1
14376 _ACEOF
14377
14378             LIBTHREAD=
14379             LTLIBTHREAD=
14380           fi
14381         fi
14382       else
14383         CPPFLAGS="$gl_save_CPPFLAGS"
14384       fi
14385     fi
14386     if test -z "$gl_have_pthread"; then
14387       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
14388         if { case "$host_os" in
14389                mingw*) true;;
14390                *) false;;
14391              esac
14392            }; then
14393           gl_threads_api=win32
14394
14395 cat >>confdefs.h <<\_ACEOF
14396 #define USE_WIN32_THREADS 1
14397 _ACEOF
14398
14399         fi
14400       fi
14401     fi
14402   fi
14403   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
14404 $as_echo_n "checking for multithread API to use... " >&6; }
14405   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
14406 $as_echo "$gl_threads_api" >&6; }
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417      GNULIB_FCHMODAT=0;
14418   GNULIB_FSTATAT=0;
14419   GNULIB_FUTIMENS=0;
14420   GNULIB_LCHMOD=0;
14421   GNULIB_LSTAT=0;
14422   GNULIB_MKDIRAT=0;
14423   GNULIB_MKFIFO=0;
14424   GNULIB_MKFIFOAT=0;
14425   GNULIB_MKNOD=0;
14426   GNULIB_MKNODAT=0;
14427   GNULIB_STAT=0;
14428   GNULIB_UTIMENSAT=0;
14429     HAVE_FCHMODAT=1;
14430   HAVE_FSTATAT=1;
14431   HAVE_FUTIMENS=1;
14432   HAVE_LCHMOD=1;
14433   HAVE_LSTAT=1;
14434   HAVE_MKDIRAT=1;
14435   HAVE_MKFIFO=1;
14436   HAVE_MKFIFOAT=1;
14437   HAVE_MKNOD=1;
14438   HAVE_MKNODAT=1;
14439   HAVE_UTIMENSAT=1;
14440   REPLACE_FSTAT=0;
14441   REPLACE_FSTATAT=0;
14442   REPLACE_FUTIMENS=0;
14443   REPLACE_LSTAT=0;
14444   REPLACE_MKDIR=0;
14445   REPLACE_MKFIFO=0;
14446   REPLACE_MKNOD=0;
14447   REPLACE_STAT=0;
14448   REPLACE_UTIMENSAT=0;
14449
14450
14451
14452
14453
14454
14455
14456 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14457 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
14458 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14459   $as_echo_n "(cached) " >&6
14460 else
14461   rm -f conftest.sym conftest.file
14462 echo >conftest.file
14463 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14464   if test "$cross_compiling" = yes; then
14465   ac_cv_func_lstat_dereferences_slashed_symlink=no
14466 else
14467   cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473 $ac_includes_default
14474 int
14475 main ()
14476 {
14477 struct stat sbuf;
14478      /* Linux will dereference the symlink and fail.
14479         That is better in the sense that it means we will not
14480         have to compile and use the lstat wrapper.  */
14481      return lstat ("conftest.sym/", &sbuf) == 0;
14482   ;
14483   return 0;
14484 }
14485 _ACEOF
14486 rm -f conftest$ac_exeext
14487 if { (ac_try="$ac_link"
14488 case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14493 $as_echo "$ac_try_echo") >&5
14494   (eval "$ac_link") 2>&5
14495   ac_status=$?
14496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14498   { (case "(($ac_try" in
14499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14500   *) ac_try_echo=$ac_try;;
14501 esac
14502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14503 $as_echo "$ac_try_echo") >&5
14504   (eval "$ac_try") 2>&5
14505   ac_status=$?
14506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); }; }; then
14508   ac_cv_func_lstat_dereferences_slashed_symlink=yes
14509 else
14510   $as_echo "$as_me: program exited with status $ac_status" >&5
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 ( exit $ac_status )
14515 ac_cv_func_lstat_dereferences_slashed_symlink=no
14516 fi
14517 rm -rf conftest.dSYM
14518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14519 fi
14520
14521
14522 else
14523   # If the `ln -s' command failed, then we probably don't even
14524   # have an lstat function.
14525   ac_cv_func_lstat_dereferences_slashed_symlink=no
14526 fi
14527 rm -f conftest.sym conftest.file
14528
14529 fi
14530 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14531 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14532
14533 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14534
14535 cat >>confdefs.h <<_ACEOF
14536 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14537 _ACEOF
14538
14539
14540 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14541
14542
14543
14544
14545
14546
14547
14548
14549   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14550
14551 fi
14552
14553
14554   GNULIB__EXIT=0;
14555   GNULIB_ATOLL=0;
14556   GNULIB_CALLOC_POSIX=0;
14557   GNULIB_CANONICALIZE_FILE_NAME=0;
14558   GNULIB_GETLOADAVG=0;
14559   GNULIB_GETSUBOPT=0;
14560   GNULIB_GRANTPT=0;
14561   GNULIB_MALLOC_POSIX=0;
14562   GNULIB_MKDTEMP=0;
14563   GNULIB_MKOSTEMP=0;
14564   GNULIB_MKOSTEMPS=0;
14565   GNULIB_MKSTEMP=0;
14566   GNULIB_MKSTEMPS=0;
14567   GNULIB_PTSNAME=0;
14568   GNULIB_PUTENV=0;
14569   GNULIB_RANDOM_R=0;
14570   GNULIB_REALLOC_POSIX=0;
14571   GNULIB_REALPATH=0;
14572   GNULIB_RPMATCH=0;
14573   GNULIB_SETENV=0;
14574   GNULIB_STRTOD=0;
14575   GNULIB_STRTOLL=0;
14576   GNULIB_STRTOULL=0;
14577   GNULIB_UNLOCKPT=0;
14578   GNULIB_UNSETENV=0;
14579     HAVE__EXIT=1;
14580   HAVE_ATOLL=1;
14581   HAVE_CANONICALIZE_FILE_NAME=1;
14582   HAVE_DECL_GETLOADAVG=1;
14583   HAVE_GETSUBOPT=1;
14584   HAVE_GRANTPT=1;
14585   HAVE_MKDTEMP=1;
14586   HAVE_MKOSTEMP=1;
14587   HAVE_MKOSTEMPS=1;
14588   HAVE_MKSTEMP=1;
14589   HAVE_MKSTEMPS=1;
14590   HAVE_PTSNAME=1;
14591   HAVE_RANDOM_R=1;
14592   HAVE_REALPATH=1;
14593   HAVE_RPMATCH=1;
14594   HAVE_SETENV=1;
14595   HAVE_STRTOD=1;
14596   HAVE_STRTOLL=1;
14597   HAVE_STRTOULL=1;
14598   HAVE_STRUCT_RANDOM_DATA=1;
14599   HAVE_SYS_LOADAVG_H=0;
14600   HAVE_UNLOCKPT=1;
14601   HAVE_UNSETENV=1;
14602   REPLACE_CALLOC=0;
14603   REPLACE_CANONICALIZE_FILE_NAME=0;
14604   REPLACE_MALLOC=0;
14605   REPLACE_MKSTEMP=0;
14606   REPLACE_PUTENV=0;
14607   REPLACE_REALLOC=0;
14608   REPLACE_REALPATH=0;
14609   REPLACE_SETENV=0;
14610   REPLACE_STRTOD=0;
14611   REPLACE_UNSETENV=0;
14612
14613
14614   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14615 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14616 if test "${gl_cv_func_malloc_posix+set}" = set; then
14617   $as_echo_n "(cached) " >&6
14618 else
14619
14620                         cat >conftest.$ac_ext <<_ACEOF
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626
14627 int
14628 main ()
14629 {
14630 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14631              choke me
14632              #endif
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (ac_try="$ac_compile"
14640 case "(($ac_try" in
14641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642   *) ac_try_echo=$ac_try;;
14643 esac
14644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14645 $as_echo "$ac_try_echo") >&5
14646   (eval "$ac_compile") 2>conftest.er1
14647   ac_status=$?
14648   grep -v '^ *+' conftest.er1 >conftest.err
14649   rm -f conftest.er1
14650   cat conftest.err >&5
14651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } && {
14653          test -z "$ac_c_werror_flag" ||
14654          test ! -s conftest.err
14655        } && test -s conftest.$ac_objext; then
14656   gl_cv_func_malloc_posix=yes
14657 else
14658   $as_echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14660
14661         gl_cv_func_malloc_posix=no
14662 fi
14663
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665
14666 fi
14667 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
14668 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14669
14670
14671
14672    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14673 $as_echo_n "checking for mbstate_t... " >&6; }
14674 if test "${ac_cv_type_mbstate_t+set}" = set; then
14675   $as_echo_n "(cached) " >&6
14676 else
14677   cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h.  */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h.  */
14683 $ac_includes_default
14684 #           include <wchar.h>
14685 int
14686 main ()
14687 {
14688 mbstate_t x; return sizeof x;
14689   ;
14690   return 0;
14691 }
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14700 $as_echo "$ac_try_echo") >&5
14701   (eval "$ac_compile") 2>conftest.er1
14702   ac_status=$?
14703   grep -v '^ *+' conftest.er1 >conftest.err
14704   rm -f conftest.er1
14705   cat conftest.err >&5
14706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); } && {
14708          test -z "$ac_c_werror_flag" ||
14709          test ! -s conftest.err
14710        } && test -s conftest.$ac_objext; then
14711   ac_cv_type_mbstate_t=yes
14712 else
14713   $as_echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716         ac_cv_type_mbstate_t=no
14717 fi
14718
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 fi
14721 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14722 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14723    if test $ac_cv_type_mbstate_t = yes; then
14724
14725 cat >>confdefs.h <<\_ACEOF
14726 #define HAVE_MBSTATE_T 1
14727 _ACEOF
14728
14729    else
14730
14731 cat >>confdefs.h <<\_ACEOF
14732 #define mbstate_t int
14733 _ACEOF
14734
14735    fi
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
14753 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14754 if test "${gt_cv_locale_ja+set}" = set; then
14755   $as_echo_n "(cached) " >&6
14756 else
14757
14758     cat >conftest.$ac_ext <<_ACEOF
14759 /* confdefs.h.  */
14760 _ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h.  */
14764
14765 #include <locale.h>
14766 #include <time.h>
14767 #if HAVE_LANGINFO_CODESET
14768 # include <langinfo.h>
14769 #endif
14770 #include <stdlib.h>
14771 #include <string.h>
14772 struct tm t;
14773 char buf[16];
14774 int main ()
14775 {
14776   const char *p;
14777   /* Check whether the given locale name is recognized by the system.  */
14778   if (setlocale (LC_ALL, "") == NULL) return 1;
14779   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14780      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14781      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14782      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14783      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14784      some unit tests fail.  */
14785 #if HAVE_LANGINFO_CODESET
14786   {
14787     const char *cs = nl_langinfo (CODESET);
14788     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14789       return 1;
14790   }
14791 #endif
14792 #ifdef __CYGWIN__
14793   /* On Cygwin, avoid locale names without encoding suffix, because the
14794      locale_charset() function relies on the encoding suffix.  Note that
14795      LC_ALL is set on the command line.  */
14796   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14797 #endif
14798   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
14799      on Cygwin 1.5.x.  */
14800   if (MB_CUR_MAX == 1)
14801     return 1;
14802   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14803      This excludes the UTF-8 encoding.  */
14804   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14805   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14806   for (p = buf; *p != '\0'; p++)
14807     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14808       return 1;
14809   return 0;
14810 }
14811
14812 _ACEOF
14813     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14814   (eval $ac_link) 2>&5
14815   ac_status=$?
14816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } && test -s conftest$ac_exeext; then
14818       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14819       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14820       # configure script would override the LC_ALL setting. Likewise for
14821       # LC_CTYPE, which is also set at the beginning of the configure script.
14822       # Test for the AIX locale name.
14823       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14824         gt_cv_locale_ja=ja_JP
14825       else
14826         # Test for the locale name with explicit encoding suffix.
14827         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14828           gt_cv_locale_ja=ja_JP.EUC-JP
14829         else
14830           # Test for the HP-UX, OSF/1, NetBSD locale name.
14831           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14832             gt_cv_locale_ja=ja_JP.eucJP
14833           else
14834             # Test for the IRIX, FreeBSD locale name.
14835             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14836               gt_cv_locale_ja=ja_JP.EUC
14837             else
14838               # Test for the Solaris 7 locale name.
14839               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14840                 gt_cv_locale_ja=ja
14841               else
14842                 # Special test for NetBSD 1.6.
14843                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14844                   gt_cv_locale_ja=ja_JP.eucJP
14845                 else
14846                   # None found.
14847                   gt_cv_locale_ja=none
14848                 fi
14849               fi
14850             fi
14851           fi
14852         fi
14853       fi
14854     fi
14855     rm -fr conftest*
14856
14857 fi
14858 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
14859 $as_echo "$gt_cv_locale_ja" >&6; }
14860   LOCALE_JA=$gt_cv_locale_ja
14861
14862
14863
14864
14865
14866   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
14867 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14868 if test "${gt_cv_locale_zh_CN+set}" = set; then
14869   $as_echo_n "(cached) " >&6
14870 else
14871
14872     cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878
14879 #include <locale.h>
14880 #include <stdlib.h>
14881 #include <time.h>
14882 #if HAVE_LANGINFO_CODESET
14883 # include <langinfo.h>
14884 #endif
14885 #include <stdlib.h>
14886 #include <string.h>
14887 struct tm t;
14888 char buf[16];
14889 int main ()
14890 {
14891   const char *p;
14892   /* Check whether the given locale name is recognized by the system.  */
14893   if (setlocale (LC_ALL, "") == NULL) return 1;
14894   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14895      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14896      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14897      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14898      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14899      some unit tests fail.  */
14900 #if HAVE_LANGINFO_CODESET
14901   {
14902     const char *cs = nl_langinfo (CODESET);
14903     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14904       return 1;
14905   }
14906 #endif
14907 #ifdef __CYGWIN__
14908   /* On Cygwin, avoid locale names without encoding suffix, because the
14909      locale_charset() function relies on the encoding suffix.  Note that
14910      LC_ALL is set on the command line.  */
14911   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14912 #endif
14913   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14914      This excludes the UTF-8 encoding.  */
14915   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14916   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14917   for (p = buf; *p != '\0'; p++)
14918     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14919       return 1;
14920   /* Check whether a typical GB18030 multibyte sequence is recognized as a
14921      single wide character.  This excludes the GB2312 and GBK encodings.  */
14922   if (mblen ("\203\062\332\066", 5) != 4)
14923     return 1;
14924   return 0;
14925 }
14926
14927 _ACEOF
14928     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929   (eval $ac_link) 2>&5
14930   ac_status=$?
14931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } && test -s conftest$ac_exeext; then
14933       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14934       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14935       # configure script would override the LC_ALL setting. Likewise for
14936       # LC_CTYPE, which is also set at the beginning of the configure script.
14937       # Test for the locale name without encoding suffix.
14938       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14939         gt_cv_locale_zh_CN=zh_CN
14940       else
14941         # Test for the locale name with explicit encoding suffix.
14942         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14943           gt_cv_locale_zh_CN=zh_CN.GB18030
14944         else
14945           # None found.
14946           gt_cv_locale_zh_CN=none
14947         fi
14948       fi
14949     else
14950       # If there was a link error, due to mblen(), the system is so old that
14951       # it certainly doesn't have a chinese locale.
14952       gt_cv_locale_zh_CN=none
14953     fi
14954     rm -fr conftest*
14955
14956 fi
14957 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
14958 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14959   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14960
14961
14962
14963
14964   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
14965 $as_echo_n "checking for a french Unicode locale... " >&6; }
14966 if test "${gt_cv_locale_fr_utf8+set}" = set; then
14967   $as_echo_n "(cached) " >&6
14968 else
14969
14970     cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976
14977 #include <locale.h>
14978 #include <time.h>
14979 #if HAVE_LANGINFO_CODESET
14980 # include <langinfo.h>
14981 #endif
14982 #include <stdlib.h>
14983 #include <string.h>
14984 struct tm t;
14985 char buf[16];
14986 int main () {
14987   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
14988      imitates locale dependent behaviour by looking at the environment
14989      variables, and all locales use the UTF-8 encoding.  */
14990 #if !(defined __BEOS__ || defined __HAIKU__)
14991   /* Check whether the given locale name is recognized by the system.  */
14992   if (setlocale (LC_ALL, "") == NULL) return 1;
14993   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14994      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14995      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14996      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14997      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14998      some unit tests fail.  */
14999 # if HAVE_LANGINFO_CODESET
15000   {
15001     const char *cs = nl_langinfo (CODESET);
15002     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
15003       return 1;
15004   }
15005 # endif
15006 # ifdef __CYGWIN__
15007   /* On Cygwin, avoid locale names without encoding suffix, because the
15008      locale_charset() function relies on the encoding suffix.  Note that
15009      LC_ALL is set on the command line.  */
15010   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15011 # endif
15012   /* Check whether in the abbreviation of the second month, the second
15013      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
15014      two bytes long, with UTF-8 encoding.  */
15015   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15016   if (strftime (buf, sizeof (buf), "%b", &t) < 4
15017       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15018     return 1;
15019 #endif
15020   /* Check whether the decimal separator is a comma.
15021      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15022      are nl_langinfo(RADIXCHAR) are both ".".  */
15023   if (localeconv () ->decimal_point[0] != ',') return 1;
15024   return 0;
15025 }
15026
15027 _ACEOF
15028     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15029   (eval $ac_link) 2>&5
15030   ac_status=$?
15031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } && test -s conftest$ac_exeext; then
15033       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15034       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
15035       # configure script would override the LC_ALL setting. Likewise for
15036       # LC_CTYPE, which is also set at the beginning of the configure script.
15037       # Test for the usual locale name.
15038       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15039         gt_cv_locale_fr_utf8=fr_FR
15040       else
15041         # Test for the locale name with explicit encoding suffix.
15042         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15043           gt_cv_locale_fr_utf8=fr_FR.UTF-8
15044         else
15045           # Test for the Solaris 7 locale name.
15046           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15047             gt_cv_locale_fr_utf8=fr.UTF-8
15048           else
15049             # None found.
15050             gt_cv_locale_fr_utf8=none
15051           fi
15052         fi
15053       fi
15054     fi
15055     rm -fr conftest*
15056
15057 fi
15058 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
15059 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15060   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076   GNULIB_MEMCHR=0;
15077   GNULIB_MEMMEM=0;
15078   GNULIB_MEMPCPY=0;
15079   GNULIB_MEMRCHR=0;
15080   GNULIB_RAWMEMCHR=0;
15081   GNULIB_STPCPY=0;
15082   GNULIB_STPNCPY=0;
15083   GNULIB_STRCHRNUL=0;
15084   GNULIB_STRDUP=0;
15085   GNULIB_STRNCAT=0;
15086   GNULIB_STRNDUP=0;
15087   GNULIB_STRNLEN=0;
15088   GNULIB_STRPBRK=0;
15089   GNULIB_STRSEP=0;
15090   GNULIB_STRSTR=0;
15091   GNULIB_STRCASESTR=0;
15092   GNULIB_STRTOK_R=0;
15093   GNULIB_MBSLEN=0;
15094   GNULIB_MBSNLEN=0;
15095   GNULIB_MBSCHR=0;
15096   GNULIB_MBSRCHR=0;
15097   GNULIB_MBSSTR=0;
15098   GNULIB_MBSCASECMP=0;
15099   GNULIB_MBSNCASECMP=0;
15100   GNULIB_MBSPCASECMP=0;
15101   GNULIB_MBSCASESTR=0;
15102   GNULIB_MBSCSPN=0;
15103   GNULIB_MBSPBRK=0;
15104   GNULIB_MBSSPN=0;
15105   GNULIB_MBSSEP=0;
15106   GNULIB_MBSTOK_R=0;
15107   GNULIB_STRERROR=0;
15108   GNULIB_STRSIGNAL=0;
15109   GNULIB_STRVERSCMP=0;
15110   HAVE_MBSLEN=0;
15111     HAVE_MEMCHR=1;
15112   HAVE_DECL_MEMMEM=1;
15113   HAVE_MEMPCPY=1;
15114   HAVE_DECL_MEMRCHR=1;
15115   HAVE_RAWMEMCHR=1;
15116   HAVE_STPCPY=1;
15117   HAVE_STPNCPY=1;
15118   HAVE_STRCHRNUL=1;
15119   HAVE_DECL_STRDUP=1;
15120   HAVE_DECL_STRNDUP=1;
15121   HAVE_DECL_STRNLEN=1;
15122   HAVE_STRPBRK=1;
15123   HAVE_STRSEP=1;
15124   HAVE_STRCASESTR=1;
15125   HAVE_DECL_STRTOK_R=1;
15126   HAVE_DECL_STRSIGNAL=1;
15127   HAVE_STRVERSCMP=1;
15128   REPLACE_MEMCHR=0;
15129   REPLACE_MEMMEM=0;
15130   REPLACE_STPNCPY=0;
15131   REPLACE_STRDUP=0;
15132   REPLACE_STRSTR=0;
15133   REPLACE_STRCASESTR=0;
15134   REPLACE_STRERROR=0;
15135   REPLACE_STRNCAT=0;
15136   REPLACE_STRNDUP=0;
15137   REPLACE_STRNLEN=0;
15138   REPLACE_STRSIGNAL=0;
15139   REPLACE_STRTOK_R=0;
15140   UNDEFINE_STRTOK_R=0;
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15156   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15157   # irrelevant for anonymous mappings.
15158   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
15159 $as_echo_n "checking for mmap... " >&6; }
15160 if test "${ac_cv_func_mmap+set}" = set; then
15161   $as_echo_n "(cached) " >&6
15162 else
15163   cat >conftest.$ac_ext <<_ACEOF
15164 /* confdefs.h.  */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h.  */
15169 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
15170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15171 #define mmap innocuous_mmap
15172
15173 /* System header to define __stub macros and hopefully few prototypes,
15174     which can conflict with char mmap (); below.
15175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15176     <limits.h> exists even on freestanding compilers.  */
15177
15178 #ifdef __STDC__
15179 # include <limits.h>
15180 #else
15181 # include <assert.h>
15182 #endif
15183
15184 #undef mmap
15185
15186 /* Override any GCC internal prototype to avoid an error.
15187    Use char because int might match the return type of a GCC
15188    builtin and then its argument prototype would still apply.  */
15189 #ifdef __cplusplus
15190 extern "C"
15191 #endif
15192 char mmap ();
15193 /* The GNU C library defines this for functions which it implements
15194     to always fail with ENOSYS.  Some functions are actually named
15195     something starting with __ and the normal name is an alias.  */
15196 #if defined __stub_mmap || defined __stub___mmap
15197 choke me
15198 #endif
15199
15200 int
15201 main ()
15202 {
15203 return mmap ();
15204   ;
15205   return 0;
15206 }
15207 _ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15215 $as_echo "$ac_try_echo") >&5
15216   (eval "$ac_link") 2>conftest.er1
15217   ac_status=$?
15218   grep -v '^ *+' conftest.er1 >conftest.err
15219   rm -f conftest.er1
15220   cat conftest.err >&5
15221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222   (exit $ac_status); } && {
15223          test -z "$ac_c_werror_flag" ||
15224          test ! -s conftest.err
15225        } && test -s conftest$ac_exeext && {
15226          test "$cross_compiling" = yes ||
15227          $as_test_x conftest$ac_exeext
15228        }; then
15229   ac_cv_func_mmap=yes
15230 else
15231   $as_echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15233
15234         ac_cv_func_mmap=no
15235 fi
15236
15237 rm -rf conftest.dSYM
15238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15239       conftest$ac_exeext conftest.$ac_ext
15240 fi
15241 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
15242 $as_echo "$ac_cv_func_mmap" >&6; }
15243 if test "x$ac_cv_func_mmap" = x""yes; then
15244   gl_have_mmap=yes
15245 else
15246   gl_have_mmap=no
15247 fi
15248
15249
15250   # Try to allow MAP_ANONYMOUS.
15251   gl_have_mmap_anonymous=no
15252   if test $gl_have_mmap = yes; then
15253     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
15254 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15255     cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261
15262 #include <sys/mman.h>
15263 #ifdef MAP_ANONYMOUS
15264     I cant identify this map.
15265 #endif
15266
15267 _ACEOF
15268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15269   $EGREP "I cant identify this map." >/dev/null 2>&1; then
15270   gl_have_mmap_anonymous=yes
15271 fi
15272 rm -f conftest*
15273
15274     if test $gl_have_mmap_anonymous != yes; then
15275       cat >conftest.$ac_ext <<_ACEOF
15276 /* confdefs.h.  */
15277 _ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h.  */
15281
15282 #include <sys/mman.h>
15283 #ifdef MAP_ANON
15284     I cant identify this map.
15285 #endif
15286
15287 _ACEOF
15288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15289   $EGREP "I cant identify this map." >/dev/null 2>&1; then
15290
15291 cat >>confdefs.h <<\_ACEOF
15292 #define MAP_ANONYMOUS MAP_ANON
15293 _ACEOF
15294
15295          gl_have_mmap_anonymous=yes
15296 fi
15297 rm -f conftest*
15298
15299     fi
15300     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
15301 $as_echo "$gl_have_mmap_anonymous" >&6; }
15302     if test $gl_have_mmap_anonymous = yes; then
15303
15304 cat >>confdefs.h <<\_ACEOF
15305 #define HAVE_MAP_ANONYMOUS 1
15306 _ACEOF
15307
15308     fi
15309   fi
15310
15311
15312   :
15313
15314
15315
15316
15317
15318
15319   :
15320
15321
15322
15323
15324
15325
15326
15327
15328   :
15329
15330
15331
15332
15333
15334   if test $ac_cv_func_memchr = yes; then
15335     # Detect platform-specific bugs in some versions of glibc:
15336     # memchr should not dereference anything with length 0
15337     #   http://bugzilla.redhat.com/499689
15338     # memchr should not dereference overestimated length after a match
15339     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15340     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
15341     # Assume that memchr works on platforms that lack mprotect.
15342     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
15343 $as_echo_n "checking whether memchr works... " >&6; }
15344 if test "${gl_cv_func_memchr_works+set}" = set; then
15345   $as_echo_n "(cached) " >&6
15346 else
15347   if test "$cross_compiling" = yes; then
15348          gl_cv_func_memchr_works="guessing no"
15349 else
15350   cat >conftest.$ac_ext <<_ACEOF
15351 /* confdefs.h.  */
15352 _ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h.  */
15356
15357 #include <string.h>
15358 #if HAVE_SYS_MMAN_H
15359 # include <fcntl.h>
15360 # include <unistd.h>
15361 # include <sys/types.h>
15362 # include <sys/mman.h>
15363 # ifndef MAP_FILE
15364 #  define MAP_FILE 0
15365 # endif
15366 #endif
15367
15368 int
15369 main ()
15370 {
15371
15372   char *fence = NULL;
15373 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15374 # if HAVE_MAP_ANONYMOUS
15375   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15376   const int fd = -1;
15377 # else /* !HAVE_MAP_ANONYMOUS */
15378   const int flags = MAP_FILE | MAP_PRIVATE;
15379   int fd = open ("/dev/zero", O_RDONLY, 0666);
15380   if (fd >= 0)
15381 # endif
15382     {
15383       int pagesize = getpagesize ();
15384       char *two_pages =
15385         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15386                        flags, fd, 0);
15387       if (two_pages != (char *)(-1)
15388           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15389         fence = two_pages + pagesize;
15390     }
15391 #endif
15392   if (fence)
15393     {
15394       if (memchr (fence, 0, 0))
15395         return 1;
15396       strcpy (fence - 9, "12345678");
15397       if (memchr (fence - 9, 0, 79) != fence - 1)
15398         return 2;
15399     }
15400   return 0;
15401
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15413 $as_echo "$ac_try_echo") >&5
15414   (eval "$ac_link") 2>&5
15415   ac_status=$?
15416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15418   { (case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15423 $as_echo "$ac_try_echo") >&5
15424   (eval "$ac_try") 2>&5
15425   ac_status=$?
15426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; }; then
15428   gl_cv_func_memchr_works=yes
15429 else
15430   $as_echo "$as_me: program exited with status $ac_status" >&5
15431 $as_echo "$as_me: failed program was:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15433
15434 ( exit $ac_status )
15435 gl_cv_func_memchr_works=no
15436 fi
15437 rm -rf conftest.dSYM
15438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15439 fi
15440
15441
15442 fi
15443 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
15444 $as_echo "$gl_cv_func_memchr_works" >&6; }
15445     if test "$gl_cv_func_memchr_works" != yes; then
15446       REPLACE_MEMCHR=1
15447     fi
15448   else
15449     HAVE_MEMCHR=0
15450   fi
15451   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15452
15453
15454
15455
15456
15457
15458
15459
15460   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15461
15462
15463
15464 for ac_header in bp-sym.h
15465 do
15466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15469 $as_echo_n "checking for $ac_header... " >&6; }
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471   $as_echo_n "(cached) " >&6
15472 fi
15473 ac_res=`eval 'as_val=${'$as_ac_Header'}
15474                  $as_echo "$as_val"'`
15475                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15476 $as_echo "$ac_res" >&6; }
15477 else
15478   # Is the header compilable?
15479 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15480 $as_echo_n "checking $ac_header usability... " >&6; }
15481 cat >conftest.$ac_ext <<_ACEOF
15482 /* confdefs.h.  */
15483 _ACEOF
15484 cat confdefs.h >>conftest.$ac_ext
15485 cat >>conftest.$ac_ext <<_ACEOF
15486 /* end confdefs.h.  */
15487 $ac_includes_default
15488 #include <$ac_header>
15489 _ACEOF
15490 rm -f conftest.$ac_objext
15491 if { (ac_try="$ac_compile"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498   (eval "$ac_compile") 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } && {
15505          test -z "$ac_c_werror_flag" ||
15506          test ! -s conftest.err
15507        } && test -s conftest.$ac_objext; then
15508   ac_header_compiler=yes
15509 else
15510   $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         ac_header_compiler=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15518 $as_echo "$ac_header_compiler" >&6; }
15519
15520 # Is the header present?
15521 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15522 $as_echo_n "checking $ac_header presence... " >&6; }
15523 cat >conftest.$ac_ext <<_ACEOF
15524 /* confdefs.h.  */
15525 _ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h.  */
15529 #include <$ac_header>
15530 _ACEOF
15531 if { (ac_try="$ac_cpp conftest.$ac_ext"
15532 case "(($ac_try" in
15533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534   *) ac_try_echo=$ac_try;;
15535 esac
15536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15537 $as_echo "$ac_try_echo") >&5
15538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } >/dev/null && {
15545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546          test ! -s conftest.err
15547        }; then
15548   ac_header_preproc=yes
15549 else
15550   $as_echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553   ac_header_preproc=no
15554 fi
15555
15556 rm -f conftest.err conftest.$ac_ext
15557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 $as_echo "$ac_header_preproc" >&6; }
15559
15560 # So?  What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562   yes:no: )
15563     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567     ac_header_preproc=yes
15568     ;;
15569   no:yes:* )
15570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15573 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15577 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15578     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582
15583     ;;
15584 esac
15585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 $as_echo_n "checking for $ac_header... " >&6; }
15587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15588   $as_echo_n "(cached) " >&6
15589 else
15590   eval "$as_ac_Header=\$ac_header_preproc"
15591 fi
15592 ac_res=`eval 'as_val=${'$as_ac_Header'}
15593                  $as_echo "$as_val"'`
15594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15595 $as_echo "$ac_res" >&6; }
15596
15597 fi
15598 as_val=`eval 'as_val=${'$as_ac_Header'}
15599                  $as_echo "$as_val"'`
15600    if test "x$as_val" = x""yes; then
15601   cat >>confdefs.h <<_ACEOF
15602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15603 _ACEOF
15604
15605 fi
15606
15607 done
15608
15609
15610   fi
15611
15612
15613     gl_cv_c_multiarch=no
15614   cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620 #ifndef __APPLE_CC__
15621          not a universal capable compiler
15622         #endif
15623         typedef int dummy;
15624
15625 _ACEOF
15626 rm -f conftest.$ac_objext
15627 if { (ac_try="$ac_compile"
15628 case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15633 $as_echo "$ac_try_echo") >&5
15634   (eval "$ac_compile") 2>conftest.er1
15635   ac_status=$?
15636   grep -v '^ *+' conftest.er1 >conftest.err
15637   rm -f conftest.er1
15638   cat conftest.err >&5
15639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); } && {
15641          test -z "$ac_c_werror_flag" ||
15642          test ! -s conftest.err
15643        } && test -s conftest.$ac_objext; then
15644
15645                arch=
15646      prev=
15647      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15648        if test -n "$prev"; then
15649          case $word in
15650            i?86 | x86_64 | ppc | ppc64)
15651              if test -z "$arch" || test "$arch" = "$word"; then
15652                arch="$word"
15653              else
15654                gl_cv_c_multiarch=yes
15655              fi
15656              ;;
15657          esac
15658          prev=
15659        else
15660          if test "x$word" = "x-arch"; then
15661            prev=arch
15662          fi
15663        fi
15664      done
15665
15666 else
15667   $as_echo "$as_me: failed program was:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15669
15670
15671 fi
15672
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674   if test $gl_cv_c_multiarch = yes; then
15675
15676 cat >>confdefs.h <<\_ACEOF
15677 #define AA_APPLE_UNIVERSAL_BUILD 1
15678 _ACEOF
15679
15680     APPLE_UNIVERSAL_BUILD=1
15681   else
15682     APPLE_UNIVERSAL_BUILD=0
15683   fi
15684
15685
15686
15687
15688
15689
15690
15691
15692 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
15693 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
15694 if test "${gl_cv_var__system_configuration+set}" = set; then
15695   $as_echo_n "(cached) " >&6
15696 else
15697   cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h.  */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h.  */
15703 #include <sys/systemcfg.h>
15704
15705 int
15706 main ()
15707 {
15708 double x = _system_configuration.physmem;
15709                         if (x > 0.0) return 0;
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722   (eval "$ac_link") 2>conftest.er1
15723   ac_status=$?
15724   grep -v '^ *+' conftest.er1 >conftest.err
15725   rm -f conftest.er1
15726   cat conftest.err >&5
15727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); } && {
15729          test -z "$ac_c_werror_flag" ||
15730          test ! -s conftest.err
15731        } && test -s conftest$ac_exeext && {
15732          test "$cross_compiling" = yes ||
15733          $as_test_x conftest$ac_exeext
15734        }; then
15735   gl_cv_var__system_configuration=yes
15736 else
15737   $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740         gl_cv_var__system_configuration=no
15741 fi
15742
15743 rm -rf conftest.dSYM
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745       conftest$ac_exeext conftest.$ac_ext
15746 fi
15747 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
15748 $as_echo "$gl_cv_var__system_configuration" >&6; }
15749
15750     if test $gl_cv_var__system_configuration = yes; then
15751
15752 cat >>confdefs.h <<\_ACEOF
15753 #define HAVE__SYSTEM_CONFIGURATION 1
15754 _ACEOF
15755
15756     fi
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
15785 $as_echo_n "checking for ssize_t... " >&6; }
15786 if test "${gt_cv_ssize_t+set}" = set; then
15787   $as_echo_n "(cached) " >&6
15788 else
15789   cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795 #include <sys/types.h>
15796 int
15797 main ()
15798 {
15799 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15800             return !x;
15801   ;
15802   return 0;
15803 }
15804 _ACEOF
15805 rm -f conftest.$ac_objext
15806 if { (ac_try="$ac_compile"
15807 case "(($ac_try" in
15808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15809   *) ac_try_echo=$ac_try;;
15810 esac
15811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15812 $as_echo "$ac_try_echo") >&5
15813   (eval "$ac_compile") 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } && {
15820          test -z "$ac_c_werror_flag" ||
15821          test ! -s conftest.err
15822        } && test -s conftest.$ac_objext; then
15823   gt_cv_ssize_t=yes
15824 else
15825   $as_echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15827
15828         gt_cv_ssize_t=no
15829 fi
15830
15831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 fi
15833 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
15834 $as_echo "$gt_cv_ssize_t" >&6; }
15835   if test $gt_cv_ssize_t = no; then
15836
15837 cat >>confdefs.h <<\_ACEOF
15838 #define ssize_t int
15839 _ACEOF
15840
15841   fi
15842
15843
15844       { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15845 $as_echo_n "checking whether snprintf is declared... " >&6; }
15846 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15847   $as_echo_n "(cached) " >&6
15848 else
15849   cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h.  */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h.  */
15855 $ac_includes_default
15856 int
15857 main ()
15858 {
15859 #ifndef snprintf
15860   (void) snprintf;
15861 #endif
15862
15863   ;
15864   return 0;
15865 }
15866 _ACEOF
15867 rm -f conftest.$ac_objext
15868 if { (ac_try="$ac_compile"
15869 case "(($ac_try" in
15870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871   *) ac_try_echo=$ac_try;;
15872 esac
15873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15874 $as_echo "$ac_try_echo") >&5
15875   (eval "$ac_compile") 2>conftest.er1
15876   ac_status=$?
15877   grep -v '^ *+' conftest.er1 >conftest.err
15878   rm -f conftest.er1
15879   cat conftest.err >&5
15880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } && {
15882          test -z "$ac_c_werror_flag" ||
15883          test ! -s conftest.err
15884        } && test -s conftest.$ac_objext; then
15885   ac_cv_have_decl_snprintf=yes
15886 else
15887   $as_echo "$as_me: failed program was:" >&5
15888 sed 's/^/| /' conftest.$ac_ext >&5
15889
15890         ac_cv_have_decl_snprintf=no
15891 fi
15892
15893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15894 fi
15895 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15896 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
15897 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
15898
15899 cat >>confdefs.h <<_ACEOF
15900 #define HAVE_DECL_SNPRINTF 1
15901 _ACEOF
15902
15903
15904 else
15905   cat >>confdefs.h <<_ACEOF
15906 #define HAVE_DECL_SNPRINTF 0
15907 _ACEOF
15908
15909
15910 fi
15911
15912
15913
15914
15915     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
15916 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
15917 if test "${ac_cv_win_or_dos+set}" = set; then
15918   $as_echo_n "(cached) " >&6
15919 else
15920
15921         cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h.  */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h.  */
15927
15928 int
15929 main ()
15930 {
15931
15932 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
15933 neither MSDOS nor Windows
15934 #endif
15935   ;
15936   return 0;
15937 }
15938 _ACEOF
15939 rm -f conftest.$ac_objext
15940 if { (ac_try="$ac_compile"
15941 case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15946 $as_echo "$ac_try_echo") >&5
15947   (eval "$ac_compile") 2>conftest.er1
15948   ac_status=$?
15949   grep -v '^ *+' conftest.er1 >conftest.err
15950   rm -f conftest.er1
15951   cat conftest.err >&5
15952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); } && {
15954          test -z "$ac_c_werror_flag" ||
15955          test ! -s conftest.err
15956        } && test -s conftest.$ac_objext; then
15957   ac_cv_win_or_dos=yes
15958 else
15959   $as_echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962         ac_cv_win_or_dos=no
15963 fi
15964
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966
15967 fi
15968 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
15969 $as_echo "$ac_cv_win_or_dos" >&6; }
15970
15971     if test x"$ac_cv_win_or_dos" = xyes; then
15972       ac_fs_accepts_drive_letter_prefix=1
15973       ac_fs_backslash_is_file_name_separator=1
15974       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
15975 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
15976 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
15977   $as_echo_n "(cached) " >&6
15978 else
15979
15980           cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986
15987 int
15988 main ()
15989 {
15990
15991 #if defined __CYGWIN__
15992 drive letters are always absolute
15993 #endif
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest.$ac_objext
15999 if { (ac_try="$ac_compile"
16000 case "(($ac_try" in
16001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002   *) ac_try_echo=$ac_try;;
16003 esac
16004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16005 $as_echo "$ac_try_echo") >&5
16006   (eval "$ac_compile") 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } && {
16013          test -z "$ac_c_werror_flag" ||
16014          test ! -s conftest.err
16015        } && test -s conftest.$ac_objext; then
16016   ac_cv_drive_letter_can_be_relative=yes
16017 else
16018   $as_echo "$as_me: failed program was:" >&5
16019 sed 's/^/| /' conftest.$ac_ext >&5
16020
16021         ac_cv_drive_letter_can_be_relative=no
16022 fi
16023
16024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16025
16026 fi
16027 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
16028 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
16029       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
16030         ac_fs_drive_letter_can_be_relative=1
16031       else
16032         ac_fs_drive_letter_can_be_relative=0
16033       fi
16034     else
16035       ac_fs_accepts_drive_letter_prefix=0
16036       ac_fs_backslash_is_file_name_separator=0
16037       ac_fs_drive_letter_can_be_relative=0
16038     fi
16039
16040
16041 cat >>confdefs.h <<_ACEOF
16042 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
16043 _ACEOF
16044
16045
16046
16047
16048
16049
16050 cat >>confdefs.h <<_ACEOF
16051 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
16052 _ACEOF
16053
16054
16055
16056 cat >>confdefs.h <<_ACEOF
16057 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
16058 _ACEOF
16059
16060
16061 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16062 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16063 if test "${ac_cv_header_stdbool_h+set}" = set; then
16064   $as_echo_n "(cached) " >&6
16065 else
16066   cat >conftest.$ac_ext <<_ACEOF
16067 /* confdefs.h.  */
16068 _ACEOF
16069 cat confdefs.h >>conftest.$ac_ext
16070 cat >>conftest.$ac_ext <<_ACEOF
16071 /* end confdefs.h.  */
16072
16073              #include <stdbool.h>
16074              #ifndef bool
16075               "error: bool is not defined"
16076              #endif
16077              #ifndef false
16078               "error: false is not defined"
16079              #endif
16080              #if false
16081               "error: false is not 0"
16082              #endif
16083              #ifndef true
16084               "error: true is not defined"
16085              #endif
16086              #if true != 1
16087               "error: true is not 1"
16088              #endif
16089              #ifndef __bool_true_false_are_defined
16090               "error: __bool_true_false_are_defined is not defined"
16091              #endif
16092
16093              struct s { _Bool s: 1; _Bool t; } s;
16094
16095              char a[true == 1 ? 1 : -1];
16096              char b[false == 0 ? 1 : -1];
16097              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16098              char d[(bool) 0.5 == true ? 1 : -1];
16099              /* See body of main program for 'e'.  */
16100              char f[(_Bool) 0.0 == false ? 1 : -1];
16101              char g[true];
16102              char h[sizeof (_Bool)];
16103              char i[sizeof s.t];
16104              enum { j = false, k = true, l = false * true, m = true * 256 };
16105              /* The following fails for
16106                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16107              _Bool n[m];
16108              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16109              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16110              /* Catch a bug in an HP-UX C compiler.  See
16111                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16112                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16113               */
16114              _Bool q = true;
16115              _Bool *pq = &q;
16116
16117 int
16118 main ()
16119 {
16120
16121              bool e = &s;
16122              *pq |= q;
16123              *pq |= ! q;
16124              /* Refer to every declared value, to avoid compiler optimizations.  */
16125              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16126                      + !m + !n + !o + !p + !q + !pq);
16127
16128   ;
16129   return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136   *) ac_try_echo=$ac_try;;
16137 esac
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140   (eval "$ac_compile") 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } && {
16147          test -z "$ac_c_werror_flag" ||
16148          test ! -s conftest.err
16149        } && test -s conftest.$ac_objext; then
16150   ac_cv_header_stdbool_h=yes
16151 else
16152   $as_echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155         ac_cv_header_stdbool_h=no
16156 fi
16157
16158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16159 fi
16160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16161 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16162    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16163 $as_echo_n "checking for _Bool... " >&6; }
16164 if test "${ac_cv_type__Bool+set}" = set; then
16165   $as_echo_n "(cached) " >&6
16166 else
16167   ac_cv_type__Bool=no
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174 $ac_includes_default
16175 int
16176 main ()
16177 {
16178 if (sizeof (_Bool))
16179        return 0;
16180   ;
16181   return 0;
16182 }
16183 _ACEOF
16184 rm -f conftest.$ac_objext
16185 if { (ac_try="$ac_compile"
16186 case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16191 $as_echo "$ac_try_echo") >&5
16192   (eval "$ac_compile") 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } && {
16199          test -z "$ac_c_werror_flag" ||
16200          test ! -s conftest.err
16201        } && test -s conftest.$ac_objext; then
16202   cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208 $ac_includes_default
16209 int
16210 main ()
16211 {
16212 if (sizeof ((_Bool)))
16213           return 0;
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 rm -f conftest.$ac_objext
16219 if { (ac_try="$ac_compile"
16220 case "(($ac_try" in
16221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222   *) ac_try_echo=$ac_try;;
16223 esac
16224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16225 $as_echo "$ac_try_echo") >&5
16226   (eval "$ac_compile") 2>conftest.er1
16227   ac_status=$?
16228   grep -v '^ *+' conftest.er1 >conftest.err
16229   rm -f conftest.er1
16230   cat conftest.err >&5
16231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); } && {
16233          test -z "$ac_c_werror_flag" ||
16234          test ! -s conftest.err
16235        } && test -s conftest.$ac_objext; then
16236   :
16237 else
16238   $as_echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241         ac_cv_type__Bool=yes
16242 fi
16243
16244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16245 else
16246   $as_echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249
16250 fi
16251
16252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16253 fi
16254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16255 $as_echo "$ac_cv_type__Bool" >&6; }
16256 if test "x$ac_cv_type__Bool" = x""yes; then
16257
16258 cat >>confdefs.h <<_ACEOF
16259 #define HAVE__BOOL 1
16260 _ACEOF
16261
16262
16263 fi
16264
16265    if test $ac_cv_header_stdbool_h = yes; then
16266
16267 cat >>confdefs.h <<\_ACEOF
16268 #define HAVE_STDBOOL_H 1
16269 _ACEOF
16270
16271    fi
16272
16273     REPLACE_NULL=0;
16274   HAVE_WCHAR_T=1;
16275   STDDEF_H='';
16276
16277
16278   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16279 $as_echo_n "checking for wchar_t... " >&6; }
16280 if test "${gt_cv_c_wchar_t+set}" = set; then
16281   $as_echo_n "(cached) " >&6
16282 else
16283   cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h.  */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h.  */
16289 #include <stddef.h>
16290        wchar_t foo = (wchar_t)'\0';
16291 int
16292 main ()
16293 {
16294
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307   (eval "$ac_compile") 2>conftest.er1
16308   ac_status=$?
16309   grep -v '^ *+' conftest.er1 >conftest.err
16310   rm -f conftest.er1
16311   cat conftest.err >&5
16312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } && {
16314          test -z "$ac_c_werror_flag" ||
16315          test ! -s conftest.err
16316        } && test -s conftest.$ac_objext; then
16317   gt_cv_c_wchar_t=yes
16318 else
16319   $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322         gt_cv_c_wchar_t=no
16323 fi
16324
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16326 fi
16327 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16328 $as_echo "$gt_cv_c_wchar_t" >&6; }
16329   if test $gt_cv_c_wchar_t = yes; then
16330
16331 cat >>confdefs.h <<\_ACEOF
16332 #define HAVE_WCHAR_T 1
16333 _ACEOF
16334
16335   fi
16336
16337
16338
16339
16340
16341
16342
16343
16344   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16345 $as_echo_n "checking for long long int... " >&6; }
16346 if test "${ac_cv_type_long_long_int+set}" = set; then
16347   $as_echo_n "(cached) " >&6
16348 else
16349   cat >conftest.$ac_ext <<_ACEOF
16350
16351   /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 /* For now, do not test the preprocessor; as of 2007 there are too many
16357          implementations with broken preprocessors.  Perhaps this can
16358          be revisited in 2012.  In the meantime, code should not expect
16359          #if to work with literals wider than 32 bits.  */
16360       /* Test literals.  */
16361       long long int ll = 9223372036854775807ll;
16362       long long int nll = -9223372036854775807LL;
16363       unsigned long long int ull = 18446744073709551615ULL;
16364       /* Test constant expressions.   */
16365       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16366                      ? 1 : -1)];
16367       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16368                      ? 1 : -1)];
16369       int i = 63;
16370 int
16371 main ()
16372 {
16373 /* Test availability of runtime routines for shift and division.  */
16374       long long int llmax = 9223372036854775807ll;
16375       unsigned long long int ullmax = 18446744073709551615ull;
16376       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16377               | (llmax / ll) | (llmax % ll)
16378               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16379               | (ullmax / ull) | (ullmax % ull));
16380   ;
16381   return 0;
16382 }
16383
16384 _ACEOF
16385 rm -f conftest.$ac_objext conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16392 $as_echo "$ac_try_echo") >&5
16393   (eval "$ac_link") 2>conftest.er1
16394   ac_status=$?
16395   grep -v '^ *+' conftest.er1 >conftest.err
16396   rm -f conftest.er1
16397   cat conftest.err >&5
16398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399   (exit $ac_status); } && {
16400          test -z "$ac_c_werror_flag" ||
16401          test ! -s conftest.err
16402        } && test -s conftest$ac_exeext && {
16403          test "$cross_compiling" = yes ||
16404          $as_test_x conftest$ac_exeext
16405        }; then
16406                           if test "$cross_compiling" = yes; then
16407   ac_cv_type_long_long_int=yes
16408 else
16409   cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h.  */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h.  */
16415 #include <limits.h>
16416                #ifndef LLONG_MAX
16417                # define HALF \
16418                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16419                # define LLONG_MAX (HALF - 1 + HALF)
16420                #endif
16421 int
16422 main ()
16423 {
16424 long long int n = 1;
16425                int i;
16426                for (i = 0; ; i++)
16427                  {
16428                    long long int m = n << i;
16429                    if (m >> i != n)
16430                      return 1;
16431                    if (LLONG_MAX / 2 < m)
16432                      break;
16433                  }
16434                return 0;
16435   ;
16436   return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443   *) ac_try_echo=$ac_try;;
16444 esac
16445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16446 $as_echo "$ac_try_echo") >&5
16447   (eval "$ac_link") 2>&5
16448   ac_status=$?
16449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16451   { (case "(($ac_try" in
16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453   *) ac_try_echo=$ac_try;;
16454 esac
16455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16456 $as_echo "$ac_try_echo") >&5
16457   (eval "$ac_try") 2>&5
16458   ac_status=$?
16459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; }; then
16461   ac_cv_type_long_long_int=yes
16462 else
16463   $as_echo "$as_me: program exited with status $ac_status" >&5
16464 $as_echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 ( exit $ac_status )
16468 ac_cv_type_long_long_int=no
16469 fi
16470 rm -rf conftest.dSYM
16471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16472 fi
16473
16474
16475 else
16476   $as_echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479         ac_cv_type_long_long_int=no
16480 fi
16481
16482 rm -rf conftest.dSYM
16483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16484       conftest$ac_exeext conftest.$ac_ext
16485 fi
16486 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16487 $as_echo "$ac_cv_type_long_long_int" >&6; }
16488   if test $ac_cv_type_long_long_int = yes; then
16489
16490 cat >>confdefs.h <<\_ACEOF
16491 #define HAVE_LONG_LONG_INT 1
16492 _ACEOF
16493
16494   fi
16495
16496
16497   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16498 $as_echo_n "checking for unsigned long long int... " >&6; }
16499 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16500   $as_echo_n "(cached) " >&6
16501 else
16502   cat >conftest.$ac_ext <<_ACEOF
16503
16504   /* confdefs.h.  */
16505 _ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h.  */
16509 /* For now, do not test the preprocessor; as of 2007 there are too many
16510          implementations with broken preprocessors.  Perhaps this can
16511          be revisited in 2012.  In the meantime, code should not expect
16512          #if to work with literals wider than 32 bits.  */
16513       /* Test literals.  */
16514       long long int ll = 9223372036854775807ll;
16515       long long int nll = -9223372036854775807LL;
16516       unsigned long long int ull = 18446744073709551615ULL;
16517       /* Test constant expressions.   */
16518       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16519                      ? 1 : -1)];
16520       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16521                      ? 1 : -1)];
16522       int i = 63;
16523 int
16524 main ()
16525 {
16526 /* Test availability of runtime routines for shift and division.  */
16527       long long int llmax = 9223372036854775807ll;
16528       unsigned long long int ullmax = 18446744073709551615ull;
16529       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16530               | (llmax / ll) | (llmax % ll)
16531               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16532               | (ullmax / ull) | (ullmax % ull));
16533   ;
16534   return 0;
16535 }
16536
16537 _ACEOF
16538 rm -f conftest.$ac_objext conftest$ac_exeext
16539 if { (ac_try="$ac_link"
16540 case "(($ac_try" in
16541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16542   *) ac_try_echo=$ac_try;;
16543 esac
16544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16545 $as_echo "$ac_try_echo") >&5
16546   (eval "$ac_link") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && {
16553          test -z "$ac_c_werror_flag" ||
16554          test ! -s conftest.err
16555        } && test -s conftest$ac_exeext && {
16556          test "$cross_compiling" = yes ||
16557          $as_test_x conftest$ac_exeext
16558        }; then
16559   ac_cv_type_unsigned_long_long_int=yes
16560 else
16561   $as_echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16563
16564         ac_cv_type_unsigned_long_long_int=no
16565 fi
16566
16567 rm -rf conftest.dSYM
16568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16569       conftest$ac_exeext conftest.$ac_ext
16570 fi
16571 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16572 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16573   if test $ac_cv_type_unsigned_long_long_int = yes; then
16574
16575 cat >>confdefs.h <<\_ACEOF
16576 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16577 _ACEOF
16578
16579   fi
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594         { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
16595 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
16596 if test "${gl_cv_prog_as_underscore+set}" = set; then
16597   $as_echo_n "(cached) " >&6
16598 else
16599   cat > conftest.c <<EOF
16600 #ifdef __cplusplus
16601 extern "C" int foo (void);
16602 #endif
16603 int foo(void) { return 0; }
16604 EOF
16605      # Look for the assembly language name in the .s file.
16606      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
16607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608   (eval $ac_try) 2>&5
16609   ac_status=$?
16610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611   (exit $ac_status); }; } >/dev/null 2>&1
16612      if grep _foo conftest.s >/dev/null ; then
16613        gl_cv_prog_as_underscore=yes
16614      else
16615        gl_cv_prog_as_underscore=no
16616      fi
16617      rm -f conftest*
16618
16619 fi
16620 { $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
16621 $as_echo "$gl_cv_prog_as_underscore" >&6; }
16622   if test $gl_cv_prog_as_underscore = yes; then
16623     USER_LABEL_PREFIX=_
16624   else
16625     USER_LABEL_PREFIX=
16626   fi
16627
16628 cat >>confdefs.h <<_ACEOF
16629 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
16630 _ACEOF
16631
16632   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660   :
16661
16662
16663
16664
16665
16666
16667
16668      if test $gl_cv_have_include_next = yes; then
16669        gl_cv_next_string_h='<'string.h'>'
16670      else
16671        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
16672 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16673 if test "${gl_cv_next_string_h+set}" = set; then
16674   $as_echo_n "(cached) " >&6
16675 else
16676
16677           if test $ac_cv_header_string_h = yes; then
16678             cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h.  */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h.  */
16684 #include <string.h>
16685
16686 _ACEOF
16687                                                                                                 case "$host_os" in
16688               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16689               *)    gl_absname_cpp="$ac_cpp" ;;
16690             esac
16691                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16692                sed -n '\#/string.h#{
16693                  s#.*"\(.*/string.h\)".*#\1#
16694                  s#^/[^/]#//&#
16695                  p
16696                  q
16697                }'`'"'
16698           else
16699             gl_cv_next_string_h='<'string.h'>'
16700           fi
16701
16702 fi
16703 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
16704 $as_echo "$gl_cv_next_string_h" >&6; }
16705      fi
16706      NEXT_STRING_H=$gl_cv_next_string_h
16707
16708      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16709        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16710        gl_next_as_first_directive='<'string.h'>'
16711      else
16712        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16713        gl_next_as_first_directive=$gl_cv_next_string_h
16714      fi
16715      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738   for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
16739     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16740     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
16741 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16742 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
16743   $as_echo_n "(cached) " >&6
16744 else
16745   cat >conftest.$ac_ext <<_ACEOF
16746 /* confdefs.h.  */
16747 _ACEOF
16748 cat confdefs.h >>conftest.$ac_ext
16749 cat >>conftest.$ac_ext <<_ACEOF
16750 /* end confdefs.h.  */
16751 #include <string.h>
16752
16753 int
16754 main ()
16755 {
16756 #undef $gl_func
16757   (void) $gl_func;
16758   ;
16759   return 0;
16760 }
16761 _ACEOF
16762 rm -f conftest.$ac_objext
16763 if { (ac_try="$ac_compile"
16764 case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16769 $as_echo "$ac_try_echo") >&5
16770   (eval "$ac_compile") 2>conftest.er1
16771   ac_status=$?
16772   grep -v '^ *+' conftest.er1 >conftest.err
16773   rm -f conftest.er1
16774   cat conftest.err >&5
16775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } && {
16777          test -z "$ac_c_werror_flag" ||
16778          test ! -s conftest.err
16779        } && test -s conftest.$ac_objext; then
16780   eval "$as_gl_Symbol=yes"
16781 else
16782   $as_echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785         eval "$as_gl_Symbol=no"
16786 fi
16787
16788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789 fi
16790 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
16791                  $as_echo "$as_val"'`
16792                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16793 $as_echo "$ac_res" >&6; }
16794      as_val=`eval 'as_val=${'$as_gl_Symbol'}
16795                  $as_echo "$as_val"'`
16796    if test "x$as_val" = x""yes; then
16797   cat >>confdefs.h <<_ACEOF
16798 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16799 _ACEOF
16800
16801                      eval ac_cv_have_decl_$gl_func=yes
16802 fi
16803
16804       done
16805
16806
16807 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16808 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16809 if test "${ac_cv_header_stat_broken+set}" = set; then
16810   $as_echo_n "(cached) " >&6
16811 else
16812   cat >conftest.$ac_ext <<_ACEOF
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 #include <sys/types.h>
16819 #include <sys/stat.h>
16820
16821 #if defined S_ISBLK && defined S_IFDIR
16822 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16823 #endif
16824
16825 #if defined S_ISBLK && defined S_IFCHR
16826 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16827 #endif
16828
16829 #if defined S_ISLNK && defined S_IFREG
16830 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16831 #endif
16832
16833 #if defined S_ISSOCK && defined S_IFREG
16834 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16835 #endif
16836
16837 _ACEOF
16838 rm -f conftest.$ac_objext
16839 if { (ac_try="$ac_compile"
16840 case "(($ac_try" in
16841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842   *) ac_try_echo=$ac_try;;
16843 esac
16844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16845 $as_echo "$ac_try_echo") >&5
16846   (eval "$ac_compile") 2>conftest.er1
16847   ac_status=$?
16848   grep -v '^ *+' conftest.er1 >conftest.err
16849   rm -f conftest.er1
16850   cat conftest.err >&5
16851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } && {
16853          test -z "$ac_c_werror_flag" ||
16854          test ! -s conftest.err
16855        } && test -s conftest.$ac_objext; then
16856   ac_cv_header_stat_broken=no
16857 else
16858   $as_echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16860
16861         ac_cv_header_stat_broken=yes
16862 fi
16863
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 fi
16866 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16867 $as_echo "$ac_cv_header_stat_broken" >&6; }
16868 if test $ac_cv_header_stat_broken = yes; then
16869
16870 cat >>confdefs.h <<\_ACEOF
16871 #define STAT_MACROS_BROKEN 1
16872 _ACEOF
16873
16874 fi
16875
16876
16877
16878
16879
16880
16881
16882 # Check whether --enable-largefile was given.
16883 if test "${enable_largefile+set}" = set; then
16884   enableval=$enable_largefile;
16885 fi
16886
16887 if test "$enable_largefile" != no; then
16888
16889   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16890 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16891 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16892   $as_echo_n "(cached) " >&6
16893 else
16894   ac_cv_sys_largefile_CC=no
16895      if test "$GCC" != yes; then
16896        ac_save_CC=$CC
16897        while :; do
16898          # IRIX 6.2 and later do not support large files by default,
16899          # so use the C compiler's -n32 option if that helps.
16900          cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 #include <sys/types.h>
16907  /* Check that off_t can represent 2**63 - 1 correctly.
16908     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16909     since some C++ compilers masquerading as C compilers
16910     incorrectly reject 9223372036854775807.  */
16911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16912   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16913                        && LARGE_OFF_T % 2147483647 == 1)
16914                       ? 1 : -1];
16915 int
16916 main ()
16917 {
16918
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923          rm -f conftest.$ac_objext
16924 if { (ac_try="$ac_compile"
16925 case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931   (eval "$ac_compile") 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && {
16938          test -z "$ac_c_werror_flag" ||
16939          test ! -s conftest.err
16940        } && test -s conftest.$ac_objext; then
16941   break
16942 else
16943   $as_echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16945
16946
16947 fi
16948
16949 rm -f core conftest.err conftest.$ac_objext
16950          CC="$CC -n32"
16951          rm -f conftest.$ac_objext
16952 if { (ac_try="$ac_compile"
16953 case "(($ac_try" in
16954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16955   *) ac_try_echo=$ac_try;;
16956 esac
16957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16958 $as_echo "$ac_try_echo") >&5
16959   (eval "$ac_compile") 2>conftest.er1
16960   ac_status=$?
16961   grep -v '^ *+' conftest.er1 >conftest.err
16962   rm -f conftest.er1
16963   cat conftest.err >&5
16964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } && {
16966          test -z "$ac_c_werror_flag" ||
16967          test ! -s conftest.err
16968        } && test -s conftest.$ac_objext; then
16969   ac_cv_sys_largefile_CC=' -n32'; break
16970 else
16971   $as_echo "$as_me: failed program was:" >&5
16972 sed 's/^/| /' conftest.$ac_ext >&5
16973
16974
16975 fi
16976
16977 rm -f core conftest.err conftest.$ac_objext
16978          break
16979        done
16980        CC=$ac_save_CC
16981        rm -f conftest.$ac_ext
16982     fi
16983 fi
16984 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16985 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16986   if test "$ac_cv_sys_largefile_CC" != no; then
16987     CC=$CC$ac_cv_sys_largefile_CC
16988   fi
16989
16990   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16991 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16992 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16993   $as_echo_n "(cached) " >&6
16994 else
16995   while :; do
16996   cat >conftest.$ac_ext <<_ACEOF
16997 /* confdefs.h.  */
16998 _ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h.  */
17002 #include <sys/types.h>
17003  /* Check that off_t can represent 2**63 - 1 correctly.
17004     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17005     since some C++ compilers masquerading as C compilers
17006     incorrectly reject 9223372036854775807.  */
17007 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17008   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17009                        && LARGE_OFF_T % 2147483647 == 1)
17010                       ? 1 : -1];
17011 int
17012 main ()
17013 {
17014
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext
17020 if { (ac_try="$ac_compile"
17021 case "(($ac_try" in
17022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023   *) ac_try_echo=$ac_try;;
17024 esac
17025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17026 $as_echo "$ac_try_echo") >&5
17027   (eval "$ac_compile") 2>conftest.er1
17028   ac_status=$?
17029   grep -v '^ *+' conftest.er1 >conftest.err
17030   rm -f conftest.er1
17031   cat conftest.err >&5
17032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); } && {
17034          test -z "$ac_c_werror_flag" ||
17035          test ! -s conftest.err
17036        } && test -s conftest.$ac_objext; then
17037   ac_cv_sys_file_offset_bits=no; break
17038 else
17039   $as_echo "$as_me: failed program was:" >&5
17040 sed 's/^/| /' conftest.$ac_ext >&5
17041
17042
17043 fi
17044
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046   cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052 #define _FILE_OFFSET_BITS 64
17053 #include <sys/types.h>
17054  /* Check that off_t can represent 2**63 - 1 correctly.
17055     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17056     since some C++ compilers masquerading as C compilers
17057     incorrectly reject 9223372036854775807.  */
17058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17059   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17060                        && LARGE_OFF_T % 2147483647 == 1)
17061                       ? 1 : -1];
17062 int
17063 main ()
17064 {
17065
17066   ;
17067   return 0;
17068 }
17069 _ACEOF
17070 rm -f conftest.$ac_objext
17071 if { (ac_try="$ac_compile"
17072 case "(($ac_try" in
17073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17074   *) ac_try_echo=$ac_try;;
17075 esac
17076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17077 $as_echo "$ac_try_echo") >&5
17078   (eval "$ac_compile") 2>conftest.er1
17079   ac_status=$?
17080   grep -v '^ *+' conftest.er1 >conftest.err
17081   rm -f conftest.er1
17082   cat conftest.err >&5
17083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084   (exit $ac_status); } && {
17085          test -z "$ac_c_werror_flag" ||
17086          test ! -s conftest.err
17087        } && test -s conftest.$ac_objext; then
17088   ac_cv_sys_file_offset_bits=64; break
17089 else
17090   $as_echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17092
17093
17094 fi
17095
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097   ac_cv_sys_file_offset_bits=unknown
17098   break
17099 done
17100 fi
17101 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17102 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17103 case $ac_cv_sys_file_offset_bits in #(
17104   no | unknown) ;;
17105   *)
17106 cat >>confdefs.h <<_ACEOF
17107 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17108 _ACEOF
17109 ;;
17110 esac
17111 rm -rf conftest*
17112   if test $ac_cv_sys_file_offset_bits = unknown; then
17113     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17114 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17115 if test "${ac_cv_sys_large_files+set}" = set; then
17116   $as_echo_n "(cached) " >&6
17117 else
17118   while :; do
17119   cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h.  */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h.  */
17125 #include <sys/types.h>
17126  /* Check that off_t can represent 2**63 - 1 correctly.
17127     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17128     since some C++ compilers masquerading as C compilers
17129     incorrectly reject 9223372036854775807.  */
17130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17131   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17132                        && LARGE_OFF_T % 2147483647 == 1)
17133                       ? 1 : -1];
17134 int
17135 main ()
17136 {
17137
17138   ;
17139   return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (ac_try="$ac_compile"
17144 case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17149 $as_echo "$ac_try_echo") >&5
17150   (eval "$ac_compile") 2>conftest.er1
17151   ac_status=$?
17152   grep -v '^ *+' conftest.er1 >conftest.err
17153   rm -f conftest.er1
17154   cat conftest.err >&5
17155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); } && {
17157          test -z "$ac_c_werror_flag" ||
17158          test ! -s conftest.err
17159        } && test -s conftest.$ac_objext; then
17160   ac_cv_sys_large_files=no; break
17161 else
17162   $as_echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17169   cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175 #define _LARGE_FILES 1
17176 #include <sys/types.h>
17177  /* Check that off_t can represent 2**63 - 1 correctly.
17178     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17179     since some C++ compilers masquerading as C compilers
17180     incorrectly reject 9223372036854775807.  */
17181 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17182   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17183                        && LARGE_OFF_T % 2147483647 == 1)
17184                       ? 1 : -1];
17185 int
17186 main ()
17187 {
17188
17189   ;
17190   return 0;
17191 }
17192 _ACEOF
17193 rm -f conftest.$ac_objext
17194 if { (ac_try="$ac_compile"
17195 case "(($ac_try" in
17196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197   *) ac_try_echo=$ac_try;;
17198 esac
17199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17200 $as_echo "$ac_try_echo") >&5
17201   (eval "$ac_compile") 2>conftest.er1
17202   ac_status=$?
17203   grep -v '^ *+' conftest.er1 >conftest.err
17204   rm -f conftest.er1
17205   cat conftest.err >&5
17206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); } && {
17208          test -z "$ac_c_werror_flag" ||
17209          test ! -s conftest.err
17210        } && test -s conftest.$ac_objext; then
17211   ac_cv_sys_large_files=1; break
17212 else
17213   $as_echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216
17217 fi
17218
17219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220   ac_cv_sys_large_files=unknown
17221   break
17222 done
17223 fi
17224 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17225 $as_echo "$ac_cv_sys_large_files" >&6; }
17226 case $ac_cv_sys_large_files in #(
17227   no | unknown) ;;
17228   *)
17229 cat >>confdefs.h <<_ACEOF
17230 #define _LARGE_FILES $ac_cv_sys_large_files
17231 _ACEOF
17232 ;;
17233 esac
17234 rm -rf conftest*
17235   fi
17236 fi
17237
17238
17239   GNULIB_MKTIME=0;
17240   GNULIB_NANOSLEEP=0;
17241   GNULIB_STRPTIME=0;
17242   GNULIB_TIMEGM=0;
17243   GNULIB_TIME_R=0;
17244     HAVE_LOCALTIME_R=1;
17245   HAVE_NANOSLEEP=1;
17246   HAVE_STRPTIME=1;
17247   HAVE_TIMEGM=1;
17248         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17249   REPLACE_MKTIME=GNULIB_PORTCHECK;
17250   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17251   REPLACE_TIMEGM=GNULIB_PORTCHECK;
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261   :
17262
17263
17264
17265
17266
17267   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
17268 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17269 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
17270   $as_echo_n "(cached) " >&6
17271 else
17272   cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h.  */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h.  */
17278 #include <time.h>
17279
17280 int
17281 main ()
17282 {
17283 static struct timespec x; x.tv_sec = x.tv_nsec;
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext
17289 if { (ac_try="$ac_compile"
17290 case "(($ac_try" in
17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292   *) ac_try_echo=$ac_try;;
17293 esac
17294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17295 $as_echo "$ac_try_echo") >&5
17296   (eval "$ac_compile") 2>conftest.er1
17297   ac_status=$?
17298   grep -v '^ *+' conftest.er1 >conftest.err
17299   rm -f conftest.er1
17300   cat conftest.err >&5
17301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } && {
17303          test -z "$ac_c_werror_flag" ||
17304          test ! -s conftest.err
17305        } && test -s conftest.$ac_objext; then
17306   gl_cv_sys_struct_timespec_in_time_h=yes
17307 else
17308   $as_echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17310
17311         gl_cv_sys_struct_timespec_in_time_h=no
17312 fi
17313
17314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17315 fi
17316 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17317 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17318
17319   TIME_H_DEFINES_STRUCT_TIMESPEC=0
17320   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
17321   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
17322   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17323     TIME_H_DEFINES_STRUCT_TIMESPEC=1
17324   else
17325     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
17326 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
17327 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
17328   $as_echo_n "(cached) " >&6
17329 else
17330   cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336 #include <sys/time.h>
17337
17338 int
17339 main ()
17340 {
17341 static struct timespec x; x.tv_sec = x.tv_nsec;
17342   ;
17343   return 0;
17344 }
17345 _ACEOF
17346 rm -f conftest.$ac_objext
17347 if { (ac_try="$ac_compile"
17348 case "(($ac_try" in
17349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350   *) ac_try_echo=$ac_try;;
17351 esac
17352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17353 $as_echo "$ac_try_echo") >&5
17354   (eval "$ac_compile") 2>conftest.er1
17355   ac_status=$?
17356   grep -v '^ *+' conftest.er1 >conftest.err
17357   rm -f conftest.er1
17358   cat conftest.err >&5
17359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360   (exit $ac_status); } && {
17361          test -z "$ac_c_werror_flag" ||
17362          test ! -s conftest.err
17363        } && test -s conftest.$ac_objext; then
17364   gl_cv_sys_struct_timespec_in_sys_time_h=yes
17365 else
17366   $as_echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369         gl_cv_sys_struct_timespec_in_sys_time_h=no
17370 fi
17371
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 fi
17374 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17375 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17376     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17377       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
17378     else
17379       { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
17380 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17381 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
17382   $as_echo_n "(cached) " >&6
17383 else
17384   cat >conftest.$ac_ext <<_ACEOF
17385 /* confdefs.h.  */
17386 _ACEOF
17387 cat confdefs.h >>conftest.$ac_ext
17388 cat >>conftest.$ac_ext <<_ACEOF
17389 /* end confdefs.h.  */
17390 #include <pthread.h>
17391
17392 int
17393 main ()
17394 {
17395 static struct timespec x; x.tv_sec = x.tv_nsec;
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext
17401 if { (ac_try="$ac_compile"
17402 case "(($ac_try" in
17403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404   *) ac_try_echo=$ac_try;;
17405 esac
17406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17407 $as_echo "$ac_try_echo") >&5
17408   (eval "$ac_compile") 2>conftest.er1
17409   ac_status=$?
17410   grep -v '^ *+' conftest.er1 >conftest.err
17411   rm -f conftest.er1
17412   cat conftest.err >&5
17413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); } && {
17415          test -z "$ac_c_werror_flag" ||
17416          test ! -s conftest.err
17417        } && test -s conftest.$ac_objext; then
17418   gl_cv_sys_struct_timespec_in_pthread_h=yes
17419 else
17420   $as_echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17422
17423         gl_cv_sys_struct_timespec_in_pthread_h=no
17424 fi
17425
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17427 fi
17428 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17429 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17430       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17431         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
17432       fi
17433     fi
17434   fi
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446   :
17447
17448
17449
17450
17451
17452
17453
17454      if test $gl_cv_have_include_next = yes; then
17455        gl_cv_next_time_h='<'time.h'>'
17456      else
17457        { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
17458 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17459 if test "${gl_cv_next_time_h+set}" = set; then
17460   $as_echo_n "(cached) " >&6
17461 else
17462
17463           if test $ac_cv_header_time_h = yes; then
17464             cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470 #include <time.h>
17471
17472 _ACEOF
17473                                                                                                 case "$host_os" in
17474               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17475               *)    gl_absname_cpp="$ac_cpp" ;;
17476             esac
17477                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17478                sed -n '\#/time.h#{
17479                  s#.*"\(.*/time.h\)".*#\1#
17480                  s#^/[^/]#//&#
17481                  p
17482                  q
17483                }'`'"'
17484           else
17485             gl_cv_next_time_h='<'time.h'>'
17486           fi
17487
17488 fi
17489 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
17490 $as_echo "$gl_cv_next_time_h" >&6; }
17491      fi
17492      NEXT_TIME_H=$gl_cv_next_time_h
17493
17494      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17495        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17496        gl_next_as_first_directive='<'time.h'>'
17497      else
17498        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17499        gl_next_as_first_directive=$gl_cv_next_time_h
17500      fi
17501      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
17521 $as_echo_n "checking for wint_t... " >&6; }
17522 if test "${gt_cv_c_wint_t+set}" = set; then
17523   $as_echo_n "(cached) " >&6
17524 else
17525   cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h.  */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h.  */
17531 #include <wchar.h>
17532        wint_t foo = (wchar_t)'\0';
17533 int
17534 main ()
17535 {
17536
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17548 $as_echo "$ac_try_echo") >&5
17549   (eval "$ac_compile") 2>conftest.er1
17550   ac_status=$?
17551   grep -v '^ *+' conftest.er1 >conftest.err
17552   rm -f conftest.er1
17553   cat conftest.err >&5
17554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555   (exit $ac_status); } && {
17556          test -z "$ac_c_werror_flag" ||
17557          test ! -s conftest.err
17558        } && test -s conftest.$ac_objext; then
17559   gt_cv_c_wint_t=yes
17560 else
17561   $as_echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564         gt_cv_c_wint_t=no
17565 fi
17566
17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 fi
17569 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17570 $as_echo "$gt_cv_c_wint_t" >&6; }
17571   if test $gt_cv_c_wint_t = yes; then
17572
17573 cat >>confdefs.h <<\_ACEOF
17574 #define HAVE_WINT_T 1
17575 _ACEOF
17576
17577   fi
17578
17579 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17580 $as_echo_n "checking for size_t... " >&6; }
17581 if test "${ac_cv_type_size_t+set}" = set; then
17582   $as_echo_n "(cached) " >&6
17583 else
17584   ac_cv_type_size_t=no
17585 cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591 $ac_includes_default
17592 int
17593 main ()
17594 {
17595 if (sizeof (size_t))
17596        return 0;
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17608 $as_echo "$ac_try_echo") >&5
17609   (eval "$ac_compile") 2>conftest.er1
17610   ac_status=$?
17611   grep -v '^ *+' conftest.er1 >conftest.err
17612   rm -f conftest.er1
17613   cat conftest.err >&5
17614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); } && {
17616          test -z "$ac_c_werror_flag" ||
17617          test ! -s conftest.err
17618        } && test -s conftest.$ac_objext; then
17619   cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h.  */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h.  */
17625 $ac_includes_default
17626 int
17627 main ()
17628 {
17629 if (sizeof ((size_t)))
17630           return 0;
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (ac_try="$ac_compile"
17637 case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17642 $as_echo "$ac_try_echo") >&5
17643   (eval "$ac_compile") 2>conftest.er1
17644   ac_status=$?
17645   grep -v '^ *+' conftest.er1 >conftest.err
17646   rm -f conftest.er1
17647   cat conftest.err >&5
17648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); } && {
17650          test -z "$ac_c_werror_flag" ||
17651          test ! -s conftest.err
17652        } && test -s conftest.$ac_objext; then
17653   :
17654 else
17655   $as_echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658         ac_cv_type_size_t=yes
17659 fi
17660
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 else
17663   $as_echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17665
17666
17667 fi
17668
17669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670 fi
17671 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17672 $as_echo "$ac_cv_type_size_t" >&6; }
17673 if test "x$ac_cv_type_size_t" = x""yes; then
17674   :
17675 else
17676
17677 cat >>confdefs.h <<_ACEOF
17678 #define size_t unsigned int
17679 _ACEOF
17680
17681 fi
17682
17683
17684   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
17685 $as_echo_n "checking for inttypes.h... " >&6; }
17686 if test "${gl_cv_header_inttypes_h+set}" = set; then
17687   $as_echo_n "(cached) " >&6
17688 else
17689   cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695 #include <sys/types.h>
17696 #include <inttypes.h>
17697 int
17698 main ()
17699 {
17700 uintmax_t i = (uintmax_t) -1;
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709   *) ac_try_echo=$ac_try;;
17710 esac
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713   (eval "$ac_compile") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } && {
17720          test -z "$ac_c_werror_flag" ||
17721          test ! -s conftest.err
17722        } && test -s conftest.$ac_objext; then
17723   gl_cv_header_inttypes_h=yes
17724 else
17725   $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728         gl_cv_header_inttypes_h=no
17729 fi
17730
17731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 fi
17733 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17734 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17735   if test $gl_cv_header_inttypes_h = yes; then
17736
17737 cat >>confdefs.h <<_ACEOF
17738 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17739 _ACEOF
17740
17741   fi
17742
17743
17744   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17745 $as_echo_n "checking for stdint.h... " >&6; }
17746 if test "${gl_cv_header_stdint_h+set}" = set; then
17747   $as_echo_n "(cached) " >&6
17748 else
17749   cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755 #include <sys/types.h>
17756 #include <stdint.h>
17757 int
17758 main ()
17759 {
17760 uintmax_t i = (uintmax_t) -1;
17761   ;
17762   return 0;
17763 }
17764 _ACEOF
17765 rm -f conftest.$ac_objext
17766 if { (ac_try="$ac_compile"
17767 case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17772 $as_echo "$ac_try_echo") >&5
17773   (eval "$ac_compile") 2>conftest.er1
17774   ac_status=$?
17775   grep -v '^ *+' conftest.er1 >conftest.err
17776   rm -f conftest.er1
17777   cat conftest.err >&5
17778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779   (exit $ac_status); } && {
17780          test -z "$ac_c_werror_flag" ||
17781          test ! -s conftest.err
17782        } && test -s conftest.$ac_objext; then
17783   gl_cv_header_stdint_h=yes
17784 else
17785   $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17787
17788         gl_cv_header_stdint_h=no
17789 fi
17790
17791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 fi
17793 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17794 $as_echo "$gl_cv_header_stdint_h" >&6; }
17795   if test $gl_cv_header_stdint_h = yes; then
17796
17797 cat >>confdefs.h <<_ACEOF
17798 #define HAVE_STDINT_H_WITH_UINTMAX 1
17799 _ACEOF
17800
17801   fi
17802
17803
17804
17805
17806   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
17807 $as_echo_n "checking for intmax_t... " >&6; }
17808 if test "${gt_cv_c_intmax_t+set}" = set; then
17809   $as_echo_n "(cached) " >&6
17810 else
17811   cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h.  */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h.  */
17817
17818 #include <stddef.h>
17819 #include <stdlib.h>
17820 #if HAVE_STDINT_H_WITH_UINTMAX
17821 #include <stdint.h>
17822 #endif
17823 #if HAVE_INTTYPES_H_WITH_UINTMAX
17824 #include <inttypes.h>
17825 #endif
17826
17827 int
17828 main ()
17829 {
17830 intmax_t x = -1; return !x;
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (ac_try="$ac_compile"
17837 case "(($ac_try" in
17838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839   *) ac_try_echo=$ac_try;;
17840 esac
17841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842 $as_echo "$ac_try_echo") >&5
17843   (eval "$ac_compile") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } && {
17850          test -z "$ac_c_werror_flag" ||
17851          test ! -s conftest.err
17852        } && test -s conftest.$ac_objext; then
17853   gt_cv_c_intmax_t=yes
17854 else
17855   $as_echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858         gt_cv_c_intmax_t=no
17859 fi
17860
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17862 fi
17863 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17864 $as_echo "$gt_cv_c_intmax_t" >&6; }
17865   if test $gt_cv_c_intmax_t = yes; then
17866
17867 cat >>confdefs.h <<\_ACEOF
17868 #define HAVE_INTMAX_T 1
17869 _ACEOF
17870
17871   else
17872
17873     test $ac_cv_type_long_long_int = yes \
17874       && ac_type='long long' \
17875       || ac_type='long'
17876
17877 cat >>confdefs.h <<_ACEOF
17878 #define intmax_t $ac_type
17879 _ACEOF
17880
17881   fi
17882
17883
17884
17885      { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
17886 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17887 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
17888   $as_echo_n "(cached) " >&6
17889 else
17890
17891       if test "$cross_compiling" = yes; then
17892
17893          case "$host_os" in
17894                                  # Guess yes on glibc systems.
17895            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
17896                                  # Guess yes on FreeBSD >= 5.
17897            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17898            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17899                                  # Guess yes on MacOS X >= 10.3.
17900            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17901            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17902                                  # Guess yes on OpenBSD >= 3.9.
17903            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17904                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17905            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17906                                  # Guess yes on Solaris >= 2.6.
17907            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
17908            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17909                                  # Guess yes on AIX >= 4.
17910            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
17911            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
17912                                  # Guess yes on NetBSD >= 3.
17913            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17914                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17915            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17916                                  # Guess yes on BeOS.
17917            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
17918                                  # If we don't know, assume the worst.
17919            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
17920          esac
17921
17922 else
17923   cat >conftest.$ac_ext <<_ACEOF
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929
17930 #include <stdio.h>
17931 #include <string.h>
17932 static char buf[100];
17933 int main ()
17934 {
17935   strcpy (buf, "ABCDEF");
17936   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17937     return 1;
17938   return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest$ac_exeext
17942 if { (ac_try="$ac_link"
17943 case "(($ac_try" in
17944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945   *) ac_try_echo=$ac_try;;
17946 esac
17947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17948 $as_echo "$ac_try_echo") >&5
17949   (eval "$ac_link") 2>&5
17950   ac_status=$?
17951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17953   { (case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17958 $as_echo "$ac_try_echo") >&5
17959   (eval "$ac_try") 2>&5
17960   ac_status=$?
17961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962   (exit $ac_status); }; }; then
17963   gl_cv_func_snprintf_retval_c99=yes
17964 else
17965   $as_echo "$as_me: program exited with status $ac_status" >&5
17966 $as_echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17968
17969 ( exit $ac_status )
17970 gl_cv_func_snprintf_retval_c99=no
17971 fi
17972 rm -rf conftest.dSYM
17973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17974 fi
17975
17976
17977
17978 fi
17979 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
17980 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
17996 do
17997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17999 $as_echo_n "checking for $ac_func... " >&6; }
18000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18001   $as_echo_n "(cached) " >&6
18002 else
18003   cat >conftest.$ac_ext <<_ACEOF
18004 /* confdefs.h.  */
18005 _ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h.  */
18009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18011 #define $ac_func innocuous_$ac_func
18012
18013 /* System header to define __stub macros and hopefully few prototypes,
18014     which can conflict with char $ac_func (); below.
18015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18016     <limits.h> exists even on freestanding compilers.  */
18017
18018 #ifdef __STDC__
18019 # include <limits.h>
18020 #else
18021 # include <assert.h>
18022 #endif
18023
18024 #undef $ac_func
18025
18026 /* Override any GCC internal prototype to avoid an error.
18027    Use char because int might match the return type of a GCC
18028    builtin and then its argument prototype would still apply.  */
18029 #ifdef __cplusplus
18030 extern "C"
18031 #endif
18032 char $ac_func ();
18033 /* The GNU C library defines this for functions which it implements
18034     to always fail with ENOSYS.  Some functions are actually named
18035     something starting with __ and the normal name is an alias.  */
18036 #if defined __stub_$ac_func || defined __stub___$ac_func
18037 choke me
18038 #endif
18039
18040 int
18041 main ()
18042 {
18043 return $ac_func ();
18044   ;
18045   return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext conftest$ac_exeext
18049 if { (ac_try="$ac_link"
18050 case "(($ac_try" in
18051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052   *) ac_try_echo=$ac_try;;
18053 esac
18054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18055 $as_echo "$ac_try_echo") >&5
18056   (eval "$ac_link") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } && {
18063          test -z "$ac_c_werror_flag" ||
18064          test ! -s conftest.err
18065        } && test -s conftest$ac_exeext && {
18066          test "$cross_compiling" = yes ||
18067          $as_test_x conftest$ac_exeext
18068        }; then
18069   eval "$as_ac_var=yes"
18070 else
18071   $as_echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074         eval "$as_ac_var=no"
18075 fi
18076
18077 rm -rf conftest.dSYM
18078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18079       conftest$ac_exeext conftest.$ac_ext
18080 fi
18081 ac_res=`eval 'as_val=${'$as_ac_var'}
18082                  $as_echo "$as_val"'`
18083                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18084 $as_echo "$ac_res" >&6; }
18085 as_val=`eval 'as_val=${'$as_ac_var'}
18086                  $as_echo "$as_val"'`
18087    if test "x$as_val" = x""yes; then
18088   cat >>confdefs.h <<_ACEOF
18089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18090 _ACEOF
18091
18092 fi
18093 done
18094
18095       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18096 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18097 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18098   $as_echo_n "(cached) " >&6
18099 else
18100   cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106 #include <stdio.h>
18107
18108 int
18109 main ()
18110 {
18111 #ifndef _snprintf
18112   (void) _snprintf;
18113 #endif
18114
18115   ;
18116   return 0;
18117 }
18118 _ACEOF
18119 rm -f conftest.$ac_objext
18120 if { (ac_try="$ac_compile"
18121 case "(($ac_try" in
18122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123   *) ac_try_echo=$ac_try;;
18124 esac
18125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18126 $as_echo "$ac_try_echo") >&5
18127   (eval "$ac_compile") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest.$ac_objext; then
18137   ac_cv_have_decl__snprintf=yes
18138 else
18139   $as_echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         ac_cv_have_decl__snprintf=no
18143 fi
18144
18145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18146 fi
18147 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18148 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18149 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18150
18151 cat >>confdefs.h <<_ACEOF
18152 #define HAVE_DECL__SNPRINTF 1
18153 _ACEOF
18154
18155
18156 else
18157   cat >>confdefs.h <<_ACEOF
18158 #define HAVE_DECL__SNPRINTF 0
18159 _ACEOF
18160
18161
18162 fi
18163
18164
18165
18166   case "$gl_cv_func_snprintf_retval_c99" in
18167     *yes)
18168
18169 cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_SNPRINTF_RETVAL_C99 1
18171 _ACEOF
18172
18173       ;;
18174   esac
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195       { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
18196 $as_echo_n "checking whether iswblank is declared... " >&6; }
18197 if test "${ac_cv_have_decl_iswblank+set}" = set; then
18198   $as_echo_n "(cached) " >&6
18199 else
18200   cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 $ac_includes_default
18207 int
18208 main ()
18209 {
18210 #ifndef iswblank
18211   (void) iswblank;
18212 #endif
18213
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (ac_try="$ac_compile"
18220 case "(($ac_try" in
18221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222   *) ac_try_echo=$ac_try;;
18223 esac
18224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18225 $as_echo "$ac_try_echo") >&5
18226   (eval "$ac_compile") 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } && {
18233          test -z "$ac_c_werror_flag" ||
18234          test ! -s conftest.err
18235        } && test -s conftest.$ac_objext; then
18236   ac_cv_have_decl_iswblank=yes
18237 else
18238   $as_echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18240
18241         ac_cv_have_decl_iswblank=no
18242 fi
18243
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245 fi
18246 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
18247 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
18248 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
18249
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_DECL_ISWBLANK 1
18252 _ACEOF
18253
18254
18255 else
18256   cat >>confdefs.h <<_ACEOF
18257 #define HAVE_DECL_ISWBLANK 0
18258 _ACEOF
18259
18260
18261 fi
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272    if true; then
18273   GL_COND_LIBTOOL_TRUE=
18274   GL_COND_LIBTOOL_FALSE='#'
18275 else
18276   GL_COND_LIBTOOL_TRUE='#'
18277   GL_COND_LIBTOOL_FALSE=
18278 fi
18279
18280   gl_cond_libtool=true
18281   gl_m4_base='config/gnulib'
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291   gl_source_base='gnulib'
18292   # Code from module alignof:
18293   # Code from module alloca-opt:
18294
18295
18296
18297
18298
18299   if test $ac_cv_func_alloca_works = no; then
18300     :
18301   fi
18302
18303   # Define an additional variable used in the Makefile substitution.
18304   if test $ac_cv_working_alloca_h = yes; then
18305     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18306 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18307 if test "${gl_cv_rpl_alloca+set}" = set; then
18308   $as_echo_n "(cached) " >&6
18309 else
18310
18311       cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h.  */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h.  */
18317
18318 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18319         Need own alloca
18320 #endif
18321
18322 _ACEOF
18323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18324   $EGREP "Need own alloca" >/dev/null 2>&1; then
18325   gl_cv_rpl_alloca=yes
18326 else
18327   gl_cv_rpl_alloca=no
18328 fi
18329 rm -f conftest*
18330
18331
18332 fi
18333 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18334 $as_echo "$gl_cv_rpl_alloca" >&6; }
18335     if test $gl_cv_rpl_alloca = yes; then
18336
18337 cat >>confdefs.h <<\_ACEOF
18338 #define HAVE_ALLOCA 1
18339 _ACEOF
18340
18341       ALLOCA_H=alloca.h
18342     else
18343                   ALLOCA_H=
18344     fi
18345   else
18346     ALLOCA_H=alloca.h
18347   fi
18348
18349
18350   # Code from module arg-nonnull:
18351   # Code from module arpa_inet:
18352
18353
18354
18355
18356   :
18357
18358
18359
18360
18361
18362   if test $ac_cv_header_arpa_inet_h = yes; then
18363     HAVE_ARPA_INET_H=1
18364   else
18365     HAVE_ARPA_INET_H=0
18366   fi
18367
18368
18369
18370
18371
18372   :
18373
18374
18375
18376
18377
18378
18379
18380      if test $gl_cv_have_include_next = yes; then
18381        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18382      else
18383        { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
18384 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
18385 if test "${gl_cv_next_arpa_inet_h+set}" = set; then
18386   $as_echo_n "(cached) " >&6
18387 else
18388
18389           if test $ac_cv_header_arpa_inet_h = yes; then
18390             cat >conftest.$ac_ext <<_ACEOF
18391 /* confdefs.h.  */
18392 _ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h.  */
18396 #include <arpa/inet.h>
18397
18398 _ACEOF
18399                                                                                                 case "$host_os" in
18400               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18401               *)    gl_absname_cpp="$ac_cpp" ;;
18402             esac
18403                                                 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18404                sed -n '\#/arpa/inet.h#{
18405                  s#.*"\(.*/arpa/inet.h\)".*#\1#
18406                  s#^/[^/]#//&#
18407                  p
18408                  q
18409                }'`'"'
18410           else
18411             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18412           fi
18413
18414 fi
18415 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
18416 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
18417      fi
18418      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
18419
18420      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18421        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18422        gl_next_as_first_directive='<'arpa/inet.h'>'
18423      else
18424        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18425        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
18426      fi
18427      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
18428
18429
18430
18431
18432
18433
18434
18435   for gl_func in inet_ntop inet_pton; do
18436     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18437     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
18438 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18439 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
18440   $as_echo_n "(cached) " >&6
18441 else
18442   cat >conftest.$ac_ext <<_ACEOF
18443 /* confdefs.h.  */
18444 _ACEOF
18445 cat confdefs.h >>conftest.$ac_ext
18446 cat >>conftest.$ac_ext <<_ACEOF
18447 /* end confdefs.h.  */
18448
18449 /* On some systems, this header is not self-consistent.  */
18450 #ifndef __GLIBC__
18451 # include <sys/socket.h>
18452 #endif
18453 #include <arpa/inet.h>
18454
18455 int
18456 main ()
18457 {
18458 #undef $gl_func
18459   (void) $gl_func;
18460   ;
18461   return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest.$ac_objext
18465 if { (ac_try="$ac_compile"
18466 case "(($ac_try" in
18467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468   *) ac_try_echo=$ac_try;;
18469 esac
18470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18471 $as_echo "$ac_try_echo") >&5
18472   (eval "$ac_compile") 2>conftest.er1
18473   ac_status=$?
18474   grep -v '^ *+' conftest.er1 >conftest.err
18475   rm -f conftest.er1
18476   cat conftest.err >&5
18477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); } && {
18479          test -z "$ac_c_werror_flag" ||
18480          test ! -s conftest.err
18481        } && test -s conftest.$ac_objext; then
18482   eval "$as_gl_Symbol=yes"
18483 else
18484   $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487         eval "$as_gl_Symbol=no"
18488 fi
18489
18490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18491 fi
18492 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
18493                  $as_echo "$as_val"'`
18494                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18495 $as_echo "$ac_res" >&6; }
18496      as_val=`eval 'as_val=${'$as_gl_Symbol'}
18497                  $as_echo "$as_val"'`
18498    if test "x$as_val" = x""yes; then
18499   cat >>confdefs.h <<_ACEOF
18500 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18501 _ACEOF
18502
18503                      eval ac_cv_have_decl_$gl_func=yes
18504 fi
18505
18506       done
18507
18508
18509   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18510 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18511 if test -z "$MKDIR_P"; then
18512   if test "${ac_cv_path_mkdir+set}" = set; then
18513   $as_echo_n "(cached) " >&6
18514 else
18515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18516 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18517 do
18518   IFS=$as_save_IFS
18519   test -z "$as_dir" && as_dir=.
18520   for ac_prog in mkdir gmkdir; do
18521          for ac_exec_ext in '' $ac_executable_extensions; do
18522            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18523            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18524              'mkdir (GNU coreutils) '* | \
18525              'mkdir (coreutils) '* | \
18526              'mkdir (fileutils) '4.1*)
18527                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18528                break 3;;
18529            esac
18530          done
18531        done
18532 done
18533 IFS=$as_save_IFS
18534
18535 fi
18536
18537   if test "${ac_cv_path_mkdir+set}" = set; then
18538     MKDIR_P="$ac_cv_path_mkdir -p"
18539   else
18540     # As a last resort, use the slow shell script.  Don't cache a
18541     # value for MKDIR_P within a source directory, because that will
18542     # break other packages using the cache if that directory is
18543     # removed, or if the value is a relative name.
18544     test -d ./--version && rmdir ./--version
18545     MKDIR_P="$ac_install_sh -d"
18546   fi
18547 fi
18548 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18549 $as_echo "$MKDIR_P" >&6; }
18550
18551
18552   # Code from module base64:
18553
18554
18555
18556
18557
18558
18559   # Code from module btowc:
18560
18561
18562
18563
18564
18565
18566   :
18567
18568
18569
18570
18571
18572   if test $ac_cv_func_btowc = no; then
18573     HAVE_BTOWC=0
18574   else
18575
18576
18577
18578
18579         { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
18580 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
18581 if test "${gl_cv_func_btowc_nul+set}" = set; then
18582   $as_echo_n "(cached) " >&6
18583 else
18584
18585         if test "$cross_compiling" = yes; then
18586
18587            case "$host_os" in
18588                       # Guess no on Cygwin.
18589              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
18590                       # Guess yes otherwise.
18591              *)       gl_cv_func_btowc_nul="guessing yes" ;;
18592            esac
18593
18594 else
18595   cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h.  */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h.  */
18601
18602 #include <stdio.h>
18603 #include <string.h>
18604 #include <wchar.h>
18605 int main ()
18606 {
18607   if (btowc ('\0') != 0)
18608     return 1;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18619 $as_echo "$ac_try_echo") >&5
18620   (eval "$ac_link") 2>&5
18621   ac_status=$?
18622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18624   { (case "(($ac_try" in
18625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626   *) ac_try_echo=$ac_try;;
18627 esac
18628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18629 $as_echo "$ac_try_echo") >&5
18630   (eval "$ac_try") 2>&5
18631   ac_status=$?
18632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; }; then
18634   gl_cv_func_btowc_nul=yes
18635 else
18636   $as_echo "$as_me: program exited with status $ac_status" >&5
18637 $as_echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640 ( exit $ac_status )
18641 gl_cv_func_btowc_nul=no
18642 fi
18643 rm -rf conftest.dSYM
18644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18645 fi
18646
18647
18648
18649 fi
18650 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
18651 $as_echo "$gl_cv_func_btowc_nul" >&6; }
18652
18653         { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
18654 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
18655 if test "${gl_cv_func_btowc_eof+set}" = set; then
18656   $as_echo_n "(cached) " >&6
18657 else
18658
18659                         case "$host_os" in
18660                  # Guess no on IRIX.
18661           irix*) gl_cv_func_btowc_eof="guessing no" ;;
18662                  # Guess yes otherwise.
18663           *)     gl_cv_func_btowc_eof="guessing yes" ;;
18664         esac
18665         if test $LOCALE_FR != none; then
18666           if test "$cross_compiling" = yes; then
18667   :
18668 else
18669   cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h.  */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h.  */
18675
18676 #include <locale.h>
18677 #include <stdio.h>
18678 #include <string.h>
18679 #include <wchar.h>
18680 int main ()
18681 {
18682   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18683     {
18684       if (btowc (EOF) != WEOF)
18685         return 1;
18686     }
18687   return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694   *) ac_try_echo=$ac_try;;
18695 esac
18696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18697 $as_echo "$ac_try_echo") >&5
18698   (eval "$ac_link") 2>&5
18699   ac_status=$?
18700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18702   { (case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18707 $as_echo "$ac_try_echo") >&5
18708   (eval "$ac_try") 2>&5
18709   ac_status=$?
18710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; }; then
18712   gl_cv_func_btowc_eof=yes
18713 else
18714   $as_echo "$as_me: program exited with status $ac_status" >&5
18715 $as_echo "$as_me: failed program was:" >&5
18716 sed 's/^/| /' conftest.$ac_ext >&5
18717
18718 ( exit $ac_status )
18719 gl_cv_func_btowc_eof=no
18720 fi
18721 rm -rf conftest.dSYM
18722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18723 fi
18724
18725
18726         fi
18727
18728 fi
18729 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
18730 $as_echo "$gl_cv_func_btowc_eof" >&6; }
18731
18732     case "$gl_cv_func_btowc_nul" in
18733       *yes) ;;
18734       *) REPLACE_BTOWC=1 ;;
18735     esac
18736     case "$gl_cv_func_btowc_eof" in
18737       *yes) ;;
18738       *) REPLACE_BTOWC=1 ;;
18739     esac
18740   fi
18741   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
18742
18743     :
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
18754
18755
18756   :
18757
18758   fi
18759
18760
18761
18762
18763   GNULIB_BTOWC=1
18764
18765
18766
18767 cat >>confdefs.h <<\_ACEOF
18768 #define GNULIB_TEST_BTOWC 1
18769 _ACEOF
18770
18771
18772
18773   # Code from module c++defs:
18774   # Code from module c-ctype:
18775   # Code from module configmake:
18776   # Code from module environ:
18777
18778
18779
18780
18781   GNULIB_ENVIRON=1
18782
18783
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define GNULIB_TEST_ENVIRON 1
18787 _ACEOF
18788
18789
18790
18791   # Code from module errno:
18792
18793   # Code from module extensions:
18794   # Code from module float:
18795
18796
18797
18798   FLOAT_H=
18799   case "$host_os" in
18800     beos* | openbsd*)
18801       FLOAT_H=float.h
18802
18803
18804
18805
18806   :
18807
18808
18809
18810
18811
18812
18813
18814      if test $gl_cv_have_include_next = yes; then
18815        gl_cv_next_float_h='<'float.h'>'
18816      else
18817        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
18818 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18819 if test "${gl_cv_next_float_h+set}" = set; then
18820   $as_echo_n "(cached) " >&6
18821 else
18822
18823           if test $ac_cv_header_float_h = yes; then
18824             cat >conftest.$ac_ext <<_ACEOF
18825 /* confdefs.h.  */
18826 _ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h.  */
18830 #include <float.h>
18831
18832 _ACEOF
18833                                                                                                 case "$host_os" in
18834               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18835               *)    gl_absname_cpp="$ac_cpp" ;;
18836             esac
18837                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18838                sed -n '\#/float.h#{
18839                  s#.*"\(.*/float.h\)".*#\1#
18840                  s#^/[^/]#//&#
18841                  p
18842                  q
18843                }'`'"'
18844           else
18845             gl_cv_next_float_h='<'float.h'>'
18846           fi
18847
18848 fi
18849 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
18850 $as_echo "$gl_cv_next_float_h" >&6; }
18851      fi
18852      NEXT_FLOAT_H=$gl_cv_next_float_h
18853
18854      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18855        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18856        gl_next_as_first_directive='<'float.h'>'
18857      else
18858        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18859        gl_next_as_first_directive=$gl_cv_next_float_h
18860      fi
18861      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
18862
18863
18864
18865       ;;
18866   esac
18867
18868
18869   # Code from module fseeko:
18870
18871
18872
18873
18874
18875   if test $gl_cv_func_fseeko = no; then
18876     HAVE_FSEEKO=0
18877
18878
18879
18880   if test $gl_cv_func_fseeko = yes; then
18881     REPLACE_FSEEKO=1
18882   fi
18883
18884
18885
18886
18887
18888
18889
18890
18891   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18892
18893
18894
18895   else
18896     if test $gl_cv_var_stdin_large_offset = no; then
18897
18898
18899
18900   if test $gl_cv_func_fseeko = yes; then
18901     REPLACE_FSEEKO=1
18902   fi
18903
18904
18905
18906
18907
18908
18909
18910
18911   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18912
18913
18914
18915     fi
18916   fi
18917
18918
18919
18920
18921   GNULIB_FSEEKO=1
18922
18923
18924
18925 cat >>confdefs.h <<\_ACEOF
18926 #define GNULIB_TEST_FSEEKO 1
18927 _ACEOF
18928
18929
18930
18931   # Code from module fsusage:
18932
18933
18934   :
18935
18936
18937
18938
18939
18940
18941   :
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951 for ac_header in sys/mount.h
18952 do
18953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18955 $as_echo_n "checking for $ac_header... " >&6; }
18956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18957   $as_echo_n "(cached) " >&6
18958 else
18959   cat >conftest.$ac_ext <<_ACEOF
18960 /* confdefs.h.  */
18961 _ACEOF
18962 cat confdefs.h >>conftest.$ac_ext
18963 cat >>conftest.$ac_ext <<_ACEOF
18964 /* end confdefs.h.  */
18965 $ac_includes_default
18966      #if HAVE_SYS_PARAM_H
18967        #include <sys/param.h>
18968       #endif
18969
18970 #include <$ac_header>
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18979 $as_echo "$ac_try_echo") >&5
18980   (eval "$ac_compile") 2>conftest.er1
18981   ac_status=$?
18982   grep -v '^ *+' conftest.er1 >conftest.err
18983   rm -f conftest.er1
18984   cat conftest.err >&5
18985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); } && {
18987          test -z "$ac_c_werror_flag" ||
18988          test ! -s conftest.err
18989        } && test -s conftest.$ac_objext; then
18990   eval "$as_ac_Header=yes"
18991 else
18992   $as_echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995         eval "$as_ac_Header=no"
18996 fi
18997
18998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 fi
19000 ac_res=`eval 'as_val=${'$as_ac_Header'}
19001                  $as_echo "$as_val"'`
19002                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19003 $as_echo "$ac_res" >&6; }
19004 as_val=`eval 'as_val=${'$as_ac_Header'}
19005                  $as_echo "$as_val"'`
19006    if test "x$as_val" = x""yes; then
19007   cat >>confdefs.h <<_ACEOF
19008 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19009 _ACEOF
19010
19011 fi
19012
19013 done
19014
19015
19016
19017 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
19018 $as_echo "$as_me: checking how to get file system space usage" >&6;}
19019 ac_fsusage_space=no
19020
19021 # Perform only the link test since it seems there are no variants of the
19022 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
19023 # because that got a false positive on SCO OSR5.  Adding the declaration
19024 # of a `struct statvfs' causes this test to fail (as it should) on such
19025 # systems.  That system is reported to work fine with STAT_STATFS4 which
19026 # is what it gets when this test fails.
19027 if test $ac_fsusage_space = no; then
19028   # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19029   # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
19030   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
19031 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
19032 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
19033   $as_echo_n "(cached) " >&6
19034 else
19035   cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041 #include <sys/types.h>
19042 #if defined __GLIBC__ && defined __linux__
19043 Do not use statvfs on systems with GNU libc on Linux, because that function
19044 stats all preceding entries in /proc/mounts, and that makes df hang if even
19045 one of the corresponding file systems is hard-mounted, but not available.
19046 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
19047 a system call.
19048 #endif
19049
19050 #ifdef __osf__
19051 "Do not use Tru64's statvfs implementation"
19052 #endif
19053
19054 #include <sys/statvfs.h>
19055 int
19056 main ()
19057 {
19058 struct statvfs fsd; statvfs (0, &fsd);
19059   ;
19060   return 0;
19061 }
19062 _ACEOF
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067   *) ac_try_echo=$ac_try;;
19068 esac
19069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19070 $as_echo "$ac_try_echo") >&5
19071   (eval "$ac_link") 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } && {
19078          test -z "$ac_c_werror_flag" ||
19079          test ! -s conftest.err
19080        } && test -s conftest$ac_exeext && {
19081          test "$cross_compiling" = yes ||
19082          $as_test_x conftest$ac_exeext
19083        }; then
19084   fu_cv_sys_stat_statvfs=yes
19085 else
19086   $as_echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.$ac_ext >&5
19088
19089         fu_cv_sys_stat_statvfs=no
19090 fi
19091
19092 rm -rf conftest.dSYM
19093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19094       conftest$ac_exeext conftest.$ac_ext
19095 fi
19096 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
19097 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
19098   if test $fu_cv_sys_stat_statvfs = yes; then
19099     ac_fsusage_space=yes
19100
19101 cat >>confdefs.h <<\_ACEOF
19102 #define STAT_STATVFS 1
19103 _ACEOF
19104
19105   fi
19106 fi
19107
19108 if test $ac_fsusage_space = no; then
19109   # DEC Alpha running OSF/1
19110   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
19111 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
19112   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
19113   $as_echo_n "(cached) " >&6
19114 else
19115   if test "$cross_compiling" = yes; then
19116   fu_cv_sys_stat_statfs3_osf1=no
19117 else
19118   cat >conftest.$ac_ext <<_ACEOF
19119 /* confdefs.h.  */
19120 _ACEOF
19121 cat confdefs.h >>conftest.$ac_ext
19122 cat >>conftest.$ac_ext <<_ACEOF
19123 /* end confdefs.h.  */
19124
19125 #include <sys/param.h>
19126 #include <sys/types.h>
19127 #include <sys/mount.h>
19128   int
19129   main ()
19130   {
19131     struct statfs fsd;
19132     fsd.f_fsize = 0;
19133     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
19134   }
19135 _ACEOF
19136 rm -f conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19143 $as_echo "$ac_try_echo") >&5
19144   (eval "$ac_link") 2>&5
19145   ac_status=$?
19146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19148   { (case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153 $as_echo "$ac_try_echo") >&5
19154   (eval "$ac_try") 2>&5
19155   ac_status=$?
19156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); }; }; then
19158   fu_cv_sys_stat_statfs3_osf1=yes
19159 else
19160   $as_echo "$as_me: program exited with status $ac_status" >&5
19161 $as_echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 ( exit $ac_status )
19165 fu_cv_sys_stat_statfs3_osf1=no
19166 fi
19167 rm -rf conftest.dSYM
19168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19169 fi
19170
19171
19172 fi
19173
19174   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19175 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
19176   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19177     ac_fsusage_space=yes
19178
19179 cat >>confdefs.h <<\_ACEOF
19180 #define STAT_STATFS3_OSF1 1
19181 _ACEOF
19182
19183   fi
19184 fi
19185
19186 if test $ac_fsusage_space = no; then
19187   # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
19188   # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19189   # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
19190   # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
19191   # <sys/vfs.h>.)
19192   # (On Solaris, statfs has 4 arguments.)
19193   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
19194 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
19195   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
19196   $as_echo_n "(cached) " >&6
19197 else
19198   if test "$cross_compiling" = yes; then
19199   fu_cv_sys_stat_statfs2_bsize=no
19200 else
19201   cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h.  */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h.  */
19207
19208 #ifdef HAVE_SYS_PARAM_H
19209 #include <sys/param.h>
19210 #endif
19211 #ifdef HAVE_SYS_MOUNT_H
19212 #include <sys/mount.h>
19213 #endif
19214 #ifdef HAVE_SYS_VFS_H
19215 #include <sys/vfs.h>
19216 #endif
19217   int
19218   main ()
19219   {
19220   struct statfs fsd;
19221   fsd.f_bsize = 0;
19222   return statfs (".", &fsd) != 0;
19223   }
19224 _ACEOF
19225 rm -f conftest$ac_exeext
19226 if { (ac_try="$ac_link"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19232 $as_echo "$ac_try_echo") >&5
19233   (eval "$ac_link") 2>&5
19234   ac_status=$?
19235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19237   { (case "(($ac_try" in
19238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239   *) ac_try_echo=$ac_try;;
19240 esac
19241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19242 $as_echo "$ac_try_echo") >&5
19243   (eval "$ac_try") 2>&5
19244   ac_status=$?
19245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); }; }; then
19247   fu_cv_sys_stat_statfs2_bsize=yes
19248 else
19249   $as_echo "$as_me: program exited with status $ac_status" >&5
19250 $as_echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19252
19253 ( exit $ac_status )
19254 fu_cv_sys_stat_statfs2_bsize=no
19255 fi
19256 rm -rf conftest.dSYM
19257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19258 fi
19259
19260
19261 fi
19262
19263   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19264 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
19265   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19266     ac_fsusage_space=yes
19267
19268 cat >>confdefs.h <<\_ACEOF
19269 #define STAT_STATFS2_BSIZE 1
19270 _ACEOF
19271
19272   fi
19273 fi
19274
19275 if test $ac_fsusage_space = no; then
19276   # SVR3
19277   # (Solaris already handled above.)
19278   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19279 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
19280   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
19281   $as_echo_n "(cached) " >&6
19282 else
19283   if test "$cross_compiling" = yes; then
19284   fu_cv_sys_stat_statfs4=no
19285 else
19286   cat >conftest.$ac_ext <<_ACEOF
19287 /* confdefs.h.  */
19288 _ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h.  */
19292
19293 #include <sys/types.h>
19294 #include <sys/statfs.h>
19295   int
19296   main ()
19297   {
19298   struct statfs fsd;
19299   return statfs (".", &fsd, sizeof fsd, 0) != 0;
19300   }
19301 _ACEOF
19302 rm -f conftest$ac_exeext
19303 if { (ac_try="$ac_link"
19304 case "(($ac_try" in
19305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306   *) ac_try_echo=$ac_try;;
19307 esac
19308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19309 $as_echo "$ac_try_echo") >&5
19310   (eval "$ac_link") 2>&5
19311   ac_status=$?
19312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19314   { (case "(($ac_try" in
19315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19316   *) ac_try_echo=$ac_try;;
19317 esac
19318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19319 $as_echo "$ac_try_echo") >&5
19320   (eval "$ac_try") 2>&5
19321   ac_status=$?
19322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; }; then
19324   fu_cv_sys_stat_statfs4=yes
19325 else
19326   $as_echo "$as_me: program exited with status $ac_status" >&5
19327 $as_echo "$as_me: failed program was:" >&5
19328 sed 's/^/| /' conftest.$ac_ext >&5
19329
19330 ( exit $ac_status )
19331 fu_cv_sys_stat_statfs4=no
19332 fi
19333 rm -rf conftest.dSYM
19334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19335 fi
19336
19337
19338 fi
19339
19340   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
19341 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
19342   if test $fu_cv_sys_stat_statfs4 = yes; then
19343     ac_fsusage_space=yes
19344
19345 cat >>confdefs.h <<\_ACEOF
19346 #define STAT_STATFS4 1
19347 _ACEOF
19348
19349   fi
19350 fi
19351
19352 if test $ac_fsusage_space = no; then
19353   # 4.4BSD and older NetBSD
19354   # (OSF/1 already handled above.)
19355   # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
19356   # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
19357   # <sys/mount.h>.)
19358   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
19359 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
19360   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
19361   $as_echo_n "(cached) " >&6
19362 else
19363   if test "$cross_compiling" = yes; then
19364   fu_cv_sys_stat_statfs2_fsize=no
19365 else
19366   cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h.  */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h.  */
19372
19373 #include <sys/types.h>
19374 #ifdef HAVE_SYS_PARAM_H
19375 #include <sys/param.h>
19376 #endif
19377 #ifdef HAVE_SYS_MOUNT_H
19378 #include <sys/mount.h>
19379 #endif
19380   int
19381   main ()
19382   {
19383   struct statfs fsd;
19384   fsd.f_fsize = 0;
19385   return statfs (".", &fsd) != 0;
19386   }
19387 _ACEOF
19388 rm -f conftest$ac_exeext
19389 if { (ac_try="$ac_link"
19390 case "(($ac_try" in
19391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392   *) ac_try_echo=$ac_try;;
19393 esac
19394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19395 $as_echo "$ac_try_echo") >&5
19396   (eval "$ac_link") 2>&5
19397   ac_status=$?
19398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19400   { (case "(($ac_try" in
19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402   *) ac_try_echo=$ac_try;;
19403 esac
19404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19405 $as_echo "$ac_try_echo") >&5
19406   (eval "$ac_try") 2>&5
19407   ac_status=$?
19408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; }; then
19410   fu_cv_sys_stat_statfs2_fsize=yes
19411 else
19412   $as_echo "$as_me: program exited with status $ac_status" >&5
19413 $as_echo "$as_me: failed program was:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 ( exit $ac_status )
19417 fu_cv_sys_stat_statfs2_fsize=no
19418 fi
19419 rm -rf conftest.dSYM
19420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19421 fi
19422
19423
19424 fi
19425
19426   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19427 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
19428   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19429     ac_fsusage_space=yes
19430
19431 cat >>confdefs.h <<\_ACEOF
19432 #define STAT_STATFS2_FSIZE 1
19433 _ACEOF
19434
19435   fi
19436 fi
19437
19438 if test $ac_fsusage_space = no; then
19439   # Ultrix
19440   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19441 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
19442   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
19443   $as_echo_n "(cached) " >&6
19444 else
19445   if test "$cross_compiling" = yes; then
19446   fu_cv_sys_stat_fs_data=no
19447 else
19448   cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 #include <sys/types.h>
19456 #ifdef HAVE_SYS_PARAM_H
19457 #include <sys/param.h>
19458 #endif
19459 #ifdef HAVE_SYS_MOUNT_H
19460 #include <sys/mount.h>
19461 #endif
19462 #ifdef HAVE_SYS_FS_TYPES_H
19463 #include <sys/fs_types.h>
19464 #endif
19465   int
19466   main ()
19467   {
19468   struct fs_data fsd;
19469   /* Ultrix's statfs returns 1 for success,
19470      0 for not mounted, -1 for failure.  */
19471   return statfs (".", &fsd) != 1;
19472   }
19473 _ACEOF
19474 rm -f conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478   *) ac_try_echo=$ac_try;;
19479 esac
19480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19481 $as_echo "$ac_try_echo") >&5
19482   (eval "$ac_link") 2>&5
19483   ac_status=$?
19484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19486   { (case "(($ac_try" in
19487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488   *) ac_try_echo=$ac_try;;
19489 esac
19490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19491 $as_echo "$ac_try_echo") >&5
19492   (eval "$ac_try") 2>&5
19493   ac_status=$?
19494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; }; then
19496   fu_cv_sys_stat_fs_data=yes
19497 else
19498   $as_echo "$as_me: program exited with status $ac_status" >&5
19499 $as_echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502 ( exit $ac_status )
19503 fu_cv_sys_stat_fs_data=no
19504 fi
19505 rm -rf conftest.dSYM
19506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19507 fi
19508
19509
19510 fi
19511
19512   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
19513 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
19514   if test $fu_cv_sys_stat_fs_data = yes; then
19515     ac_fsusage_space=yes
19516
19517 cat >>confdefs.h <<\_ACEOF
19518 #define STAT_STATFS2_FS_DATA 1
19519 _ACEOF
19520
19521   fi
19522 fi
19523
19524 if test $ac_fsusage_space = no; then
19525   # SVR2
19526   # (AIX, HP-UX, OSF/1 already handled above.)
19527   cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 #include <sys/filsys.h>
19534
19535 _ACEOF
19536 if { (ac_try="$ac_cpp conftest.$ac_ext"
19537 case "(($ac_try" in
19538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539   *) ac_try_echo=$ac_try;;
19540 esac
19541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19542 $as_echo "$ac_try_echo") >&5
19543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19544   ac_status=$?
19545   grep -v '^ *+' conftest.er1 >conftest.err
19546   rm -f conftest.er1
19547   cat conftest.err >&5
19548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); } >/dev/null && {
19550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19551          test ! -s conftest.err
19552        }; then
19553
19554 cat >>confdefs.h <<\_ACEOF
19555 #define STAT_READ_FILSYS 1
19556 _ACEOF
19557
19558      ac_fsusage_space=yes
19559 else
19560   $as_echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563
19564 fi
19565
19566 rm -f conftest.err conftest.$ac_ext
19567 fi
19568
19569 if test $ac_fsusage_space = yes; then
19570   gl_cv_fs_space=yes
19571 else
19572   gl_cv_fs_space=no
19573 fi
19574
19575
19576
19577   if test $gl_cv_fs_space = yes; then
19578
19579
19580
19581
19582
19583
19584
19585
19586   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
19587
19588
19589
19590
19591
19592
19593 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
19594 do
19595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19597   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19598 $as_echo_n "checking for $ac_header... " >&6; }
19599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19600   $as_echo_n "(cached) " >&6
19601 fi
19602 ac_res=`eval 'as_val=${'$as_ac_Header'}
19603                  $as_echo "$as_val"'`
19604                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19605 $as_echo "$ac_res" >&6; }
19606 else
19607   # Is the header compilable?
19608 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19609 $as_echo_n "checking $ac_header usability... " >&6; }
19610 cat >conftest.$ac_ext <<_ACEOF
19611 /* confdefs.h.  */
19612 _ACEOF
19613 cat confdefs.h >>conftest.$ac_ext
19614 cat >>conftest.$ac_ext <<_ACEOF
19615 /* end confdefs.h.  */
19616 $ac_includes_default
19617 #include <$ac_header>
19618 _ACEOF
19619 rm -f conftest.$ac_objext
19620 if { (ac_try="$ac_compile"
19621 case "(($ac_try" in
19622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623   *) ac_try_echo=$ac_try;;
19624 esac
19625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19626 $as_echo "$ac_try_echo") >&5
19627   (eval "$ac_compile") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } && {
19634          test -z "$ac_c_werror_flag" ||
19635          test ! -s conftest.err
19636        } && test -s conftest.$ac_objext; then
19637   ac_header_compiler=yes
19638 else
19639   $as_echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19641
19642         ac_header_compiler=no
19643 fi
19644
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19646 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19647 $as_echo "$ac_header_compiler" >&6; }
19648
19649 # Is the header present?
19650 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19651 $as_echo_n "checking $ac_header presence... " >&6; }
19652 cat >conftest.$ac_ext <<_ACEOF
19653 /* confdefs.h.  */
19654 _ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h.  */
19658 #include <$ac_header>
19659 _ACEOF
19660 if { (ac_try="$ac_cpp conftest.$ac_ext"
19661 case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19666 $as_echo "$ac_try_echo") >&5
19667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } >/dev/null && {
19674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19675          test ! -s conftest.err
19676        }; then
19677   ac_header_preproc=yes
19678 else
19679   $as_echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.$ac_ext >&5
19681
19682   ac_header_preproc=no
19683 fi
19684
19685 rm -f conftest.err conftest.$ac_ext
19686 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19687 $as_echo "$ac_header_preproc" >&6; }
19688
19689 # So?  What about this header?
19690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19691   yes:no: )
19692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19693 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19696     ac_header_preproc=yes
19697     ;;
19698   no:yes:* )
19699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19700 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19702 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19704 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19706 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19708 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19710 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19711
19712     ;;
19713 esac
19714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19715 $as_echo_n "checking for $ac_header... " >&6; }
19716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19717   $as_echo_n "(cached) " >&6
19718 else
19719   eval "$as_ac_Header=\$ac_header_preproc"
19720 fi
19721 ac_res=`eval 'as_val=${'$as_ac_Header'}
19722                  $as_echo "$as_val"'`
19723                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19724 $as_echo "$ac_res" >&6; }
19725
19726 fi
19727 as_val=`eval 'as_val=${'$as_ac_Header'}
19728                  $as_echo "$as_val"'`
19729    if test "x$as_val" = x""yes; then
19730   cat >>confdefs.h <<_ACEOF
19731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19732 _ACEOF
19733
19734 fi
19735
19736 done
19737
19738
19739   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
19740 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
19741   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
19742   $as_echo_n "(cached) " >&6
19743 else
19744   cat >conftest.$ac_ext <<_ACEOF
19745 /* confdefs.h.  */
19746 _ACEOF
19747 cat confdefs.h >>conftest.$ac_ext
19748 cat >>conftest.$ac_ext <<_ACEOF
19749 /* end confdefs.h.  */
19750
19751 #if !defined(sun) && !defined(__sun)
19752 choke -- this is a workaround for a Sun-specific problem
19753 #endif
19754 #include <sys/types.h>
19755 #include <sys/vfs.h>
19756 int
19757 main ()
19758 {
19759 struct statfs t; long c = *(t.f_spare);
19760         if (c) return 0;
19761   ;
19762   return 0;
19763 }
19764 _ACEOF
19765 rm -f conftest.$ac_objext
19766 if { (ac_try="$ac_compile"
19767 case "(($ac_try" in
19768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769   *) ac_try_echo=$ac_try;;
19770 esac
19771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19772 $as_echo "$ac_try_echo") >&5
19773   (eval "$ac_compile") 2>conftest.er1
19774   ac_status=$?
19775   grep -v '^ *+' conftest.er1 >conftest.err
19776   rm -f conftest.er1
19777   cat conftest.err >&5
19778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779   (exit $ac_status); } && {
19780          test -z "$ac_c_werror_flag" ||
19781          test ! -s conftest.err
19782        } && test -s conftest.$ac_objext; then
19783   fu_cv_sys_truncating_statfs=yes
19784 else
19785   $as_echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788         fu_cv_sys_truncating_statfs=no
19789 fi
19790
19791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19792 fi
19793
19794   if test $fu_cv_sys_truncating_statfs = yes; then
19795
19796 cat >>confdefs.h <<\_ACEOF
19797 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
19798 _ACEOF
19799
19800   fi
19801   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
19802 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
19803
19804
19805   fi
19806
19807   # Code from module ftello:
19808
19809
19810
19811
19812
19813
19814
19815   { $as_echo "$as_me:$LINENO: checking for ftello" >&5
19816 $as_echo_n "checking for ftello... " >&6; }
19817 if test "${gl_cv_func_ftello+set}" = set; then
19818   $as_echo_n "(cached) " >&6
19819 else
19820
19821       cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h.  */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h.  */
19827 #include <stdio.h>
19828 int
19829 main ()
19830 {
19831 ftello (stdin);
19832   ;
19833   return 0;
19834 }
19835 _ACEOF
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (ac_try="$ac_link"
19838 case "(($ac_try" in
19839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840   *) ac_try_echo=$ac_try;;
19841 esac
19842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19843 $as_echo "$ac_try_echo") >&5
19844   (eval "$ac_link") 2>conftest.er1
19845   ac_status=$?
19846   grep -v '^ *+' conftest.er1 >conftest.err
19847   rm -f conftest.er1
19848   cat conftest.err >&5
19849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); } && {
19851          test -z "$ac_c_werror_flag" ||
19852          test ! -s conftest.err
19853        } && test -s conftest$ac_exeext && {
19854          test "$cross_compiling" = yes ||
19855          $as_test_x conftest$ac_exeext
19856        }; then
19857   gl_cv_func_ftello=yes
19858 else
19859   $as_echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862         gl_cv_func_ftello=no
19863 fi
19864
19865 rm -rf conftest.dSYM
19866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19867       conftest$ac_exeext conftest.$ac_ext
19868
19869 fi
19870 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello" >&5
19871 $as_echo "$gl_cv_func_ftello" >&6; }
19872   if test $gl_cv_func_ftello = no; then
19873     HAVE_FTELLO=0
19874   else
19875     if test $gl_cv_var_stdin_large_offset = no; then
19876       REPLACE_FTELLO=1
19877     else
19878
19879       { $as_echo "$as_me:$LINENO: checking whether ftello works" >&5
19880 $as_echo_n "checking whether ftello works... " >&6; }
19881 if test "${gl_cv_func_ftello_works+set}" = set; then
19882   $as_echo_n "(cached) " >&6
19883 else
19884
19885                               case "$host_os" in
19886                       # Guess no on Solaris.
19887             solaris*) gl_cv_func_ftello_works="guessing no" ;;
19888                       # Guess yes otherwise.
19889             *)        gl_cv_func_ftello_works="guessing yes" ;;
19890           esac
19891           if test "$cross_compiling" = yes; then
19892   :
19893 else
19894   cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900
19901 #include <stdio.h>
19902 #include <stdlib.h>
19903 #include <string.h>
19904 #define TESTFILE "conftest.tmp"
19905 int
19906 main (void)
19907 {
19908   FILE *fp;
19909
19910   /* Create a file with some contents.  */
19911   fp = fopen (TESTFILE, "w");
19912   if (fp == NULL)
19913     return 70;
19914   if (fwrite ("foogarsh", 1, 8, fp) < 8)
19915     return 71;
19916   if (fclose (fp))
19917     return 72;
19918
19919   /* The file's contents is now "foogarsh".  */
19920
19921   /* Try writing after reading to EOF.  */
19922   fp = fopen (TESTFILE, "r+");
19923   if (fp == NULL)
19924     return 73;
19925   if (fseek (fp, -1, SEEK_END))
19926     return 74;
19927   if (!(getc (fp) == 'h'))
19928     return 1;
19929   if (!(getc (fp) == EOF))
19930     return 2;
19931   if (!(ftell (fp) == 8))
19932     return 3;
19933   if (!(ftell (fp) == 8))
19934     return 4;
19935   if (!(putc ('!', fp) == '!'))
19936     return 5;
19937   if (!(ftell (fp) == 9))
19938     return 6;
19939   if (!(fclose (fp) == 0))
19940     return 7;
19941   fp = fopen (TESTFILE, "r");
19942   if (fp == NULL)
19943     return 75;
19944   {
19945     char buf[10];
19946     if (!(fread (buf, 1, 10, fp) == 9))
19947       return 10;
19948     if (!(memcmp (buf, "foogarsh!", 9) == 0))
19949       return 11;
19950   }
19951   if (!(fclose (fp) == 0))
19952     return 12;
19953
19954   /* The file's contents is now "foogarsh!".  */
19955
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19966 $as_echo "$ac_try_echo") >&5
19967   (eval "$ac_link") 2>&5
19968   ac_status=$?
19969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19971   { (case "(($ac_try" in
19972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973   *) ac_try_echo=$ac_try;;
19974 esac
19975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19976 $as_echo "$ac_try_echo") >&5
19977   (eval "$ac_try") 2>&5
19978   ac_status=$?
19979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); }; }; then
19981   gl_cv_func_ftello_works=yes
19982 else
19983   $as_echo "$as_me: program exited with status $ac_status" >&5
19984 $as_echo "$as_me: failed program was:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19986
19987 ( exit $ac_status )
19988 gl_cv_func_ftello_works=no
19989 fi
19990 rm -rf conftest.dSYM
19991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19992 fi
19993
19994
19995
19996 fi
19997 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello_works" >&5
19998 $as_echo "$gl_cv_func_ftello_works" >&6; }
19999       case "$gl_cv_func_ftello_works" in
20000         *yes) ;;
20001         *)
20002           REPLACE_FTELLO=1
20003
20004 cat >>confdefs.h <<\_ACEOF
20005 #define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1
20006 _ACEOF
20007
20008           ;;
20009       esac
20010     fi
20011   fi
20012   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
20023
20024
20025   fi
20026
20027
20028
20029
20030   GNULIB_FTELLO=1
20031
20032
20033
20034 cat >>confdefs.h <<\_ACEOF
20035 #define GNULIB_TEST_FTELLO 1
20036 _ACEOF
20037
20038
20039
20040   # Code from module ftruncate:
20041
20042
20043
20044
20045   :
20046
20047
20048
20049
20050
20051   if test $ac_cv_func_ftruncate = no; then
20052     HAVE_FTRUNCATE=0
20053
20054
20055
20056
20057
20058
20059
20060
20061   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
20062
20063
20064
20065 for ac_func in chsize
20066 do
20067 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20068 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20069 $as_echo_n "checking for $ac_func... " >&6; }
20070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20071   $as_echo_n "(cached) " >&6
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20081 #define $ac_func innocuous_$ac_func
20082
20083 /* System header to define __stub macros and hopefully few prototypes,
20084     which can conflict with char $ac_func (); below.
20085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20086     <limits.h> exists even on freestanding compilers.  */
20087
20088 #ifdef __STDC__
20089 # include <limits.h>
20090 #else
20091 # include <assert.h>
20092 #endif
20093
20094 #undef $ac_func
20095
20096 /* Override any GCC internal prototype to avoid an error.
20097    Use char because int might match the return type of a GCC
20098    builtin and then its argument prototype would still apply.  */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char $ac_func ();
20103 /* The GNU C library defines this for functions which it implements
20104     to always fail with ENOSYS.  Some functions are actually named
20105     something starting with __ and the normal name is an alias.  */
20106 #if defined __stub_$ac_func || defined __stub___$ac_func
20107 choke me
20108 #endif
20109
20110 int
20111 main ()
20112 {
20113 return $ac_func ();
20114   ;
20115   return 0;
20116 }
20117 _ACEOF
20118 rm -f conftest.$ac_objext conftest$ac_exeext
20119 if { (ac_try="$ac_link"
20120 case "(($ac_try" in
20121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20122   *) ac_try_echo=$ac_try;;
20123 esac
20124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20125 $as_echo "$ac_try_echo") >&5
20126   (eval "$ac_link") 2>conftest.er1
20127   ac_status=$?
20128   grep -v '^ *+' conftest.er1 >conftest.err
20129   rm -f conftest.er1
20130   cat conftest.err >&5
20131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132   (exit $ac_status); } && {
20133          test -z "$ac_c_werror_flag" ||
20134          test ! -s conftest.err
20135        } && test -s conftest$ac_exeext && {
20136          test "$cross_compiling" = yes ||
20137          $as_test_x conftest$ac_exeext
20138        }; then
20139   eval "$as_ac_var=yes"
20140 else
20141   $as_echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20143
20144         eval "$as_ac_var=no"
20145 fi
20146
20147 rm -rf conftest.dSYM
20148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20149       conftest$ac_exeext conftest.$ac_ext
20150 fi
20151 ac_res=`eval 'as_val=${'$as_ac_var'}
20152                  $as_echo "$as_val"'`
20153                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20154 $as_echo "$ac_res" >&6; }
20155 as_val=`eval 'as_val=${'$as_ac_var'}
20156                  $as_echo "$as_val"'`
20157    if test "x$as_val" = x""yes; then
20158   cat >>confdefs.h <<_ACEOF
20159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20160 _ACEOF
20161
20162 fi
20163 done
20164
20165
20166     case "$host_os" in
20167       mingw*)
20168         # Yes, we know mingw lacks ftruncate.
20169         ;;
20170       *)
20171         # If someone lacks ftruncate, make configure fail, and request
20172         # a bug report to inform us about it.
20173         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
20174           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20176 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
20177               Please report this, along with the output of \"uname -a\", to the
20178               bug-coreutils@gnu.org mailing list.  To continue past this point,
20179               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20180               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20181 See \`config.log' for more details." >&5
20182 $as_echo "$as_me: error: Your system lacks the ftruncate function.
20183               Please report this, along with the output of \"uname -a\", to the
20184               bug-coreutils@gnu.org mailing list.  To continue past this point,
20185               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20186               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20187 See \`config.log' for more details." >&2;}
20188    { (exit 1); exit 1; }; }; }
20189         fi
20190     esac
20191   fi
20192
20193
20194
20195
20196   GNULIB_FTRUNCATE=1
20197
20198
20199
20200 cat >>confdefs.h <<\_ACEOF
20201 #define GNULIB_TEST_FTRUNCATE 1
20202 _ACEOF
20203
20204
20205
20206   # Code from module full-read:
20207   # Code from module full-write:
20208   # Code from module getaddrinfo:
20209
20210       { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
20211 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
20212   GETADDRINFO_LIB=
20213   gai_saved_LIBS="$LIBS"
20214
20215               { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
20216 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
20217 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20218   $as_echo_n "(cached) " >&6
20219 else
20220   ac_func_search_save_LIBS=$LIBS
20221 cat >conftest.$ac_ext <<_ACEOF
20222 /* confdefs.h.  */
20223 _ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h.  */
20227
20228 /* Override any GCC internal prototype to avoid an error.
20229    Use char because int might match the return type of a GCC
20230    builtin and then its argument prototype would still apply.  */
20231 #ifdef __cplusplus
20232 extern "C"
20233 #endif
20234 char getaddrinfo ();
20235 int
20236 main ()
20237 {
20238 return getaddrinfo ();
20239   ;
20240   return 0;
20241 }
20242 _ACEOF
20243 for ac_lib in '' socket network net; do
20244   if test -z "$ac_lib"; then
20245     ac_res="none required"
20246   else
20247     ac_res=-l$ac_lib
20248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20249   fi
20250   rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (ac_try="$ac_link"
20252 case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20257 $as_echo "$ac_try_echo") >&5
20258   (eval "$ac_link") 2>conftest.er1
20259   ac_status=$?
20260   grep -v '^ *+' conftest.er1 >conftest.err
20261   rm -f conftest.er1
20262   cat conftest.err >&5
20263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264   (exit $ac_status); } && {
20265          test -z "$ac_c_werror_flag" ||
20266          test ! -s conftest.err
20267        } && test -s conftest$ac_exeext && {
20268          test "$cross_compiling" = yes ||
20269          $as_test_x conftest$ac_exeext
20270        }; then
20271   ac_cv_search_getaddrinfo=$ac_res
20272 else
20273   $as_echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276
20277 fi
20278
20279 rm -rf conftest.dSYM
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281       conftest$ac_exeext
20282   if test "${ac_cv_search_getaddrinfo+set}" = set; then
20283   break
20284 fi
20285 done
20286 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20287   :
20288 else
20289   ac_cv_search_getaddrinfo=no
20290 fi
20291 rm conftest.$ac_ext
20292 LIBS=$ac_func_search_save_LIBS
20293 fi
20294 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
20295 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
20296 ac_res=$ac_cv_search_getaddrinfo
20297 if test "$ac_res" != no; then
20298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20299   if test "$ac_cv_search_getaddrinfo" != "none required"; then
20300        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
20301      fi
20302 fi
20303
20304   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20305
20306   { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20307 $as_echo_n "checking for getaddrinfo... " >&6; }
20308 if test "${gl_cv_func_getaddrinfo+set}" = set; then
20309   $as_echo_n "(cached) " >&6
20310 else
20311
20312     cat >conftest.$ac_ext <<_ACEOF
20313 /* confdefs.h.  */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h.  */
20318
20319 #include <sys/types.h>
20320 #ifdef HAVE_SYS_SOCKET_H
20321 #include <sys/socket.h>
20322 #endif
20323 #ifdef HAVE_NETDB_H
20324 #include <netdb.h>
20325 #endif
20326 #include <stddef.h>
20327
20328 int
20329 main ()
20330 {
20331 getaddrinfo("", "", NULL, NULL);
20332   ;
20333   return 0;
20334 }
20335 _ACEOF
20336 rm -f conftest.$ac_objext conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20343 $as_echo "$ac_try_echo") >&5
20344   (eval "$ac_link") 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } && {
20351          test -z "$ac_c_werror_flag" ||
20352          test ! -s conftest.err
20353        } && test -s conftest$ac_exeext && {
20354          test "$cross_compiling" = yes ||
20355          $as_test_x conftest$ac_exeext
20356        }; then
20357   gl_cv_func_getaddrinfo=yes
20358 else
20359   $as_echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362         gl_cv_func_getaddrinfo=no
20363 fi
20364
20365 rm -rf conftest.dSYM
20366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20367       conftest$ac_exeext conftest.$ac_ext
20368 fi
20369 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
20370 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
20371   if test $gl_cv_func_getaddrinfo = no; then
20372     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
20373 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
20374 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
20375   $as_echo_n "(cached) " >&6
20376 else
20377
20378       gl_cv_w32_getaddrinfo=no
20379       am_save_LIBS="$LIBS"
20380       LIBS="$LIBS -lws2_32"
20381       cat >conftest.$ac_ext <<_ACEOF
20382 /* confdefs.h.  */
20383 _ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h.  */
20387
20388 #ifdef HAVE_WS2TCPIP_H
20389 #include <ws2tcpip.h>
20390 #endif
20391 #include <stddef.h>
20392
20393 int
20394 main ()
20395 {
20396 getaddrinfo(NULL, NULL, NULL, NULL);
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20408 $as_echo "$ac_try_echo") >&5
20409   (eval "$ac_link") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && {
20416          test -z "$ac_c_werror_flag" ||
20417          test ! -s conftest.err
20418        } && test -s conftest$ac_exeext && {
20419          test "$cross_compiling" = yes ||
20420          $as_test_x conftest$ac_exeext
20421        }; then
20422   gl_cv_w32_getaddrinfo=yes
20423 else
20424   $as_echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427
20428 fi
20429
20430 rm -rf conftest.dSYM
20431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20432       conftest$ac_exeext conftest.$ac_ext
20433       LIBS="$am_save_LIBS"
20434
20435 fi
20436 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
20437 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
20438     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
20439       GETADDRINFO_LIB="-lws2_32"
20440       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20441     else
20442
20443
20444
20445
20446
20447
20448
20449
20450   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
20451
20452     fi
20453   fi
20454
20455   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
20456   # inline function declared in ws2tcpip.h, so we need to get that
20457   # header included somehow.
20458   { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
20459 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
20460 if test "${gl_cv_func_gai_strerror+set}" = set; then
20461   $as_echo_n "(cached) " >&6
20462 else
20463
20464       cat >conftest.$ac_ext <<_ACEOF
20465 /* confdefs.h.  */
20466 _ACEOF
20467 cat confdefs.h >>conftest.$ac_ext
20468 cat >>conftest.$ac_ext <<_ACEOF
20469 /* end confdefs.h.  */
20470
20471 #include <sys/types.h>
20472 #ifdef HAVE_SYS_SOCKET_H
20473 #include <sys/socket.h>
20474 #endif
20475 #ifdef HAVE_NETDB_H
20476 #include <netdb.h>
20477 #endif
20478 #ifdef HAVE_WS2TCPIP_H
20479 #include <ws2tcpip.h>
20480 #endif
20481 #include <stddef.h>
20482
20483 int
20484 main ()
20485 {
20486 gai_strerror (NULL);
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20498 $as_echo "$ac_try_echo") >&5
20499   (eval "$ac_link") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } && {
20506          test -z "$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        } && test -s conftest$ac_exeext && {
20509          test "$cross_compiling" = yes ||
20510          $as_test_x conftest$ac_exeext
20511        }; then
20512   gl_cv_func_gai_strerror=yes
20513 else
20514   $as_echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517         gl_cv_func_gai_strerror=no
20518 fi
20519
20520 rm -rf conftest.dSYM
20521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20522       conftest$ac_exeext conftest.$ac_ext
20523 fi
20524 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
20525 $as_echo "$gl_cv_func_gai_strerror" >&6; }
20526   if test $gl_cv_func_gai_strerror = no; then
20527
20528
20529
20530
20531
20532
20533
20534
20535   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
20536
20537   fi
20538
20539   LIBS="$gai_saved_LIBS"
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549       { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
20550 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
20551 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
20552   $as_echo_n "(cached) " >&6
20553 else
20554   cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h.  */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h.  */
20560 #include <sys/socket.h>
20561
20562 int
20563 main ()
20564 {
20565 static struct sockaddr ac_aggr;
20566 if (ac_aggr.sa_len)
20567 return 0;
20568   ;
20569   return 0;
20570 }
20571 _ACEOF
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576   *) ac_try_echo=$ac_try;;
20577 esac
20578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20579 $as_echo "$ac_try_echo") >&5
20580   (eval "$ac_compile") 2>conftest.er1
20581   ac_status=$?
20582   grep -v '^ *+' conftest.er1 >conftest.err
20583   rm -f conftest.er1
20584   cat conftest.err >&5
20585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586   (exit $ac_status); } && {
20587          test -z "$ac_c_werror_flag" ||
20588          test ! -s conftest.err
20589        } && test -s conftest.$ac_objext; then
20590   ac_cv_member_struct_sockaddr_sa_len=yes
20591 else
20592   $as_echo "$as_me: failed program was:" >&5
20593 sed 's/^/| /' conftest.$ac_ext >&5
20594
20595         cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include <sys/socket.h>
20602
20603 int
20604 main ()
20605 {
20606 static struct sockaddr ac_aggr;
20607 if (sizeof ac_aggr.sa_len)
20608 return 0;
20609   ;
20610   return 0;
20611 }
20612 _ACEOF
20613 rm -f conftest.$ac_objext
20614 if { (ac_try="$ac_compile"
20615 case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621   (eval "$ac_compile") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } && {
20628          test -z "$ac_c_werror_flag" ||
20629          test ! -s conftest.err
20630        } && test -s conftest.$ac_objext; then
20631   ac_cv_member_struct_sockaddr_sa_len=yes
20632 else
20633   $as_echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636         ac_cv_member_struct_sockaddr_sa_len=no
20637 fi
20638
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 fi
20641
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 fi
20644 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
20645 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
20646 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
20647
20648 cat >>confdefs.h <<_ACEOF
20649 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
20650 _ACEOF
20651
20652
20653 fi
20654
20655
20656
20657   :
20658
20659
20660
20661
20662
20663
20664   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
20665 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
20666 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
20667   $as_echo_n "(cached) " >&6
20668 else
20669   cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h.  */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h.  */
20675
20676   /* sys/types.h is not needed according to POSIX, but the
20677      sys/socket.h in i386-unknown-freebsd4.10 and
20678      powerpc-apple-darwin5.5 required it. */
20679 #include <sys/types.h>
20680 #ifdef HAVE_SYS_SOCKET_H
20681 #include <sys/socket.h>
20682 #endif
20683 #ifdef HAVE_NETDB_H
20684 #include <netdb.h>
20685 #endif
20686 #ifdef HAVE_WS2TCPIP_H
20687 #include <ws2tcpip.h>
20688 #endif
20689
20690
20691 int
20692 main ()
20693 {
20694 #ifndef getaddrinfo
20695   (void) getaddrinfo;
20696 #endif
20697
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20709 $as_echo "$ac_try_echo") >&5
20710   (eval "$ac_compile") 2>conftest.er1
20711   ac_status=$?
20712   grep -v '^ *+' conftest.er1 >conftest.err
20713   rm -f conftest.er1
20714   cat conftest.err >&5
20715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && {
20717          test -z "$ac_c_werror_flag" ||
20718          test ! -s conftest.err
20719        } && test -s conftest.$ac_objext; then
20720   ac_cv_have_decl_getaddrinfo=yes
20721 else
20722   $as_echo "$as_me: failed program was:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20724
20725         ac_cv_have_decl_getaddrinfo=no
20726 fi
20727
20728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20729 fi
20730 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
20731 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
20732 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
20733
20734 cat >>confdefs.h <<_ACEOF
20735 #define HAVE_DECL_GETADDRINFO 1
20736 _ACEOF
20737
20738
20739 else
20740   cat >>confdefs.h <<_ACEOF
20741 #define HAVE_DECL_GETADDRINFO 0
20742 _ACEOF
20743
20744
20745 fi
20746 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
20747 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
20748 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
20749   $as_echo_n "(cached) " >&6
20750 else
20751   cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757
20758   /* sys/types.h is not needed according to POSIX, but the
20759      sys/socket.h in i386-unknown-freebsd4.10 and
20760      powerpc-apple-darwin5.5 required it. */
20761 #include <sys/types.h>
20762 #ifdef HAVE_SYS_SOCKET_H
20763 #include <sys/socket.h>
20764 #endif
20765 #ifdef HAVE_NETDB_H
20766 #include <netdb.h>
20767 #endif
20768 #ifdef HAVE_WS2TCPIP_H
20769 #include <ws2tcpip.h>
20770 #endif
20771
20772
20773 int
20774 main ()
20775 {
20776 #ifndef freeaddrinfo
20777   (void) freeaddrinfo;
20778 #endif
20779
20780   ;
20781   return 0;
20782 }
20783 _ACEOF
20784 rm -f conftest.$ac_objext
20785 if { (ac_try="$ac_compile"
20786 case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20791 $as_echo "$ac_try_echo") >&5
20792   (eval "$ac_compile") 2>conftest.er1
20793   ac_status=$?
20794   grep -v '^ *+' conftest.er1 >conftest.err
20795   rm -f conftest.er1
20796   cat conftest.err >&5
20797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); } && {
20799          test -z "$ac_c_werror_flag" ||
20800          test ! -s conftest.err
20801        } && test -s conftest.$ac_objext; then
20802   ac_cv_have_decl_freeaddrinfo=yes
20803 else
20804   $as_echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807         ac_cv_have_decl_freeaddrinfo=no
20808 fi
20809
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 fi
20812 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
20813 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
20814 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
20815
20816 cat >>confdefs.h <<_ACEOF
20817 #define HAVE_DECL_FREEADDRINFO 1
20818 _ACEOF
20819
20820
20821 else
20822   cat >>confdefs.h <<_ACEOF
20823 #define HAVE_DECL_FREEADDRINFO 0
20824 _ACEOF
20825
20826
20827 fi
20828 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
20829 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
20830 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
20831   $as_echo_n "(cached) " >&6
20832 else
20833   cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h.  */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h.  */
20839
20840   /* sys/types.h is not needed according to POSIX, but the
20841      sys/socket.h in i386-unknown-freebsd4.10 and
20842      powerpc-apple-darwin5.5 required it. */
20843 #include <sys/types.h>
20844 #ifdef HAVE_SYS_SOCKET_H
20845 #include <sys/socket.h>
20846 #endif
20847 #ifdef HAVE_NETDB_H
20848 #include <netdb.h>
20849 #endif
20850 #ifdef HAVE_WS2TCPIP_H
20851 #include <ws2tcpip.h>
20852 #endif
20853
20854
20855 int
20856 main ()
20857 {
20858 #ifndef gai_strerror
20859   (void) gai_strerror;
20860 #endif
20861
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20873 $as_echo "$ac_try_echo") >&5
20874   (eval "$ac_compile") 2>conftest.er1
20875   ac_status=$?
20876   grep -v '^ *+' conftest.er1 >conftest.err
20877   rm -f conftest.er1
20878   cat conftest.err >&5
20879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880   (exit $ac_status); } && {
20881          test -z "$ac_c_werror_flag" ||
20882          test ! -s conftest.err
20883        } && test -s conftest.$ac_objext; then
20884   ac_cv_have_decl_gai_strerror=yes
20885 else
20886   $as_echo "$as_me: failed program was:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20888
20889         ac_cv_have_decl_gai_strerror=no
20890 fi
20891
20892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20893 fi
20894 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
20895 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
20896 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
20897
20898 cat >>confdefs.h <<_ACEOF
20899 #define HAVE_DECL_GAI_STRERROR 1
20900 _ACEOF
20901
20902
20903 else
20904   cat >>confdefs.h <<_ACEOF
20905 #define HAVE_DECL_GAI_STRERROR 0
20906 _ACEOF
20907
20908
20909 fi
20910 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
20911 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
20912 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
20913   $as_echo_n "(cached) " >&6
20914 else
20915   cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h.  */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h.  */
20921
20922   /* sys/types.h is not needed according to POSIX, but the
20923      sys/socket.h in i386-unknown-freebsd4.10 and
20924      powerpc-apple-darwin5.5 required it. */
20925 #include <sys/types.h>
20926 #ifdef HAVE_SYS_SOCKET_H
20927 #include <sys/socket.h>
20928 #endif
20929 #ifdef HAVE_NETDB_H
20930 #include <netdb.h>
20931 #endif
20932 #ifdef HAVE_WS2TCPIP_H
20933 #include <ws2tcpip.h>
20934 #endif
20935
20936
20937 int
20938 main ()
20939 {
20940 #ifndef getnameinfo
20941   (void) getnameinfo;
20942 #endif
20943
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952   *) ac_try_echo=$ac_try;;
20953 esac
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && {
20963          test -z "$ac_c_werror_flag" ||
20964          test ! -s conftest.err
20965        } && test -s conftest.$ac_objext; then
20966   ac_cv_have_decl_getnameinfo=yes
20967 else
20968   $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         ac_cv_have_decl_getnameinfo=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 fi
20976 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
20977 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
20978 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
20979
20980 cat >>confdefs.h <<_ACEOF
20981 #define HAVE_DECL_GETNAMEINFO 1
20982 _ACEOF
20983
20984
20985 else
20986   cat >>confdefs.h <<_ACEOF
20987 #define HAVE_DECL_GETNAMEINFO 0
20988 _ACEOF
20989
20990
20991 fi
20992
20993
20994   if test $ac_cv_have_decl_getaddrinfo = no; then
20995     HAVE_DECL_GETADDRINFO=0
20996   fi
20997   if test $ac_cv_have_decl_freeaddrinfo = no; then
20998     HAVE_DECL_FREEADDRINFO=0
20999   fi
21000   if test $ac_cv_have_decl_gai_strerror = no; then
21001     HAVE_DECL_GAI_STRERROR=0
21002   fi
21003   if test $ac_cv_have_decl_getnameinfo = no; then
21004     HAVE_DECL_GETNAMEINFO=0
21005   fi
21006
21007   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
21008 $as_echo_n "checking for struct addrinfo... " >&6; }
21009 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
21010   $as_echo_n "(cached) " >&6
21011 else
21012   ac_cv_type_struct_addrinfo=no
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019
21020 #include <sys/types.h>
21021 #ifdef HAVE_SYS_SOCKET_H
21022 #include <sys/socket.h>
21023 #endif
21024 #ifdef HAVE_NETDB_H
21025 #include <netdb.h>
21026 #endif
21027 #ifdef HAVE_WS2TCPIP_H
21028 #include <ws2tcpip.h>
21029 #endif
21030
21031
21032 int
21033 main ()
21034 {
21035 if (sizeof (struct addrinfo))
21036        return 0;
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 rm -f conftest.$ac_objext
21042 if { (ac_try="$ac_compile"
21043 case "(($ac_try" in
21044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045   *) ac_try_echo=$ac_try;;
21046 esac
21047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21048 $as_echo "$ac_try_echo") >&5
21049   (eval "$ac_compile") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest.$ac_objext; then
21059   cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065
21066 #include <sys/types.h>
21067 #ifdef HAVE_SYS_SOCKET_H
21068 #include <sys/socket.h>
21069 #endif
21070 #ifdef HAVE_NETDB_H
21071 #include <netdb.h>
21072 #endif
21073 #ifdef HAVE_WS2TCPIP_H
21074 #include <ws2tcpip.h>
21075 #endif
21076
21077
21078 int
21079 main ()
21080 {
21081 if (sizeof ((struct addrinfo)))
21082           return 0;
21083   ;
21084   return 0;
21085 }
21086 _ACEOF
21087 rm -f conftest.$ac_objext
21088 if { (ac_try="$ac_compile"
21089 case "(($ac_try" in
21090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091   *) ac_try_echo=$ac_try;;
21092 esac
21093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21094 $as_echo "$ac_try_echo") >&5
21095   (eval "$ac_compile") 2>conftest.er1
21096   ac_status=$?
21097   grep -v '^ *+' conftest.er1 >conftest.err
21098   rm -f conftest.er1
21099   cat conftest.err >&5
21100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); } && {
21102          test -z "$ac_c_werror_flag" ||
21103          test ! -s conftest.err
21104        } && test -s conftest.$ac_objext; then
21105   :
21106 else
21107   $as_echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110         ac_cv_type_struct_addrinfo=yes
21111 fi
21112
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114 else
21115   $as_echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118
21119 fi
21120
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 fi
21123 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
21124 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
21125 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
21126
21127 cat >>confdefs.h <<_ACEOF
21128 #define HAVE_STRUCT_ADDRINFO 1
21129 _ACEOF
21130
21131
21132 fi
21133
21134   if test $ac_cv_type_struct_addrinfo = no; then
21135     HAVE_STRUCT_ADDRINFO=0
21136   fi
21137
21138     case " $GETADDRINFO_LIB " in
21139     *" $HOSTENT_LIB "*) ;;
21140     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
21141   esac
21142
21143     case " $GETADDRINFO_LIB " in
21144     *" $SERVENT_LIB "*) ;;
21145     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
21146   esac
21147
21148     case " $GETADDRINFO_LIB " in
21149     *" $INET_NTOP_LIB "*) ;;
21150     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
21151   esac
21152
21153
21154
21155
21156
21157
21158
21159   GNULIB_GETADDRINFO=1
21160
21161
21162   # Code from module getopt-gnu:
21163
21164
21165
21166
21167
21168
21169
21170 cat >>confdefs.h <<\_ACEOF
21171 #define GNULIB_TEST_GETOPT_GNU 1
21172 _ACEOF
21173
21174
21175   # Code from module getopt-posix:
21176
21177
21178
21179
21180
21181   if test -n "$gl_replace_getopt"; then
21182
21183
21184
21185   GETOPT_H=getopt.h
21186
21187 cat >>confdefs.h <<\_ACEOF
21188 #define __GETOPT_PREFIX rpl_
21189 _ACEOF
21190
21191
21192
21193     GNULIB_UNISTD_H_GETOPT=1
21194
21195
21196
21197
21198
21199
21200
21201
21202   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21213
21214
21215
21216   :
21217
21218
21219
21220
21221
21222
21223
21224
21225 fi
21226
21227
21228
21229   # Code from module gettext-h:
21230
21231
21232   # Code from module gettimeofday:
21233
21234
21235
21236
21237
21238   :
21239
21240
21241
21242
21243
21244
21245   gl_gettimeofday_timezone=void
21246   if test $ac_cv_func_gettimeofday != yes; then
21247     HAVE_GETTIMEOFDAY=0
21248
21249
21250
21251
21252
21253
21254
21255
21256   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21257
21258
21259
21260 for ac_header in sys/timeb.h
21261 do
21262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21264   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21265 $as_echo_n "checking for $ac_header... " >&6; }
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267   $as_echo_n "(cached) " >&6
21268 fi
21269 ac_res=`eval 'as_val=${'$as_ac_Header'}
21270                  $as_echo "$as_val"'`
21271                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21272 $as_echo "$ac_res" >&6; }
21273 else
21274   # Is the header compilable?
21275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21276 $as_echo_n "checking $ac_header usability... " >&6; }
21277 cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h.  */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h.  */
21283 $ac_includes_default
21284 #include <$ac_header>
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290   *) ac_try_echo=$ac_try;;
21291 esac
21292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21293 $as_echo "$ac_try_echo") >&5
21294   (eval "$ac_compile") 2>conftest.er1
21295   ac_status=$?
21296   grep -v '^ *+' conftest.er1 >conftest.err
21297   rm -f conftest.er1
21298   cat conftest.err >&5
21299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300   (exit $ac_status); } && {
21301          test -z "$ac_c_werror_flag" ||
21302          test ! -s conftest.err
21303        } && test -s conftest.$ac_objext; then
21304   ac_header_compiler=yes
21305 else
21306   $as_echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21308
21309         ac_header_compiler=no
21310 fi
21311
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21314 $as_echo "$ac_header_compiler" >&6; }
21315
21316 # Is the header present?
21317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21318 $as_echo_n "checking $ac_header presence... " >&6; }
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 #include <$ac_header>
21326 _ACEOF
21327 if { (ac_try="$ac_cpp conftest.$ac_ext"
21328 case "(($ac_try" in
21329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330   *) ac_try_echo=$ac_try;;
21331 esac
21332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21333 $as_echo "$ac_try_echo") >&5
21334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21335   ac_status=$?
21336   grep -v '^ *+' conftest.er1 >conftest.err
21337   rm -f conftest.er1
21338   cat conftest.err >&5
21339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); } >/dev/null && {
21341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21342          test ! -s conftest.err
21343        }; then
21344   ac_header_preproc=yes
21345 else
21346   $as_echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349   ac_header_preproc=no
21350 fi
21351
21352 rm -f conftest.err conftest.$ac_ext
21353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21354 $as_echo "$ac_header_preproc" >&6; }
21355
21356 # So?  What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21358   yes:no: )
21359     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21363     ac_header_preproc=yes
21364     ;;
21365   no:yes:* )
21366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21369 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21373 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21378
21379     ;;
21380 esac
21381 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21382 $as_echo_n "checking for $ac_header... " >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384   $as_echo_n "(cached) " >&6
21385 else
21386   eval "$as_ac_Header=\$ac_header_preproc"
21387 fi
21388 ac_res=`eval 'as_val=${'$as_ac_Header'}
21389                  $as_echo "$as_val"'`
21390                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21391 $as_echo "$ac_res" >&6; }
21392
21393 fi
21394 as_val=`eval 'as_val=${'$as_ac_Header'}
21395                  $as_echo "$as_val"'`
21396    if test "x$as_val" = x""yes; then
21397   cat >>confdefs.h <<_ACEOF
21398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21399 _ACEOF
21400
21401 fi
21402
21403 done
21404
21405
21406 for ac_func in _ftime
21407 do
21408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21409 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21410 $as_echo_n "checking for $ac_func... " >&6; }
21411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21412   $as_echo_n "(cached) " >&6
21413 else
21414   cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21422 #define $ac_func innocuous_$ac_func
21423
21424 /* System header to define __stub macros and hopefully few prototypes,
21425     which can conflict with char $ac_func (); below.
21426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21427     <limits.h> exists even on freestanding compilers.  */
21428
21429 #ifdef __STDC__
21430 # include <limits.h>
21431 #else
21432 # include <assert.h>
21433 #endif
21434
21435 #undef $ac_func
21436
21437 /* Override any GCC internal prototype to avoid an error.
21438    Use char because int might match the return type of a GCC
21439    builtin and then its argument prototype would still apply.  */
21440 #ifdef __cplusplus
21441 extern "C"
21442 #endif
21443 char $ac_func ();
21444 /* The GNU C library defines this for functions which it implements
21445     to always fail with ENOSYS.  Some functions are actually named
21446     something starting with __ and the normal name is an alias.  */
21447 #if defined __stub_$ac_func || defined __stub___$ac_func
21448 choke me
21449 #endif
21450
21451 int
21452 main ()
21453 {
21454 return $ac_func ();
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext conftest$ac_exeext
21460 if { (ac_try="$ac_link"
21461 case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21466 $as_echo "$ac_try_echo") >&5
21467   (eval "$ac_link") 2>conftest.er1
21468   ac_status=$?
21469   grep -v '^ *+' conftest.er1 >conftest.err
21470   rm -f conftest.er1
21471   cat conftest.err >&5
21472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473   (exit $ac_status); } && {
21474          test -z "$ac_c_werror_flag" ||
21475          test ! -s conftest.err
21476        } && test -s conftest$ac_exeext && {
21477          test "$cross_compiling" = yes ||
21478          $as_test_x conftest$ac_exeext
21479        }; then
21480   eval "$as_ac_var=yes"
21481 else
21482   $as_echo "$as_me: failed program was:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21484
21485         eval "$as_ac_var=no"
21486 fi
21487
21488 rm -rf conftest.dSYM
21489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21490       conftest$ac_exeext conftest.$ac_ext
21491 fi
21492 ac_res=`eval 'as_val=${'$as_ac_var'}
21493                  $as_echo "$as_val"'`
21494                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21495 $as_echo "$ac_res" >&6; }
21496 as_val=`eval 'as_val=${'$as_ac_var'}
21497                  $as_echo "$as_val"'`
21498    if test "x$as_val" = x""yes; then
21499   cat >>confdefs.h <<_ACEOF
21500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21501 _ACEOF
21502
21503 fi
21504 done
21505
21506
21507   else
21508
21509
21510
21511  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21512 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21513 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
21514   $as_echo_n "(cached) " >&6
21515 else
21516   if test "$cross_compiling" = yes; then
21517        gl_cv_func_gettimeofday_clobber=yes
21518 else
21519   cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h.  */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h.  */
21525 #include <string.h>
21526           #include <sys/time.h>
21527           #include <time.h>
21528           #include <stdlib.h>
21529
21530 int
21531 main ()
21532 {
21533
21534           time_t t = 0;
21535           struct tm *lt;
21536           struct tm saved_lt;
21537           struct timeval tv;
21538           lt = localtime (&t);
21539           saved_lt = *lt;
21540           gettimeofday (&tv, NULL);
21541           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21542
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest$ac_exeext
21548 if { (ac_try="$ac_link"
21549 case "(($ac_try" in
21550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21551   *) ac_try_echo=$ac_try;;
21552 esac
21553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21554 $as_echo "$ac_try_echo") >&5
21555   (eval "$ac_link") 2>&5
21556   ac_status=$?
21557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559   { (case "(($ac_try" in
21560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561   *) ac_try_echo=$ac_try;;
21562 esac
21563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21564 $as_echo "$ac_try_echo") >&5
21565   (eval "$ac_try") 2>&5
21566   ac_status=$?
21567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; }; then
21569   gl_cv_func_gettimeofday_clobber=no
21570 else
21571   $as_echo "$as_me: program exited with status $ac_status" >&5
21572 $as_echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575 ( exit $ac_status )
21576 gl_cv_func_gettimeofday_clobber=yes
21577 fi
21578 rm -rf conftest.dSYM
21579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21580 fi
21581
21582
21583 fi
21584 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
21585 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21586
21587  if test $gl_cv_func_gettimeofday_clobber = yes; then
21588    REPLACE_GETTIMEOFDAY=1
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21599
21600
21601
21602 for ac_header in sys/timeb.h
21603 do
21604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21606   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21607 $as_echo_n "checking for $ac_header... " >&6; }
21608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21609   $as_echo_n "(cached) " >&6
21610 fi
21611 ac_res=`eval 'as_val=${'$as_ac_Header'}
21612                  $as_echo "$as_val"'`
21613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21614 $as_echo "$ac_res" >&6; }
21615 else
21616   # Is the header compilable?
21617 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21618 $as_echo_n "checking $ac_header usability... " >&6; }
21619 cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625 $ac_includes_default
21626 #include <$ac_header>
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636   (eval "$ac_compile") 2>conftest.er1
21637   ac_status=$?
21638   grep -v '^ *+' conftest.er1 >conftest.err
21639   rm -f conftest.er1
21640   cat conftest.err >&5
21641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); } && {
21643          test -z "$ac_c_werror_flag" ||
21644          test ! -s conftest.err
21645        } && test -s conftest.$ac_objext; then
21646   ac_header_compiler=yes
21647 else
21648   $as_echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_header_compiler=no
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21656 $as_echo "$ac_header_compiler" >&6; }
21657
21658 # Is the header present?
21659 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21660 $as_echo_n "checking $ac_header presence... " >&6; }
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 #include <$ac_header>
21668 _ACEOF
21669 if { (ac_try="$ac_cpp conftest.$ac_ext"
21670 case "(($ac_try" in
21671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672   *) ac_try_echo=$ac_try;;
21673 esac
21674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21675 $as_echo "$ac_try_echo") >&5
21676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21677   ac_status=$?
21678   grep -v '^ *+' conftest.er1 >conftest.err
21679   rm -f conftest.er1
21680   cat conftest.err >&5
21681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); } >/dev/null && {
21683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21684          test ! -s conftest.err
21685        }; then
21686   ac_header_preproc=yes
21687 else
21688   $as_echo "$as_me: failed program was:" >&5
21689 sed 's/^/| /' conftest.$ac_ext >&5
21690
21691   ac_header_preproc=no
21692 fi
21693
21694 rm -f conftest.err conftest.$ac_ext
21695 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21696 $as_echo "$ac_header_preproc" >&6; }
21697
21698 # So?  What about this header?
21699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21700   yes:no: )
21701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21702 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21705     ac_header_preproc=yes
21706     ;;
21707   no:yes:* )
21708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21709 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21710     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21711 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21712     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21713 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21714     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21715 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21716     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21717 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21719 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21720
21721     ;;
21722 esac
21723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21724 $as_echo_n "checking for $ac_header... " >&6; }
21725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21726   $as_echo_n "(cached) " >&6
21727 else
21728   eval "$as_ac_Header=\$ac_header_preproc"
21729 fi
21730 ac_res=`eval 'as_val=${'$as_ac_Header'}
21731                  $as_echo "$as_val"'`
21732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21733 $as_echo "$ac_res" >&6; }
21734
21735 fi
21736 as_val=`eval 'as_val=${'$as_ac_Header'}
21737                  $as_echo "$as_val"'`
21738    if test "x$as_val" = x""yes; then
21739   cat >>confdefs.h <<_ACEOF
21740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21741 _ACEOF
21742
21743 fi
21744
21745 done
21746
21747
21748 for ac_func in _ftime
21749 do
21750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21752 $as_echo_n "checking for $ac_func... " >&6; }
21753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21754   $as_echo_n "(cached) " >&6
21755 else
21756   cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h.  */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h.  */
21762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21764 #define $ac_func innocuous_$ac_func
21765
21766 /* System header to define __stub macros and hopefully few prototypes,
21767     which can conflict with char $ac_func (); below.
21768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21769     <limits.h> exists even on freestanding compilers.  */
21770
21771 #ifdef __STDC__
21772 # include <limits.h>
21773 #else
21774 # include <assert.h>
21775 #endif
21776
21777 #undef $ac_func
21778
21779 /* Override any GCC internal prototype to avoid an error.
21780    Use char because int might match the return type of a GCC
21781    builtin and then its argument prototype would still apply.  */
21782 #ifdef __cplusplus
21783 extern "C"
21784 #endif
21785 char $ac_func ();
21786 /* The GNU C library defines this for functions which it implements
21787     to always fail with ENOSYS.  Some functions are actually named
21788     something starting with __ and the normal name is an alias.  */
21789 #if defined __stub_$ac_func || defined __stub___$ac_func
21790 choke me
21791 #endif
21792
21793 int
21794 main ()
21795 {
21796 return $ac_func ();
21797   ;
21798   return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext conftest$ac_exeext
21802 if { (ac_try="$ac_link"
21803 case "(($ac_try" in
21804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805   *) ac_try_echo=$ac_try;;
21806 esac
21807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21808 $as_echo "$ac_try_echo") >&5
21809   (eval "$ac_link") 2>conftest.er1
21810   ac_status=$?
21811   grep -v '^ *+' conftest.er1 >conftest.err
21812   rm -f conftest.er1
21813   cat conftest.err >&5
21814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } && {
21816          test -z "$ac_c_werror_flag" ||
21817          test ! -s conftest.err
21818        } && test -s conftest$ac_exeext && {
21819          test "$cross_compiling" = yes ||
21820          $as_test_x conftest$ac_exeext
21821        }; then
21822   eval "$as_ac_var=yes"
21823 else
21824   $as_echo "$as_me: failed program was:" >&5
21825 sed 's/^/| /' conftest.$ac_ext >&5
21826
21827         eval "$as_ac_var=no"
21828 fi
21829
21830 rm -rf conftest.dSYM
21831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21832       conftest$ac_exeext conftest.$ac_ext
21833 fi
21834 ac_res=`eval 'as_val=${'$as_ac_var'}
21835                  $as_echo "$as_val"'`
21836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21837 $as_echo "$ac_res" >&6; }
21838 as_val=`eval 'as_val=${'$as_ac_var'}
21839                  $as_echo "$as_val"'`
21840    if test "x$as_val" = x""yes; then
21841   cat >>confdefs.h <<_ACEOF
21842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21843 _ACEOF
21844
21845 fi
21846 done
21847
21848
21849
21850 cat >>confdefs.h <<\_ACEOF
21851 #define gmtime rpl_gmtime
21852 _ACEOF
21853
21854
21855 cat >>confdefs.h <<\_ACEOF
21856 #define localtime rpl_localtime
21857 _ACEOF
21858
21859
21860
21861 cat >>confdefs.h <<\_ACEOF
21862 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
21863 _ACEOF
21864
21865  fi
21866
21867     { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21868 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21869 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21870   $as_echo_n "(cached) " >&6
21871 else
21872   cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878 #include <sys/time.h>
21879               struct timeval c;
21880               int gettimeofday (struct timeval *restrict, void *restrict);
21881
21882 int
21883 main ()
21884 {
21885 /* glibc uses struct timezone * rather than the POSIX void *
21886                  if _GNU_SOURCE is defined.  However, since the only portable
21887                  use of gettimeofday uses NULL as the second parameter, and
21888                  since the glibc definition is actually more typesafe, it is
21889                  not worth wrapping this to get a compliant signature.  */
21890               int (*f) (struct timeval *restrict, void *restrict)
21891                 = gettimeofday;
21892               int x = f (&c, 0);
21893               return !(x | c.tv_sec | c.tv_usec);
21894
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 rm -f conftest.$ac_objext
21900 if { (ac_try="$ac_compile"
21901 case "(($ac_try" in
21902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903   *) ac_try_echo=$ac_try;;
21904 esac
21905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21906 $as_echo "$ac_try_echo") >&5
21907   (eval "$ac_compile") 2>conftest.er1
21908   ac_status=$?
21909   grep -v '^ *+' conftest.er1 >conftest.err
21910   rm -f conftest.er1
21911   cat conftest.err >&5
21912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913   (exit $ac_status); } && {
21914          test -z "$ac_c_werror_flag" ||
21915          test ! -s conftest.err
21916        } && test -s conftest.$ac_objext; then
21917   gl_cv_func_gettimeofday_posix_signature=yes
21918 else
21919   $as_echo "$as_me: failed program was:" >&5
21920 sed 's/^/| /' conftest.$ac_ext >&5
21921
21922         cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928 #include <sys/time.h>
21929 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21930
21931 int
21932 main ()
21933 {
21934
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext
21940 if { (ac_try="$ac_compile"
21941 case "(($ac_try" in
21942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943   *) ac_try_echo=$ac_try;;
21944 esac
21945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21946 $as_echo "$ac_try_echo") >&5
21947   (eval "$ac_compile") 2>conftest.er1
21948   ac_status=$?
21949   grep -v '^ *+' conftest.er1 >conftest.err
21950   rm -f conftest.er1
21951   cat conftest.err >&5
21952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953   (exit $ac_status); } && {
21954          test -z "$ac_c_werror_flag" ||
21955          test ! -s conftest.err
21956        } && test -s conftest.$ac_objext; then
21957   gl_cv_func_gettimeofday_posix_signature=almost
21958 else
21959   $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962         gl_cv_func_gettimeofday_posix_signature=no
21963 fi
21964
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966 fi
21967
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 fi
21970 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21971 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21972     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21973       gl_gettimeofday_timezone='struct timezone'
21974     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21975       REPLACE_GETTIMEOFDAY=1
21976
21977
21978
21979
21980
21981
21982
21983
21984   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21985
21986
21987
21988 for ac_header in sys/timeb.h
21989 do
21990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21992   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21993 $as_echo_n "checking for $ac_header... " >&6; }
21994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21995   $as_echo_n "(cached) " >&6
21996 fi
21997 ac_res=`eval 'as_val=${'$as_ac_Header'}
21998                  $as_echo "$as_val"'`
21999                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22000 $as_echo "$ac_res" >&6; }
22001 else
22002   # Is the header compilable?
22003 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22004 $as_echo_n "checking $ac_header usability... " >&6; }
22005 cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h.  */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h.  */
22011 $ac_includes_default
22012 #include <$ac_header>
22013 _ACEOF
22014 rm -f conftest.$ac_objext
22015 if { (ac_try="$ac_compile"
22016 case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22021 $as_echo "$ac_try_echo") >&5
22022   (eval "$ac_compile") 2>conftest.er1
22023   ac_status=$?
22024   grep -v '^ *+' conftest.er1 >conftest.err
22025   rm -f conftest.er1
22026   cat conftest.err >&5
22027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } && {
22029          test -z "$ac_c_werror_flag" ||
22030          test ! -s conftest.err
22031        } && test -s conftest.$ac_objext; then
22032   ac_header_compiler=yes
22033 else
22034   $as_echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037         ac_header_compiler=no
22038 fi
22039
22040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22041 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22042 $as_echo "$ac_header_compiler" >&6; }
22043
22044 # Is the header present?
22045 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22046 $as_echo_n "checking $ac_header presence... " >&6; }
22047 cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h.  */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h.  */
22053 #include <$ac_header>
22054 _ACEOF
22055 if { (ac_try="$ac_cpp conftest.$ac_ext"
22056 case "(($ac_try" in
22057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058   *) ac_try_echo=$ac_try;;
22059 esac
22060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22061 $as_echo "$ac_try_echo") >&5
22062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22063   ac_status=$?
22064   grep -v '^ *+' conftest.er1 >conftest.err
22065   rm -f conftest.er1
22066   cat conftest.err >&5
22067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); } >/dev/null && {
22069          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22070          test ! -s conftest.err
22071        }; then
22072   ac_header_preproc=yes
22073 else
22074   $as_echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077   ac_header_preproc=no
22078 fi
22079
22080 rm -f conftest.err conftest.$ac_ext
22081 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22082 $as_echo "$ac_header_preproc" >&6; }
22083
22084 # So?  What about this header?
22085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22086   yes:no: )
22087     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22088 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22089     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22091     ac_header_preproc=yes
22092     ;;
22093   no:yes:* )
22094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22095 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22097 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22098     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22099 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22100     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22101 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22102     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22104     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22105 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22106
22107     ;;
22108 esac
22109 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22110 $as_echo_n "checking for $ac_header... " >&6; }
22111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22112   $as_echo_n "(cached) " >&6
22113 else
22114   eval "$as_ac_Header=\$ac_header_preproc"
22115 fi
22116 ac_res=`eval 'as_val=${'$as_ac_Header'}
22117                  $as_echo "$as_val"'`
22118                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22119 $as_echo "$ac_res" >&6; }
22120
22121 fi
22122 as_val=`eval 'as_val=${'$as_ac_Header'}
22123                  $as_echo "$as_val"'`
22124    if test "x$as_val" = x""yes; then
22125   cat >>confdefs.h <<_ACEOF
22126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22127 _ACEOF
22128
22129 fi
22130
22131 done
22132
22133
22134 for ac_func in _ftime
22135 do
22136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22137 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22138 $as_echo_n "checking for $ac_func... " >&6; }
22139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22140   $as_echo_n "(cached) " >&6
22141 else
22142   cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22150 #define $ac_func innocuous_$ac_func
22151
22152 /* System header to define __stub macros and hopefully few prototypes,
22153     which can conflict with char $ac_func (); below.
22154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22155     <limits.h> exists even on freestanding compilers.  */
22156
22157 #ifdef __STDC__
22158 # include <limits.h>
22159 #else
22160 # include <assert.h>
22161 #endif
22162
22163 #undef $ac_func
22164
22165 /* Override any GCC internal prototype to avoid an error.
22166    Use char because int might match the return type of a GCC
22167    builtin and then its argument prototype would still apply.  */
22168 #ifdef __cplusplus
22169 extern "C"
22170 #endif
22171 char $ac_func ();
22172 /* The GNU C library defines this for functions which it implements
22173     to always fail with ENOSYS.  Some functions are actually named
22174     something starting with __ and the normal name is an alias.  */
22175 #if defined __stub_$ac_func || defined __stub___$ac_func
22176 choke me
22177 #endif
22178
22179 int
22180 main ()
22181 {
22182 return $ac_func ();
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191   *) ac_try_echo=$ac_try;;
22192 esac
22193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22194 $as_echo "$ac_try_echo") >&5
22195   (eval "$ac_link") 2>conftest.er1
22196   ac_status=$?
22197   grep -v '^ *+' conftest.er1 >conftest.err
22198   rm -f conftest.er1
22199   cat conftest.err >&5
22200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); } && {
22202          test -z "$ac_c_werror_flag" ||
22203          test ! -s conftest.err
22204        } && test -s conftest$ac_exeext && {
22205          test "$cross_compiling" = yes ||
22206          $as_test_x conftest$ac_exeext
22207        }; then
22208   eval "$as_ac_var=yes"
22209 else
22210   $as_echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213         eval "$as_ac_var=no"
22214 fi
22215
22216 rm -rf conftest.dSYM
22217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22218       conftest$ac_exeext conftest.$ac_ext
22219 fi
22220 ac_res=`eval 'as_val=${'$as_ac_var'}
22221                  $as_echo "$as_val"'`
22222                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22223 $as_echo "$ac_res" >&6; }
22224 as_val=`eval 'as_val=${'$as_ac_var'}
22225                  $as_echo "$as_val"'`
22226    if test "x$as_val" = x""yes; then
22227   cat >>confdefs.h <<_ACEOF
22228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22229 _ACEOF
22230
22231 fi
22232 done
22233
22234
22235     fi
22236   fi
22237
22238 cat >>confdefs.h <<_ACEOF
22239 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22240 _ACEOF
22241
22242
22243
22244
22245
22246   GNULIB_GETTIMEOFDAY=1
22247
22248
22249
22250 cat >>confdefs.h <<\_ACEOF
22251 #define GNULIB_TEST_GETTIMEOFDAY 1
22252 _ACEOF
22253
22254
22255
22256   # Code from module havelib:
22257   # Code from module hostent:
22258
22259                   HOSTENT_LIB=
22260   gl_saved_libs="$LIBS"
22261   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22262 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22263 if test "${ac_cv_search_gethostbyname+set}" = set; then
22264   $as_echo_n "(cached) " >&6
22265 else
22266   ac_func_search_save_LIBS=$LIBS
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273
22274 /* Override any GCC internal prototype to avoid an error.
22275    Use char because int might match the return type of a GCC
22276    builtin and then its argument prototype would still apply.  */
22277 #ifdef __cplusplus
22278 extern "C"
22279 #endif
22280 char gethostbyname ();
22281 int
22282 main ()
22283 {
22284 return gethostbyname ();
22285   ;
22286   return 0;
22287 }
22288 _ACEOF
22289 for ac_lib in '' nsl network net; do
22290   if test -z "$ac_lib"; then
22291     ac_res="none required"
22292   else
22293     ac_res=-l$ac_lib
22294     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22295   fi
22296   rm -f conftest.$ac_objext conftest$ac_exeext
22297 if { (ac_try="$ac_link"
22298 case "(($ac_try" in
22299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300   *) ac_try_echo=$ac_try;;
22301 esac
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304   (eval "$ac_link") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } && {
22311          test -z "$ac_c_werror_flag" ||
22312          test ! -s conftest.err
22313        } && test -s conftest$ac_exeext && {
22314          test "$cross_compiling" = yes ||
22315          $as_test_x conftest$ac_exeext
22316        }; then
22317   ac_cv_search_gethostbyname=$ac_res
22318 else
22319   $as_echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322
22323 fi
22324
22325 rm -rf conftest.dSYM
22326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22327       conftest$ac_exeext
22328   if test "${ac_cv_search_gethostbyname+set}" = set; then
22329   break
22330 fi
22331 done
22332 if test "${ac_cv_search_gethostbyname+set}" = set; then
22333   :
22334 else
22335   ac_cv_search_gethostbyname=no
22336 fi
22337 rm conftest.$ac_ext
22338 LIBS=$ac_func_search_save_LIBS
22339 fi
22340 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22341 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22342 ac_res=$ac_cv_search_gethostbyname
22343 if test "$ac_res" != no; then
22344   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22345   if test "$ac_cv_search_gethostbyname" != "none required"; then
22346        HOSTENT_LIB="$ac_cv_search_gethostbyname"
22347      fi
22348 fi
22349
22350   LIBS="$gl_saved_libs"
22351   if test -z "$HOSTENT_LIB"; then
22352
22353 for ac_func in gethostbyname
22354 do
22355 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22356 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22357 $as_echo_n "checking for $ac_func... " >&6; }
22358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22359   $as_echo_n "(cached) " >&6
22360 else
22361   cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22369 #define $ac_func innocuous_$ac_func
22370
22371 /* System header to define __stub macros and hopefully few prototypes,
22372     which can conflict with char $ac_func (); below.
22373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22374     <limits.h> exists even on freestanding compilers.  */
22375
22376 #ifdef __STDC__
22377 # include <limits.h>
22378 #else
22379 # include <assert.h>
22380 #endif
22381
22382 #undef $ac_func
22383
22384 /* Override any GCC internal prototype to avoid an error.
22385    Use char because int might match the return type of a GCC
22386    builtin and then its argument prototype would still apply.  */
22387 #ifdef __cplusplus
22388 extern "C"
22389 #endif
22390 char $ac_func ();
22391 /* The GNU C library defines this for functions which it implements
22392     to always fail with ENOSYS.  Some functions are actually named
22393     something starting with __ and the normal name is an alias.  */
22394 #if defined __stub_$ac_func || defined __stub___$ac_func
22395 choke me
22396 #endif
22397
22398 int
22399 main ()
22400 {
22401 return $ac_func ();
22402   ;
22403   return 0;
22404 }
22405 _ACEOF
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (ac_try="$ac_link"
22408 case "(($ac_try" in
22409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410   *) ac_try_echo=$ac_try;;
22411 esac
22412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22413 $as_echo "$ac_try_echo") >&5
22414   (eval "$ac_link") 2>conftest.er1
22415   ac_status=$?
22416   grep -v '^ *+' conftest.er1 >conftest.err
22417   rm -f conftest.er1
22418   cat conftest.err >&5
22419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); } && {
22421          test -z "$ac_c_werror_flag" ||
22422          test ! -s conftest.err
22423        } && test -s conftest$ac_exeext && {
22424          test "$cross_compiling" = yes ||
22425          $as_test_x conftest$ac_exeext
22426        }; then
22427   eval "$as_ac_var=yes"
22428 else
22429   $as_echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432         eval "$as_ac_var=no"
22433 fi
22434
22435 rm -rf conftest.dSYM
22436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22437       conftest$ac_exeext conftest.$ac_ext
22438 fi
22439 ac_res=`eval 'as_val=${'$as_ac_var'}
22440                  $as_echo "$as_val"'`
22441                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22442 $as_echo "$ac_res" >&6; }
22443 as_val=`eval 'as_val=${'$as_ac_var'}
22444                  $as_echo "$as_val"'`
22445    if test "x$as_val" = x""yes; then
22446   cat >>confdefs.h <<_ACEOF
22447 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22448 _ACEOF
22449
22450 else
22451
22452       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
22453 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
22454 if test "${gl_cv_w32_gethostbyname+set}" = set; then
22455   $as_echo_n "(cached) " >&6
22456 else
22457   gl_cv_w32_gethostbyname=no
22458          gl_save_LIBS="$LIBS"
22459          LIBS="$LIBS -lws2_32"
22460          cat >conftest.$ac_ext <<_ACEOF
22461 /* confdefs.h.  */
22462 _ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h.  */
22466
22467 #ifdef HAVE_WINSOCK2_H
22468 #include <winsock2.h>
22469 #endif
22470 #include <stddef.h>
22471
22472 int
22473 main ()
22474 {
22475 gethostbyname(NULL);
22476   ;
22477   return 0;
22478 }
22479 _ACEOF
22480 rm -f conftest.$ac_objext conftest$ac_exeext
22481 if { (ac_try="$ac_link"
22482 case "(($ac_try" in
22483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22484   *) ac_try_echo=$ac_try;;
22485 esac
22486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22487 $as_echo "$ac_try_echo") >&5
22488   (eval "$ac_link") 2>conftest.er1
22489   ac_status=$?
22490   grep -v '^ *+' conftest.er1 >conftest.err
22491   rm -f conftest.er1
22492   cat conftest.err >&5
22493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); } && {
22495          test -z "$ac_c_werror_flag" ||
22496          test ! -s conftest.err
22497        } && test -s conftest$ac_exeext && {
22498          test "$cross_compiling" = yes ||
22499          $as_test_x conftest$ac_exeext
22500        }; then
22501   gl_cv_w32_gethostbyname=yes
22502 else
22503   $as_echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506
22507 fi
22508
22509 rm -rf conftest.dSYM
22510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22511       conftest$ac_exeext conftest.$ac_ext
22512          LIBS="$gl_save_LIBS"
22513
22514 fi
22515 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
22516 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
22517       if test "$gl_cv_w32_gethostbyname" = "yes"; then
22518         HOSTENT_LIB="-lws2_32"
22519       fi
22520
22521 fi
22522 done
22523
22524   fi
22525
22526
22527   # Code from module include_next:
22528   # Code from module inet_ntop:
22529
22530
22531
22532
22533     :
22534
22535
22536       gl_save_LIBS=$LIBS
22537   { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
22538 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22539 if test "${ac_cv_search_inet_ntop+set}" = set; then
22540   $as_echo_n "(cached) " >&6
22541 else
22542   ac_func_search_save_LIBS=$LIBS
22543 cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549
22550 /* Override any GCC internal prototype to avoid an error.
22551    Use char because int might match the return type of a GCC
22552    builtin and then its argument prototype would still apply.  */
22553 #ifdef __cplusplus
22554 extern "C"
22555 #endif
22556 char inet_ntop ();
22557 int
22558 main ()
22559 {
22560 return inet_ntop ();
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 for ac_lib in '' nsl; do
22566   if test -z "$ac_lib"; then
22567     ac_res="none required"
22568   else
22569     ac_res=-l$ac_lib
22570     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22571   fi
22572   rm -f conftest.$ac_objext conftest$ac_exeext
22573 if { (ac_try="$ac_link"
22574 case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22579 $as_echo "$ac_try_echo") >&5
22580   (eval "$ac_link") 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } && {
22587          test -z "$ac_c_werror_flag" ||
22588          test ! -s conftest.err
22589        } && test -s conftest$ac_exeext && {
22590          test "$cross_compiling" = yes ||
22591          $as_test_x conftest$ac_exeext
22592        }; then
22593   ac_cv_search_inet_ntop=$ac_res
22594 else
22595   $as_echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598
22599 fi
22600
22601 rm -rf conftest.dSYM
22602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22603       conftest$ac_exeext
22604   if test "${ac_cv_search_inet_ntop+set}" = set; then
22605   break
22606 fi
22607 done
22608 if test "${ac_cv_search_inet_ntop+set}" = set; then
22609   :
22610 else
22611   ac_cv_search_inet_ntop=no
22612 fi
22613 rm conftest.$ac_ext
22614 LIBS=$ac_func_search_save_LIBS
22615 fi
22616 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
22617 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22618 ac_res=$ac_cv_search_inet_ntop
22619 if test "$ac_res" != no; then
22620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22621
22622 else
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632 for ac_func in inet_ntop
22633 do
22634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22636 $as_echo_n "checking for $ac_func... " >&6; }
22637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22638   $as_echo_n "(cached) " >&6
22639 else
22640   cat >conftest.$ac_ext <<_ACEOF
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22648 #define $ac_func innocuous_$ac_func
22649
22650 /* System header to define __stub macros and hopefully few prototypes,
22651     which can conflict with char $ac_func (); below.
22652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22653     <limits.h> exists even on freestanding compilers.  */
22654
22655 #ifdef __STDC__
22656 # include <limits.h>
22657 #else
22658 # include <assert.h>
22659 #endif
22660
22661 #undef $ac_func
22662
22663 /* Override any GCC internal prototype to avoid an error.
22664    Use char because int might match the return type of a GCC
22665    builtin and then its argument prototype would still apply.  */
22666 #ifdef __cplusplus
22667 extern "C"
22668 #endif
22669 char $ac_func ();
22670 /* The GNU C library defines this for functions which it implements
22671     to always fail with ENOSYS.  Some functions are actually named
22672     something starting with __ and the normal name is an alias.  */
22673 #if defined __stub_$ac_func || defined __stub___$ac_func
22674 choke me
22675 #endif
22676
22677 int
22678 main ()
22679 {
22680 return $ac_func ();
22681   ;
22682   return 0;
22683 }
22684 _ACEOF
22685 rm -f conftest.$ac_objext conftest$ac_exeext
22686 if { (ac_try="$ac_link"
22687 case "(($ac_try" in
22688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689   *) ac_try_echo=$ac_try;;
22690 esac
22691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22692 $as_echo "$ac_try_echo") >&5
22693   (eval "$ac_link") 2>conftest.er1
22694   ac_status=$?
22695   grep -v '^ *+' conftest.er1 >conftest.err
22696   rm -f conftest.er1
22697   cat conftest.err >&5
22698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); } && {
22700          test -z "$ac_c_werror_flag" ||
22701          test ! -s conftest.err
22702        } && test -s conftest$ac_exeext && {
22703          test "$cross_compiling" = yes ||
22704          $as_test_x conftest$ac_exeext
22705        }; then
22706   eval "$as_ac_var=yes"
22707 else
22708   $as_echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711         eval "$as_ac_var=no"
22712 fi
22713
22714 rm -rf conftest.dSYM
22715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22716       conftest$ac_exeext conftest.$ac_ext
22717 fi
22718 ac_res=`eval 'as_val=${'$as_ac_var'}
22719                  $as_echo "$as_val"'`
22720                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22721 $as_echo "$ac_res" >&6; }
22722 as_val=`eval 'as_val=${'$as_ac_var'}
22723                  $as_echo "$as_val"'`
22724    if test "x$as_val" = x""yes; then
22725   cat >>confdefs.h <<_ACEOF
22726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22727 _ACEOF
22728
22729 else
22730
22731     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22732
22733 fi
22734 done
22735
22736
22737 fi
22738
22739   LIBS=$gl_save_LIBS
22740   INET_NTOP_LIB=
22741   if test "$ac_cv_search_inet_ntop" != "no" &&
22742      test "$ac_cv_search_inet_ntop" != "none required"; then
22743     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
22744   fi
22745
22746
22747
22748   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
22749 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
22750 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
22751   $as_echo_n "(cached) " >&6
22752 else
22753   cat >conftest.$ac_ext <<_ACEOF
22754 /* confdefs.h.  */
22755 _ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h.  */
22759 #include <arpa/inet.h>
22760
22761 int
22762 main ()
22763 {
22764 #ifndef inet_ntop
22765   (void) inet_ntop;
22766 #endif
22767
22768   ;
22769   return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776   *) ac_try_echo=$ac_try;;
22777 esac
22778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22779 $as_echo "$ac_try_echo") >&5
22780   (eval "$ac_compile") 2>conftest.er1
22781   ac_status=$?
22782   grep -v '^ *+' conftest.er1 >conftest.err
22783   rm -f conftest.er1
22784   cat conftest.err >&5
22785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } && {
22787          test -z "$ac_c_werror_flag" ||
22788          test ! -s conftest.err
22789        } && test -s conftest.$ac_objext; then
22790   ac_cv_have_decl_inet_ntop=yes
22791 else
22792   $as_echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795         ac_cv_have_decl_inet_ntop=no
22796 fi
22797
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 fi
22800 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
22801 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
22802 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
22803
22804 cat >>confdefs.h <<_ACEOF
22805 #define HAVE_DECL_INET_NTOP 1
22806 _ACEOF
22807
22808
22809 else
22810   cat >>confdefs.h <<_ACEOF
22811 #define HAVE_DECL_INET_NTOP 0
22812 _ACEOF
22813
22814
22815 fi
22816
22817
22818   if test $ac_cv_have_decl_inet_ntop = no; then
22819     HAVE_DECL_INET_NTOP=0
22820   fi
22821
22822
22823
22824
22825
22826
22827
22828   GNULIB_INET_NTOP=1
22829
22830
22831   # Code from module inet_pton:
22832
22833
22834
22835
22836     :
22837
22838
22839       gl_save_LIBS=$LIBS
22840   { $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
22841 $as_echo_n "checking for library containing inet_pton... " >&6; }
22842 if test "${ac_cv_search_inet_pton+set}" = set; then
22843   $as_echo_n "(cached) " >&6
22844 else
22845   ac_func_search_save_LIBS=$LIBS
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852
22853 /* Override any GCC internal prototype to avoid an error.
22854    Use char because int might match the return type of a GCC
22855    builtin and then its argument prototype would still apply.  */
22856 #ifdef __cplusplus
22857 extern "C"
22858 #endif
22859 char inet_pton ();
22860 int
22861 main ()
22862 {
22863 return inet_pton ();
22864   ;
22865   return 0;
22866 }
22867 _ACEOF
22868 for ac_lib in '' nsl; do
22869   if test -z "$ac_lib"; then
22870     ac_res="none required"
22871   else
22872     ac_res=-l$ac_lib
22873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22874   fi
22875   rm -f conftest.$ac_objext conftest$ac_exeext
22876 if { (ac_try="$ac_link"
22877 case "(($ac_try" in
22878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879   *) ac_try_echo=$ac_try;;
22880 esac
22881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22882 $as_echo "$ac_try_echo") >&5
22883   (eval "$ac_link") 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && {
22890          test -z "$ac_c_werror_flag" ||
22891          test ! -s conftest.err
22892        } && test -s conftest$ac_exeext && {
22893          test "$cross_compiling" = yes ||
22894          $as_test_x conftest$ac_exeext
22895        }; then
22896   ac_cv_search_inet_pton=$ac_res
22897 else
22898   $as_echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901
22902 fi
22903
22904 rm -rf conftest.dSYM
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906       conftest$ac_exeext
22907   if test "${ac_cv_search_inet_pton+set}" = set; then
22908   break
22909 fi
22910 done
22911 if test "${ac_cv_search_inet_pton+set}" = set; then
22912   :
22913 else
22914   ac_cv_search_inet_pton=no
22915 fi
22916 rm conftest.$ac_ext
22917 LIBS=$ac_func_search_save_LIBS
22918 fi
22919 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
22920 $as_echo "$ac_cv_search_inet_pton" >&6; }
22921 ac_res=$ac_cv_search_inet_pton
22922 if test "$ac_res" != no; then
22923   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22924
22925 else
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935 for ac_func in inet_pton
22936 do
22937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22939 $as_echo_n "checking for $ac_func... " >&6; }
22940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22941   $as_echo_n "(cached) " >&6
22942 else
22943   cat >conftest.$ac_ext <<_ACEOF
22944 /* confdefs.h.  */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h.  */
22949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22951 #define $ac_func innocuous_$ac_func
22952
22953 /* System header to define __stub macros and hopefully few prototypes,
22954     which can conflict with char $ac_func (); below.
22955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22956     <limits.h> exists even on freestanding compilers.  */
22957
22958 #ifdef __STDC__
22959 # include <limits.h>
22960 #else
22961 # include <assert.h>
22962 #endif
22963
22964 #undef $ac_func
22965
22966 /* Override any GCC internal prototype to avoid an error.
22967    Use char because int might match the return type of a GCC
22968    builtin and then its argument prototype would still apply.  */
22969 #ifdef __cplusplus
22970 extern "C"
22971 #endif
22972 char $ac_func ();
22973 /* The GNU C library defines this for functions which it implements
22974     to always fail with ENOSYS.  Some functions are actually named
22975     something starting with __ and the normal name is an alias.  */
22976 #if defined __stub_$ac_func || defined __stub___$ac_func
22977 choke me
22978 #endif
22979
22980 int
22981 main ()
22982 {
22983 return $ac_func ();
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext conftest$ac_exeext
22989 if { (ac_try="$ac_link"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22995 $as_echo "$ac_try_echo") >&5
22996   (eval "$ac_link") 2>conftest.er1
22997   ac_status=$?
22998   grep -v '^ *+' conftest.er1 >conftest.err
22999   rm -f conftest.er1
23000   cat conftest.err >&5
23001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && {
23003          test -z "$ac_c_werror_flag" ||
23004          test ! -s conftest.err
23005        } && test -s conftest$ac_exeext && {
23006          test "$cross_compiling" = yes ||
23007          $as_test_x conftest$ac_exeext
23008        }; then
23009   eval "$as_ac_var=yes"
23010 else
23011   $as_echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014         eval "$as_ac_var=no"
23015 fi
23016
23017 rm -rf conftest.dSYM
23018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23019       conftest$ac_exeext conftest.$ac_ext
23020 fi
23021 ac_res=`eval 'as_val=${'$as_ac_var'}
23022                  $as_echo "$as_val"'`
23023                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23024 $as_echo "$ac_res" >&6; }
23025 as_val=`eval 'as_val=${'$as_ac_var'}
23026                  $as_echo "$as_val"'`
23027    if test "x$as_val" = x""yes; then
23028   cat >>confdefs.h <<_ACEOF
23029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23030 _ACEOF
23031
23032 else
23033
23034     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23035
23036 fi
23037 done
23038
23039
23040 fi
23041
23042   LIBS=$gl_save_LIBS
23043   INET_PTON_LIB=
23044   if test "$ac_cv_search_inet_pton" != "no" &&
23045      test "$ac_cv_search_inet_pton" != "none required"; then
23046     INET_PTON_LIB="$ac_cv_search_inet_pton"
23047   fi
23048
23049
23050
23051   { $as_echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
23052 $as_echo_n "checking whether inet_pton is declared... " >&6; }
23053 if test "${ac_cv_have_decl_inet_pton+set}" = set; then
23054   $as_echo_n "(cached) " >&6
23055 else
23056   cat >conftest.$ac_ext <<_ACEOF
23057 /* confdefs.h.  */
23058 _ACEOF
23059 cat confdefs.h >>conftest.$ac_ext
23060 cat >>conftest.$ac_ext <<_ACEOF
23061 /* end confdefs.h.  */
23062 #include <arpa/inet.h>
23063
23064 int
23065 main ()
23066 {
23067 #ifndef inet_pton
23068   (void) inet_pton;
23069 #endif
23070
23071   ;
23072   return 0;
23073 }
23074 _ACEOF
23075 rm -f conftest.$ac_objext
23076 if { (ac_try="$ac_compile"
23077 case "(($ac_try" in
23078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079   *) ac_try_echo=$ac_try;;
23080 esac
23081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23082 $as_echo "$ac_try_echo") >&5
23083   (eval "$ac_compile") 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } && {
23090          test -z "$ac_c_werror_flag" ||
23091          test ! -s conftest.err
23092        } && test -s conftest.$ac_objext; then
23093   ac_cv_have_decl_inet_pton=yes
23094 else
23095   $as_echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098         ac_cv_have_decl_inet_pton=no
23099 fi
23100
23101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102 fi
23103 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
23104 $as_echo "$ac_cv_have_decl_inet_pton" >&6; }
23105 if test "x$ac_cv_have_decl_inet_pton" = x""yes; then
23106
23107 cat >>confdefs.h <<_ACEOF
23108 #define HAVE_DECL_INET_PTON 1
23109 _ACEOF
23110
23111
23112 else
23113   cat >>confdefs.h <<_ACEOF
23114 #define HAVE_DECL_INET_PTON 0
23115 _ACEOF
23116
23117
23118 fi
23119
23120
23121   if test $ac_cv_have_decl_inet_pton = no; then
23122     HAVE_DECL_INET_PTON=0
23123   fi
23124
23125
23126
23127
23128
23129
23130
23131   GNULIB_INET_PTON=1
23132
23133
23134   # Code from module langinfo:
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144   :
23145
23146
23147
23148
23149
23150
23151
23152      if test $gl_cv_have_include_next = yes; then
23153        gl_cv_next_langinfo_h='<'langinfo.h'>'
23154      else
23155        { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
23156 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
23157 if test "${gl_cv_next_langinfo_h+set}" = set; then
23158   $as_echo_n "(cached) " >&6
23159 else
23160
23161           if test $ac_cv_header_langinfo_h = yes; then
23162             cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h.  */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h.  */
23168 #include <langinfo.h>
23169
23170 _ACEOF
23171                                                                                                 case "$host_os" in
23172               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23173               *)    gl_absname_cpp="$ac_cpp" ;;
23174             esac
23175                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23176                sed -n '\#/langinfo.h#{
23177                  s#.*"\(.*/langinfo.h\)".*#\1#
23178                  s#^/[^/]#//&#
23179                  p
23180                  q
23181                }'`'"'
23182           else
23183             gl_cv_next_langinfo_h='<'langinfo.h'>'
23184           fi
23185
23186 fi
23187 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
23188 $as_echo "$gl_cv_next_langinfo_h" >&6; }
23189      fi
23190      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
23191
23192      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23193        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23194        gl_next_as_first_directive='<'langinfo.h'>'
23195      else
23196        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23197        gl_next_as_first_directive=$gl_cv_next_langinfo_h
23198      fi
23199      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
23200
23201
23202
23203
23204     HAVE_LANGINFO_CODESET=0
23205   HAVE_LANGINFO_ERA=0
23206
23207   :
23208
23209
23210
23211
23212
23213   if test $ac_cv_header_langinfo_h = yes; then
23214     HAVE_LANGINFO_H=1
23215             { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
23216 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
23217 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
23218   $as_echo_n "(cached) " >&6
23219 else
23220   cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 #include <langinfo.h>
23227 int a = CODESET;
23228
23229 int
23230 main ()
23231 {
23232
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest.$ac_objext
23238 if { (ac_try="$ac_compile"
23239 case "(($ac_try" in
23240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241   *) ac_try_echo=$ac_try;;
23242 esac
23243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23244 $as_echo "$ac_try_echo") >&5
23245   (eval "$ac_compile") 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } && {
23252          test -z "$ac_c_werror_flag" ||
23253          test ! -s conftest.err
23254        } && test -s conftest.$ac_objext; then
23255   gl_cv_header_langinfo_codeset=yes
23256 else
23257   $as_echo "$as_me: failed program was:" >&5
23258 sed 's/^/| /' conftest.$ac_ext >&5
23259
23260         gl_cv_header_langinfo_codeset=no
23261 fi
23262
23263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23264
23265 fi
23266 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
23267 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
23268     if test $gl_cv_header_langinfo_codeset = yes; then
23269       HAVE_LANGINFO_CODESET=1
23270     fi
23271     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
23272 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
23273 if test "${gl_cv_header_langinfo_era+set}" = set; then
23274   $as_echo_n "(cached) " >&6
23275 else
23276   cat >conftest.$ac_ext <<_ACEOF
23277 /* confdefs.h.  */
23278 _ACEOF
23279 cat confdefs.h >>conftest.$ac_ext
23280 cat >>conftest.$ac_ext <<_ACEOF
23281 /* end confdefs.h.  */
23282 #include <langinfo.h>
23283 int a = ERA;
23284
23285 int
23286 main ()
23287 {
23288
23289   ;
23290   return 0;
23291 }
23292 _ACEOF
23293 rm -f conftest.$ac_objext
23294 if { (ac_try="$ac_compile"
23295 case "(($ac_try" in
23296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297   *) ac_try_echo=$ac_try;;
23298 esac
23299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23300 $as_echo "$ac_try_echo") >&5
23301   (eval "$ac_compile") 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } && {
23308          test -z "$ac_c_werror_flag" ||
23309          test ! -s conftest.err
23310        } && test -s conftest.$ac_objext; then
23311   gl_cv_header_langinfo_era=yes
23312 else
23313   $as_echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23315
23316         gl_cv_header_langinfo_era=no
23317 fi
23318
23319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23320
23321 fi
23322 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
23323 $as_echo "$gl_cv_header_langinfo_era" >&6; }
23324     if test $gl_cv_header_langinfo_era = yes; then
23325       HAVE_LANGINFO_ERA=1
23326     fi
23327   else
23328     HAVE_LANGINFO_H=0
23329   fi
23330
23331
23332
23333
23334
23335
23336   for gl_func in nl_langinfo; do
23337     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23338     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23339 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23340 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23341   $as_echo_n "(cached) " >&6
23342 else
23343   cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h.  */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h.  */
23349 #include <langinfo.h>
23350
23351 int
23352 main ()
23353 {
23354 #undef $gl_func
23355   (void) $gl_func;
23356   ;
23357   return 0;
23358 }
23359 _ACEOF
23360 rm -f conftest.$ac_objext
23361 if { (ac_try="$ac_compile"
23362 case "(($ac_try" in
23363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364   *) ac_try_echo=$ac_try;;
23365 esac
23366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23367 $as_echo "$ac_try_echo") >&5
23368   (eval "$ac_compile") 2>conftest.er1
23369   ac_status=$?
23370   grep -v '^ *+' conftest.er1 >conftest.err
23371   rm -f conftest.er1
23372   cat conftest.err >&5
23373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); } && {
23375          test -z "$ac_c_werror_flag" ||
23376          test ! -s conftest.err
23377        } && test -s conftest.$ac_objext; then
23378   eval "$as_gl_Symbol=yes"
23379 else
23380   $as_echo "$as_me: failed program was:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23382
23383         eval "$as_gl_Symbol=no"
23384 fi
23385
23386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23387 fi
23388 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23389                  $as_echo "$as_val"'`
23390                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23391 $as_echo "$ac_res" >&6; }
23392      as_val=`eval 'as_val=${'$as_gl_Symbol'}
23393                  $as_echo "$as_val"'`
23394    if test "x$as_val" = x""yes; then
23395   cat >>confdefs.h <<_ACEOF
23396 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23397 _ACEOF
23398
23399                      eval ac_cv_have_decl_$gl_func=yes
23400 fi
23401
23402       done
23403
23404
23405   # Code from module localcharset:
23406
23407
23408
23409
23410   :
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
23421
23422   # Code from module lock:
23423
23424
23425   if test "$gl_threads_api" = posix; then
23426     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
23427     # pthread_rwlock_* functions.
23428     { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
23429 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
23430 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
23431   $as_echo_n "(cached) " >&6
23432 else
23433   ac_cv_type_pthread_rwlock_t=no
23434 cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 #include <pthread.h>
23441
23442 int
23443 main ()
23444 {
23445 if (sizeof (pthread_rwlock_t))
23446        return 0;
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext
23452 if { (ac_try="$ac_compile"
23453 case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23458 $as_echo "$ac_try_echo") >&5
23459   (eval "$ac_compile") 2>conftest.er1
23460   ac_status=$?
23461   grep -v '^ *+' conftest.er1 >conftest.err
23462   rm -f conftest.er1
23463   cat conftest.err >&5
23464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); } && {
23466          test -z "$ac_c_werror_flag" ||
23467          test ! -s conftest.err
23468        } && test -s conftest.$ac_objext; then
23469   cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h.  */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h.  */
23475 #include <pthread.h>
23476
23477 int
23478 main ()
23479 {
23480 if (sizeof ((pthread_rwlock_t)))
23481           return 0;
23482   ;
23483   return 0;
23484 }
23485 _ACEOF
23486 rm -f conftest.$ac_objext
23487 if { (ac_try="$ac_compile"
23488 case "(($ac_try" in
23489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490   *) ac_try_echo=$ac_try;;
23491 esac
23492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23493 $as_echo "$ac_try_echo") >&5
23494   (eval "$ac_compile") 2>conftest.er1
23495   ac_status=$?
23496   grep -v '^ *+' conftest.er1 >conftest.err
23497   rm -f conftest.er1
23498   cat conftest.err >&5
23499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); } && {
23501          test -z "$ac_c_werror_flag" ||
23502          test ! -s conftest.err
23503        } && test -s conftest.$ac_objext; then
23504   :
23505 else
23506   $as_echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509         ac_cv_type_pthread_rwlock_t=yes
23510 fi
23511
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513 else
23514   $as_echo "$as_me: failed program was:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23516
23517
23518 fi
23519
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23521 fi
23522 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
23523 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
23524 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
23525
23526 cat >>confdefs.h <<\_ACEOF
23527 #define HAVE_PTHREAD_RWLOCK 1
23528 _ACEOF
23529
23530 fi
23531
23532     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23533     cat >conftest.$ac_ext <<_ACEOF
23534
23535       /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540 #include <pthread.h>
23541 int
23542 main ()
23543 {
23544
23545 #if __FreeBSD__ == 4
23546 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23547 #else
23548 int x = (int)PTHREAD_MUTEX_RECURSIVE;
23549 return !x;
23550 #endif
23551
23552   ;
23553   return 0;
23554 }
23555 _ACEOF
23556 rm -f conftest.$ac_objext
23557 if { (ac_try="$ac_compile"
23558 case "(($ac_try" in
23559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560   *) ac_try_echo=$ac_try;;
23561 esac
23562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23563 $as_echo "$ac_try_echo") >&5
23564   (eval "$ac_compile") 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } && {
23571          test -z "$ac_c_werror_flag" ||
23572          test ! -s conftest.err
23573        } && test -s conftest.$ac_objext; then
23574
23575 cat >>confdefs.h <<\_ACEOF
23576 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
23577 _ACEOF
23578
23579 else
23580   $as_echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583
23584 fi
23585
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23587   fi
23588
23589
23590
23591
23592   # Code from module lseek:
23593
23594
23595
23596   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
23597 $as_echo_n "checking whether lseek detects pipes... " >&6; }
23598 if test "${gl_cv_func_lseek_pipe+set}" = set; then
23599   $as_echo_n "(cached) " >&6
23600 else
23601   if test $cross_compiling = no; then
23602        cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608
23609 #include <sys/types.h> /* for off_t */
23610 #include <stdio.h> /* for SEEK_CUR */
23611 #include <unistd.h>
23612 int
23613 main ()
23614 {
23615
23616   /* Exit with success only if stdin is seekable.  */
23617   return lseek (0, (off_t)0, SEEK_CUR) < 0;
23618
23619   ;
23620   return 0;
23621 }
23622 _ACEOF
23623 rm -f conftest.$ac_objext conftest$ac_exeext
23624 if { (ac_try="$ac_link"
23625 case "(($ac_try" in
23626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627   *) ac_try_echo=$ac_try;;
23628 esac
23629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23630 $as_echo "$ac_try_echo") >&5
23631   (eval "$ac_link") 2>conftest.er1
23632   ac_status=$?
23633   grep -v '^ *+' conftest.er1 >conftest.err
23634   rm -f conftest.er1
23635   cat conftest.err >&5
23636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); } && {
23638          test -z "$ac_c_werror_flag" ||
23639          test ! -s conftest.err
23640        } && test -s conftest$ac_exeext && {
23641          test "$cross_compiling" = yes ||
23642          $as_test_x conftest$ac_exeext
23643        }; then
23644   if test -s conftest$ac_exeext \
23645              && ./conftest$ac_exeext < conftest.$ac_ext \
23646              && test 1 = "`echo hi \
23647                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
23648             gl_cv_func_lseek_pipe=yes
23649           else
23650             gl_cv_func_lseek_pipe=no
23651           fi
23652 else
23653   $as_echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23655
23656         gl_cv_func_lseek_pipe=no
23657 fi
23658
23659 rm -rf conftest.dSYM
23660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23661       conftest$ac_exeext conftest.$ac_ext
23662      else
23663        cat >conftest.$ac_ext <<_ACEOF
23664 /* confdefs.h.  */
23665 _ACEOF
23666 cat confdefs.h >>conftest.$ac_ext
23667 cat >>conftest.$ac_ext <<_ACEOF
23668 /* end confdefs.h.  */
23669
23670 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
23671 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
23672   Choke me.
23673 #endif
23674 _ACEOF
23675 rm -f conftest.$ac_objext
23676 if { (ac_try="$ac_compile"
23677 case "(($ac_try" in
23678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679   *) ac_try_echo=$ac_try;;
23680 esac
23681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23682 $as_echo "$ac_try_echo") >&5
23683   (eval "$ac_compile") 2>conftest.er1
23684   ac_status=$?
23685   grep -v '^ *+' conftest.er1 >conftest.err
23686   rm -f conftest.er1
23687   cat conftest.err >&5
23688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689   (exit $ac_status); } && {
23690          test -z "$ac_c_werror_flag" ||
23691          test ! -s conftest.err
23692        } && test -s conftest.$ac_objext; then
23693   gl_cv_func_lseek_pipe=yes
23694 else
23695   $as_echo "$as_me: failed program was:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23697
23698         gl_cv_func_lseek_pipe=no
23699 fi
23700
23701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702      fi
23703 fi
23704 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
23705 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
23706   if test $gl_cv_func_lseek_pipe = no; then
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23717
23718
23719   REPLACE_LSEEK=1
23720
23721 cat >>confdefs.h <<\_ACEOF
23722 #define LSEEK_PIPE_BROKEN 1
23723 _ACEOF
23724
23725
23726   fi
23727
23728
23729
23730
23731   GNULIB_LSEEK=1
23732
23733
23734
23735 cat >>confdefs.h <<\_ACEOF
23736 #define GNULIB_TEST_LSEEK 1
23737 _ACEOF
23738
23739
23740
23741   # Code from module lstat:
23742
23743
23744
23745   :
23746
23747
23748
23749
23750
23751   if test $ac_cv_func_lstat = yes; then
23752
23753     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23754             REPLACE_LSTAT=1
23755     fi
23756     # Prerequisites of lib/lstat.c.
23757
23758   else
23759     HAVE_LSTAT=0
23760   fi
23761
23762
23763
23764
23765   GNULIB_LSTAT=1
23766
23767
23768
23769 cat >>confdefs.h <<\_ACEOF
23770 #define GNULIB_TEST_LSTAT 1
23771 _ACEOF
23772
23773
23774
23775   # Code from module malloc-gnu:
23776
23777
23778
23779 for ac_header in stdlib.h
23780 do
23781 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23783   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23784 $as_echo_n "checking for $ac_header... " >&6; }
23785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23786   $as_echo_n "(cached) " >&6
23787 fi
23788 ac_res=`eval 'as_val=${'$as_ac_Header'}
23789                  $as_echo "$as_val"'`
23790                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23791 $as_echo "$ac_res" >&6; }
23792 else
23793   # Is the header compilable?
23794 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23795 $as_echo_n "checking $ac_header usability... " >&6; }
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802 $ac_includes_default
23803 #include <$ac_header>
23804 _ACEOF
23805 rm -f conftest.$ac_objext
23806 if { (ac_try="$ac_compile"
23807 case "(($ac_try" in
23808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809   *) ac_try_echo=$ac_try;;
23810 esac
23811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23812 $as_echo "$ac_try_echo") >&5
23813   (eval "$ac_compile") 2>conftest.er1
23814   ac_status=$?
23815   grep -v '^ *+' conftest.er1 >conftest.err
23816   rm -f conftest.er1
23817   cat conftest.err >&5
23818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); } && {
23820          test -z "$ac_c_werror_flag" ||
23821          test ! -s conftest.err
23822        } && test -s conftest.$ac_objext; then
23823   ac_header_compiler=yes
23824 else
23825   $as_echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828         ac_header_compiler=no
23829 fi
23830
23831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23832 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23833 $as_echo "$ac_header_compiler" >&6; }
23834
23835 # Is the header present?
23836 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23837 $as_echo_n "checking $ac_header presence... " >&6; }
23838 cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844 #include <$ac_header>
23845 _ACEOF
23846 if { (ac_try="$ac_cpp conftest.$ac_ext"
23847 case "(($ac_try" in
23848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849   *) ac_try_echo=$ac_try;;
23850 esac
23851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23852 $as_echo "$ac_try_echo") >&5
23853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23854   ac_status=$?
23855   grep -v '^ *+' conftest.er1 >conftest.err
23856   rm -f conftest.er1
23857   cat conftest.err >&5
23858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23859   (exit $ac_status); } >/dev/null && {
23860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23861          test ! -s conftest.err
23862        }; then
23863   ac_header_preproc=yes
23864 else
23865   $as_echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23867
23868   ac_header_preproc=no
23869 fi
23870
23871 rm -f conftest.err conftest.$ac_ext
23872 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23873 $as_echo "$ac_header_preproc" >&6; }
23874
23875 # So?  What about this header?
23876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23877   yes:no: )
23878     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23879 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23880     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23882     ac_header_preproc=yes
23883     ;;
23884   no:yes:* )
23885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23886 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23887     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23888 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23889     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23890 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23891     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23892 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23896 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23897
23898     ;;
23899 esac
23900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23901 $as_echo_n "checking for $ac_header... " >&6; }
23902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23903   $as_echo_n "(cached) " >&6
23904 else
23905   eval "$as_ac_Header=\$ac_header_preproc"
23906 fi
23907 ac_res=`eval 'as_val=${'$as_ac_Header'}
23908                  $as_echo "$as_val"'`
23909                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23910 $as_echo "$ac_res" >&6; }
23911
23912 fi
23913 as_val=`eval 'as_val=${'$as_ac_Header'}
23914                  $as_echo "$as_val"'`
23915    if test "x$as_val" = x""yes; then
23916   cat >>confdefs.h <<_ACEOF
23917 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23918 _ACEOF
23919
23920 fi
23921
23922 done
23923
23924 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23925 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23926 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23927   $as_echo_n "(cached) " >&6
23928 else
23929   if test "$cross_compiling" = yes; then
23930   ac_cv_func_malloc_0_nonnull=no
23931 else
23932   cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h.  */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h.  */
23938 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23939 # include <stdlib.h>
23940 #else
23941 char *malloc ();
23942 #endif
23943
23944 int
23945 main ()
23946 {
23947 return ! malloc (0);
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 rm -f conftest$ac_exeext
23953 if { (ac_try="$ac_link"
23954 case "(($ac_try" in
23955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23956   *) ac_try_echo=$ac_try;;
23957 esac
23958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23959 $as_echo "$ac_try_echo") >&5
23960   (eval "$ac_link") 2>&5
23961   ac_status=$?
23962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23964   { (case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23969 $as_echo "$ac_try_echo") >&5
23970   (eval "$ac_try") 2>&5
23971   ac_status=$?
23972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); }; }; then
23974   ac_cv_func_malloc_0_nonnull=yes
23975 else
23976   $as_echo "$as_me: program exited with status $ac_status" >&5
23977 $as_echo "$as_me: failed program was:" >&5
23978 sed 's/^/| /' conftest.$ac_ext >&5
23979
23980 ( exit $ac_status )
23981 ac_cv_func_malloc_0_nonnull=no
23982 fi
23983 rm -rf conftest.dSYM
23984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23985 fi
23986
23987
23988 fi
23989 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23990 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23991 if test $ac_cv_func_malloc_0_nonnull = yes; then
23992
23993 cat >>confdefs.h <<\_ACEOF
23994 #define HAVE_MALLOC_GNU 1
23995 _ACEOF
23996
23997 else
23998   cat >>confdefs.h <<\_ACEOF
23999 #define HAVE_MALLOC_GNU 0
24000 _ACEOF
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24012
24013   REPLACE_MALLOC=1
24014
24015
24016 fi
24017
24018
24019
24020
24021
24022 cat >>confdefs.h <<_ACEOF
24023 #define GNULIB_MALLOC_GNU 1
24024 _ACEOF
24025
24026
24027   # Code from module malloc-posix:
24028
24029
24030
24031   if test $gl_cv_func_malloc_posix = yes; then
24032
24033 cat >>confdefs.h <<\_ACEOF
24034 #define HAVE_MALLOC_POSIX 1
24035 _ACEOF
24036
24037   else
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24048
24049   REPLACE_MALLOC=1
24050
24051   fi
24052
24053
24054
24055
24056   GNULIB_MALLOC_POSIX=1
24057
24058
24059
24060 cat >>confdefs.h <<\_ACEOF
24061 #define GNULIB_TEST_MALLOC_POSIX 1
24062 _ACEOF
24063
24064
24065
24066   # Code from module mbrtowc:
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076   :
24077
24078
24079
24080
24081
24082
24083   :
24084
24085
24086
24087
24088
24089   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24090
24091
24092
24093      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24094 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24095 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24096   $as_echo_n "(cached) " >&6
24097 else
24098
24099                   case "$host_os" in
24100                      # Guess no on AIX and OSF/1.
24101         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24102                      # Guess yes otherwise.
24103         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24104       esac
24105       if test $LOCALE_JA != none; then
24106         if test "$cross_compiling" = yes; then
24107   :
24108 else
24109   cat >conftest.$ac_ext <<_ACEOF
24110 /* confdefs.h.  */
24111 _ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h.  */
24115
24116 #include <locale.h>
24117 #include <string.h>
24118 #include <wchar.h>
24119 int main ()
24120 {
24121   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24122     {
24123       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24124       mbstate_t state;
24125       wchar_t wc;
24126
24127       memset (&state, '\0', sizeof (mbstate_t));
24128       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24129         if (mbsinit (&state))
24130           return 1;
24131     }
24132   return 0;
24133 }
24134 _ACEOF
24135 rm -f conftest$ac_exeext
24136 if { (ac_try="$ac_link"
24137 case "(($ac_try" in
24138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139   *) ac_try_echo=$ac_try;;
24140 esac
24141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24142 $as_echo "$ac_try_echo") >&5
24143   (eval "$ac_link") 2>&5
24144   ac_status=$?
24145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24147   { (case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24152 $as_echo "$ac_try_echo") >&5
24153   (eval "$ac_try") 2>&5
24154   ac_status=$?
24155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); }; }; then
24157   gl_cv_func_mbrtowc_incomplete_state=yes
24158 else
24159   $as_echo "$as_me: program exited with status $ac_status" >&5
24160 $as_echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24162
24163 ( exit $ac_status )
24164 gl_cv_func_mbrtowc_incomplete_state=no
24165 fi
24166 rm -rf conftest.dSYM
24167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24168 fi
24169
24170
24171       fi
24172
24173 fi
24174 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24175 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24176
24177
24178
24179
24180      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24181 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24182 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24183   $as_echo_n "(cached) " >&6
24184 else
24185
24186                   case "$host_os" in
24187                     # Guess no on Solaris 8.
24188         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24189                     # Guess yes otherwise.
24190         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24191       esac
24192       if test $LOCALE_ZH_CN != none; then
24193         if test "$cross_compiling" = yes; then
24194   :
24195 else
24196   cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202
24203 #include <locale.h>
24204 #include <stdlib.h>
24205 #include <string.h>
24206 #include <wchar.h>
24207 int main ()
24208 {
24209   /* This fails on Solaris 8:
24210      mbrtowc returns 2, and sets wc to 0x00F0.
24211      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24212   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24213     {
24214       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24215       mbstate_t state;
24216       wchar_t wc;
24217
24218       memset (&state, '\0', sizeof (mbstate_t));
24219       if (mbrtowc (&wc, input + 3, 6, &state) != 4
24220           && mbtowc (&wc, input + 3, 6) == 4)
24221         return 1;
24222     }
24223   return 0;
24224 }
24225 _ACEOF
24226 rm -f conftest$ac_exeext
24227 if { (ac_try="$ac_link"
24228 case "(($ac_try" in
24229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24230   *) ac_try_echo=$ac_try;;
24231 esac
24232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24233 $as_echo "$ac_try_echo") >&5
24234   (eval "$ac_link") 2>&5
24235   ac_status=$?
24236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24238   { (case "(($ac_try" in
24239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240   *) ac_try_echo=$ac_try;;
24241 esac
24242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24243 $as_echo "$ac_try_echo") >&5
24244   (eval "$ac_try") 2>&5
24245   ac_status=$?
24246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); }; }; then
24248   gl_cv_func_mbrtowc_sanitycheck=yes
24249 else
24250   $as_echo "$as_me: program exited with status $ac_status" >&5
24251 $as_echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24253
24254 ( exit $ac_status )
24255 gl_cv_func_mbrtowc_sanitycheck=no
24256 fi
24257 rm -rf conftest.dSYM
24258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24259 fi
24260
24261
24262       fi
24263
24264 fi
24265 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24266 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24267
24268     REPLACE_MBSTATE_T=0
24269     case "$gl_cv_func_mbrtowc_incomplete_state" in
24270       *yes) ;;
24271       *) REPLACE_MBSTATE_T=1 ;;
24272     esac
24273     case "$gl_cv_func_mbrtowc_sanitycheck" in
24274       *yes) ;;
24275       *) REPLACE_MBSTATE_T=1 ;;
24276     esac
24277   else
24278     REPLACE_MBSTATE_T=1
24279   fi
24280   if test $REPLACE_MBSTATE_T = 1; then
24281
24282     :
24283
24284   fi
24285
24286
24287
24288   :
24289
24290
24291
24292
24293
24294   if test $ac_cv_func_mbrtowc = no; then
24295     HAVE_MBRTOWC=0
24296   else
24297     if test $REPLACE_MBSTATE_T = 1; then
24298       REPLACE_MBRTOWC=1
24299     else
24300
24301
24302
24303      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
24304 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24305 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
24306   $as_echo_n "(cached) " >&6
24307 else
24308
24309                   case "$host_os" in
24310               # Guess no on OSF/1.
24311         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
24312               # Guess yes otherwise.
24313         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
24314       esac
24315       if test $LOCALE_FR_UTF8 != none; then
24316         if test "$cross_compiling" = yes; then
24317   :
24318 else
24319   cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h.  */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h.  */
24325
24326 #include <locale.h>
24327 #include <string.h>
24328 #include <wchar.h>
24329 int main ()
24330 {
24331   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24332     {
24333       mbstate_t state;
24334       wchar_t wc;
24335       int ret;
24336
24337       memset (&state, '\0', sizeof (mbstate_t));
24338       wc = (wchar_t) 0xBADFACE;
24339       mbrtowc (&wc, NULL, 5, &state);
24340       /* Check that wc was not modified.  */
24341       if (wc != (wchar_t) 0xBADFACE)
24342         return 1;
24343     }
24344   return 0;
24345 }
24346 _ACEOF
24347 rm -f conftest$ac_exeext
24348 if { (ac_try="$ac_link"
24349 case "(($ac_try" in
24350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24351   *) ac_try_echo=$ac_try;;
24352 esac
24353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24354 $as_echo "$ac_try_echo") >&5
24355   (eval "$ac_link") 2>&5
24356   ac_status=$?
24357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24359   { (case "(($ac_try" in
24360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24361   *) ac_try_echo=$ac_try;;
24362 esac
24363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24364 $as_echo "$ac_try_echo") >&5
24365   (eval "$ac_try") 2>&5
24366   ac_status=$?
24367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; }; then
24369   gl_cv_func_mbrtowc_null_arg=yes
24370 else
24371   $as_echo "$as_me: program exited with status $ac_status" >&5
24372 $as_echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375 ( exit $ac_status )
24376 gl_cv_func_mbrtowc_null_arg=no
24377 fi
24378 rm -rf conftest.dSYM
24379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24380 fi
24381
24382
24383       fi
24384
24385 fi
24386 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
24387 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
24388
24389
24390
24391
24392
24393      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
24394 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24395 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
24396   $as_echo_n "(cached) " >&6
24397 else
24398
24399                   case "$host_os" in
24400                           # Guess no on HP-UX and Solaris.
24401         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
24402                           # Guess yes otherwise.
24403         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
24404       esac
24405       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
24406         if test "$cross_compiling" = yes; then
24407   :
24408 else
24409   cat >conftest.$ac_ext <<_ACEOF
24410 /* confdefs.h.  */
24411 _ACEOF
24412 cat confdefs.h >>conftest.$ac_ext
24413 cat >>conftest.$ac_ext <<_ACEOF
24414 /* end confdefs.h.  */
24415
24416 #include <locale.h>
24417 #include <string.h>
24418 #include <wchar.h>
24419 int main ()
24420 {
24421   /* This fails on Solaris.  */
24422   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24423     {
24424       char input[] = "B\303\274\303\237er"; /* "Büßer" */
24425       mbstate_t state;
24426       wchar_t wc;
24427
24428       memset (&state, '\0', sizeof (mbstate_t));
24429       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24430         {
24431           input[1] = '\0';
24432           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24433             return 1;
24434         }
24435     }
24436   /* This fails on HP-UX 11.11.  */
24437   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24438     {
24439       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24440       mbstate_t state;
24441       wchar_t wc;
24442
24443       memset (&state, '\0', sizeof (mbstate_t));
24444       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24445         {
24446           input[1] = '\0';
24447           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24448             return 1;
24449         }
24450     }
24451   return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest$ac_exeext
24455 if { (ac_try="$ac_link"
24456 case "(($ac_try" in
24457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24458   *) ac_try_echo=$ac_try;;
24459 esac
24460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24461 $as_echo "$ac_try_echo") >&5
24462   (eval "$ac_link") 2>&5
24463   ac_status=$?
24464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24466   { (case "(($ac_try" in
24467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24468   *) ac_try_echo=$ac_try;;
24469 esac
24470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24471 $as_echo "$ac_try_echo") >&5
24472   (eval "$ac_try") 2>&5
24473   ac_status=$?
24474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); }; }; then
24476   gl_cv_func_mbrtowc_retval=yes
24477 else
24478   $as_echo "$as_me: program exited with status $ac_status" >&5
24479 $as_echo "$as_me: failed program was:" >&5
24480 sed 's/^/| /' conftest.$ac_ext >&5
24481
24482 ( exit $ac_status )
24483 gl_cv_func_mbrtowc_retval=no
24484 fi
24485 rm -rf conftest.dSYM
24486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24487 fi
24488
24489
24490       fi
24491
24492 fi
24493 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
24494 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24495
24496
24497
24498
24499      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24500 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24501 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
24502   $as_echo_n "(cached) " >&6
24503 else
24504
24505                   case "$host_os" in
24506                        # Guess no on Solaris 8 and 9.
24507         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
24508                        # Guess yes otherwise.
24509         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
24510       esac
24511       if test $LOCALE_ZH_CN != none; then
24512         if test "$cross_compiling" = yes; then
24513   :
24514 else
24515   cat >conftest.$ac_ext <<_ACEOF
24516 /* confdefs.h.  */
24517 _ACEOF
24518 cat confdefs.h >>conftest.$ac_ext
24519 cat >>conftest.$ac_ext <<_ACEOF
24520 /* end confdefs.h.  */
24521
24522 #include <locale.h>
24523 #include <string.h>
24524 #include <wchar.h>
24525 int main ()
24526 {
24527   /* This fails on Solaris 8 and 9.  */
24528   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24529     {
24530       mbstate_t state;
24531       wchar_t wc;
24532
24533       memset (&state, '\0', sizeof (mbstate_t));
24534       if (mbrtowc (&wc, "", 1, &state) != 0)
24535         return 1;
24536     }
24537   return 0;
24538 }
24539 _ACEOF
24540 rm -f conftest$ac_exeext
24541 if { (ac_try="$ac_link"
24542 case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24547 $as_echo "$ac_try_echo") >&5
24548   (eval "$ac_link") 2>&5
24549   ac_status=$?
24550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24552   { (case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557 $as_echo "$ac_try_echo") >&5
24558   (eval "$ac_try") 2>&5
24559   ac_status=$?
24560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); }; }; then
24562   gl_cv_func_mbrtowc_nul_retval=yes
24563 else
24564   $as_echo "$as_me: program exited with status $ac_status" >&5
24565 $as_echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568 ( exit $ac_status )
24569 gl_cv_func_mbrtowc_nul_retval=no
24570 fi
24571 rm -rf conftest.dSYM
24572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24573 fi
24574
24575
24576       fi
24577
24578 fi
24579 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24580 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24581
24582       case "$gl_cv_func_mbrtowc_null_arg" in
24583         *yes) ;;
24584         *)
24585 cat >>confdefs.h <<\_ACEOF
24586 #define MBRTOWC_NULL_ARG_BUG 1
24587 _ACEOF
24588
24589            REPLACE_MBRTOWC=1
24590            ;;
24591       esac
24592       case "$gl_cv_func_mbrtowc_retval" in
24593         *yes) ;;
24594         *)
24595 cat >>confdefs.h <<\_ACEOF
24596 #define MBRTOWC_RETVAL_BUG 1
24597 _ACEOF
24598
24599            REPLACE_MBRTOWC=1
24600            ;;
24601       esac
24602       case "$gl_cv_func_mbrtowc_nul_retval" in
24603         *yes) ;;
24604         *)
24605 cat >>confdefs.h <<\_ACEOF
24606 #define MBRTOWC_NUL_RETVAL_BUG 1
24607 _ACEOF
24608
24609            REPLACE_MBRTOWC=1
24610            ;;
24611       esac
24612     fi
24613   fi
24614   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
24615
24616     :
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
24627
24628
24629   :
24630
24631   fi
24632
24633
24634
24635
24636   GNULIB_MBRTOWC=1
24637
24638
24639
24640 cat >>confdefs.h <<\_ACEOF
24641 #define GNULIB_TEST_MBRTOWC 1
24642 _ACEOF
24643
24644
24645
24646   # Code from module mbsinit:
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656   :
24657
24658
24659
24660
24661
24662
24663   :
24664
24665
24666
24667
24668
24669   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24670
24671
24672
24673      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24674 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24675 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24676   $as_echo_n "(cached) " >&6
24677 else
24678
24679                   case "$host_os" in
24680                      # Guess no on AIX and OSF/1.
24681         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24682                      # Guess yes otherwise.
24683         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24684       esac
24685       if test $LOCALE_JA != none; then
24686         if test "$cross_compiling" = yes; then
24687   :
24688 else
24689   cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h.  */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h.  */
24695
24696 #include <locale.h>
24697 #include <string.h>
24698 #include <wchar.h>
24699 int main ()
24700 {
24701   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24702     {
24703       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24704       mbstate_t state;
24705       wchar_t wc;
24706
24707       memset (&state, '\0', sizeof (mbstate_t));
24708       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24709         if (mbsinit (&state))
24710           return 1;
24711     }
24712   return 0;
24713 }
24714 _ACEOF
24715 rm -f conftest$ac_exeext
24716 if { (ac_try="$ac_link"
24717 case "(($ac_try" in
24718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24719   *) ac_try_echo=$ac_try;;
24720 esac
24721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24722 $as_echo "$ac_try_echo") >&5
24723   (eval "$ac_link") 2>&5
24724   ac_status=$?
24725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24727   { (case "(($ac_try" in
24728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729   *) ac_try_echo=$ac_try;;
24730 esac
24731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24732 $as_echo "$ac_try_echo") >&5
24733   (eval "$ac_try") 2>&5
24734   ac_status=$?
24735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736   (exit $ac_status); }; }; then
24737   gl_cv_func_mbrtowc_incomplete_state=yes
24738 else
24739   $as_echo "$as_me: program exited with status $ac_status" >&5
24740 $as_echo "$as_me: failed program was:" >&5
24741 sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 ( exit $ac_status )
24744 gl_cv_func_mbrtowc_incomplete_state=no
24745 fi
24746 rm -rf conftest.dSYM
24747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24748 fi
24749
24750
24751       fi
24752
24753 fi
24754 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24755 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24756
24757
24758
24759
24760      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24761 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24762 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24763   $as_echo_n "(cached) " >&6
24764 else
24765
24766                   case "$host_os" in
24767                     # Guess no on Solaris 8.
24768         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24769                     # Guess yes otherwise.
24770         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24771       esac
24772       if test $LOCALE_ZH_CN != none; then
24773         if test "$cross_compiling" = yes; then
24774   :
24775 else
24776   cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h.  */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h.  */
24782
24783 #include <locale.h>
24784 #include <stdlib.h>
24785 #include <string.h>
24786 #include <wchar.h>
24787 int main ()
24788 {
24789   /* This fails on Solaris 8:
24790      mbrtowc returns 2, and sets wc to 0x00F0.
24791      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24792   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24793     {
24794       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24795       mbstate_t state;
24796       wchar_t wc;
24797
24798       memset (&state, '\0', sizeof (mbstate_t));
24799       if (mbrtowc (&wc, input + 3, 6, &state) != 4
24800           && mbtowc (&wc, input + 3, 6) == 4)
24801         return 1;
24802     }
24803   return 0;
24804 }
24805 _ACEOF
24806 rm -f conftest$ac_exeext
24807 if { (ac_try="$ac_link"
24808 case "(($ac_try" in
24809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24810   *) ac_try_echo=$ac_try;;
24811 esac
24812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24813 $as_echo "$ac_try_echo") >&5
24814   (eval "$ac_link") 2>&5
24815   ac_status=$?
24816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24818   { (case "(($ac_try" in
24819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820   *) ac_try_echo=$ac_try;;
24821 esac
24822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24823 $as_echo "$ac_try_echo") >&5
24824   (eval "$ac_try") 2>&5
24825   ac_status=$?
24826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; }; then
24828   gl_cv_func_mbrtowc_sanitycheck=yes
24829 else
24830   $as_echo "$as_me: program exited with status $ac_status" >&5
24831 $as_echo "$as_me: failed program was:" >&5
24832 sed 's/^/| /' conftest.$ac_ext >&5
24833
24834 ( exit $ac_status )
24835 gl_cv_func_mbrtowc_sanitycheck=no
24836 fi
24837 rm -rf conftest.dSYM
24838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 fi
24840
24841
24842       fi
24843
24844 fi
24845 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24846 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24847
24848     REPLACE_MBSTATE_T=0
24849     case "$gl_cv_func_mbrtowc_incomplete_state" in
24850       *yes) ;;
24851       *) REPLACE_MBSTATE_T=1 ;;
24852     esac
24853     case "$gl_cv_func_mbrtowc_sanitycheck" in
24854       *yes) ;;
24855       *) REPLACE_MBSTATE_T=1 ;;
24856     esac
24857   else
24858     REPLACE_MBSTATE_T=1
24859   fi
24860   if test $REPLACE_MBSTATE_T = 1; then
24861
24862     :
24863
24864   fi
24865
24866
24867
24868   :
24869
24870
24871
24872
24873
24874   if test $ac_cv_func_mbsinit = no; then
24875     HAVE_MBSINIT=0
24876   else
24877     if test $REPLACE_MBSTATE_T = 1; then
24878       REPLACE_MBSINIT=1
24879     fi
24880   fi
24881   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
24882
24883     :
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
24894
24895
24896   :
24897
24898   fi
24899
24900
24901
24902
24903   GNULIB_MBSINIT=1
24904
24905
24906
24907 cat >>confdefs.h <<\_ACEOF
24908 #define GNULIB_TEST_MBSINIT 1
24909 _ACEOF
24910
24911
24912
24913   # Code from module memchr:
24914
24915
24916
24917
24918   GNULIB_MEMCHR=1
24919
24920
24921
24922 cat >>confdefs.h <<\_ACEOF
24923 #define GNULIB_TEST_MEMCHR 1
24924 _ACEOF
24925
24926
24927
24928   # Code from module mkdtemp:
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940 for ac_func in mkdtemp
24941 do
24942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24943 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24944 $as_echo_n "checking for $ac_func... " >&6; }
24945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24946   $as_echo_n "(cached) " >&6
24947 else
24948   cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24956 #define $ac_func innocuous_$ac_func
24957
24958 /* System header to define __stub macros and hopefully few prototypes,
24959     which can conflict with char $ac_func (); below.
24960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24961     <limits.h> exists even on freestanding compilers.  */
24962
24963 #ifdef __STDC__
24964 # include <limits.h>
24965 #else
24966 # include <assert.h>
24967 #endif
24968
24969 #undef $ac_func
24970
24971 /* Override any GCC internal prototype to avoid an error.
24972    Use char because int might match the return type of a GCC
24973    builtin and then its argument prototype would still apply.  */
24974 #ifdef __cplusplus
24975 extern "C"
24976 #endif
24977 char $ac_func ();
24978 /* The GNU C library defines this for functions which it implements
24979     to always fail with ENOSYS.  Some functions are actually named
24980     something starting with __ and the normal name is an alias.  */
24981 #if defined __stub_$ac_func || defined __stub___$ac_func
24982 choke me
24983 #endif
24984
24985 int
24986 main ()
24987 {
24988 return $ac_func ();
24989   ;
24990   return 0;
24991 }
24992 _ACEOF
24993 rm -f conftest.$ac_objext conftest$ac_exeext
24994 if { (ac_try="$ac_link"
24995 case "(($ac_try" in
24996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24997   *) ac_try_echo=$ac_try;;
24998 esac
24999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25000 $as_echo "$ac_try_echo") >&5
25001   (eval "$ac_link") 2>conftest.er1
25002   ac_status=$?
25003   grep -v '^ *+' conftest.er1 >conftest.err
25004   rm -f conftest.er1
25005   cat conftest.err >&5
25006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25007   (exit $ac_status); } && {
25008          test -z "$ac_c_werror_flag" ||
25009          test ! -s conftest.err
25010        } && test -s conftest$ac_exeext && {
25011          test "$cross_compiling" = yes ||
25012          $as_test_x conftest$ac_exeext
25013        }; then
25014   eval "$as_ac_var=yes"
25015 else
25016   $as_echo "$as_me: failed program was:" >&5
25017 sed 's/^/| /' conftest.$ac_ext >&5
25018
25019         eval "$as_ac_var=no"
25020 fi
25021
25022 rm -rf conftest.dSYM
25023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25024       conftest$ac_exeext conftest.$ac_ext
25025 fi
25026 ac_res=`eval 'as_val=${'$as_ac_var'}
25027                  $as_echo "$as_val"'`
25028                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25029 $as_echo "$ac_res" >&6; }
25030 as_val=`eval 'as_val=${'$as_ac_var'}
25031                  $as_echo "$as_val"'`
25032    if test "x$as_val" = x""yes; then
25033   cat >>confdefs.h <<_ACEOF
25034 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25035 _ACEOF
25036
25037 else
25038
25039     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25040
25041 fi
25042 done
25043
25044
25045   if test $ac_cv_func_mkdtemp = no; then
25046     HAVE_MKDTEMP=0
25047     :
25048
25049   fi
25050
25051
25052
25053
25054   GNULIB_MKDTEMP=1
25055
25056
25057
25058 cat >>confdefs.h <<\_ACEOF
25059 #define GNULIB_TEST_MKDTEMP 1
25060 _ACEOF
25061
25062
25063
25064   # Code from module multiarch:
25065
25066   # Code from module netdb:
25067
25068
25069
25070   :
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080   :
25081
25082
25083
25084
25085
25086
25087
25088      if test $gl_cv_have_include_next = yes; then
25089        gl_cv_next_netdb_h='<'netdb.h'>'
25090      else
25091        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
25092 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
25093 if test "${gl_cv_next_netdb_h+set}" = set; then
25094   $as_echo_n "(cached) " >&6
25095 else
25096
25097           if test $ac_cv_header_netdb_h = yes; then
25098             cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h.  */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h.  */
25104 #include <netdb.h>
25105
25106 _ACEOF
25107                                                                                                 case "$host_os" in
25108               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25109               *)    gl_absname_cpp="$ac_cpp" ;;
25110             esac
25111                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25112                sed -n '\#/netdb.h#{
25113                  s#.*"\(.*/netdb.h\)".*#\1#
25114                  s#^/[^/]#//&#
25115                  p
25116                  q
25117                }'`'"'
25118           else
25119             gl_cv_next_netdb_h='<'netdb.h'>'
25120           fi
25121
25122 fi
25123 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
25124 $as_echo "$gl_cv_next_netdb_h" >&6; }
25125      fi
25126      NEXT_NETDB_H=$gl_cv_next_netdb_h
25127
25128      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25129        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25130        gl_next_as_first_directive='<'netdb.h'>'
25131      else
25132        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25133        gl_next_as_first_directive=$gl_cv_next_netdb_h
25134      fi
25135      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
25136
25137
25138
25139   if test $ac_cv_header_netdb_h = yes; then
25140     HAVE_NETDB_H=1
25141   else
25142     HAVE_NETDB_H=0
25143   fi
25144
25145
25146
25147
25148
25149
25150
25151   for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
25152     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25153     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25154 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25155 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25156   $as_echo_n "(cached) " >&6
25157 else
25158   cat >conftest.$ac_ext <<_ACEOF
25159 /* confdefs.h.  */
25160 _ACEOF
25161 cat confdefs.h >>conftest.$ac_ext
25162 cat >>conftest.$ac_ext <<_ACEOF
25163 /* end confdefs.h.  */
25164 #include <netdb.h>
25165 int
25166 main ()
25167 {
25168 #undef $gl_func
25169   (void) $gl_func;
25170   ;
25171   return 0;
25172 }
25173 _ACEOF
25174 rm -f conftest.$ac_objext
25175 if { (ac_try="$ac_compile"
25176 case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25181 $as_echo "$ac_try_echo") >&5
25182   (eval "$ac_compile") 2>conftest.er1
25183   ac_status=$?
25184   grep -v '^ *+' conftest.er1 >conftest.err
25185   rm -f conftest.er1
25186   cat conftest.err >&5
25187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); } && {
25189          test -z "$ac_c_werror_flag" ||
25190          test ! -s conftest.err
25191        } && test -s conftest.$ac_objext; then
25192   eval "$as_gl_Symbol=yes"
25193 else
25194   $as_echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197         eval "$as_gl_Symbol=no"
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 fi
25202 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25203                  $as_echo "$as_val"'`
25204                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25205 $as_echo "$ac_res" >&6; }
25206      as_val=`eval 'as_val=${'$as_gl_Symbol'}
25207                  $as_echo "$as_val"'`
25208    if test "x$as_val" = x""yes; then
25209   cat >>confdefs.h <<_ACEOF
25210 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25211 _ACEOF
25212
25213                      eval ac_cv_have_decl_$gl_func=yes
25214 fi
25215
25216       done
25217
25218
25219   # Code from module netinet_in:
25220
25221   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
25222 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25223 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
25224   $as_echo_n "(cached) " >&6
25225 else
25226
25227       cat >conftest.$ac_ext <<_ACEOF
25228 /* confdefs.h.  */
25229 _ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h.  */
25233 #include <netinet/in.h>
25234 int
25235 main ()
25236 {
25237
25238   ;
25239   return 0;
25240 }
25241 _ACEOF
25242 rm -f conftest.$ac_objext
25243 if { (ac_try="$ac_compile"
25244 case "(($ac_try" in
25245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246   *) ac_try_echo=$ac_try;;
25247 esac
25248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25249 $as_echo "$ac_try_echo") >&5
25250   (eval "$ac_compile") 2>conftest.er1
25251   ac_status=$?
25252   grep -v '^ *+' conftest.er1 >conftest.err
25253   rm -f conftest.er1
25254   cat conftest.err >&5
25255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256   (exit $ac_status); } && {
25257          test -z "$ac_c_werror_flag" ||
25258          test ! -s conftest.err
25259        } && test -s conftest.$ac_objext; then
25260   gl_cv_header_netinet_in_h_selfcontained=yes
25261 else
25262   $as_echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265         gl_cv_header_netinet_in_h_selfcontained=no
25266 fi
25267
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269
25270 fi
25271 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25272 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25273   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25274     NETINET_IN_H=''
25275   else
25276     NETINET_IN_H='netinet/in.h'
25277
25278 for ac_header in netinet/in.h
25279 do
25280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25282   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25283 $as_echo_n "checking for $ac_header... " >&6; }
25284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25285   $as_echo_n "(cached) " >&6
25286 fi
25287 ac_res=`eval 'as_val=${'$as_ac_Header'}
25288                  $as_echo "$as_val"'`
25289                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25290 $as_echo "$ac_res" >&6; }
25291 else
25292   # Is the header compilable?
25293 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25294 $as_echo_n "checking $ac_header usability... " >&6; }
25295 cat >conftest.$ac_ext <<_ACEOF
25296 /* confdefs.h.  */
25297 _ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h.  */
25301 $ac_includes_default
25302 #include <$ac_header>
25303 _ACEOF
25304 rm -f conftest.$ac_objext
25305 if { (ac_try="$ac_compile"
25306 case "(($ac_try" in
25307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308   *) ac_try_echo=$ac_try;;
25309 esac
25310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25311 $as_echo "$ac_try_echo") >&5
25312   (eval "$ac_compile") 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } && {
25319          test -z "$ac_c_werror_flag" ||
25320          test ! -s conftest.err
25321        } && test -s conftest.$ac_objext; then
25322   ac_header_compiler=yes
25323 else
25324   $as_echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25326
25327         ac_header_compiler=no
25328 fi
25329
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 $as_echo "$ac_header_compiler" >&6; }
25333
25334 # Is the header present?
25335 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25336 $as_echo_n "checking $ac_header presence... " >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 #include <$ac_header>
25344 _ACEOF
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348   *) ac_try_echo=$ac_try;;
25349 esac
25350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25351 $as_echo "$ac_try_echo") >&5
25352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353   ac_status=$?
25354   grep -v '^ *+' conftest.er1 >conftest.err
25355   rm -f conftest.er1
25356   cat conftest.err >&5
25357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25358   (exit $ac_status); } >/dev/null && {
25359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25360          test ! -s conftest.err
25361        }; then
25362   ac_header_preproc=yes
25363 else
25364   $as_echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367   ac_header_preproc=no
25368 fi
25369
25370 rm -f conftest.err conftest.$ac_ext
25371 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25372 $as_echo "$ac_header_preproc" >&6; }
25373
25374 # So?  What about this header?
25375 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376   yes:no: )
25377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25378 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25380 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25381     ac_header_preproc=yes
25382     ;;
25383   no:yes:* )
25384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25387 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25389 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25390     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25391 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25392     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25393 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25394     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25395 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25396
25397     ;;
25398 esac
25399 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25400 $as_echo_n "checking for $ac_header... " >&6; }
25401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25402   $as_echo_n "(cached) " >&6
25403 else
25404   eval "$as_ac_Header=\$ac_header_preproc"
25405 fi
25406 ac_res=`eval 'as_val=${'$as_ac_Header'}
25407                  $as_echo "$as_val"'`
25408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25409 $as_echo "$ac_res" >&6; }
25410
25411 fi
25412 as_val=`eval 'as_val=${'$as_ac_Header'}
25413                  $as_echo "$as_val"'`
25414    if test "x$as_val" = x""yes; then
25415   cat >>confdefs.h <<_ACEOF
25416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25417 _ACEOF
25418
25419 fi
25420
25421 done
25422
25423
25424
25425
25426
25427   :
25428
25429
25430
25431
25432
25433
25434
25435      if test $gl_cv_have_include_next = yes; then
25436        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25437      else
25438        { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
25439 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25440 if test "${gl_cv_next_netinet_in_h+set}" = set; then
25441   $as_echo_n "(cached) " >&6
25442 else
25443
25444           if test $ac_cv_header_netinet_in_h = yes; then
25445             cat >conftest.$ac_ext <<_ACEOF
25446 /* confdefs.h.  */
25447 _ACEOF
25448 cat confdefs.h >>conftest.$ac_ext
25449 cat >>conftest.$ac_ext <<_ACEOF
25450 /* end confdefs.h.  */
25451 #include <netinet/in.h>
25452
25453 _ACEOF
25454                                                                                                 case "$host_os" in
25455               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25456               *)    gl_absname_cpp="$ac_cpp" ;;
25457             esac
25458                                                 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25459                sed -n '\#/netinet/in.h#{
25460                  s#.*"\(.*/netinet/in.h\)".*#\1#
25461                  s#^/[^/]#//&#
25462                  p
25463                  q
25464                }'`'"'
25465           else
25466             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25467           fi
25468
25469 fi
25470 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
25471 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25472      fi
25473      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
25474
25475      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25476        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25477        gl_next_as_first_directive='<'netinet/in.h'>'
25478      else
25479        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25480        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
25481      fi
25482      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
25483
25484
25485
25486     if test $ac_cv_header_netinet_in_h = yes; then
25487       HAVE_NETINET_IN_H=1
25488     else
25489       HAVE_NETINET_IN_H=0
25490     fi
25491
25492   fi
25493
25494
25495   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25496 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25497 if test -z "$MKDIR_P"; then
25498   if test "${ac_cv_path_mkdir+set}" = set; then
25499   $as_echo_n "(cached) " >&6
25500 else
25501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25502 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25503 do
25504   IFS=$as_save_IFS
25505   test -z "$as_dir" && as_dir=.
25506   for ac_prog in mkdir gmkdir; do
25507          for ac_exec_ext in '' $ac_executable_extensions; do
25508            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25509            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25510              'mkdir (GNU coreutils) '* | \
25511              'mkdir (coreutils) '* | \
25512              'mkdir (fileutils) '4.1*)
25513                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25514                break 3;;
25515            esac
25516          done
25517        done
25518 done
25519 IFS=$as_save_IFS
25520
25521 fi
25522
25523   if test "${ac_cv_path_mkdir+set}" = set; then
25524     MKDIR_P="$ac_cv_path_mkdir -p"
25525   else
25526     # As a last resort, use the slow shell script.  Don't cache a
25527     # value for MKDIR_P within a source directory, because that will
25528     # break other packages using the cache if that directory is
25529     # removed, or if the value is a relative name.
25530     test -d ./--version && rmdir ./--version
25531     MKDIR_P="$ac_install_sh -d"
25532   fi
25533 fi
25534 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25535 $as_echo "$MKDIR_P" >&6; }
25536
25537
25538   # Code from module nl_langinfo:
25539
25540
25541
25542
25543   :
25544
25545
25546
25547
25548
25549   if test $ac_cv_func_nl_langinfo = yes; then
25550     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
25551       :
25552     else
25553       REPLACE_NL_LANGINFO=1
25554
25555 cat >>confdefs.h <<\_ACEOF
25556 #define REPLACE_NL_LANGINFO 1
25557 _ACEOF
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25568
25569     fi
25570   else
25571     HAVE_NL_LANGINFO=0
25572
25573
25574
25575
25576
25577
25578
25579
25580   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25581
25582   fi
25583
25584
25585
25586
25587   GNULIB_NL_LANGINFO=1
25588
25589
25590
25591 cat >>confdefs.h <<\_ACEOF
25592 #define GNULIB_TEST_NL_LANGINFO 1
25593 _ACEOF
25594
25595
25596
25597   # Code from module physmem:
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
25608
25609
25610   # Prerequisites of lib/physmem.c.
25611
25612
25613
25614
25615
25616
25617
25618 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
25619     machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
25620 do
25621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25623 $as_echo_n "checking for $ac_header... " >&6; }
25624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25625   $as_echo_n "(cached) " >&6
25626 else
25627   cat >conftest.$ac_ext <<_ACEOF
25628 /* confdefs.h.  */
25629 _ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h.  */
25633 $ac_includes_default
25634
25635 #include <$ac_header>
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645   (eval "$ac_compile") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest.$ac_objext; then
25655   eval "$as_ac_Header=yes"
25656 else
25657   $as_echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660         eval "$as_ac_Header=no"
25661 fi
25662
25663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25664 fi
25665 ac_res=`eval 'as_val=${'$as_ac_Header'}
25666                  $as_echo "$as_val"'`
25667                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25668 $as_echo "$ac_res" >&6; }
25669 as_val=`eval 'as_val=${'$as_ac_Header'}
25670                  $as_echo "$as_val"'`
25671    if test "x$as_val" = x""yes; then
25672   cat >>confdefs.h <<_ACEOF
25673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25674 _ACEOF
25675
25676 fi
25677
25678 done
25679
25680
25681 for ac_header in sys/sysctl.h
25682 do
25683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25684 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25685 $as_echo_n "checking for $ac_header... " >&6; }
25686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25687   $as_echo_n "(cached) " >&6
25688 else
25689   cat >conftest.$ac_ext <<_ACEOF
25690 /* confdefs.h.  */
25691 _ACEOF
25692 cat confdefs.h >>conftest.$ac_ext
25693 cat >>conftest.$ac_ext <<_ACEOF
25694 /* end confdefs.h.  */
25695 $ac_includes_default
25696      #if HAVE_SYS_PARAM_H
25697      # include <sys/param.h>
25698      #endif
25699
25700
25701 #include <$ac_header>
25702 _ACEOF
25703 rm -f conftest.$ac_objext
25704 if { (ac_try="$ac_compile"
25705 case "(($ac_try" in
25706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25707   *) ac_try_echo=$ac_try;;
25708 esac
25709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25710 $as_echo "$ac_try_echo") >&5
25711   (eval "$ac_compile") 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } && {
25718          test -z "$ac_c_werror_flag" ||
25719          test ! -s conftest.err
25720        } && test -s conftest.$ac_objext; then
25721   eval "$as_ac_Header=yes"
25722 else
25723   $as_echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726         eval "$as_ac_Header=no"
25727 fi
25728
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25730 fi
25731 ac_res=`eval 'as_val=${'$as_ac_Header'}
25732                  $as_echo "$as_val"'`
25733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25734 $as_echo "$ac_res" >&6; }
25735 as_val=`eval 'as_val=${'$as_ac_Header'}
25736                  $as_echo "$as_val"'`
25737    if test "x$as_val" = x""yes; then
25738   cat >>confdefs.h <<_ACEOF
25739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25740 _ACEOF
25741
25742 fi
25743
25744 done
25745
25746
25747
25748
25749
25750
25751
25752
25753 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
25754 do
25755 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25756 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25757 $as_echo_n "checking for $ac_func... " >&6; }
25758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25759   $as_echo_n "(cached) " >&6
25760 else
25761   cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h.  */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h.  */
25767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25769 #define $ac_func innocuous_$ac_func
25770
25771 /* System header to define __stub macros and hopefully few prototypes,
25772     which can conflict with char $ac_func (); below.
25773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25774     <limits.h> exists even on freestanding compilers.  */
25775
25776 #ifdef __STDC__
25777 # include <limits.h>
25778 #else
25779 # include <assert.h>
25780 #endif
25781
25782 #undef $ac_func
25783
25784 /* Override any GCC internal prototype to avoid an error.
25785    Use char because int might match the return type of a GCC
25786    builtin and then its argument prototype would still apply.  */
25787 #ifdef __cplusplus
25788 extern "C"
25789 #endif
25790 char $ac_func ();
25791 /* The GNU C library defines this for functions which it implements
25792     to always fail with ENOSYS.  Some functions are actually named
25793     something starting with __ and the normal name is an alias.  */
25794 #if defined __stub_$ac_func || defined __stub___$ac_func
25795 choke me
25796 #endif
25797
25798 int
25799 main ()
25800 {
25801 return $ac_func ();
25802   ;
25803   return 0;
25804 }
25805 _ACEOF
25806 rm -f conftest.$ac_objext conftest$ac_exeext
25807 if { (ac_try="$ac_link"
25808 case "(($ac_try" in
25809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25810   *) ac_try_echo=$ac_try;;
25811 esac
25812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25813 $as_echo "$ac_try_echo") >&5
25814   (eval "$ac_link") 2>conftest.er1
25815   ac_status=$?
25816   grep -v '^ *+' conftest.er1 >conftest.err
25817   rm -f conftest.er1
25818   cat conftest.err >&5
25819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } && {
25821          test -z "$ac_c_werror_flag" ||
25822          test ! -s conftest.err
25823        } && test -s conftest$ac_exeext && {
25824          test "$cross_compiling" = yes ||
25825          $as_test_x conftest$ac_exeext
25826        }; then
25827   eval "$as_ac_var=yes"
25828 else
25829   $as_echo "$as_me: failed program was:" >&5
25830 sed 's/^/| /' conftest.$ac_ext >&5
25831
25832         eval "$as_ac_var=no"
25833 fi
25834
25835 rm -rf conftest.dSYM
25836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25837       conftest$ac_exeext conftest.$ac_ext
25838 fi
25839 ac_res=`eval 'as_val=${'$as_ac_var'}
25840                  $as_echo "$as_val"'`
25841                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25842 $as_echo "$ac_res" >&6; }
25843 as_val=`eval 'as_val=${'$as_ac_var'}
25844                  $as_echo "$as_val"'`
25845    if test "x$as_val" = x""yes; then
25846   cat >>confdefs.h <<_ACEOF
25847 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25848 _ACEOF
25849
25850 fi
25851 done
25852
25853
25854
25855   # Code from module regex:
25856
25857
25858   :
25859
25860
25861
25862
25863
25864
25865
25866 # Check whether --with-included-regex was given.
25867 if test "${with_included_regex+set}" = set; then
25868   withval=$with_included_regex;
25869 fi
25870
25871
25872   case $with_included_regex in #(
25873   yes|no) ac_use_included_regex=$with_included_regex
25874         ;;
25875   '')
25876     # If the system regex support is good enough that it passes the
25877     # following run test, then default to *not* using the included regex.c.
25878     # If cross compiling, assume the test would fail and use the included
25879     # regex.c.
25880     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25881 $as_echo_n "checking for working re_compile_pattern... " >&6; }
25882 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25883   $as_echo_n "(cached) " >&6
25884 else
25885   if test "$cross_compiling" = yes; then
25886          gl_cv_func_re_compile_pattern_working=no
25887 else
25888   cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h.  */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h.  */
25894 $ac_includes_default
25895            #if HAVE_LOCALE_H
25896             #include <locale.h>
25897            #endif
25898            #include <limits.h>
25899            #include <regex.h>
25900
25901 int
25902 main ()
25903 {
25904 static struct re_pattern_buffer regex;
25905             unsigned char folded_chars[UCHAR_MAX + 1];
25906             int i;
25907             const char *s;
25908             struct re_registers regs;
25909
25910             #if HAVE_LOCALE_H
25911               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25912                  This test needs valgrind to catch the bug on Debian
25913                  GNU/Linux 3.1 x86, but it might catch the bug better
25914                  on other platforms and it shouldn't hurt to try the
25915                  test here.  */
25916               if (setlocale (LC_ALL, "en_US.UTF-8"))
25917                 {
25918                   static char const pat[] = "insert into";
25919                   static char const data[] =
25920                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25921                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25922                                  | RE_ICASE);
25923                   memset (&regex, 0, sizeof regex);
25924                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
25925                   if (s)
25926                     return 1;
25927                   if (re_search (&regex, data, sizeof data - 1,
25928                                  0, sizeof data - 1, &regs)
25929                       != -1)
25930                     return 1;
25931                   if (! setlocale (LC_ALL, "C"))
25932                     return 1;
25933                 }
25934             #endif
25935
25936             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
25937             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25938             memset (&regex, 0, sizeof regex);
25939             s = re_compile_pattern ("a[^x]b", 6, &regex);
25940             if (s)
25941               return 1;
25942
25943             /* This should fail, but succeeds for glibc-2.5.  */
25944             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
25945               return 1;
25946
25947             /* This regular expression is from Spencer ere test number 75
25948                in grep-2.3.  */
25949             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25950             memset (&regex, 0, sizeof regex);
25951             for (i = 0; i <= UCHAR_MAX; i++)
25952               folded_chars[i] = i;
25953             regex.translate = folded_chars;
25954             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
25955             /* This should fail with _Invalid character class name_ error.  */
25956             if (!s)
25957               return 1;
25958
25959             /* Ensure that [b-a] is diagnosed as invalid, when
25960                using RE_NO_EMPTY_RANGES. */
25961             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
25962             memset (&regex, 0, sizeof regex);
25963             s = re_compile_pattern ("a[b-a]", 6, &regex);
25964             if (s == 0)
25965               return 1;
25966
25967             /* This should succeed, but does not for glibc-2.1.3.  */
25968             memset (&regex, 0, sizeof regex);
25969             s = re_compile_pattern ("{1", 2, &regex);
25970
25971             if (s)
25972               return 1;
25973
25974             /* The following example is derived from a problem report
25975                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
25976             memset (&regex, 0, sizeof regex);
25977             s = re_compile_pattern ("[an\371]*n", 7, &regex);
25978             if (s)
25979               return 1;
25980
25981             /* This should match, but does not for glibc-2.2.1.  */
25982             if (re_match (&regex, "an", 2, 0, &regs) != 2)
25983               return 1;
25984
25985             memset (&regex, 0, sizeof regex);
25986             s = re_compile_pattern ("x", 1, &regex);
25987             if (s)
25988               return 1;
25989
25990             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
25991             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
25992               return 1;
25993
25994             /* The version of regex.c in older versions of gnulib
25995                ignored RE_ICASE.  Detect that problem too.  */
25996             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25997             memset (&regex, 0, sizeof regex);
25998             s = re_compile_pattern ("x", 1, &regex);
25999             if (s)
26000               return 1;
26001
26002             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
26003               return 1;
26004
26005             /* Catch a bug reported by Vin Shelton in
26006                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
26007                */
26008             re_set_syntax (RE_SYNTAX_POSIX_BASIC
26009                            & ~RE_CONTEXT_INVALID_DUP
26010                            & ~RE_NO_EMPTY_RANGES);
26011             memset (&regex, 0, sizeof regex);
26012             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
26013             if (s)
26014               return 1;
26015
26016             /* REG_STARTEND was added to glibc on 2004-01-15.
26017                Reject older versions.  */
26018             if (! REG_STARTEND)
26019               return 1;
26020
26021             /* Reject hosts whose regoff_t values are too narrow.
26022                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
26023                and 32-bit int.  */
26024             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
26025                 || sizeof (regoff_t) < sizeof (ssize_t))
26026               return 1;
26027
26028             return 0;
26029   ;
26030   return 0;
26031 }
26032 _ACEOF
26033 rm -f conftest$ac_exeext
26034 if { (ac_try="$ac_link"
26035 case "(($ac_try" in
26036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037   *) ac_try_echo=$ac_try;;
26038 esac
26039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26040 $as_echo "$ac_try_echo") >&5
26041   (eval "$ac_link") 2>&5
26042   ac_status=$?
26043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26045   { (case "(($ac_try" in
26046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047   *) ac_try_echo=$ac_try;;
26048 esac
26049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26050 $as_echo "$ac_try_echo") >&5
26051   (eval "$ac_try") 2>&5
26052   ac_status=$?
26053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; }; then
26055   gl_cv_func_re_compile_pattern_working=yes
26056 else
26057   $as_echo "$as_me: program exited with status $ac_status" >&5
26058 $as_echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26060
26061 ( exit $ac_status )
26062 gl_cv_func_re_compile_pattern_working=no
26063 fi
26064 rm -rf conftest.dSYM
26065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26066 fi
26067
26068
26069 fi
26070 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
26071 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
26072     case $gl_cv_func_re_compile_pattern_working in #(
26073     yes) ac_use_included_regex=no;; #(
26074     no) ac_use_included_regex=yes;;
26075     esac
26076     ;;
26077   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
26078 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
26079    { (exit 1); exit 1; }; }
26080     ;;
26081   esac
26082
26083   if test $ac_use_included_regex = yes; then
26084
26085 cat >>confdefs.h <<\_ACEOF
26086 #define _REGEX_LARGE_OFFSETS 1
26087 _ACEOF
26088
26089
26090 cat >>confdefs.h <<\_ACEOF
26091 #define re_syntax_options rpl_re_syntax_options
26092 _ACEOF
26093
26094
26095 cat >>confdefs.h <<\_ACEOF
26096 #define re_set_syntax rpl_re_set_syntax
26097 _ACEOF
26098
26099
26100 cat >>confdefs.h <<\_ACEOF
26101 #define re_compile_pattern rpl_re_compile_pattern
26102 _ACEOF
26103
26104
26105 cat >>confdefs.h <<\_ACEOF
26106 #define re_compile_fastmap rpl_re_compile_fastmap
26107 _ACEOF
26108
26109
26110 cat >>confdefs.h <<\_ACEOF
26111 #define re_search rpl_re_search
26112 _ACEOF
26113
26114
26115 cat >>confdefs.h <<\_ACEOF
26116 #define re_search_2 rpl_re_search_2
26117 _ACEOF
26118
26119
26120 cat >>confdefs.h <<\_ACEOF
26121 #define re_match rpl_re_match
26122 _ACEOF
26123
26124
26125 cat >>confdefs.h <<\_ACEOF
26126 #define re_match_2 rpl_re_match_2
26127 _ACEOF
26128
26129
26130 cat >>confdefs.h <<\_ACEOF
26131 #define re_set_registers rpl_re_set_registers
26132 _ACEOF
26133
26134
26135 cat >>confdefs.h <<\_ACEOF
26136 #define re_comp rpl_re_comp
26137 _ACEOF
26138
26139
26140 cat >>confdefs.h <<\_ACEOF
26141 #define re_exec rpl_re_exec
26142 _ACEOF
26143
26144
26145 cat >>confdefs.h <<\_ACEOF
26146 #define regcomp rpl_regcomp
26147 _ACEOF
26148
26149
26150 cat >>confdefs.h <<\_ACEOF
26151 #define regexec rpl_regexec
26152 _ACEOF
26153
26154
26155 cat >>confdefs.h <<\_ACEOF
26156 #define regerror rpl_regerror
26157 _ACEOF
26158
26159
26160 cat >>confdefs.h <<\_ACEOF
26161 #define regfree rpl_regfree
26162 _ACEOF
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
26173
26174
26175
26176
26177
26178
26179
26180 for ac_header in libintl.h
26181 do
26182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26184   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26185 $as_echo_n "checking for $ac_header... " >&6; }
26186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26187   $as_echo_n "(cached) " >&6
26188 fi
26189 ac_res=`eval 'as_val=${'$as_ac_Header'}
26190                  $as_echo "$as_val"'`
26191                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26192 $as_echo "$ac_res" >&6; }
26193 else
26194   # Is the header compilable?
26195 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26196 $as_echo_n "checking $ac_header usability... " >&6; }
26197 cat >conftest.$ac_ext <<_ACEOF
26198 /* confdefs.h.  */
26199 _ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h.  */
26203 $ac_includes_default
26204 #include <$ac_header>
26205 _ACEOF
26206 rm -f conftest.$ac_objext
26207 if { (ac_try="$ac_compile"
26208 case "(($ac_try" in
26209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26210   *) ac_try_echo=$ac_try;;
26211 esac
26212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26213 $as_echo "$ac_try_echo") >&5
26214   (eval "$ac_compile") 2>conftest.er1
26215   ac_status=$?
26216   grep -v '^ *+' conftest.er1 >conftest.err
26217   rm -f conftest.er1
26218   cat conftest.err >&5
26219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220   (exit $ac_status); } && {
26221          test -z "$ac_c_werror_flag" ||
26222          test ! -s conftest.err
26223        } && test -s conftest.$ac_objext; then
26224   ac_header_compiler=yes
26225 else
26226   $as_echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26228
26229         ac_header_compiler=no
26230 fi
26231
26232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26234 $as_echo "$ac_header_compiler" >&6; }
26235
26236 # Is the header present?
26237 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26238 $as_echo_n "checking $ac_header presence... " >&6; }
26239 cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245 #include <$ac_header>
26246 _ACEOF
26247 if { (ac_try="$ac_cpp conftest.$ac_ext"
26248 case "(($ac_try" in
26249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26250   *) ac_try_echo=$ac_try;;
26251 esac
26252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26253 $as_echo "$ac_try_echo") >&5
26254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26255   ac_status=$?
26256   grep -v '^ *+' conftest.er1 >conftest.err
26257   rm -f conftest.er1
26258   cat conftest.err >&5
26259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); } >/dev/null && {
26261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26262          test ! -s conftest.err
26263        }; then
26264   ac_header_preproc=yes
26265 else
26266   $as_echo "$as_me: failed program was:" >&5
26267 sed 's/^/| /' conftest.$ac_ext >&5
26268
26269   ac_header_preproc=no
26270 fi
26271
26272 rm -f conftest.err conftest.$ac_ext
26273 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26274 $as_echo "$ac_header_preproc" >&6; }
26275
26276 # So?  What about this header?
26277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26278   yes:no: )
26279     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26280 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26281     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26282 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26283     ac_header_preproc=yes
26284     ;;
26285   no:yes:* )
26286     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26287 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26288     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26289 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26290     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26291 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26293 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26295 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26297 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26298
26299     ;;
26300 esac
26301 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26302 $as_echo_n "checking for $ac_header... " >&6; }
26303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26304   $as_echo_n "(cached) " >&6
26305 else
26306   eval "$as_ac_Header=\$ac_header_preproc"
26307 fi
26308 ac_res=`eval 'as_val=${'$as_ac_Header'}
26309                  $as_echo "$as_val"'`
26310                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26311 $as_echo "$ac_res" >&6; }
26312
26313 fi
26314 as_val=`eval 'as_val=${'$as_ac_Header'}
26315                  $as_echo "$as_val"'`
26316    if test "x$as_val" = x""yes; then
26317   cat >>confdefs.h <<_ACEOF
26318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26319 _ACEOF
26320
26321 fi
26322
26323 done
26324
26325
26326   :
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
26339 $as_echo_n "checking whether isblank is declared... " >&6; }
26340 if test "${ac_cv_have_decl_isblank+set}" = set; then
26341   $as_echo_n "(cached) " >&6
26342 else
26343   cat >conftest.$ac_ext <<_ACEOF
26344 /* confdefs.h.  */
26345 _ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h.  */
26349 #include <ctype.h>
26350
26351 int
26352 main ()
26353 {
26354 #ifndef isblank
26355   (void) isblank;
26356 #endif
26357
26358   ;
26359   return 0;
26360 }
26361 _ACEOF
26362 rm -f conftest.$ac_objext
26363 if { (ac_try="$ac_compile"
26364 case "(($ac_try" in
26365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366   *) ac_try_echo=$ac_try;;
26367 esac
26368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26369 $as_echo "$ac_try_echo") >&5
26370   (eval "$ac_compile") 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } && {
26377          test -z "$ac_c_werror_flag" ||
26378          test ! -s conftest.err
26379        } && test -s conftest.$ac_objext; then
26380   ac_cv_have_decl_isblank=yes
26381 else
26382   $as_echo "$as_me: failed program was:" >&5
26383 sed 's/^/| /' conftest.$ac_ext >&5
26384
26385         ac_cv_have_decl_isblank=no
26386 fi
26387
26388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26389 fi
26390 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
26391 $as_echo "$ac_cv_have_decl_isblank" >&6; }
26392 if test "x$ac_cv_have_decl_isblank" = x""yes; then
26393
26394 cat >>confdefs.h <<_ACEOF
26395 #define HAVE_DECL_ISBLANK 1
26396 _ACEOF
26397
26398
26399 else
26400   cat >>confdefs.h <<_ACEOF
26401 #define HAVE_DECL_ISBLANK 0
26402 _ACEOF
26403
26404
26405 fi
26406
26407
26408
26409   fi
26410
26411   # Code from module safe-read:
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
26422
26423
26424
26425
26426
26427
26428   # Code from module safe-write:
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
26439
26440
26441
26442
26443
26444
26445
26446
26447   # Code from module servent:
26448
26449                       SERVENT_LIB=
26450   gl_saved_libs="$LIBS"
26451   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
26452 $as_echo_n "checking for library containing getservbyname... " >&6; }
26453 if test "${ac_cv_search_getservbyname+set}" = set; then
26454   $as_echo_n "(cached) " >&6
26455 else
26456   ac_func_search_save_LIBS=$LIBS
26457 cat >conftest.$ac_ext <<_ACEOF
26458 /* confdefs.h.  */
26459 _ACEOF
26460 cat confdefs.h >>conftest.$ac_ext
26461 cat >>conftest.$ac_ext <<_ACEOF
26462 /* end confdefs.h.  */
26463
26464 /* Override any GCC internal prototype to avoid an error.
26465    Use char because int might match the return type of a GCC
26466    builtin and then its argument prototype would still apply.  */
26467 #ifdef __cplusplus
26468 extern "C"
26469 #endif
26470 char getservbyname ();
26471 int
26472 main ()
26473 {
26474 return getservbyname ();
26475   ;
26476   return 0;
26477 }
26478 _ACEOF
26479 for ac_lib in '' socket network net; do
26480   if test -z "$ac_lib"; then
26481     ac_res="none required"
26482   else
26483     ac_res=-l$ac_lib
26484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26485   fi
26486   rm -f conftest.$ac_objext conftest$ac_exeext
26487 if { (ac_try="$ac_link"
26488 case "(($ac_try" in
26489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26490   *) ac_try_echo=$ac_try;;
26491 esac
26492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26493 $as_echo "$ac_try_echo") >&5
26494   (eval "$ac_link") 2>conftest.er1
26495   ac_status=$?
26496   grep -v '^ *+' conftest.er1 >conftest.err
26497   rm -f conftest.er1
26498   cat conftest.err >&5
26499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500   (exit $ac_status); } && {
26501          test -z "$ac_c_werror_flag" ||
26502          test ! -s conftest.err
26503        } && test -s conftest$ac_exeext && {
26504          test "$cross_compiling" = yes ||
26505          $as_test_x conftest$ac_exeext
26506        }; then
26507   ac_cv_search_getservbyname=$ac_res
26508 else
26509   $as_echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26511
26512
26513 fi
26514
26515 rm -rf conftest.dSYM
26516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26517       conftest$ac_exeext
26518   if test "${ac_cv_search_getservbyname+set}" = set; then
26519   break
26520 fi
26521 done
26522 if test "${ac_cv_search_getservbyname+set}" = set; then
26523   :
26524 else
26525   ac_cv_search_getservbyname=no
26526 fi
26527 rm conftest.$ac_ext
26528 LIBS=$ac_func_search_save_LIBS
26529 fi
26530 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
26531 $as_echo "$ac_cv_search_getservbyname" >&6; }
26532 ac_res=$ac_cv_search_getservbyname
26533 if test "$ac_res" != no; then
26534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26535   if test "$ac_cv_search_getservbyname" != "none required"; then
26536        SERVENT_LIB="$ac_cv_search_getservbyname"
26537      fi
26538 fi
26539
26540   LIBS="$gl_saved_libs"
26541   if test -z "$SERVENT_LIB"; then
26542
26543 for ac_func in getservbyname
26544 do
26545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26547 $as_echo_n "checking for $ac_func... " >&6; }
26548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26549   $as_echo_n "(cached) " >&6
26550 else
26551   cat >conftest.$ac_ext <<_ACEOF
26552 /* confdefs.h.  */
26553 _ACEOF
26554 cat confdefs.h >>conftest.$ac_ext
26555 cat >>conftest.$ac_ext <<_ACEOF
26556 /* end confdefs.h.  */
26557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26559 #define $ac_func innocuous_$ac_func
26560
26561 /* System header to define __stub macros and hopefully few prototypes,
26562     which can conflict with char $ac_func (); below.
26563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26564     <limits.h> exists even on freestanding compilers.  */
26565
26566 #ifdef __STDC__
26567 # include <limits.h>
26568 #else
26569 # include <assert.h>
26570 #endif
26571
26572 #undef $ac_func
26573
26574 /* Override any GCC internal prototype to avoid an error.
26575    Use char because int might match the return type of a GCC
26576    builtin and then its argument prototype would still apply.  */
26577 #ifdef __cplusplus
26578 extern "C"
26579 #endif
26580 char $ac_func ();
26581 /* The GNU C library defines this for functions which it implements
26582     to always fail with ENOSYS.  Some functions are actually named
26583     something starting with __ and the normal name is an alias.  */
26584 #if defined __stub_$ac_func || defined __stub___$ac_func
26585 choke me
26586 #endif
26587
26588 int
26589 main ()
26590 {
26591 return $ac_func ();
26592   ;
26593   return 0;
26594 }
26595 _ACEOF
26596 rm -f conftest.$ac_objext conftest$ac_exeext
26597 if { (ac_try="$ac_link"
26598 case "(($ac_try" in
26599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600   *) ac_try_echo=$ac_try;;
26601 esac
26602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26603 $as_echo "$ac_try_echo") >&5
26604   (eval "$ac_link") 2>conftest.er1
26605   ac_status=$?
26606   grep -v '^ *+' conftest.er1 >conftest.err
26607   rm -f conftest.er1
26608   cat conftest.err >&5
26609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); } && {
26611          test -z "$ac_c_werror_flag" ||
26612          test ! -s conftest.err
26613        } && test -s conftest$ac_exeext && {
26614          test "$cross_compiling" = yes ||
26615          $as_test_x conftest$ac_exeext
26616        }; then
26617   eval "$as_ac_var=yes"
26618 else
26619   $as_echo "$as_me: failed program was:" >&5
26620 sed 's/^/| /' conftest.$ac_ext >&5
26621
26622         eval "$as_ac_var=no"
26623 fi
26624
26625 rm -rf conftest.dSYM
26626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26627       conftest$ac_exeext conftest.$ac_ext
26628 fi
26629 ac_res=`eval 'as_val=${'$as_ac_var'}
26630                  $as_echo "$as_val"'`
26631                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26632 $as_echo "$ac_res" >&6; }
26633 as_val=`eval 'as_val=${'$as_ac_var'}
26634                  $as_echo "$as_val"'`
26635    if test "x$as_val" = x""yes; then
26636   cat >>confdefs.h <<_ACEOF
26637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26638 _ACEOF
26639
26640 else
26641
26642       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
26643 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
26644 if test "${gl_cv_w32_getservbyname+set}" = set; then
26645   $as_echo_n "(cached) " >&6
26646 else
26647   gl_cv_w32_getservbyname=no
26648          gl_save_LIBS="$LIBS"
26649          LIBS="$LIBS -lws2_32"
26650          cat >conftest.$ac_ext <<_ACEOF
26651 /* confdefs.h.  */
26652 _ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h.  */
26656
26657 #ifdef HAVE_WINSOCK2_H
26658 #include <winsock2.h>
26659 #endif
26660 #include <stddef.h>
26661
26662 int
26663 main ()
26664 {
26665 getservbyname(NULL,NULL);
26666   ;
26667   return 0;
26668 }
26669 _ACEOF
26670 rm -f conftest.$ac_objext conftest$ac_exeext
26671 if { (ac_try="$ac_link"
26672 case "(($ac_try" in
26673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26674   *) ac_try_echo=$ac_try;;
26675 esac
26676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26677 $as_echo "$ac_try_echo") >&5
26678   (eval "$ac_link") 2>conftest.er1
26679   ac_status=$?
26680   grep -v '^ *+' conftest.er1 >conftest.err
26681   rm -f conftest.er1
26682   cat conftest.err >&5
26683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26684   (exit $ac_status); } && {
26685          test -z "$ac_c_werror_flag" ||
26686          test ! -s conftest.err
26687        } && test -s conftest$ac_exeext && {
26688          test "$cross_compiling" = yes ||
26689          $as_test_x conftest$ac_exeext
26690        }; then
26691   gl_cv_w32_getservbyname=yes
26692 else
26693   $as_echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26695
26696
26697 fi
26698
26699 rm -rf conftest.dSYM
26700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26701       conftest$ac_exeext conftest.$ac_ext
26702          LIBS="$gl_save_LIBS"
26703
26704 fi
26705 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
26706 $as_echo "$gl_cv_w32_getservbyname" >&6; }
26707       if test "$gl_cv_w32_getservbyname" = "yes"; then
26708         SERVENT_LIB="-lws2_32"
26709       fi
26710
26711 fi
26712 done
26713
26714   fi
26715
26716
26717   # Code from module size_max:
26718
26719
26720 for ac_header in stdint.h
26721 do
26722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26724   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26725 $as_echo_n "checking for $ac_header... " >&6; }
26726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26727   $as_echo_n "(cached) " >&6
26728 fi
26729 ac_res=`eval 'as_val=${'$as_ac_Header'}
26730                  $as_echo "$as_val"'`
26731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26732 $as_echo "$ac_res" >&6; }
26733 else
26734   # Is the header compilable?
26735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26736 $as_echo_n "checking $ac_header usability... " >&6; }
26737 cat >conftest.$ac_ext <<_ACEOF
26738 /* confdefs.h.  */
26739 _ACEOF
26740 cat confdefs.h >>conftest.$ac_ext
26741 cat >>conftest.$ac_ext <<_ACEOF
26742 /* end confdefs.h.  */
26743 $ac_includes_default
26744 #include <$ac_header>
26745 _ACEOF
26746 rm -f conftest.$ac_objext
26747 if { (ac_try="$ac_compile"
26748 case "(($ac_try" in
26749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750   *) ac_try_echo=$ac_try;;
26751 esac
26752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26753 $as_echo "$ac_try_echo") >&5
26754   (eval "$ac_compile") 2>conftest.er1
26755   ac_status=$?
26756   grep -v '^ *+' conftest.er1 >conftest.err
26757   rm -f conftest.er1
26758   cat conftest.err >&5
26759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26760   (exit $ac_status); } && {
26761          test -z "$ac_c_werror_flag" ||
26762          test ! -s conftest.err
26763        } && test -s conftest.$ac_objext; then
26764   ac_header_compiler=yes
26765 else
26766   $as_echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769         ac_header_compiler=no
26770 fi
26771
26772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26774 $as_echo "$ac_header_compiler" >&6; }
26775
26776 # Is the header present?
26777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26778 $as_echo_n "checking $ac_header presence... " >&6; }
26779 cat >conftest.$ac_ext <<_ACEOF
26780 /* confdefs.h.  */
26781 _ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h.  */
26785 #include <$ac_header>
26786 _ACEOF
26787 if { (ac_try="$ac_cpp conftest.$ac_ext"
26788 case "(($ac_try" in
26789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26790   *) ac_try_echo=$ac_try;;
26791 esac
26792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26793 $as_echo "$ac_try_echo") >&5
26794   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26795   ac_status=$?
26796   grep -v '^ *+' conftest.er1 >conftest.err
26797   rm -f conftest.er1
26798   cat conftest.err >&5
26799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26800   (exit $ac_status); } >/dev/null && {
26801          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26802          test ! -s conftest.err
26803        }; then
26804   ac_header_preproc=yes
26805 else
26806   $as_echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26808
26809   ac_header_preproc=no
26810 fi
26811
26812 rm -f conftest.err conftest.$ac_ext
26813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26814 $as_echo "$ac_header_preproc" >&6; }
26815
26816 # So?  What about this header?
26817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26818   yes:no: )
26819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26823     ac_header_preproc=yes
26824     ;;
26825   no:yes:* )
26826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26828     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26829 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26833 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26838
26839     ;;
26840 esac
26841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26842 $as_echo_n "checking for $ac_header... " >&6; }
26843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26844   $as_echo_n "(cached) " >&6
26845 else
26846   eval "$as_ac_Header=\$ac_header_preproc"
26847 fi
26848 ac_res=`eval 'as_val=${'$as_ac_Header'}
26849                  $as_echo "$as_val"'`
26850                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26851 $as_echo "$ac_res" >&6; }
26852
26853 fi
26854 as_val=`eval 'as_val=${'$as_ac_Header'}
26855                  $as_echo "$as_val"'`
26856    if test "x$as_val" = x""yes; then
26857   cat >>confdefs.h <<_ACEOF
26858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26859 _ACEOF
26860
26861 fi
26862
26863 done
26864
26865     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26866 $as_echo_n "checking for SIZE_MAX... " >&6; }
26867   result=
26868   cat >conftest.$ac_ext <<_ACEOF
26869 /* confdefs.h.  */
26870 _ACEOF
26871 cat confdefs.h >>conftest.$ac_ext
26872 cat >>conftest.$ac_ext <<_ACEOF
26873 /* end confdefs.h.  */
26874
26875 #include <limits.h>
26876 #if HAVE_STDINT_H
26877 #include <stdint.h>
26878 #endif
26879 #ifdef SIZE_MAX
26880 Found it
26881 #endif
26882
26883 _ACEOF
26884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26885   $EGREP "Found it" >/dev/null 2>&1; then
26886   result=yes
26887 fi
26888 rm -f conftest*
26889
26890   if test -z "$result"; then
26891                 if test "$cross_compiling" = yes; then
26892   # Depending upon the size, compute the lo and hi bounds.
26893 cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 #include <stddef.h>
26900 #include <limits.h>
26901 int
26902 main ()
26903 {
26904 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
26905 test_array [0] = 0
26906
26907   ;
26908   return 0;
26909 }
26910 _ACEOF
26911 rm -f conftest.$ac_objext
26912 if { (ac_try="$ac_compile"
26913 case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26918 $as_echo "$ac_try_echo") >&5
26919   (eval "$ac_compile") 2>conftest.er1
26920   ac_status=$?
26921   grep -v '^ *+' conftest.er1 >conftest.err
26922   rm -f conftest.er1
26923   cat conftest.err >&5
26924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925   (exit $ac_status); } && {
26926          test -z "$ac_c_werror_flag" ||
26927          test ! -s conftest.err
26928        } && test -s conftest.$ac_objext; then
26929   ac_lo=0 ac_mid=0
26930   while :; do
26931     cat >conftest.$ac_ext <<_ACEOF
26932 /* confdefs.h.  */
26933 _ACEOF
26934 cat confdefs.h >>conftest.$ac_ext
26935 cat >>conftest.$ac_ext <<_ACEOF
26936 /* end confdefs.h.  */
26937 #include <stddef.h>
26938 #include <limits.h>
26939 int
26940 main ()
26941 {
26942 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26943 test_array [0] = 0
26944
26945   ;
26946   return 0;
26947 }
26948 _ACEOF
26949 rm -f conftest.$ac_objext
26950 if { (ac_try="$ac_compile"
26951 case "(($ac_try" in
26952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953   *) ac_try_echo=$ac_try;;
26954 esac
26955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26956 $as_echo "$ac_try_echo") >&5
26957   (eval "$ac_compile") 2>conftest.er1
26958   ac_status=$?
26959   grep -v '^ *+' conftest.er1 >conftest.err
26960   rm -f conftest.er1
26961   cat conftest.err >&5
26962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963   (exit $ac_status); } && {
26964          test -z "$ac_c_werror_flag" ||
26965          test ! -s conftest.err
26966        } && test -s conftest.$ac_objext; then
26967   ac_hi=$ac_mid; break
26968 else
26969   $as_echo "$as_me: failed program was:" >&5
26970 sed 's/^/| /' conftest.$ac_ext >&5
26971
26972         ac_lo=`expr $ac_mid + 1`
26973                         if test $ac_lo -le $ac_mid; then
26974                           ac_lo= ac_hi=
26975                           break
26976                         fi
26977                         ac_mid=`expr 2 '*' $ac_mid + 1`
26978 fi
26979
26980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26981   done
26982 else
26983   $as_echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986         cat >conftest.$ac_ext <<_ACEOF
26987 /* confdefs.h.  */
26988 _ACEOF
26989 cat confdefs.h >>conftest.$ac_ext
26990 cat >>conftest.$ac_ext <<_ACEOF
26991 /* end confdefs.h.  */
26992 #include <stddef.h>
26993 #include <limits.h>
26994 int
26995 main ()
26996 {
26997 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
26998 test_array [0] = 0
26999
27000   ;
27001   return 0;
27002 }
27003 _ACEOF
27004 rm -f conftest.$ac_objext
27005 if { (ac_try="$ac_compile"
27006 case "(($ac_try" in
27007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008   *) ac_try_echo=$ac_try;;
27009 esac
27010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27011 $as_echo "$ac_try_echo") >&5
27012   (eval "$ac_compile") 2>conftest.er1
27013   ac_status=$?
27014   grep -v '^ *+' conftest.er1 >conftest.err
27015   rm -f conftest.er1
27016   cat conftest.err >&5
27017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); } && {
27019          test -z "$ac_c_werror_flag" ||
27020          test ! -s conftest.err
27021        } && test -s conftest.$ac_objext; then
27022   ac_hi=-1 ac_mid=-1
27023   while :; do
27024     cat >conftest.$ac_ext <<_ACEOF
27025 /* confdefs.h.  */
27026 _ACEOF
27027 cat confdefs.h >>conftest.$ac_ext
27028 cat >>conftest.$ac_ext <<_ACEOF
27029 /* end confdefs.h.  */
27030 #include <stddef.h>
27031 #include <limits.h>
27032 int
27033 main ()
27034 {
27035 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27036 test_array [0] = 0
27037
27038   ;
27039   return 0;
27040 }
27041 _ACEOF
27042 rm -f conftest.$ac_objext
27043 if { (ac_try="$ac_compile"
27044 case "(($ac_try" in
27045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27046   *) ac_try_echo=$ac_try;;
27047 esac
27048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27049 $as_echo "$ac_try_echo") >&5
27050   (eval "$ac_compile") 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } && {
27057          test -z "$ac_c_werror_flag" ||
27058          test ! -s conftest.err
27059        } && test -s conftest.$ac_objext; then
27060   ac_lo=$ac_mid; break
27061 else
27062   $as_echo "$as_me: failed program was:" >&5
27063 sed 's/^/| /' conftest.$ac_ext >&5
27064
27065         ac_hi=`expr '(' $ac_mid ')' - 1`
27066                         if test $ac_mid -le $ac_hi; then
27067                           ac_lo= ac_hi=
27068                           break
27069                         fi
27070                         ac_mid=`expr 2 '*' $ac_mid`
27071 fi
27072
27073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074   done
27075 else
27076   $as_echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079         ac_lo= ac_hi=
27080 fi
27081
27082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27083 fi
27084
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27086 # Binary search between lo and hi bounds.
27087 while test "x$ac_lo" != "x$ac_hi"; do
27088   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27089   cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095 #include <stddef.h>
27096 #include <limits.h>
27097 int
27098 main ()
27099 {
27100 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27101 test_array [0] = 0
27102
27103   ;
27104   return 0;
27105 }
27106 _ACEOF
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111   *) ac_try_echo=$ac_try;;
27112 esac
27113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27114 $as_echo "$ac_try_echo") >&5
27115   (eval "$ac_compile") 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } && {
27122          test -z "$ac_c_werror_flag" ||
27123          test ! -s conftest.err
27124        } && test -s conftest.$ac_objext; then
27125   ac_hi=$ac_mid
27126 else
27127   $as_echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130         ac_lo=`expr '(' $ac_mid ')' + 1`
27131 fi
27132
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134 done
27135 case $ac_lo in
27136 ?*) size_t_bits_minus_1=$ac_lo;;
27137 '') size_t_bits_minus_1= ;;
27138 esac
27139 else
27140   cat >conftest.$ac_ext <<_ACEOF
27141 /* confdefs.h.  */
27142 _ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h.  */
27146 #include <stddef.h>
27147 #include <limits.h>
27148 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
27149 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
27150 #include <stdio.h>
27151 #include <stdlib.h>
27152 int
27153 main ()
27154 {
27155
27156   FILE *f = fopen ("conftest.val", "w");
27157   if (! f)
27158     return 1;
27159   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
27160     {
27161       long int i = longval ();
27162       if (i != (sizeof (size_t) * CHAR_BIT - 1))
27163         return 1;
27164       fprintf (f, "%ld", i);
27165     }
27166   else
27167     {
27168       unsigned long int i = ulongval ();
27169       if (i != (sizeof (size_t) * CHAR_BIT - 1))
27170         return 1;
27171       fprintf (f, "%lu", i);
27172     }
27173   /* Do not output a trailing newline, as this causes \r\n confusion
27174      on some platforms.  */
27175   return ferror (f) || fclose (f) != 0;
27176
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 rm -f conftest$ac_exeext
27182 if { (ac_try="$ac_link"
27183 case "(($ac_try" in
27184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185   *) ac_try_echo=$ac_try;;
27186 esac
27187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27188 $as_echo "$ac_try_echo") >&5
27189   (eval "$ac_link") 2>&5
27190   ac_status=$?
27191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27193   { (case "(($ac_try" in
27194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195   *) ac_try_echo=$ac_try;;
27196 esac
27197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27198 $as_echo "$ac_try_echo") >&5
27199   (eval "$ac_try") 2>&5
27200   ac_status=$?
27201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202   (exit $ac_status); }; }; then
27203   size_t_bits_minus_1=`cat conftest.val`
27204 else
27205   $as_echo "$as_me: program exited with status $ac_status" >&5
27206 $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27208
27209 ( exit $ac_status )
27210 size_t_bits_minus_1=
27211 fi
27212 rm -rf conftest.dSYM
27213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27214 fi
27215 rm -f conftest.val
27216
27217     if test "$cross_compiling" = yes; then
27218   # Depending upon the size, compute the lo and hi bounds.
27219 cat >conftest.$ac_ext <<_ACEOF
27220 /* confdefs.h.  */
27221 _ACEOF
27222 cat confdefs.h >>conftest.$ac_ext
27223 cat >>conftest.$ac_ext <<_ACEOF
27224 /* end confdefs.h.  */
27225 #include <stddef.h>
27226 int
27227 main ()
27228 {
27229 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
27230 test_array [0] = 0
27231
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 rm -f conftest.$ac_objext
27237 if { (ac_try="$ac_compile"
27238 case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27243 $as_echo "$ac_try_echo") >&5
27244   (eval "$ac_compile") 2>conftest.er1
27245   ac_status=$?
27246   grep -v '^ *+' conftest.er1 >conftest.err
27247   rm -f conftest.er1
27248   cat conftest.err >&5
27249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250   (exit $ac_status); } && {
27251          test -z "$ac_c_werror_flag" ||
27252          test ! -s conftest.err
27253        } && test -s conftest.$ac_objext; then
27254   ac_lo=0 ac_mid=0
27255   while :; do
27256     cat >conftest.$ac_ext <<_ACEOF
27257 /* confdefs.h.  */
27258 _ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h.  */
27262 #include <stddef.h>
27263 int
27264 main ()
27265 {
27266 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27267 test_array [0] = 0
27268
27269   ;
27270   return 0;
27271 }
27272 _ACEOF
27273 rm -f conftest.$ac_objext
27274 if { (ac_try="$ac_compile"
27275 case "(($ac_try" in
27276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277   *) ac_try_echo=$ac_try;;
27278 esac
27279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27280 $as_echo "$ac_try_echo") >&5
27281   (eval "$ac_compile") 2>conftest.er1
27282   ac_status=$?
27283   grep -v '^ *+' conftest.er1 >conftest.err
27284   rm -f conftest.er1
27285   cat conftest.err >&5
27286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); } && {
27288          test -z "$ac_c_werror_flag" ||
27289          test ! -s conftest.err
27290        } && test -s conftest.$ac_objext; then
27291   ac_hi=$ac_mid; break
27292 else
27293   $as_echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27295
27296         ac_lo=`expr $ac_mid + 1`
27297                         if test $ac_lo -le $ac_mid; then
27298                           ac_lo= ac_hi=
27299                           break
27300                         fi
27301                         ac_mid=`expr 2 '*' $ac_mid + 1`
27302 fi
27303
27304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27305   done
27306 else
27307   $as_echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.$ac_ext >&5
27309
27310         cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316 #include <stddef.h>
27317 int
27318 main ()
27319 {
27320 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
27321 test_array [0] = 0
27322
27323   ;
27324   return 0;
27325 }
27326 _ACEOF
27327 rm -f conftest.$ac_objext
27328 if { (ac_try="$ac_compile"
27329 case "(($ac_try" in
27330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331   *) ac_try_echo=$ac_try;;
27332 esac
27333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27334 $as_echo "$ac_try_echo") >&5
27335   (eval "$ac_compile") 2>conftest.er1
27336   ac_status=$?
27337   grep -v '^ *+' conftest.er1 >conftest.err
27338   rm -f conftest.er1
27339   cat conftest.err >&5
27340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341   (exit $ac_status); } && {
27342          test -z "$ac_c_werror_flag" ||
27343          test ! -s conftest.err
27344        } && test -s conftest.$ac_objext; then
27345   ac_hi=-1 ac_mid=-1
27346   while :; do
27347     cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353 #include <stddef.h>
27354 int
27355 main ()
27356 {
27357 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
27358 test_array [0] = 0
27359
27360   ;
27361   return 0;
27362 }
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27371 $as_echo "$ac_try_echo") >&5
27372   (eval "$ac_compile") 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } && {
27379          test -z "$ac_c_werror_flag" ||
27380          test ! -s conftest.err
27381        } && test -s conftest.$ac_objext; then
27382   ac_lo=$ac_mid; break
27383 else
27384   $as_echo "$as_me: failed program was:" >&5
27385 sed 's/^/| /' conftest.$ac_ext >&5
27386
27387         ac_hi=`expr '(' $ac_mid ')' - 1`
27388                         if test $ac_mid -le $ac_hi; then
27389                           ac_lo= ac_hi=
27390                           break
27391                         fi
27392                         ac_mid=`expr 2 '*' $ac_mid`
27393 fi
27394
27395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27396   done
27397 else
27398   $as_echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401         ac_lo= ac_hi=
27402 fi
27403
27404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27405 fi
27406
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 # Binary search between lo and hi bounds.
27409 while test "x$ac_lo" != "x$ac_hi"; do
27410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27411   cat >conftest.$ac_ext <<_ACEOF
27412 /* confdefs.h.  */
27413 _ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h.  */
27417 #include <stddef.h>
27418 int
27419 main ()
27420 {
27421 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27422 test_array [0] = 0
27423
27424   ;
27425   return 0;
27426 }
27427 _ACEOF
27428 rm -f conftest.$ac_objext
27429 if { (ac_try="$ac_compile"
27430 case "(($ac_try" in
27431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27432   *) ac_try_echo=$ac_try;;
27433 esac
27434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27435 $as_echo "$ac_try_echo") >&5
27436   (eval "$ac_compile") 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } && {
27443          test -z "$ac_c_werror_flag" ||
27444          test ! -s conftest.err
27445        } && test -s conftest.$ac_objext; then
27446   ac_hi=$ac_mid
27447 else
27448   $as_echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.$ac_ext >&5
27450
27451         ac_lo=`expr '(' $ac_mid ')' + 1`
27452 fi
27453
27454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27455 done
27456 case $ac_lo in
27457 ?*) fits_in_uint=$ac_lo;;
27458 '') fits_in_uint= ;;
27459 esac
27460 else
27461   cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467 #include <stddef.h>
27468 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
27469 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
27470 #include <stdio.h>
27471 #include <stdlib.h>
27472 int
27473 main ()
27474 {
27475
27476   FILE *f = fopen ("conftest.val", "w");
27477   if (! f)
27478     return 1;
27479   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
27480     {
27481       long int i = longval ();
27482       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27483         return 1;
27484       fprintf (f, "%ld", i);
27485     }
27486   else
27487     {
27488       unsigned long int i = ulongval ();
27489       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27490         return 1;
27491       fprintf (f, "%lu", i);
27492     }
27493   /* Do not output a trailing newline, as this causes \r\n confusion
27494      on some platforms.  */
27495   return ferror (f) || fclose (f) != 0;
27496
27497   ;
27498   return 0;
27499 }
27500 _ACEOF
27501 rm -f conftest$ac_exeext
27502 if { (ac_try="$ac_link"
27503 case "(($ac_try" in
27504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505   *) ac_try_echo=$ac_try;;
27506 esac
27507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27508 $as_echo "$ac_try_echo") >&5
27509   (eval "$ac_link") 2>&5
27510   ac_status=$?
27511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27513   { (case "(($ac_try" in
27514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515   *) ac_try_echo=$ac_try;;
27516 esac
27517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27518 $as_echo "$ac_try_echo") >&5
27519   (eval "$ac_try") 2>&5
27520   ac_status=$?
27521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522   (exit $ac_status); }; }; then
27523   fits_in_uint=`cat conftest.val`
27524 else
27525   $as_echo "$as_me: program exited with status $ac_status" >&5
27526 $as_echo "$as_me: failed program was:" >&5
27527 sed 's/^/| /' conftest.$ac_ext >&5
27528
27529 ( exit $ac_status )
27530 fits_in_uint=
27531 fi
27532 rm -rf conftest.dSYM
27533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27534 fi
27535 rm -f conftest.val
27536
27537     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
27538       if test $fits_in_uint = 1; then
27539                         cat >conftest.$ac_ext <<_ACEOF
27540 /* confdefs.h.  */
27541 _ACEOF
27542 cat confdefs.h >>conftest.$ac_ext
27543 cat >>conftest.$ac_ext <<_ACEOF
27544 /* end confdefs.h.  */
27545 #include <stddef.h>
27546           extern size_t foo;
27547           extern unsigned long foo;
27548
27549 int
27550 main ()
27551 {
27552
27553   ;
27554   return 0;
27555 }
27556 _ACEOF
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561   *) ac_try_echo=$ac_try;;
27562 esac
27563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27564 $as_echo "$ac_try_echo") >&5
27565   (eval "$ac_compile") 2>conftest.er1
27566   ac_status=$?
27567   grep -v '^ *+' conftest.er1 >conftest.err
27568   rm -f conftest.er1
27569   cat conftest.err >&5
27570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } && {
27572          test -z "$ac_c_werror_flag" ||
27573          test ! -s conftest.err
27574        } && test -s conftest.$ac_objext; then
27575   fits_in_uint=0
27576 else
27577   $as_echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27579
27580
27581 fi
27582
27583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27584       fi
27585                         if test $fits_in_uint = 1; then
27586         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
27587       else
27588         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
27589       fi
27590     else
27591             result='((size_t)~(size_t)0)'
27592     fi
27593   fi
27594   { $as_echo "$as_me:$LINENO: result: $result" >&5
27595 $as_echo "$result" >&6; }
27596   if test "$result" != yes; then
27597
27598 cat >>confdefs.h <<_ACEOF
27599 #define SIZE_MAX $result
27600 _ACEOF
27601
27602   fi
27603
27604   # Code from module snprintf:
27605
27606
27607   gl_cv_func_snprintf_usable=no
27608
27609 for ac_func in snprintf
27610 do
27611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27612 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27613 $as_echo_n "checking for $ac_func... " >&6; }
27614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27615   $as_echo_n "(cached) " >&6
27616 else
27617   cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27625 #define $ac_func innocuous_$ac_func
27626
27627 /* System header to define __stub macros and hopefully few prototypes,
27628     which can conflict with char $ac_func (); below.
27629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27630     <limits.h> exists even on freestanding compilers.  */
27631
27632 #ifdef __STDC__
27633 # include <limits.h>
27634 #else
27635 # include <assert.h>
27636 #endif
27637
27638 #undef $ac_func
27639
27640 /* Override any GCC internal prototype to avoid an error.
27641    Use char because int might match the return type of a GCC
27642    builtin and then its argument prototype would still apply.  */
27643 #ifdef __cplusplus
27644 extern "C"
27645 #endif
27646 char $ac_func ();
27647 /* The GNU C library defines this for functions which it implements
27648     to always fail with ENOSYS.  Some functions are actually named
27649     something starting with __ and the normal name is an alias.  */
27650 #if defined __stub_$ac_func || defined __stub___$ac_func
27651 choke me
27652 #endif
27653
27654 int
27655 main ()
27656 {
27657 return $ac_func ();
27658   ;
27659   return 0;
27660 }
27661 _ACEOF
27662 rm -f conftest.$ac_objext conftest$ac_exeext
27663 if { (ac_try="$ac_link"
27664 case "(($ac_try" in
27665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666   *) ac_try_echo=$ac_try;;
27667 esac
27668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27669 $as_echo "$ac_try_echo") >&5
27670   (eval "$ac_link") 2>conftest.er1
27671   ac_status=$?
27672   grep -v '^ *+' conftest.er1 >conftest.err
27673   rm -f conftest.er1
27674   cat conftest.err >&5
27675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27676   (exit $ac_status); } && {
27677          test -z "$ac_c_werror_flag" ||
27678          test ! -s conftest.err
27679        } && test -s conftest$ac_exeext && {
27680          test "$cross_compiling" = yes ||
27681          $as_test_x conftest$ac_exeext
27682        }; then
27683   eval "$as_ac_var=yes"
27684 else
27685   $as_echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27687
27688         eval "$as_ac_var=no"
27689 fi
27690
27691 rm -rf conftest.dSYM
27692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27693       conftest$ac_exeext conftest.$ac_ext
27694 fi
27695 ac_res=`eval 'as_val=${'$as_ac_var'}
27696                  $as_echo "$as_val"'`
27697                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27698 $as_echo "$ac_res" >&6; }
27699 as_val=`eval 'as_val=${'$as_ac_var'}
27700                  $as_echo "$as_val"'`
27701    if test "x$as_val" = x""yes; then
27702   cat >>confdefs.h <<_ACEOF
27703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27704 _ACEOF
27705
27706 fi
27707 done
27708
27709   if test $ac_cv_func_snprintf = yes; then
27710
27711
27712   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
27713 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
27714 if test "${gl_cv_func_snprintf_size1+set}" = set; then
27715   $as_echo_n "(cached) " >&6
27716 else
27717
27718       if test "$cross_compiling" = yes; then
27719   gl_cv_func_snprintf_size1="guessing yes"
27720 else
27721   cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727
27728 #include <stdio.h>
27729 int main()
27730 {
27731   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
27732   snprintf (buf, 1, "%d", 12345);
27733   return buf[1] != 'E';
27734 }
27735 _ACEOF
27736 rm -f conftest$ac_exeext
27737 if { (ac_try="$ac_link"
27738 case "(($ac_try" in
27739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27740   *) ac_try_echo=$ac_try;;
27741 esac
27742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27743 $as_echo "$ac_try_echo") >&5
27744   (eval "$ac_link") 2>&5
27745   ac_status=$?
27746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27748   { (case "(($ac_try" in
27749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27750   *) ac_try_echo=$ac_try;;
27751 esac
27752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27753 $as_echo "$ac_try_echo") >&5
27754   (eval "$ac_try") 2>&5
27755   ac_status=$?
27756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; }; then
27758   gl_cv_func_snprintf_size1=yes
27759 else
27760   $as_echo "$as_me: program exited with status $ac_status" >&5
27761 $as_echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764 ( exit $ac_status )
27765 gl_cv_func_snprintf_size1=no
27766 fi
27767 rm -rf conftest.dSYM
27768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27769 fi
27770
27771
27772
27773 fi
27774 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
27775 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
27776
27777     case "$gl_cv_func_snprintf_size1" in
27778       *yes)
27779         gl_cv_func_snprintf_usable=yes
27780         ;;
27781     esac
27782   fi
27783   if test $gl_cv_func_snprintf_usable = no; then
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
27795
27796   if test $ac_cv_func_snprintf = yes; then
27797     REPLACE_SNPRINTF=1
27798   fi
27799   :
27800
27801   fi
27802
27803   :
27804
27805
27806
27807
27808
27809   if test $ac_cv_have_decl_snprintf = no; then
27810     HAVE_DECL_SNPRINTF=0
27811   fi
27812
27813
27814
27815
27816   GNULIB_SNPRINTF=1
27817
27818
27819
27820 cat >>confdefs.h <<\_ACEOF
27821 #define GNULIB_TEST_SNPRINTF 1
27822 _ACEOF
27823
27824
27825
27826   # Code from module socklen:
27827      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27828 $as_echo_n "checking for socklen_t... " >&6; }
27829 if test "${ac_cv_type_socklen_t+set}" = set; then
27830   $as_echo_n "(cached) " >&6
27831 else
27832   ac_cv_type_socklen_t=no
27833 cat >conftest.$ac_ext <<_ACEOF
27834 /* confdefs.h.  */
27835 _ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h.  */
27839 #include <sys/types.h>
27840       #if HAVE_SYS_SOCKET_H
27841       # include <sys/socket.h>
27842       #elif HAVE_WS2TCPIP_H
27843       # include <ws2tcpip.h>
27844       #endif
27845
27846 int
27847 main ()
27848 {
27849 if (sizeof (socklen_t))
27850        return 0;
27851   ;
27852   return 0;
27853 }
27854 _ACEOF
27855 rm -f conftest.$ac_objext
27856 if { (ac_try="$ac_compile"
27857 case "(($ac_try" in
27858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27859   *) ac_try_echo=$ac_try;;
27860 esac
27861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27862 $as_echo "$ac_try_echo") >&5
27863   (eval "$ac_compile") 2>conftest.er1
27864   ac_status=$?
27865   grep -v '^ *+' conftest.er1 >conftest.err
27866   rm -f conftest.er1
27867   cat conftest.err >&5
27868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); } && {
27870          test -z "$ac_c_werror_flag" ||
27871          test ! -s conftest.err
27872        } && test -s conftest.$ac_objext; then
27873   cat >conftest.$ac_ext <<_ACEOF
27874 /* confdefs.h.  */
27875 _ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h.  */
27879 #include <sys/types.h>
27880       #if HAVE_SYS_SOCKET_H
27881       # include <sys/socket.h>
27882       #elif HAVE_WS2TCPIP_H
27883       # include <ws2tcpip.h>
27884       #endif
27885
27886 int
27887 main ()
27888 {
27889 if (sizeof ((socklen_t)))
27890           return 0;
27891   ;
27892   return 0;
27893 }
27894 _ACEOF
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27902 $as_echo "$ac_try_echo") >&5
27903   (eval "$ac_compile") 2>conftest.er1
27904   ac_status=$?
27905   grep -v '^ *+' conftest.er1 >conftest.err
27906   rm -f conftest.er1
27907   cat conftest.err >&5
27908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); } && {
27910          test -z "$ac_c_werror_flag" ||
27911          test ! -s conftest.err
27912        } && test -s conftest.$ac_objext; then
27913   :
27914 else
27915   $as_echo "$as_me: failed program was:" >&5
27916 sed 's/^/| /' conftest.$ac_ext >&5
27917
27918         ac_cv_type_socklen_t=yes
27919 fi
27920
27921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27922 else
27923   $as_echo "$as_me: failed program was:" >&5
27924 sed 's/^/| /' conftest.$ac_ext >&5
27925
27926
27927 fi
27928
27929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27930 fi
27931 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27932 $as_echo "$ac_cv_type_socklen_t" >&6; }
27933 if test "x$ac_cv_type_socklen_t" = x""yes; then
27934   :
27935 else
27936   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27937 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27938       if test "${gl_cv_socklen_t_equiv+set}" = set; then
27939   $as_echo_n "(cached) " >&6
27940 else
27941   # Systems have either "struct sockaddr *" or
27942          # "void *" as the second argument to getpeername
27943          gl_cv_socklen_t_equiv=
27944          for arg2 in "struct sockaddr" void; do
27945            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
27946              cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h.  */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h.  */
27952 #include <sys/types.h>
27953                    #include <sys/socket.h>
27954
27955                    int getpeername (int, $arg2 *, $t *);
27956 int
27957 main ()
27958 {
27959 $t len;
27960                   getpeername (0, 0, &len);
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 rm -f conftest.$ac_objext
27966 if { (ac_try="$ac_compile"
27967 case "(($ac_try" in
27968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969   *) ac_try_echo=$ac_try;;
27970 esac
27971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27972 $as_echo "$ac_try_echo") >&5
27973   (eval "$ac_compile") 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } && {
27980          test -z "$ac_c_werror_flag" ||
27981          test ! -s conftest.err
27982        } && test -s conftest.$ac_objext; then
27983   gl_cv_socklen_t_equiv="$t"
27984 else
27985   $as_echo "$as_me: failed program was:" >&5
27986 sed 's/^/| /' conftest.$ac_ext >&5
27987
27988
27989 fi
27990
27991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27992              test "$gl_cv_socklen_t_equiv" != "" && break
27993            done
27994            test "$gl_cv_socklen_t_equiv" != "" && break
27995          done
27996
27997 fi
27998
27999       if test "$gl_cv_socklen_t_equiv" = ""; then
28000         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
28001 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
28002    { (exit 1); exit 1; }; }
28003       fi
28004       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
28005 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
28006
28007 cat >>confdefs.h <<_ACEOF
28008 #define socklen_t $gl_cv_socklen_t_equiv
28009 _ACEOF
28010
28011 fi
28012
28013   # Code from module ssize_t:
28014
28015   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
28016 $as_echo_n "checking for ssize_t... " >&6; }
28017 if test "${gt_cv_ssize_t+set}" = set; then
28018   $as_echo_n "(cached) " >&6
28019 else
28020   cat >conftest.$ac_ext <<_ACEOF
28021 /* confdefs.h.  */
28022 _ACEOF
28023 cat confdefs.h >>conftest.$ac_ext
28024 cat >>conftest.$ac_ext <<_ACEOF
28025 /* end confdefs.h.  */
28026 #include <sys/types.h>
28027 int
28028 main ()
28029 {
28030 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28031             return !x;
28032   ;
28033   return 0;
28034 }
28035 _ACEOF
28036 rm -f conftest.$ac_objext
28037 if { (ac_try="$ac_compile"
28038 case "(($ac_try" in
28039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040   *) ac_try_echo=$ac_try;;
28041 esac
28042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28043 $as_echo "$ac_try_echo") >&5
28044   (eval "$ac_compile") 2>conftest.er1
28045   ac_status=$?
28046   grep -v '^ *+' conftest.er1 >conftest.err
28047   rm -f conftest.er1
28048   cat conftest.err >&5
28049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050   (exit $ac_status); } && {
28051          test -z "$ac_c_werror_flag" ||
28052          test ! -s conftest.err
28053        } && test -s conftest.$ac_objext; then
28054   gt_cv_ssize_t=yes
28055 else
28056   $as_echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28058
28059         gt_cv_ssize_t=no
28060 fi
28061
28062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28063 fi
28064 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28065 $as_echo "$gt_cv_ssize_t" >&6; }
28066   if test $gt_cv_ssize_t = no; then
28067
28068 cat >>confdefs.h <<\_ACEOF
28069 #define ssize_t int
28070 _ACEOF
28071
28072   fi
28073
28074   # Code from module stat:
28075
28076
28077
28078
28079   :
28080
28081
28082
28083
28084
28085     { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
28086 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28087 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
28088   $as_echo_n "(cached) " >&6
28089 else
28090   if test "$cross_compiling" = yes; then
28091   case $host_os in
28092             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28093             *) gl_cv_func_stat_dir_slash="guessing yes";;
28094           esac
28095 else
28096   cat >conftest.$ac_ext <<_ACEOF
28097 /* confdefs.h.  */
28098 _ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h.  */
28102 #include <sys/stat.h>
28103
28104 int
28105 main ()
28106 {
28107 struct stat st; return stat (".", &st) != stat ("./", &st);
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 rm -f conftest$ac_exeext
28113 if { (ac_try="$ac_link"
28114 case "(($ac_try" in
28115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28116   *) ac_try_echo=$ac_try;;
28117 esac
28118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28119 $as_echo "$ac_try_echo") >&5
28120   (eval "$ac_link") 2>&5
28121   ac_status=$?
28122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28124   { (case "(($ac_try" in
28125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126   *) ac_try_echo=$ac_try;;
28127 esac
28128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28129 $as_echo "$ac_try_echo") >&5
28130   (eval "$ac_try") 2>&5
28131   ac_status=$?
28132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; }; then
28134   gl_cv_func_stat_dir_slash=yes
28135 else
28136   $as_echo "$as_me: program exited with status $ac_status" >&5
28137 $as_echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140 ( exit $ac_status )
28141 gl_cv_func_stat_dir_slash=no
28142 fi
28143 rm -rf conftest.dSYM
28144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28145 fi
28146
28147
28148 fi
28149 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
28150 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28151       { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
28152 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28153 if test "${gl_cv_func_stat_file_slash+set}" = set; then
28154   $as_echo_n "(cached) " >&6
28155 else
28156   touch conftest.tmp
28157        # Assume that if we have lstat, we can also check symlinks.
28158        if test $ac_cv_func_lstat = yes; then
28159          ln -s conftest.tmp conftest.lnk
28160        fi
28161        if test "$cross_compiling" = yes; then
28162   gl_cv_func_stat_file_slash="guessing no"
28163 else
28164   cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h.  */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h.  */
28170 #include <sys/stat.h>
28171
28172 int
28173 main ()
28174 {
28175 struct stat st;
28176       if (!stat ("conftest.tmp/", &st)) return 1;
28177 #if HAVE_LSTAT
28178       if (!stat ("conftest.lnk/", &st)) return 2;
28179 #endif
28180
28181   ;
28182   return 0;
28183 }
28184 _ACEOF
28185 rm -f conftest$ac_exeext
28186 if { (ac_try="$ac_link"
28187 case "(($ac_try" in
28188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28189   *) ac_try_echo=$ac_try;;
28190 esac
28191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28192 $as_echo "$ac_try_echo") >&5
28193   (eval "$ac_link") 2>&5
28194   ac_status=$?
28195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28197   { (case "(($ac_try" in
28198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28199   *) ac_try_echo=$ac_try;;
28200 esac
28201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28202 $as_echo "$ac_try_echo") >&5
28203   (eval "$ac_try") 2>&5
28204   ac_status=$?
28205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206   (exit $ac_status); }; }; then
28207   gl_cv_func_stat_file_slash=yes
28208 else
28209   $as_echo "$as_me: program exited with status $ac_status" >&5
28210 $as_echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213 ( exit $ac_status )
28214 gl_cv_func_stat_file_slash=no
28215 fi
28216 rm -rf conftest.dSYM
28217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28218 fi
28219
28220
28221        rm -f conftest.tmp conftest.lnk
28222 fi
28223 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
28224 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28225   case $gl_cv_func_stat_dir_slash in
28226     *no) REPLACE_STAT=1
28227
28228 cat >>confdefs.h <<\_ACEOF
28229 #define REPLACE_FUNC_STAT_DIR 1
28230 _ACEOF
28231 ;;
28232   esac
28233   case $gl_cv_func_stat_file_slash in
28234     *no) REPLACE_STAT=1
28235
28236 cat >>confdefs.h <<\_ACEOF
28237 #define REPLACE_FUNC_STAT_FILE 1
28238 _ACEOF
28239 ;;
28240   esac
28241   if test $REPLACE_STAT = 1; then
28242
28243
28244
28245
28246
28247
28248
28249
28250   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28251
28252
28253   fi
28254
28255
28256
28257
28258   GNULIB_STAT=1
28259
28260
28261
28262 cat >>confdefs.h <<\_ACEOF
28263 #define GNULIB_TEST_STAT 1
28264 _ACEOF
28265
28266
28267
28268   # Code from module stdbool:
28269
28270
28271
28272   # Define two additional variables used in the Makefile substitution.
28273
28274   if test "$ac_cv_header_stdbool_h" = yes; then
28275     STDBOOL_H=''
28276   else
28277     STDBOOL_H='stdbool.h'
28278   fi
28279
28280
28281   if test "$ac_cv_type__Bool" = yes; then
28282     HAVE__BOOL=1
28283   else
28284     HAVE__BOOL=0
28285   fi
28286
28287
28288   # Code from module stddef:
28289
28290
28291
28292   if test $gt_cv_c_wchar_t = no; then
28293     HAVE_WCHAR_T=0
28294     STDDEF_H=stddef.h
28295   fi
28296   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
28297 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28298 if test "${gl_cv_decl_null_works+set}" = set; then
28299   $as_echo_n "(cached) " >&6
28300 else
28301   cat >conftest.$ac_ext <<_ACEOF
28302 /* confdefs.h.  */
28303 _ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h.  */
28307 #include <stddef.h>
28308       int test[2 * (sizeof NULL == sizeof (void *)) -1];
28309
28310 int
28311 main ()
28312 {
28313
28314   ;
28315   return 0;
28316 }
28317 _ACEOF
28318 rm -f conftest.$ac_objext
28319 if { (ac_try="$ac_compile"
28320 case "(($ac_try" in
28321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322   *) ac_try_echo=$ac_try;;
28323 esac
28324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28325 $as_echo "$ac_try_echo") >&5
28326   (eval "$ac_compile") 2>conftest.er1
28327   ac_status=$?
28328   grep -v '^ *+' conftest.er1 >conftest.err
28329   rm -f conftest.er1
28330   cat conftest.err >&5
28331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); } && {
28333          test -z "$ac_c_werror_flag" ||
28334          test ! -s conftest.err
28335        } && test -s conftest.$ac_objext; then
28336   gl_cv_decl_null_works=yes
28337 else
28338   $as_echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341         gl_cv_decl_null_works=no
28342 fi
28343
28344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28345 fi
28346 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
28347 $as_echo "$gl_cv_decl_null_works" >&6; }
28348   if test $gl_cv_decl_null_works = no; then
28349     REPLACE_NULL=1
28350     STDDEF_H=stddef.h
28351   fi
28352   if test -n "$STDDEF_H"; then
28353
28354
28355
28356
28357   :
28358
28359
28360
28361
28362
28363
28364
28365      if test $gl_cv_have_include_next = yes; then
28366        gl_cv_next_stddef_h='<'stddef.h'>'
28367      else
28368        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
28369 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28370 if test "${gl_cv_next_stddef_h+set}" = set; then
28371   $as_echo_n "(cached) " >&6
28372 else
28373
28374           if test $ac_cv_header_stddef_h = yes; then
28375             cat >conftest.$ac_ext <<_ACEOF
28376 /* confdefs.h.  */
28377 _ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h.  */
28381 #include <stddef.h>
28382
28383 _ACEOF
28384                                                                                                 case "$host_os" in
28385               aix*) gl_absname_cpp="$ac_cpp -C" ;;
28386               *)    gl_absname_cpp="$ac_cpp" ;;
28387             esac
28388                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28389                sed -n '\#/stddef.h#{
28390                  s#.*"\(.*/stddef.h\)".*#\1#
28391                  s#^/[^/]#//&#
28392                  p
28393                  q
28394                }'`'"'
28395           else
28396             gl_cv_next_stddef_h='<'stddef.h'>'
28397           fi
28398
28399 fi
28400 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
28401 $as_echo "$gl_cv_next_stddef_h" >&6; }
28402      fi
28403      NEXT_STDDEF_H=$gl_cv_next_stddef_h
28404
28405      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28406        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28407        gl_next_as_first_directive='<'stddef.h'>'
28408      else
28409        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28410        gl_next_as_first_directive=$gl_cv_next_stddef_h
28411      fi
28412      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
28413
28414
28415
28416   fi
28417
28418   # Code from module stdint:
28419
28420
28421
28422   if test $ac_cv_type_long_long_int = yes; then
28423     HAVE_LONG_LONG_INT=1
28424   else
28425     HAVE_LONG_LONG_INT=0
28426   fi
28427
28428
28429   if test $ac_cv_type_unsigned_long_long_int = yes; then
28430     HAVE_UNSIGNED_LONG_LONG_INT=1
28431   else
28432     HAVE_UNSIGNED_LONG_LONG_INT=0
28433   fi
28434
28435
28436       if test $ac_cv_header_inttypes_h = yes; then
28437     HAVE_INTTYPES_H=1
28438   else
28439     HAVE_INTTYPES_H=0
28440   fi
28441
28442
28443       if test $ac_cv_header_sys_types_h = yes; then
28444     HAVE_SYS_TYPES_H=1
28445   else
28446     HAVE_SYS_TYPES_H=0
28447   fi
28448
28449
28450
28451
28452
28453
28454   :
28455
28456
28457
28458
28459
28460
28461
28462      if test $gl_cv_have_include_next = yes; then
28463        gl_cv_next_stdint_h='<'stdint.h'>'
28464      else
28465        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
28466 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
28467 if test "${gl_cv_next_stdint_h+set}" = set; then
28468   $as_echo_n "(cached) " >&6
28469 else
28470
28471           if test $ac_cv_header_stdint_h = yes; then
28472             cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h.  */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h.  */
28478 #include <stdint.h>
28479
28480 _ACEOF
28481                                                                                                 case "$host_os" in
28482               aix*) gl_absname_cpp="$ac_cpp -C" ;;
28483               *)    gl_absname_cpp="$ac_cpp" ;;
28484             esac
28485                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28486                sed -n '\#/stdint.h#{
28487                  s#.*"\(.*/stdint.h\)".*#\1#
28488                  s#^/[^/]#//&#
28489                  p
28490                  q
28491                }'`'"'
28492           else
28493             gl_cv_next_stdint_h='<'stdint.h'>'
28494           fi
28495
28496 fi
28497 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
28498 $as_echo "$gl_cv_next_stdint_h" >&6; }
28499      fi
28500      NEXT_STDINT_H=$gl_cv_next_stdint_h
28501
28502      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28503        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28504        gl_next_as_first_directive='<'stdint.h'>'
28505      else
28506        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28507        gl_next_as_first_directive=$gl_cv_next_stdint_h
28508      fi
28509      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
28510
28511
28512
28513   if test $ac_cv_header_stdint_h = yes; then
28514     HAVE_STDINT_H=1
28515   else
28516     HAVE_STDINT_H=0
28517   fi
28518
28519
28520     if test $ac_cv_header_stdint_h = yes; then
28521     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
28522 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
28523 if test "${gl_cv_header_working_stdint_h+set}" = set; then
28524   $as_echo_n "(cached) " >&6
28525 else
28526   gl_cv_header_working_stdint_h=no
28527        cat >conftest.$ac_ext <<_ACEOF
28528
28529          /* confdefs.h.  */
28530 _ACEOF
28531 cat confdefs.h >>conftest.$ac_ext
28532 cat >>conftest.$ac_ext <<_ACEOF
28533 /* end confdefs.h.  */
28534
28535 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28536 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28537 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28538 #include <stdint.h>
28539 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
28540 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
28541 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
28542 #endif
28543
28544
28545   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28546      included before <wchar.h>.  */
28547   #include <stddef.h>
28548   #include <signal.h>
28549   #if HAVE_WCHAR_H
28550   # include <stdio.h>
28551   # include <time.h>
28552   # include <wchar.h>
28553   #endif
28554
28555
28556 #ifdef INT8_MAX
28557 int8_t a1 = INT8_MAX;
28558 int8_t a1min = INT8_MIN;
28559 #endif
28560 #ifdef INT16_MAX
28561 int16_t a2 = INT16_MAX;
28562 int16_t a2min = INT16_MIN;
28563 #endif
28564 #ifdef INT32_MAX
28565 int32_t a3 = INT32_MAX;
28566 int32_t a3min = INT32_MIN;
28567 #endif
28568 #ifdef INT64_MAX
28569 int64_t a4 = INT64_MAX;
28570 int64_t a4min = INT64_MIN;
28571 #endif
28572 #ifdef UINT8_MAX
28573 uint8_t b1 = UINT8_MAX;
28574 #else
28575 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28576 #endif
28577 #ifdef UINT16_MAX
28578 uint16_t b2 = UINT16_MAX;
28579 #endif
28580 #ifdef UINT32_MAX
28581 uint32_t b3 = UINT32_MAX;
28582 #endif
28583 #ifdef UINT64_MAX
28584 uint64_t b4 = UINT64_MAX;
28585 #endif
28586 int_least8_t c1 = INT8_C (0x7f);
28587 int_least8_t c1max = INT_LEAST8_MAX;
28588 int_least8_t c1min = INT_LEAST8_MIN;
28589 int_least16_t c2 = INT16_C (0x7fff);
28590 int_least16_t c2max = INT_LEAST16_MAX;
28591 int_least16_t c2min = INT_LEAST16_MIN;
28592 int_least32_t c3 = INT32_C (0x7fffffff);
28593 int_least32_t c3max = INT_LEAST32_MAX;
28594 int_least32_t c3min = INT_LEAST32_MIN;
28595 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28596 int_least64_t c4max = INT_LEAST64_MAX;
28597 int_least64_t c4min = INT_LEAST64_MIN;
28598 uint_least8_t d1 = UINT8_C (0xff);
28599 uint_least8_t d1max = UINT_LEAST8_MAX;
28600 uint_least16_t d2 = UINT16_C (0xffff);
28601 uint_least16_t d2max = UINT_LEAST16_MAX;
28602 uint_least32_t d3 = UINT32_C (0xffffffff);
28603 uint_least32_t d3max = UINT_LEAST32_MAX;
28604 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28605 uint_least64_t d4max = UINT_LEAST64_MAX;
28606 int_fast8_t e1 = INT_FAST8_MAX;
28607 int_fast8_t e1min = INT_FAST8_MIN;
28608 int_fast16_t e2 = INT_FAST16_MAX;
28609 int_fast16_t e2min = INT_FAST16_MIN;
28610 int_fast32_t e3 = INT_FAST32_MAX;
28611 int_fast32_t e3min = INT_FAST32_MIN;
28612 int_fast64_t e4 = INT_FAST64_MAX;
28613 int_fast64_t e4min = INT_FAST64_MIN;
28614 uint_fast8_t f1 = UINT_FAST8_MAX;
28615 uint_fast16_t f2 = UINT_FAST16_MAX;
28616 uint_fast32_t f3 = UINT_FAST32_MAX;
28617 uint_fast64_t f4 = UINT_FAST64_MAX;
28618 #ifdef INTPTR_MAX
28619 intptr_t g = INTPTR_MAX;
28620 intptr_t gmin = INTPTR_MIN;
28621 #endif
28622 #ifdef UINTPTR_MAX
28623 uintptr_t h = UINTPTR_MAX;
28624 #endif
28625 intmax_t i = INTMAX_MAX;
28626 uintmax_t j = UINTMAX_MAX;
28627
28628 #include <limits.h> /* for CHAR_BIT */
28629 #define TYPE_MINIMUM(t) \
28630   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
28631 #define TYPE_MAXIMUM(t) \
28632   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
28633 struct s {
28634   int check_PTRDIFF:
28635       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
28636       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
28637       ? 1 : -1;
28638   /* Detect bug in FreeBSD 6.0 / ia64.  */
28639   int check_SIG_ATOMIC:
28640       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
28641       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
28642       ? 1 : -1;
28643   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
28644   int check_WCHAR:
28645       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
28646       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
28647       ? 1 : -1;
28648   /* Detect bug in mingw.  */
28649   int check_WINT:
28650       WINT_MIN == TYPE_MINIMUM (wint_t)
28651       && WINT_MAX == TYPE_MAXIMUM (wint_t)
28652       ? 1 : -1;
28653
28654   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
28655   int check_UINT8_C:
28656         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
28657   int check_UINT16_C:
28658         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
28659
28660   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
28661 #ifdef UINT8_MAX
28662   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
28663 #endif
28664 #ifdef UINT16_MAX
28665   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
28666 #endif
28667 #ifdef UINT32_MAX
28668   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
28669 #endif
28670 #ifdef UINT64_MAX
28671   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
28672 #endif
28673   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
28674   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
28675   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
28676   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
28677   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
28678   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
28679   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
28680   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
28681   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
28682   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
28683   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
28684 };
28685
28686 int
28687 main ()
28688 {
28689
28690   ;
28691   return 0;
28692 }
28693 _ACEOF
28694 rm -f conftest.$ac_objext
28695 if { (ac_try="$ac_compile"
28696 case "(($ac_try" in
28697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28698   *) ac_try_echo=$ac_try;;
28699 esac
28700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28701 $as_echo "$ac_try_echo") >&5
28702   (eval "$ac_compile") 2>conftest.er1
28703   ac_status=$?
28704   grep -v '^ *+' conftest.er1 >conftest.err
28705   rm -f conftest.er1
28706   cat conftest.err >&5
28707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); } && {
28709          test -z "$ac_c_werror_flag" ||
28710          test ! -s conftest.err
28711        } && test -s conftest.$ac_objext; then
28712                                                     if test "$cross_compiling" = yes; then
28713                  gl_cv_header_working_stdint_h=yes
28714
28715 else
28716   cat >conftest.$ac_ext <<_ACEOF
28717
28718             /* confdefs.h.  */
28719 _ACEOF
28720 cat confdefs.h >>conftest.$ac_ext
28721 cat >>conftest.$ac_ext <<_ACEOF
28722 /* end confdefs.h.  */
28723
28724 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28725 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28726 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28727 #include <stdint.h>
28728
28729
28730   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28731      included before <wchar.h>.  */
28732   #include <stddef.h>
28733   #include <signal.h>
28734   #if HAVE_WCHAR_H
28735   # include <stdio.h>
28736   # include <time.h>
28737   # include <wchar.h>
28738   #endif
28739
28740
28741 #include <stdio.h>
28742 #include <string.h>
28743 #define MVAL(macro) MVAL1(macro)
28744 #define MVAL1(expression) #expression
28745 static const char *macro_values[] =
28746   {
28747 #ifdef INT8_MAX
28748     MVAL (INT8_MAX),
28749 #endif
28750 #ifdef INT16_MAX
28751     MVAL (INT16_MAX),
28752 #endif
28753 #ifdef INT32_MAX
28754     MVAL (INT32_MAX),
28755 #endif
28756 #ifdef INT64_MAX
28757     MVAL (INT64_MAX),
28758 #endif
28759 #ifdef UINT8_MAX
28760     MVAL (UINT8_MAX),
28761 #endif
28762 #ifdef UINT16_MAX
28763     MVAL (UINT16_MAX),
28764 #endif
28765 #ifdef UINT32_MAX
28766     MVAL (UINT32_MAX),
28767 #endif
28768 #ifdef UINT64_MAX
28769     MVAL (UINT64_MAX),
28770 #endif
28771     NULL
28772   };
28773
28774 int
28775 main ()
28776 {
28777
28778   const char **mv;
28779   for (mv = macro_values; *mv != NULL; mv++)
28780     {
28781       const char *value = *mv;
28782       /* Test whether it looks like a cast expression.  */
28783       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
28784           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
28785           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
28786           || strncmp (value, "((int)"/*)*/, 6) == 0
28787           || strncmp (value, "((signed short)"/*)*/, 15) == 0
28788           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
28789         return 1;
28790     }
28791   return 0;
28792
28793   ;
28794   return 0;
28795 }
28796 _ACEOF
28797 rm -f conftest$ac_exeext
28798 if { (ac_try="$ac_link"
28799 case "(($ac_try" in
28800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801   *) ac_try_echo=$ac_try;;
28802 esac
28803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28804 $as_echo "$ac_try_echo") >&5
28805   (eval "$ac_link") 2>&5
28806   ac_status=$?
28807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28809   { (case "(($ac_try" in
28810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811   *) ac_try_echo=$ac_try;;
28812 esac
28813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28814 $as_echo "$ac_try_echo") >&5
28815   (eval "$ac_try") 2>&5
28816   ac_status=$?
28817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28818   (exit $ac_status); }; }; then
28819   gl_cv_header_working_stdint_h=yes
28820 else
28821   $as_echo "$as_me: program exited with status $ac_status" >&5
28822 $as_echo "$as_me: failed program was:" >&5
28823 sed 's/^/| /' conftest.$ac_ext >&5
28824
28825 fi
28826 rm -rf conftest.dSYM
28827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28828 fi
28829
28830
28831
28832 else
28833   $as_echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836
28837 fi
28838
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840
28841 fi
28842 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28843 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
28844   fi
28845   if test "$gl_cv_header_working_stdint_h" = yes; then
28846     STDINT_H=
28847   else
28848
28849
28850 for ac_header in sys/inttypes.h sys/bitypes.h
28851 do
28852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28854   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28855 $as_echo_n "checking for $ac_header... " >&6; }
28856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28857   $as_echo_n "(cached) " >&6
28858 fi
28859 ac_res=`eval 'as_val=${'$as_ac_Header'}
28860                  $as_echo "$as_val"'`
28861                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28862 $as_echo "$ac_res" >&6; }
28863 else
28864   # Is the header compilable?
28865 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28866 $as_echo_n "checking $ac_header usability... " >&6; }
28867 cat >conftest.$ac_ext <<_ACEOF
28868 /* confdefs.h.  */
28869 _ACEOF
28870 cat confdefs.h >>conftest.$ac_ext
28871 cat >>conftest.$ac_ext <<_ACEOF
28872 /* end confdefs.h.  */
28873 $ac_includes_default
28874 #include <$ac_header>
28875 _ACEOF
28876 rm -f conftest.$ac_objext
28877 if { (ac_try="$ac_compile"
28878 case "(($ac_try" in
28879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880   *) ac_try_echo=$ac_try;;
28881 esac
28882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28883 $as_echo "$ac_try_echo") >&5
28884   (eval "$ac_compile") 2>conftest.er1
28885   ac_status=$?
28886   grep -v '^ *+' conftest.er1 >conftest.err
28887   rm -f conftest.er1
28888   cat conftest.err >&5
28889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28890   (exit $ac_status); } && {
28891          test -z "$ac_c_werror_flag" ||
28892          test ! -s conftest.err
28893        } && test -s conftest.$ac_objext; then
28894   ac_header_compiler=yes
28895 else
28896   $as_echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899         ac_header_compiler=no
28900 fi
28901
28902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28903 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28904 $as_echo "$ac_header_compiler" >&6; }
28905
28906 # Is the header present?
28907 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28908 $as_echo_n "checking $ac_header presence... " >&6; }
28909 cat >conftest.$ac_ext <<_ACEOF
28910 /* confdefs.h.  */
28911 _ACEOF
28912 cat confdefs.h >>conftest.$ac_ext
28913 cat >>conftest.$ac_ext <<_ACEOF
28914 /* end confdefs.h.  */
28915 #include <$ac_header>
28916 _ACEOF
28917 if { (ac_try="$ac_cpp conftest.$ac_ext"
28918 case "(($ac_try" in
28919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920   *) ac_try_echo=$ac_try;;
28921 esac
28922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28923 $as_echo "$ac_try_echo") >&5
28924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28925   ac_status=$?
28926   grep -v '^ *+' conftest.er1 >conftest.err
28927   rm -f conftest.er1
28928   cat conftest.err >&5
28929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); } >/dev/null && {
28931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28932          test ! -s conftest.err
28933        }; then
28934   ac_header_preproc=yes
28935 else
28936   $as_echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28938
28939   ac_header_preproc=no
28940 fi
28941
28942 rm -f conftest.err conftest.$ac_ext
28943 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28944 $as_echo "$ac_header_preproc" >&6; }
28945
28946 # So?  What about this header?
28947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28948   yes:no: )
28949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28950 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28952 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28953     ac_header_preproc=yes
28954     ;;
28955   no:yes:* )
28956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28957 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28959 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28961 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28963 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28966     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28967 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28968
28969     ;;
28970 esac
28971 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28972 $as_echo_n "checking for $ac_header... " >&6; }
28973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28974   $as_echo_n "(cached) " >&6
28975 else
28976   eval "$as_ac_Header=\$ac_header_preproc"
28977 fi
28978 ac_res=`eval 'as_val=${'$as_ac_Header'}
28979                  $as_echo "$as_val"'`
28980                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28981 $as_echo "$ac_res" >&6; }
28982
28983 fi
28984 as_val=`eval 'as_val=${'$as_ac_Header'}
28985                  $as_echo "$as_val"'`
28986    if test "x$as_val" = x""yes; then
28987   cat >>confdefs.h <<_ACEOF
28988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28989 _ACEOF
28990
28991 fi
28992
28993 done
28994
28995     if test $ac_cv_header_sys_inttypes_h = yes; then
28996       HAVE_SYS_INTTYPES_H=1
28997     else
28998       HAVE_SYS_INTTYPES_H=0
28999     fi
29000
29001     if test $ac_cv_header_sys_bitypes_h = yes; then
29002       HAVE_SYS_BITYPES_H=1
29003     else
29004       HAVE_SYS_BITYPES_H=0
29005     fi
29006
29007
29008
29009   :
29010
29011
29012
29013
29014
29015
29016
29017
29018   if test $APPLE_UNIVERSAL_BUILD = 0; then
29019
29020
29021
29022
29023   for gltype in ptrdiff_t size_t ; do
29024     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29025 $as_echo_n "checking for bit size of $gltype... " >&6; }
29026 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29027   $as_echo_n "(cached) " >&6
29028 else
29029   if test "$cross_compiling" = yes; then
29030   # Depending upon the size, compute the lo and hi bounds.
29031 cat >conftest.$ac_ext <<_ACEOF
29032 /* confdefs.h.  */
29033 _ACEOF
29034 cat confdefs.h >>conftest.$ac_ext
29035 cat >>conftest.$ac_ext <<_ACEOF
29036 /* end confdefs.h.  */
29037
29038   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29039      included before <wchar.h>.  */
29040   #include <stddef.h>
29041   #include <signal.h>
29042   #if HAVE_WCHAR_H
29043   # include <stdio.h>
29044   # include <time.h>
29045   # include <wchar.h>
29046   #endif
29047
29048 #include <limits.h>
29049 int
29050 main ()
29051 {
29052 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29053 test_array [0] = 0
29054
29055   ;
29056   return 0;
29057 }
29058 _ACEOF
29059 rm -f conftest.$ac_objext
29060 if { (ac_try="$ac_compile"
29061 case "(($ac_try" in
29062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29063   *) ac_try_echo=$ac_try;;
29064 esac
29065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29066 $as_echo "$ac_try_echo") >&5
29067   (eval "$ac_compile") 2>conftest.er1
29068   ac_status=$?
29069   grep -v '^ *+' conftest.er1 >conftest.err
29070   rm -f conftest.er1
29071   cat conftest.err >&5
29072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); } && {
29074          test -z "$ac_c_werror_flag" ||
29075          test ! -s conftest.err
29076        } && test -s conftest.$ac_objext; then
29077   ac_lo=0 ac_mid=0
29078   while :; do
29079     cat >conftest.$ac_ext <<_ACEOF
29080 /* confdefs.h.  */
29081 _ACEOF
29082 cat confdefs.h >>conftest.$ac_ext
29083 cat >>conftest.$ac_ext <<_ACEOF
29084 /* end confdefs.h.  */
29085
29086   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29087      included before <wchar.h>.  */
29088   #include <stddef.h>
29089   #include <signal.h>
29090   #if HAVE_WCHAR_H
29091   # include <stdio.h>
29092   # include <time.h>
29093   # include <wchar.h>
29094   #endif
29095
29096 #include <limits.h>
29097 int
29098 main ()
29099 {
29100 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29101 test_array [0] = 0
29102
29103   ;
29104   return 0;
29105 }
29106 _ACEOF
29107 rm -f conftest.$ac_objext
29108 if { (ac_try="$ac_compile"
29109 case "(($ac_try" in
29110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111   *) ac_try_echo=$ac_try;;
29112 esac
29113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29114 $as_echo "$ac_try_echo") >&5
29115   (eval "$ac_compile") 2>conftest.er1
29116   ac_status=$?
29117   grep -v '^ *+' conftest.er1 >conftest.err
29118   rm -f conftest.er1
29119   cat conftest.err >&5
29120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); } && {
29122          test -z "$ac_c_werror_flag" ||
29123          test ! -s conftest.err
29124        } && test -s conftest.$ac_objext; then
29125   ac_hi=$ac_mid; break
29126 else
29127   $as_echo "$as_me: failed program was:" >&5
29128 sed 's/^/| /' conftest.$ac_ext >&5
29129
29130         ac_lo=`expr $ac_mid + 1`
29131                         if test $ac_lo -le $ac_mid; then
29132                           ac_lo= ac_hi=
29133                           break
29134                         fi
29135                         ac_mid=`expr 2 '*' $ac_mid + 1`
29136 fi
29137
29138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29139   done
29140 else
29141   $as_echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144         cat >conftest.$ac_ext <<_ACEOF
29145 /* confdefs.h.  */
29146 _ACEOF
29147 cat confdefs.h >>conftest.$ac_ext
29148 cat >>conftest.$ac_ext <<_ACEOF
29149 /* end confdefs.h.  */
29150
29151   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29152      included before <wchar.h>.  */
29153   #include <stddef.h>
29154   #include <signal.h>
29155   #if HAVE_WCHAR_H
29156   # include <stdio.h>
29157   # include <time.h>
29158   # include <wchar.h>
29159   #endif
29160
29161 #include <limits.h>
29162 int
29163 main ()
29164 {
29165 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29166 test_array [0] = 0
29167
29168   ;
29169   return 0;
29170 }
29171 _ACEOF
29172 rm -f conftest.$ac_objext
29173 if { (ac_try="$ac_compile"
29174 case "(($ac_try" in
29175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176   *) ac_try_echo=$ac_try;;
29177 esac
29178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29179 $as_echo "$ac_try_echo") >&5
29180   (eval "$ac_compile") 2>conftest.er1
29181   ac_status=$?
29182   grep -v '^ *+' conftest.er1 >conftest.err
29183   rm -f conftest.er1
29184   cat conftest.err >&5
29185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186   (exit $ac_status); } && {
29187          test -z "$ac_c_werror_flag" ||
29188          test ! -s conftest.err
29189        } && test -s conftest.$ac_objext; then
29190   ac_hi=-1 ac_mid=-1
29191   while :; do
29192     cat >conftest.$ac_ext <<_ACEOF
29193 /* confdefs.h.  */
29194 _ACEOF
29195 cat confdefs.h >>conftest.$ac_ext
29196 cat >>conftest.$ac_ext <<_ACEOF
29197 /* end confdefs.h.  */
29198
29199   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29200      included before <wchar.h>.  */
29201   #include <stddef.h>
29202   #include <signal.h>
29203   #if HAVE_WCHAR_H
29204   # include <stdio.h>
29205   # include <time.h>
29206   # include <wchar.h>
29207   #endif
29208
29209 #include <limits.h>
29210 int
29211 main ()
29212 {
29213 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29214 test_array [0] = 0
29215
29216   ;
29217   return 0;
29218 }
29219 _ACEOF
29220 rm -f conftest.$ac_objext
29221 if { (ac_try="$ac_compile"
29222 case "(($ac_try" in
29223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29224   *) ac_try_echo=$ac_try;;
29225 esac
29226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29227 $as_echo "$ac_try_echo") >&5
29228   (eval "$ac_compile") 2>conftest.er1
29229   ac_status=$?
29230   grep -v '^ *+' conftest.er1 >conftest.err
29231   rm -f conftest.er1
29232   cat conftest.err >&5
29233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234   (exit $ac_status); } && {
29235          test -z "$ac_c_werror_flag" ||
29236          test ! -s conftest.err
29237        } && test -s conftest.$ac_objext; then
29238   ac_lo=$ac_mid; break
29239 else
29240   $as_echo "$as_me: failed program was:" >&5
29241 sed 's/^/| /' conftest.$ac_ext >&5
29242
29243         ac_hi=`expr '(' $ac_mid ')' - 1`
29244                         if test $ac_mid -le $ac_hi; then
29245                           ac_lo= ac_hi=
29246                           break
29247                         fi
29248                         ac_mid=`expr 2 '*' $ac_mid`
29249 fi
29250
29251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29252   done
29253 else
29254   $as_echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257         ac_lo= ac_hi=
29258 fi
29259
29260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261 fi
29262
29263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29264 # Binary search between lo and hi bounds.
29265 while test "x$ac_lo" != "x$ac_hi"; do
29266   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29267   cat >conftest.$ac_ext <<_ACEOF
29268 /* confdefs.h.  */
29269 _ACEOF
29270 cat confdefs.h >>conftest.$ac_ext
29271 cat >>conftest.$ac_ext <<_ACEOF
29272 /* end confdefs.h.  */
29273
29274   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29275      included before <wchar.h>.  */
29276   #include <stddef.h>
29277   #include <signal.h>
29278   #if HAVE_WCHAR_H
29279   # include <stdio.h>
29280   # include <time.h>
29281   # include <wchar.h>
29282   #endif
29283
29284 #include <limits.h>
29285 int
29286 main ()
29287 {
29288 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29289 test_array [0] = 0
29290
29291   ;
29292   return 0;
29293 }
29294 _ACEOF
29295 rm -f conftest.$ac_objext
29296 if { (ac_try="$ac_compile"
29297 case "(($ac_try" in
29298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299   *) ac_try_echo=$ac_try;;
29300 esac
29301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29302 $as_echo "$ac_try_echo") >&5
29303   (eval "$ac_compile") 2>conftest.er1
29304   ac_status=$?
29305   grep -v '^ *+' conftest.er1 >conftest.err
29306   rm -f conftest.er1
29307   cat conftest.err >&5
29308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309   (exit $ac_status); } && {
29310          test -z "$ac_c_werror_flag" ||
29311          test ! -s conftest.err
29312        } && test -s conftest.$ac_objext; then
29313   ac_hi=$ac_mid
29314 else
29315   $as_echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29317
29318         ac_lo=`expr '(' $ac_mid ')' + 1`
29319 fi
29320
29321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29322 done
29323 case $ac_lo in
29324 ?*) result=$ac_lo;;
29325 '') result=unknown ;;
29326 esac
29327 else
29328   cat >conftest.$ac_ext <<_ACEOF
29329 /* confdefs.h.  */
29330 _ACEOF
29331 cat confdefs.h >>conftest.$ac_ext
29332 cat >>conftest.$ac_ext <<_ACEOF
29333 /* end confdefs.h.  */
29334
29335   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29336      included before <wchar.h>.  */
29337   #include <stddef.h>
29338   #include <signal.h>
29339   #if HAVE_WCHAR_H
29340   # include <stdio.h>
29341   # include <time.h>
29342   # include <wchar.h>
29343   #endif
29344
29345 #include <limits.h>
29346 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29347 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29348 #include <stdio.h>
29349 #include <stdlib.h>
29350 int
29351 main ()
29352 {
29353
29354   FILE *f = fopen ("conftest.val", "w");
29355   if (! f)
29356     return 1;
29357   if ((sizeof ($gltype) * CHAR_BIT) < 0)
29358     {
29359       long int i = longval ();
29360       if (i != (sizeof ($gltype) * CHAR_BIT))
29361         return 1;
29362       fprintf (f, "%ld", i);
29363     }
29364   else
29365     {
29366       unsigned long int i = ulongval ();
29367       if (i != (sizeof ($gltype) * CHAR_BIT))
29368         return 1;
29369       fprintf (f, "%lu", i);
29370     }
29371   /* Do not output a trailing newline, as this causes \r\n confusion
29372      on some platforms.  */
29373   return ferror (f) || fclose (f) != 0;
29374
29375   ;
29376   return 0;
29377 }
29378 _ACEOF
29379 rm -f conftest$ac_exeext
29380 if { (ac_try="$ac_link"
29381 case "(($ac_try" in
29382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29383   *) ac_try_echo=$ac_try;;
29384 esac
29385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29386 $as_echo "$ac_try_echo") >&5
29387   (eval "$ac_link") 2>&5
29388   ac_status=$?
29389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29391   { (case "(($ac_try" in
29392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393   *) ac_try_echo=$ac_try;;
29394 esac
29395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29396 $as_echo "$ac_try_echo") >&5
29397   (eval "$ac_try") 2>&5
29398   ac_status=$?
29399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); }; }; then
29401   result=`cat conftest.val`
29402 else
29403   $as_echo "$as_me: program exited with status $ac_status" >&5
29404 $as_echo "$as_me: failed program was:" >&5
29405 sed 's/^/| /' conftest.$ac_ext >&5
29406
29407 ( exit $ac_status )
29408 result=unknown
29409 fi
29410 rm -rf conftest.dSYM
29411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29412 fi
29413 rm -f conftest.val
29414        eval gl_cv_bitsizeof_${gltype}=\$result
29415
29416 fi
29417 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29418                  $as_echo "$as_val"'`
29419                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29420 $as_echo "$ac_res" >&6; }
29421     eval result=\$gl_cv_bitsizeof_${gltype}
29422     if test $result = unknown; then
29423                                                 result=0
29424     fi
29425     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29426     cat >>confdefs.h <<_ACEOF
29427 #define BITSIZEOF_${GLTYPE} $result
29428 _ACEOF
29429
29430     eval BITSIZEOF_${GLTYPE}=\$result
29431   done
29432
29433
29434   fi
29435
29436
29437
29438
29439
29440   for gltype in sig_atomic_t wchar_t wint_t ; do
29441     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29442 $as_echo_n "checking for bit size of $gltype... " >&6; }
29443 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29444   $as_echo_n "(cached) " >&6
29445 else
29446   if test "$cross_compiling" = yes; then
29447   # Depending upon the size, compute the lo and hi bounds.
29448 cat >conftest.$ac_ext <<_ACEOF
29449 /* confdefs.h.  */
29450 _ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h.  */
29454
29455   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29456      included before <wchar.h>.  */
29457   #include <stddef.h>
29458   #include <signal.h>
29459   #if HAVE_WCHAR_H
29460   # include <stdio.h>
29461   # include <time.h>
29462   # include <wchar.h>
29463   #endif
29464
29465 #include <limits.h>
29466 int
29467 main ()
29468 {
29469 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29470 test_array [0] = 0
29471
29472   ;
29473   return 0;
29474 }
29475 _ACEOF
29476 rm -f conftest.$ac_objext
29477 if { (ac_try="$ac_compile"
29478 case "(($ac_try" in
29479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480   *) ac_try_echo=$ac_try;;
29481 esac
29482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29483 $as_echo "$ac_try_echo") >&5
29484   (eval "$ac_compile") 2>conftest.er1
29485   ac_status=$?
29486   grep -v '^ *+' conftest.er1 >conftest.err
29487   rm -f conftest.er1
29488   cat conftest.err >&5
29489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490   (exit $ac_status); } && {
29491          test -z "$ac_c_werror_flag" ||
29492          test ! -s conftest.err
29493        } && test -s conftest.$ac_objext; then
29494   ac_lo=0 ac_mid=0
29495   while :; do
29496     cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502
29503   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29504      included before <wchar.h>.  */
29505   #include <stddef.h>
29506   #include <signal.h>
29507   #if HAVE_WCHAR_H
29508   # include <stdio.h>
29509   # include <time.h>
29510   # include <wchar.h>
29511   #endif
29512
29513 #include <limits.h>
29514 int
29515 main ()
29516 {
29517 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29518 test_array [0] = 0
29519
29520   ;
29521   return 0;
29522 }
29523 _ACEOF
29524 rm -f conftest.$ac_objext
29525 if { (ac_try="$ac_compile"
29526 case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29531 $as_echo "$ac_try_echo") >&5
29532   (eval "$ac_compile") 2>conftest.er1
29533   ac_status=$?
29534   grep -v '^ *+' conftest.er1 >conftest.err
29535   rm -f conftest.er1
29536   cat conftest.err >&5
29537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538   (exit $ac_status); } && {
29539          test -z "$ac_c_werror_flag" ||
29540          test ! -s conftest.err
29541        } && test -s conftest.$ac_objext; then
29542   ac_hi=$ac_mid; break
29543 else
29544   $as_echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547         ac_lo=`expr $ac_mid + 1`
29548                         if test $ac_lo -le $ac_mid; then
29549                           ac_lo= ac_hi=
29550                           break
29551                         fi
29552                         ac_mid=`expr 2 '*' $ac_mid + 1`
29553 fi
29554
29555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29556   done
29557 else
29558   $as_echo "$as_me: failed program was:" >&5
29559 sed 's/^/| /' conftest.$ac_ext >&5
29560
29561         cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567
29568   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29569      included before <wchar.h>.  */
29570   #include <stddef.h>
29571   #include <signal.h>
29572   #if HAVE_WCHAR_H
29573   # include <stdio.h>
29574   # include <time.h>
29575   # include <wchar.h>
29576   #endif
29577
29578 #include <limits.h>
29579 int
29580 main ()
29581 {
29582 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29583 test_array [0] = 0
29584
29585   ;
29586   return 0;
29587 }
29588 _ACEOF
29589 rm -f conftest.$ac_objext
29590 if { (ac_try="$ac_compile"
29591 case "(($ac_try" in
29592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29593   *) ac_try_echo=$ac_try;;
29594 esac
29595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29596 $as_echo "$ac_try_echo") >&5
29597   (eval "$ac_compile") 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } && {
29604          test -z "$ac_c_werror_flag" ||
29605          test ! -s conftest.err
29606        } && test -s conftest.$ac_objext; then
29607   ac_hi=-1 ac_mid=-1
29608   while :; do
29609     cat >conftest.$ac_ext <<_ACEOF
29610 /* confdefs.h.  */
29611 _ACEOF
29612 cat confdefs.h >>conftest.$ac_ext
29613 cat >>conftest.$ac_ext <<_ACEOF
29614 /* end confdefs.h.  */
29615
29616   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29617      included before <wchar.h>.  */
29618   #include <stddef.h>
29619   #include <signal.h>
29620   #if HAVE_WCHAR_H
29621   # include <stdio.h>
29622   # include <time.h>
29623   # include <wchar.h>
29624   #endif
29625
29626 #include <limits.h>
29627 int
29628 main ()
29629 {
29630 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29631 test_array [0] = 0
29632
29633   ;
29634   return 0;
29635 }
29636 _ACEOF
29637 rm -f conftest.$ac_objext
29638 if { (ac_try="$ac_compile"
29639 case "(($ac_try" in
29640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29641   *) ac_try_echo=$ac_try;;
29642 esac
29643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29644 $as_echo "$ac_try_echo") >&5
29645   (eval "$ac_compile") 2>conftest.er1
29646   ac_status=$?
29647   grep -v '^ *+' conftest.er1 >conftest.err
29648   rm -f conftest.er1
29649   cat conftest.err >&5
29650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); } && {
29652          test -z "$ac_c_werror_flag" ||
29653          test ! -s conftest.err
29654        } && test -s conftest.$ac_objext; then
29655   ac_lo=$ac_mid; break
29656 else
29657   $as_echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29659
29660         ac_hi=`expr '(' $ac_mid ')' - 1`
29661                         if test $ac_mid -le $ac_hi; then
29662                           ac_lo= ac_hi=
29663                           break
29664                         fi
29665                         ac_mid=`expr 2 '*' $ac_mid`
29666 fi
29667
29668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29669   done
29670 else
29671   $as_echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29673
29674         ac_lo= ac_hi=
29675 fi
29676
29677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29678 fi
29679
29680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29681 # Binary search between lo and hi bounds.
29682 while test "x$ac_lo" != "x$ac_hi"; do
29683   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29684   cat >conftest.$ac_ext <<_ACEOF
29685 /* confdefs.h.  */
29686 _ACEOF
29687 cat confdefs.h >>conftest.$ac_ext
29688 cat >>conftest.$ac_ext <<_ACEOF
29689 /* end confdefs.h.  */
29690
29691   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29692      included before <wchar.h>.  */
29693   #include <stddef.h>
29694   #include <signal.h>
29695   #if HAVE_WCHAR_H
29696   # include <stdio.h>
29697   # include <time.h>
29698   # include <wchar.h>
29699   #endif
29700
29701 #include <limits.h>
29702 int
29703 main ()
29704 {
29705 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29706 test_array [0] = 0
29707
29708   ;
29709   return 0;
29710 }
29711 _ACEOF
29712 rm -f conftest.$ac_objext
29713 if { (ac_try="$ac_compile"
29714 case "(($ac_try" in
29715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716   *) ac_try_echo=$ac_try;;
29717 esac
29718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719 $as_echo "$ac_try_echo") >&5
29720   (eval "$ac_compile") 2>conftest.er1
29721   ac_status=$?
29722   grep -v '^ *+' conftest.er1 >conftest.err
29723   rm -f conftest.er1
29724   cat conftest.err >&5
29725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } && {
29727          test -z "$ac_c_werror_flag" ||
29728          test ! -s conftest.err
29729        } && test -s conftest.$ac_objext; then
29730   ac_hi=$ac_mid
29731 else
29732   $as_echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735         ac_lo=`expr '(' $ac_mid ')' + 1`
29736 fi
29737
29738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29739 done
29740 case $ac_lo in
29741 ?*) result=$ac_lo;;
29742 '') result=unknown ;;
29743 esac
29744 else
29745   cat >conftest.$ac_ext <<_ACEOF
29746 /* confdefs.h.  */
29747 _ACEOF
29748 cat confdefs.h >>conftest.$ac_ext
29749 cat >>conftest.$ac_ext <<_ACEOF
29750 /* end confdefs.h.  */
29751
29752   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29753      included before <wchar.h>.  */
29754   #include <stddef.h>
29755   #include <signal.h>
29756   #if HAVE_WCHAR_H
29757   # include <stdio.h>
29758   # include <time.h>
29759   # include <wchar.h>
29760   #endif
29761
29762 #include <limits.h>
29763 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29764 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29765 #include <stdio.h>
29766 #include <stdlib.h>
29767 int
29768 main ()
29769 {
29770
29771   FILE *f = fopen ("conftest.val", "w");
29772   if (! f)
29773     return 1;
29774   if ((sizeof ($gltype) * CHAR_BIT) < 0)
29775     {
29776       long int i = longval ();
29777       if (i != (sizeof ($gltype) * CHAR_BIT))
29778         return 1;
29779       fprintf (f, "%ld", i);
29780     }
29781   else
29782     {
29783       unsigned long int i = ulongval ();
29784       if (i != (sizeof ($gltype) * CHAR_BIT))
29785         return 1;
29786       fprintf (f, "%lu", i);
29787     }
29788   /* Do not output a trailing newline, as this causes \r\n confusion
29789      on some platforms.  */
29790   return ferror (f) || fclose (f) != 0;
29791
29792   ;
29793   return 0;
29794 }
29795 _ACEOF
29796 rm -f conftest$ac_exeext
29797 if { (ac_try="$ac_link"
29798 case "(($ac_try" in
29799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29800   *) ac_try_echo=$ac_try;;
29801 esac
29802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29803 $as_echo "$ac_try_echo") >&5
29804   (eval "$ac_link") 2>&5
29805   ac_status=$?
29806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29808   { (case "(($ac_try" in
29809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810   *) ac_try_echo=$ac_try;;
29811 esac
29812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29813 $as_echo "$ac_try_echo") >&5
29814   (eval "$ac_try") 2>&5
29815   ac_status=$?
29816   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817   (exit $ac_status); }; }; then
29818   result=`cat conftest.val`
29819 else
29820   $as_echo "$as_me: program exited with status $ac_status" >&5
29821 $as_echo "$as_me: failed program was:" >&5
29822 sed 's/^/| /' conftest.$ac_ext >&5
29823
29824 ( exit $ac_status )
29825 result=unknown
29826 fi
29827 rm -rf conftest.dSYM
29828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29829 fi
29830 rm -f conftest.val
29831        eval gl_cv_bitsizeof_${gltype}=\$result
29832
29833 fi
29834 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29835                  $as_echo "$as_val"'`
29836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29837 $as_echo "$ac_res" >&6; }
29838     eval result=\$gl_cv_bitsizeof_${gltype}
29839     if test $result = unknown; then
29840                                                 result=0
29841     fi
29842     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29843     cat >>confdefs.h <<_ACEOF
29844 #define BITSIZEOF_${GLTYPE} $result
29845 _ACEOF
29846
29847     eval BITSIZEOF_${GLTYPE}=\$result
29848   done
29849
29850
29851
29852
29853
29854
29855
29856   for gltype in sig_atomic_t wchar_t wint_t ; do
29857     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
29858 $as_echo_n "checking whether $gltype is signed... " >&6; }
29859 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
29860   $as_echo_n "(cached) " >&6
29861 else
29862   cat >conftest.$ac_ext <<_ACEOF
29863 /* confdefs.h.  */
29864 _ACEOF
29865 cat confdefs.h >>conftest.$ac_ext
29866 cat >>conftest.$ac_ext <<_ACEOF
29867 /* end confdefs.h.  */
29868
29869   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29870      included before <wchar.h>.  */
29871   #include <stddef.h>
29872   #include <signal.h>
29873   #if HAVE_WCHAR_H
29874   # include <stdio.h>
29875   # include <time.h>
29876   # include <wchar.h>
29877   #endif
29878
29879             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
29880 int
29881 main ()
29882 {
29883
29884   ;
29885   return 0;
29886 }
29887 _ACEOF
29888 rm -f conftest.$ac_objext
29889 if { (ac_try="$ac_compile"
29890 case "(($ac_try" in
29891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892   *) ac_try_echo=$ac_try;;
29893 esac
29894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29895 $as_echo "$ac_try_echo") >&5
29896   (eval "$ac_compile") 2>conftest.er1
29897   ac_status=$?
29898   grep -v '^ *+' conftest.er1 >conftest.err
29899   rm -f conftest.er1
29900   cat conftest.err >&5
29901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902   (exit $ac_status); } && {
29903          test -z "$ac_c_werror_flag" ||
29904          test ! -s conftest.err
29905        } && test -s conftest.$ac_objext; then
29906   result=yes
29907 else
29908   $as_echo "$as_me: failed program was:" >&5
29909 sed 's/^/| /' conftest.$ac_ext >&5
29910
29911         result=no
29912 fi
29913
29914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29915        eval gl_cv_type_${gltype}_signed=\$result
29916
29917 fi
29918 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
29919                  $as_echo "$as_val"'`
29920                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29921 $as_echo "$ac_res" >&6; }
29922     eval result=\$gl_cv_type_${gltype}_signed
29923     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29924     if test "$result" = yes; then
29925       cat >>confdefs.h <<_ACEOF
29926 #define HAVE_SIGNED_${GLTYPE} 1
29927 _ACEOF
29928
29929       eval HAVE_SIGNED_${GLTYPE}=1
29930     else
29931       eval HAVE_SIGNED_${GLTYPE}=0
29932     fi
29933   done
29934
29935
29936   gl_cv_type_ptrdiff_t_signed=yes
29937   gl_cv_type_size_t_signed=no
29938   if test $APPLE_UNIVERSAL_BUILD = 0; then
29939
29940
29941
29942
29943   for gltype in ptrdiff_t size_t ; do
29944     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
29945 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
29946 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
29947   $as_echo_n "(cached) " >&6
29948 else
29949   eval gl_cv_type_${gltype}_suffix=no
29950        eval result=\$gl_cv_type_${gltype}_signed
29951        if test "$result" = yes; then
29952          glsufu=
29953        else
29954          glsufu=u
29955        fi
29956        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29957          case $glsuf in
29958            '')  gltype1='int';;
29959            l)   gltype1='long int';;
29960            ll)  gltype1='long long int';;
29961            i64) gltype1='__int64';;
29962            u)   gltype1='unsigned int';;
29963            ul)  gltype1='unsigned long int';;
29964            ull) gltype1='unsigned long long int';;
29965            ui64)gltype1='unsigned __int64';;
29966          esac
29967          cat >conftest.$ac_ext <<_ACEOF
29968 /* confdefs.h.  */
29969 _ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h.  */
29973
29974   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29975      included before <wchar.h>.  */
29976   #include <stddef.h>
29977   #include <signal.h>
29978   #if HAVE_WCHAR_H
29979   # include <stdio.h>
29980   # include <time.h>
29981   # include <wchar.h>
29982   #endif
29983
29984               extern $gltype foo;
29985               extern $gltype1 foo;
29986 int
29987 main ()
29988 {
29989
29990   ;
29991   return 0;
29992 }
29993 _ACEOF
29994 rm -f conftest.$ac_objext
29995 if { (ac_try="$ac_compile"
29996 case "(($ac_try" in
29997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29998   *) ac_try_echo=$ac_try;;
29999 esac
30000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30001 $as_echo "$ac_try_echo") >&5
30002   (eval "$ac_compile") 2>conftest.er1
30003   ac_status=$?
30004   grep -v '^ *+' conftest.er1 >conftest.err
30005   rm -f conftest.er1
30006   cat conftest.err >&5
30007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008   (exit $ac_status); } && {
30009          test -z "$ac_c_werror_flag" ||
30010          test ! -s conftest.err
30011        } && test -s conftest.$ac_objext; then
30012   eval gl_cv_type_${gltype}_suffix=\$glsuf
30013 else
30014   $as_echo "$as_me: failed program was:" >&5
30015 sed 's/^/| /' conftest.$ac_ext >&5
30016
30017
30018 fi
30019
30020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30021          eval result=\$gl_cv_type_${gltype}_suffix
30022          test "$result" != no && break
30023        done
30024 fi
30025 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30026                  $as_echo "$as_val"'`
30027                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30028 $as_echo "$ac_res" >&6; }
30029     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30030     eval result=\$gl_cv_type_${gltype}_suffix
30031     test "$result" = no && result=
30032     eval ${GLTYPE}_SUFFIX=\$result
30033     cat >>confdefs.h <<_ACEOF
30034 #define ${GLTYPE}_SUFFIX $result
30035 _ACEOF
30036
30037   done
30038
30039
30040   fi
30041
30042
30043
30044
30045
30046   for gltype in sig_atomic_t wchar_t wint_t ; do
30047     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30048 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30049 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30050   $as_echo_n "(cached) " >&6
30051 else
30052   eval gl_cv_type_${gltype}_suffix=no
30053        eval result=\$gl_cv_type_${gltype}_signed
30054        if test "$result" = yes; then
30055          glsufu=
30056        else
30057          glsufu=u
30058        fi
30059        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30060          case $glsuf in
30061            '')  gltype1='int';;
30062            l)   gltype1='long int';;
30063            ll)  gltype1='long long int';;
30064            i64) gltype1='__int64';;
30065            u)   gltype1='unsigned int';;
30066            ul)  gltype1='unsigned long int';;
30067            ull) gltype1='unsigned long long int';;
30068            ui64)gltype1='unsigned __int64';;
30069          esac
30070          cat >conftest.$ac_ext <<_ACEOF
30071 /* confdefs.h.  */
30072 _ACEOF
30073 cat confdefs.h >>conftest.$ac_ext
30074 cat >>conftest.$ac_ext <<_ACEOF
30075 /* end confdefs.h.  */
30076
30077   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30078      included before <wchar.h>.  */
30079   #include <stddef.h>
30080   #include <signal.h>
30081   #if HAVE_WCHAR_H
30082   # include <stdio.h>
30083   # include <time.h>
30084   # include <wchar.h>
30085   #endif
30086
30087               extern $gltype foo;
30088               extern $gltype1 foo;
30089 int
30090 main ()
30091 {
30092
30093   ;
30094   return 0;
30095 }
30096 _ACEOF
30097 rm -f conftest.$ac_objext
30098 if { (ac_try="$ac_compile"
30099 case "(($ac_try" in
30100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101   *) ac_try_echo=$ac_try;;
30102 esac
30103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30104 $as_echo "$ac_try_echo") >&5
30105   (eval "$ac_compile") 2>conftest.er1
30106   ac_status=$?
30107   grep -v '^ *+' conftest.er1 >conftest.err
30108   rm -f conftest.er1
30109   cat conftest.err >&5
30110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111   (exit $ac_status); } && {
30112          test -z "$ac_c_werror_flag" ||
30113          test ! -s conftest.err
30114        } && test -s conftest.$ac_objext; then
30115   eval gl_cv_type_${gltype}_suffix=\$glsuf
30116 else
30117   $as_echo "$as_me: failed program was:" >&5
30118 sed 's/^/| /' conftest.$ac_ext >&5
30119
30120
30121 fi
30122
30123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30124          eval result=\$gl_cv_type_${gltype}_suffix
30125          test "$result" != no && break
30126        done
30127 fi
30128 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30129                  $as_echo "$as_val"'`
30130                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30131 $as_echo "$ac_res" >&6; }
30132     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30133     eval result=\$gl_cv_type_${gltype}_suffix
30134     test "$result" = no && result=
30135     eval ${GLTYPE}_SUFFIX=\$result
30136     cat >>confdefs.h <<_ACEOF
30137 #define ${GLTYPE}_SUFFIX $result
30138 _ACEOF
30139
30140   done
30141
30142
30143
30144     STDINT_H=stdint.h
30145   fi
30146
30147
30148   # Code from module stdio:
30149
30150
30151
30152
30153
30154
30155
30156
30157   :
30158
30159
30160
30161
30162
30163
30164
30165      if test $gl_cv_have_include_next = yes; then
30166        gl_cv_next_stdio_h='<'stdio.h'>'
30167      else
30168        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
30169 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30170 if test "${gl_cv_next_stdio_h+set}" = set; then
30171   $as_echo_n "(cached) " >&6
30172 else
30173
30174           if test $ac_cv_header_stdio_h = yes; then
30175             cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181 #include <stdio.h>
30182
30183 _ACEOF
30184                                                                                                 case "$host_os" in
30185               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30186               *)    gl_absname_cpp="$ac_cpp" ;;
30187             esac
30188                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30189                sed -n '\#/stdio.h#{
30190                  s#.*"\(.*/stdio.h\)".*#\1#
30191                  s#^/[^/]#//&#
30192                  p
30193                  q
30194                }'`'"'
30195           else
30196             gl_cv_next_stdio_h='<'stdio.h'>'
30197           fi
30198
30199 fi
30200 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
30201 $as_echo "$gl_cv_next_stdio_h" >&6; }
30202      fi
30203      NEXT_STDIO_H=$gl_cv_next_stdio_h
30204
30205      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30206        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30207        gl_next_as_first_directive='<'stdio.h'>'
30208      else
30209        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30210        gl_next_as_first_directive=$gl_cv_next_stdio_h
30211      fi
30212      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30213
30214
30215
30216       GNULIB_FPRINTF=1
30217   GNULIB_PRINTF=1
30218   GNULIB_VFPRINTF=1
30219   GNULIB_VPRINTF=1
30220   GNULIB_FPUTC=1
30221   GNULIB_PUTC=1
30222   GNULIB_PUTCHAR=1
30223   GNULIB_FPUTS=1
30224   GNULIB_PUTS=1
30225   GNULIB_FWRITE=1
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241   for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
30242     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30243     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30244 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30245 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30246   $as_echo_n "(cached) " >&6
30247 else
30248   cat >conftest.$ac_ext <<_ACEOF
30249 /* confdefs.h.  */
30250 _ACEOF
30251 cat confdefs.h >>conftest.$ac_ext
30252 cat >>conftest.$ac_ext <<_ACEOF
30253 /* end confdefs.h.  */
30254 #include <stdio.h>
30255
30256 int
30257 main ()
30258 {
30259 #undef $gl_func
30260   (void) $gl_func;
30261   ;
30262   return 0;
30263 }
30264 _ACEOF
30265 rm -f conftest.$ac_objext
30266 if { (ac_try="$ac_compile"
30267 case "(($ac_try" in
30268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269   *) ac_try_echo=$ac_try;;
30270 esac
30271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30272 $as_echo "$ac_try_echo") >&5
30273   (eval "$ac_compile") 2>conftest.er1
30274   ac_status=$?
30275   grep -v '^ *+' conftest.er1 >conftest.err
30276   rm -f conftest.er1
30277   cat conftest.err >&5
30278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); } && {
30280          test -z "$ac_c_werror_flag" ||
30281          test ! -s conftest.err
30282        } && test -s conftest.$ac_objext; then
30283   eval "$as_gl_Symbol=yes"
30284 else
30285   $as_echo "$as_me: failed program was:" >&5
30286 sed 's/^/| /' conftest.$ac_ext >&5
30287
30288         eval "$as_gl_Symbol=no"
30289 fi
30290
30291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30292 fi
30293 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30294                  $as_echo "$as_val"'`
30295                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30296 $as_echo "$ac_res" >&6; }
30297      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30298                  $as_echo "$as_val"'`
30299    if test "x$as_val" = x""yes; then
30300   cat >>confdefs.h <<_ACEOF
30301 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30302 _ACEOF
30303
30304                      eval ac_cv_have_decl_$gl_func=yes
30305 fi
30306
30307       done
30308
30309
30310   # Code from module stdlib:
30311
30312
30313
30314
30315
30316
30317   :
30318
30319
30320
30321
30322
30323
30324
30325      if test $gl_cv_have_include_next = yes; then
30326        gl_cv_next_stdlib_h='<'stdlib.h'>'
30327      else
30328        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
30329 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30330 if test "${gl_cv_next_stdlib_h+set}" = set; then
30331   $as_echo_n "(cached) " >&6
30332 else
30333
30334           if test $ac_cv_header_stdlib_h = yes; then
30335             cat >conftest.$ac_ext <<_ACEOF
30336 /* confdefs.h.  */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h.  */
30341 #include <stdlib.h>
30342
30343 _ACEOF
30344                                                                                                 case "$host_os" in
30345               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30346               *)    gl_absname_cpp="$ac_cpp" ;;
30347             esac
30348                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30349                sed -n '\#/stdlib.h#{
30350                  s#.*"\(.*/stdlib.h\)".*#\1#
30351                  s#^/[^/]#//&#
30352                  p
30353                  q
30354                }'`'"'
30355           else
30356             gl_cv_next_stdlib_h='<'stdlib.h'>'
30357           fi
30358
30359 fi
30360 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
30361 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30362      fi
30363      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30364
30365      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30366        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30367        gl_next_as_first_directive='<'stdlib.h'>'
30368      else
30369        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30370        gl_next_as_first_directive=$gl_cv_next_stdlib_h
30371      fi
30372      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30373
30374
30375
30376
30377 for ac_header in random.h
30378 do
30379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30380 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30381 $as_echo_n "checking for $ac_header... " >&6; }
30382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30383   $as_echo_n "(cached) " >&6
30384 else
30385   cat >conftest.$ac_ext <<_ACEOF
30386 /* confdefs.h.  */
30387 _ACEOF
30388 cat confdefs.h >>conftest.$ac_ext
30389 cat >>conftest.$ac_ext <<_ACEOF
30390 /* end confdefs.h.  */
30391 $ac_includes_default
30392
30393 #include <$ac_header>
30394 _ACEOF
30395 rm -f conftest.$ac_objext
30396 if { (ac_try="$ac_compile"
30397 case "(($ac_try" in
30398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30399   *) ac_try_echo=$ac_try;;
30400 esac
30401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30402 $as_echo "$ac_try_echo") >&5
30403   (eval "$ac_compile") 2>conftest.er1
30404   ac_status=$?
30405   grep -v '^ *+' conftest.er1 >conftest.err
30406   rm -f conftest.er1
30407   cat conftest.err >&5
30408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409   (exit $ac_status); } && {
30410          test -z "$ac_c_werror_flag" ||
30411          test ! -s conftest.err
30412        } && test -s conftest.$ac_objext; then
30413   eval "$as_ac_Header=yes"
30414 else
30415   $as_echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30417
30418         eval "$as_ac_Header=no"
30419 fi
30420
30421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30422 fi
30423 ac_res=`eval 'as_val=${'$as_ac_Header'}
30424                  $as_echo "$as_val"'`
30425                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30426 $as_echo "$ac_res" >&6; }
30427 as_val=`eval 'as_val=${'$as_ac_Header'}
30428                  $as_echo "$as_val"'`
30429    if test "x$as_val" = x""yes; then
30430   cat >>confdefs.h <<_ACEOF
30431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30432 _ACEOF
30433
30434 fi
30435
30436 done
30437
30438   if test $ac_cv_header_random_h = yes; then
30439     HAVE_RANDOM_H=1
30440   else
30441     HAVE_RANDOM_H=0
30442   fi
30443
30444   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
30445 $as_echo_n "checking for struct random_data... " >&6; }
30446 if test "${ac_cv_type_struct_random_data+set}" = set; then
30447   $as_echo_n "(cached) " >&6
30448 else
30449   ac_cv_type_struct_random_data=no
30450 cat >conftest.$ac_ext <<_ACEOF
30451 /* confdefs.h.  */
30452 _ACEOF
30453 cat confdefs.h >>conftest.$ac_ext
30454 cat >>conftest.$ac_ext <<_ACEOF
30455 /* end confdefs.h.  */
30456 #include <stdlib.h>
30457       #if HAVE_RANDOM_H
30458       # include <random.h>
30459       #endif
30460
30461
30462 int
30463 main ()
30464 {
30465 if (sizeof (struct random_data))
30466        return 0;
30467   ;
30468   return 0;
30469 }
30470 _ACEOF
30471 rm -f conftest.$ac_objext
30472 if { (ac_try="$ac_compile"
30473 case "(($ac_try" in
30474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30475   *) ac_try_echo=$ac_try;;
30476 esac
30477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30478 $as_echo "$ac_try_echo") >&5
30479   (eval "$ac_compile") 2>conftest.er1
30480   ac_status=$?
30481   grep -v '^ *+' conftest.er1 >conftest.err
30482   rm -f conftest.er1
30483   cat conftest.err >&5
30484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485   (exit $ac_status); } && {
30486          test -z "$ac_c_werror_flag" ||
30487          test ! -s conftest.err
30488        } && test -s conftest.$ac_objext; then
30489   cat >conftest.$ac_ext <<_ACEOF
30490 /* confdefs.h.  */
30491 _ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h.  */
30495 #include <stdlib.h>
30496       #if HAVE_RANDOM_H
30497       # include <random.h>
30498       #endif
30499
30500
30501 int
30502 main ()
30503 {
30504 if (sizeof ((struct random_data)))
30505           return 0;
30506   ;
30507   return 0;
30508 }
30509 _ACEOF
30510 rm -f conftest.$ac_objext
30511 if { (ac_try="$ac_compile"
30512 case "(($ac_try" in
30513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514   *) ac_try_echo=$ac_try;;
30515 esac
30516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30517 $as_echo "$ac_try_echo") >&5
30518   (eval "$ac_compile") 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } && {
30525          test -z "$ac_c_werror_flag" ||
30526          test ! -s conftest.err
30527        } && test -s conftest.$ac_objext; then
30528   :
30529 else
30530   $as_echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533         ac_cv_type_struct_random_data=yes
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537 else
30538   $as_echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30540
30541
30542 fi
30543
30544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545 fi
30546 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
30547 $as_echo "$ac_cv_type_struct_random_data" >&6; }
30548 if test "x$ac_cv_type_struct_random_data" = x""yes; then
30549
30550 cat >>confdefs.h <<_ACEOF
30551 #define HAVE_STRUCT_RANDOM_DATA 1
30552 _ACEOF
30553
30554
30555 else
30556   HAVE_STRUCT_RANDOM_DATA=0
30557 fi
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569
30570
30571
30572
30573
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583
30584
30585   for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
30586     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30587     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30588 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30589 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30590   $as_echo_n "(cached) " >&6
30591 else
30592   cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h.  */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h.  */
30598 #include <stdlib.h>
30599 #if HAVE_SYS_LOADAVG_H
30600 # include <sys/loadavg.h>
30601 #endif
30602 #if HAVE_RANDOM_H
30603 # include <random.h>
30604 #endif
30605
30606 int
30607 main ()
30608 {
30609 #undef $gl_func
30610   (void) $gl_func;
30611   ;
30612   return 0;
30613 }
30614 _ACEOF
30615 rm -f conftest.$ac_objext
30616 if { (ac_try="$ac_compile"
30617 case "(($ac_try" in
30618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619   *) ac_try_echo=$ac_try;;
30620 esac
30621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30622 $as_echo "$ac_try_echo") >&5
30623   (eval "$ac_compile") 2>conftest.er1
30624   ac_status=$?
30625   grep -v '^ *+' conftest.er1 >conftest.err
30626   rm -f conftest.er1
30627   cat conftest.err >&5
30628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629   (exit $ac_status); } && {
30630          test -z "$ac_c_werror_flag" ||
30631          test ! -s conftest.err
30632        } && test -s conftest.$ac_objext; then
30633   eval "$as_gl_Symbol=yes"
30634 else
30635   $as_echo "$as_me: failed program was:" >&5
30636 sed 's/^/| /' conftest.$ac_ext >&5
30637
30638         eval "$as_gl_Symbol=no"
30639 fi
30640
30641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30642 fi
30643 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30644                  $as_echo "$as_val"'`
30645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30646 $as_echo "$ac_res" >&6; }
30647      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30648                  $as_echo "$as_val"'`
30649    if test "x$as_val" = x""yes; then
30650   cat >>confdefs.h <<_ACEOF
30651 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30652 _ACEOF
30653
30654                      eval ac_cv_have_decl_$gl_func=yes
30655 fi
30656
30657       done
30658
30659
30660   # Code from module streq:
30661   # Code from module string:
30662
30663
30664
30665   # Code from module sys_socket:
30666
30667
30668
30669
30670   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
30671 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
30672 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
30673   $as_echo_n "(cached) " >&6
30674 else
30675
30676       cat >conftest.$ac_ext <<_ACEOF
30677 /* confdefs.h.  */
30678 _ACEOF
30679 cat confdefs.h >>conftest.$ac_ext
30680 cat >>conftest.$ac_ext <<_ACEOF
30681 /* end confdefs.h.  */
30682 #include <sys/socket.h>
30683 int
30684 main ()
30685 {
30686
30687   ;
30688   return 0;
30689 }
30690 _ACEOF
30691 rm -f conftest.$ac_objext
30692 if { (ac_try="$ac_compile"
30693 case "(($ac_try" in
30694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30695   *) ac_try_echo=$ac_try;;
30696 esac
30697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30698 $as_echo "$ac_try_echo") >&5
30699   (eval "$ac_compile") 2>conftest.er1
30700   ac_status=$?
30701   grep -v '^ *+' conftest.er1 >conftest.err
30702   rm -f conftest.er1
30703   cat conftest.err >&5
30704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705   (exit $ac_status); } && {
30706          test -z "$ac_c_werror_flag" ||
30707          test ! -s conftest.err
30708        } && test -s conftest.$ac_objext; then
30709   gl_cv_header_sys_socket_h_selfcontained=yes
30710 else
30711   $as_echo "$as_me: failed program was:" >&5
30712 sed 's/^/| /' conftest.$ac_ext >&5
30713
30714         gl_cv_header_sys_socket_h_selfcontained=no
30715 fi
30716
30717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30718
30719 fi
30720 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
30721 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
30722   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
30723
30724 for ac_func in shutdown
30725 do
30726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30727 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30728 $as_echo_n "checking for $ac_func... " >&6; }
30729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30730   $as_echo_n "(cached) " >&6
30731 else
30732   cat >conftest.$ac_ext <<_ACEOF
30733 /* confdefs.h.  */
30734 _ACEOF
30735 cat confdefs.h >>conftest.$ac_ext
30736 cat >>conftest.$ac_ext <<_ACEOF
30737 /* end confdefs.h.  */
30738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30740 #define $ac_func innocuous_$ac_func
30741
30742 /* System header to define __stub macros and hopefully few prototypes,
30743     which can conflict with char $ac_func (); below.
30744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30745     <limits.h> exists even on freestanding compilers.  */
30746
30747 #ifdef __STDC__
30748 # include <limits.h>
30749 #else
30750 # include <assert.h>
30751 #endif
30752
30753 #undef $ac_func
30754
30755 /* Override any GCC internal prototype to avoid an error.
30756    Use char because int might match the return type of a GCC
30757    builtin and then its argument prototype would still apply.  */
30758 #ifdef __cplusplus
30759 extern "C"
30760 #endif
30761 char $ac_func ();
30762 /* The GNU C library defines this for functions which it implements
30763     to always fail with ENOSYS.  Some functions are actually named
30764     something starting with __ and the normal name is an alias.  */
30765 #if defined __stub_$ac_func || defined __stub___$ac_func
30766 choke me
30767 #endif
30768
30769 int
30770 main ()
30771 {
30772 return $ac_func ();
30773   ;
30774   return 0;
30775 }
30776 _ACEOF
30777 rm -f conftest.$ac_objext conftest$ac_exeext
30778 if { (ac_try="$ac_link"
30779 case "(($ac_try" in
30780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781   *) ac_try_echo=$ac_try;;
30782 esac
30783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30784 $as_echo "$ac_try_echo") >&5
30785   (eval "$ac_link") 2>conftest.er1
30786   ac_status=$?
30787   grep -v '^ *+' conftest.er1 >conftest.err
30788   rm -f conftest.er1
30789   cat conftest.err >&5
30790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791   (exit $ac_status); } && {
30792          test -z "$ac_c_werror_flag" ||
30793          test ! -s conftest.err
30794        } && test -s conftest$ac_exeext && {
30795          test "$cross_compiling" = yes ||
30796          $as_test_x conftest$ac_exeext
30797        }; then
30798   eval "$as_ac_var=yes"
30799 else
30800   $as_echo "$as_me: failed program was:" >&5
30801 sed 's/^/| /' conftest.$ac_ext >&5
30802
30803         eval "$as_ac_var=no"
30804 fi
30805
30806 rm -rf conftest.dSYM
30807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30808       conftest$ac_exeext conftest.$ac_ext
30809 fi
30810 ac_res=`eval 'as_val=${'$as_ac_var'}
30811                  $as_echo "$as_val"'`
30812                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30813 $as_echo "$ac_res" >&6; }
30814 as_val=`eval 'as_val=${'$as_ac_var'}
30815                  $as_echo "$as_val"'`
30816    if test "x$as_val" = x""yes; then
30817   cat >>confdefs.h <<_ACEOF
30818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30819 _ACEOF
30820
30821 fi
30822 done
30823
30824     if test $ac_cv_func_shutdown = yes; then
30825       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
30826 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
30827 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
30828   $as_echo_n "(cached) " >&6
30829 else
30830
30831           cat >conftest.$ac_ext <<_ACEOF
30832 /* confdefs.h.  */
30833 _ACEOF
30834 cat confdefs.h >>conftest.$ac_ext
30835 cat >>conftest.$ac_ext <<_ACEOF
30836 /* end confdefs.h.  */
30837 #include <sys/socket.h>
30838 int
30839 main ()
30840 {
30841 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
30842   ;
30843   return 0;
30844 }
30845 _ACEOF
30846 rm -f conftest.$ac_objext
30847 if { (ac_try="$ac_compile"
30848 case "(($ac_try" in
30849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850   *) ac_try_echo=$ac_try;;
30851 esac
30852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30853 $as_echo "$ac_try_echo") >&5
30854   (eval "$ac_compile") 2>conftest.er1
30855   ac_status=$?
30856   grep -v '^ *+' conftest.er1 >conftest.err
30857   rm -f conftest.er1
30858   cat conftest.err >&5
30859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860   (exit $ac_status); } && {
30861          test -z "$ac_c_werror_flag" ||
30862          test ! -s conftest.err
30863        } && test -s conftest.$ac_objext; then
30864   gl_cv_header_sys_socket_h_shut=yes
30865 else
30866   $as_echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.$ac_ext >&5
30868
30869         gl_cv_header_sys_socket_h_shut=no
30870 fi
30871
30872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30873
30874 fi
30875 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
30876 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
30877       if test $gl_cv_header_sys_socket_h_shut = no; then
30878         SYS_SOCKET_H='sys/socket.h'
30879       fi
30880     fi
30881   fi
30882   # We need to check for ws2tcpip.h now.
30883
30884
30885
30886
30887
30888   :
30889
30890
30891
30892
30893
30894
30895
30896      if test $gl_cv_have_include_next = yes; then
30897        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30898      else
30899        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
30900 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
30901 if test "${gl_cv_next_sys_socket_h+set}" = set; then
30902   $as_echo_n "(cached) " >&6
30903 else
30904
30905           if test $ac_cv_header_sys_socket_h = yes; then
30906             cat >conftest.$ac_ext <<_ACEOF
30907 /* confdefs.h.  */
30908 _ACEOF
30909 cat confdefs.h >>conftest.$ac_ext
30910 cat >>conftest.$ac_ext <<_ACEOF
30911 /* end confdefs.h.  */
30912 #include <sys/socket.h>
30913
30914 _ACEOF
30915                                                                                                 case "$host_os" in
30916               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30917               *)    gl_absname_cpp="$ac_cpp" ;;
30918             esac
30919                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30920                sed -n '\#/sys/socket.h#{
30921                  s#.*"\(.*/sys/socket.h\)".*#\1#
30922                  s#^/[^/]#//&#
30923                  p
30924                  q
30925                }'`'"'
30926           else
30927             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30928           fi
30929
30930 fi
30931 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
30932 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
30933      fi
30934      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
30935
30936      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30937        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30938        gl_next_as_first_directive='<'sys/socket.h'>'
30939      else
30940        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30941        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
30942      fi
30943      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
30944
30945
30946
30947   if test $ac_cv_header_sys_socket_h = yes; then
30948     HAVE_SYS_SOCKET_H=1
30949     HAVE_WS2TCPIP_H=0
30950   else
30951     HAVE_SYS_SOCKET_H=0
30952
30953 for ac_header in ws2tcpip.h
30954 do
30955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30957   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30958 $as_echo_n "checking for $ac_header... " >&6; }
30959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30960   $as_echo_n "(cached) " >&6
30961 fi
30962 ac_res=`eval 'as_val=${'$as_ac_Header'}
30963                  $as_echo "$as_val"'`
30964                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30965 $as_echo "$ac_res" >&6; }
30966 else
30967   # Is the header compilable?
30968 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30969 $as_echo_n "checking $ac_header usability... " >&6; }
30970 cat >conftest.$ac_ext <<_ACEOF
30971 /* confdefs.h.  */
30972 _ACEOF
30973 cat confdefs.h >>conftest.$ac_ext
30974 cat >>conftest.$ac_ext <<_ACEOF
30975 /* end confdefs.h.  */
30976 $ac_includes_default
30977 #include <$ac_header>
30978 _ACEOF
30979 rm -f conftest.$ac_objext
30980 if { (ac_try="$ac_compile"
30981 case "(($ac_try" in
30982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983   *) ac_try_echo=$ac_try;;
30984 esac
30985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30986 $as_echo "$ac_try_echo") >&5
30987   (eval "$ac_compile") 2>conftest.er1
30988   ac_status=$?
30989   grep -v '^ *+' conftest.er1 >conftest.err
30990   rm -f conftest.er1
30991   cat conftest.err >&5
30992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993   (exit $ac_status); } && {
30994          test -z "$ac_c_werror_flag" ||
30995          test ! -s conftest.err
30996        } && test -s conftest.$ac_objext; then
30997   ac_header_compiler=yes
30998 else
30999   $as_echo "$as_me: failed program was:" >&5
31000 sed 's/^/| /' conftest.$ac_ext >&5
31001
31002         ac_header_compiler=no
31003 fi
31004
31005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31006 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31007 $as_echo "$ac_header_compiler" >&6; }
31008
31009 # Is the header present?
31010 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31011 $as_echo_n "checking $ac_header presence... " >&6; }
31012 cat >conftest.$ac_ext <<_ACEOF
31013 /* confdefs.h.  */
31014 _ACEOF
31015 cat confdefs.h >>conftest.$ac_ext
31016 cat >>conftest.$ac_ext <<_ACEOF
31017 /* end confdefs.h.  */
31018 #include <$ac_header>
31019 _ACEOF
31020 if { (ac_try="$ac_cpp conftest.$ac_ext"
31021 case "(($ac_try" in
31022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023   *) ac_try_echo=$ac_try;;
31024 esac
31025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31026 $as_echo "$ac_try_echo") >&5
31027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31028   ac_status=$?
31029   grep -v '^ *+' conftest.er1 >conftest.err
31030   rm -f conftest.er1
31031   cat conftest.err >&5
31032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); } >/dev/null && {
31034          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31035          test ! -s conftest.err
31036        }; then
31037   ac_header_preproc=yes
31038 else
31039   $as_echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31041
31042   ac_header_preproc=no
31043 fi
31044
31045 rm -f conftest.err conftest.$ac_ext
31046 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31047 $as_echo "$ac_header_preproc" >&6; }
31048
31049 # So?  What about this header?
31050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31051   yes:no: )
31052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31053 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31054     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31055 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31056     ac_header_preproc=yes
31057     ;;
31058   no:yes:* )
31059     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31060 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31062 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31064 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31065     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31066 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31067     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31069     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31070 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31071
31072     ;;
31073 esac
31074 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31075 $as_echo_n "checking for $ac_header... " >&6; }
31076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31077   $as_echo_n "(cached) " >&6
31078 else
31079   eval "$as_ac_Header=\$ac_header_preproc"
31080 fi
31081 ac_res=`eval 'as_val=${'$as_ac_Header'}
31082                  $as_echo "$as_val"'`
31083                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31084 $as_echo "$ac_res" >&6; }
31085
31086 fi
31087 as_val=`eval 'as_val=${'$as_ac_Header'}
31088                  $as_echo "$as_val"'`
31089    if test "x$as_val" = x""yes; then
31090   cat >>confdefs.h <<_ACEOF
31091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31092 _ACEOF
31093
31094 fi
31095
31096 done
31097
31098     if test $ac_cv_header_ws2tcpip_h = yes; then
31099       HAVE_WS2TCPIP_H=1
31100     else
31101       HAVE_WS2TCPIP_H=0
31102     fi
31103   fi
31104
31105
31106
31107   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31108 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
31109 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31110   $as_echo_n "(cached) " >&6
31111 else
31112   ac_cv_type_struct_sockaddr_storage=no
31113 cat >conftest.$ac_ext <<_ACEOF
31114 /* confdefs.h.  */
31115 _ACEOF
31116 cat confdefs.h >>conftest.$ac_ext
31117 cat >>conftest.$ac_ext <<_ACEOF
31118 /* end confdefs.h.  */
31119
31120   /* sys/types.h is not needed according to POSIX, but the
31121      sys/socket.h in i386-unknown-freebsd4.10 and
31122      powerpc-apple-darwin5.5 required it. */
31123 #include <sys/types.h>
31124 #ifdef HAVE_SYS_SOCKET_H
31125 #include <sys/socket.h>
31126 #endif
31127 #ifdef HAVE_WS2TCPIP_H
31128 #include <ws2tcpip.h>
31129 #endif
31130
31131
31132 int
31133 main ()
31134 {
31135 if (sizeof (struct sockaddr_storage))
31136        return 0;
31137   ;
31138   return 0;
31139 }
31140 _ACEOF
31141 rm -f conftest.$ac_objext
31142 if { (ac_try="$ac_compile"
31143 case "(($ac_try" in
31144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145   *) ac_try_echo=$ac_try;;
31146 esac
31147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31148 $as_echo "$ac_try_echo") >&5
31149   (eval "$ac_compile") 2>conftest.er1
31150   ac_status=$?
31151   grep -v '^ *+' conftest.er1 >conftest.err
31152   rm -f conftest.er1
31153   cat conftest.err >&5
31154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); } && {
31156          test -z "$ac_c_werror_flag" ||
31157          test ! -s conftest.err
31158        } && test -s conftest.$ac_objext; then
31159   cat >conftest.$ac_ext <<_ACEOF
31160 /* confdefs.h.  */
31161 _ACEOF
31162 cat confdefs.h >>conftest.$ac_ext
31163 cat >>conftest.$ac_ext <<_ACEOF
31164 /* end confdefs.h.  */
31165
31166   /* sys/types.h is not needed according to POSIX, but the
31167      sys/socket.h in i386-unknown-freebsd4.10 and
31168      powerpc-apple-darwin5.5 required it. */
31169 #include <sys/types.h>
31170 #ifdef HAVE_SYS_SOCKET_H
31171 #include <sys/socket.h>
31172 #endif
31173 #ifdef HAVE_WS2TCPIP_H
31174 #include <ws2tcpip.h>
31175 #endif
31176
31177
31178 int
31179 main ()
31180 {
31181 if (sizeof ((struct sockaddr_storage)))
31182           return 0;
31183   ;
31184   return 0;
31185 }
31186 _ACEOF
31187 rm -f conftest.$ac_objext
31188 if { (ac_try="$ac_compile"
31189 case "(($ac_try" in
31190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31191   *) ac_try_echo=$ac_try;;
31192 esac
31193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31194 $as_echo "$ac_try_echo") >&5
31195   (eval "$ac_compile") 2>conftest.er1
31196   ac_status=$?
31197   grep -v '^ *+' conftest.er1 >conftest.err
31198   rm -f conftest.er1
31199   cat conftest.err >&5
31200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); } && {
31202          test -z "$ac_c_werror_flag" ||
31203          test ! -s conftest.err
31204        } && test -s conftest.$ac_objext; then
31205   :
31206 else
31207   $as_echo "$as_me: failed program was:" >&5
31208 sed 's/^/| /' conftest.$ac_ext >&5
31209
31210         ac_cv_type_struct_sockaddr_storage=yes
31211 fi
31212
31213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31214 else
31215   $as_echo "$as_me: failed program was:" >&5
31216 sed 's/^/| /' conftest.$ac_ext >&5
31217
31218
31219 fi
31220
31221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31222 fi
31223 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31224 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31225 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31226
31227 cat >>confdefs.h <<_ACEOF
31228 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
31229 _ACEOF
31230
31231
31232 fi
31233 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
31234 $as_echo_n "checking for sa_family_t... " >&6; }
31235 if test "${ac_cv_type_sa_family_t+set}" = set; then
31236   $as_echo_n "(cached) " >&6
31237 else
31238   ac_cv_type_sa_family_t=no
31239 cat >conftest.$ac_ext <<_ACEOF
31240 /* confdefs.h.  */
31241 _ACEOF
31242 cat confdefs.h >>conftest.$ac_ext
31243 cat >>conftest.$ac_ext <<_ACEOF
31244 /* end confdefs.h.  */
31245
31246   /* sys/types.h is not needed according to POSIX, but the
31247      sys/socket.h in i386-unknown-freebsd4.10 and
31248      powerpc-apple-darwin5.5 required it. */
31249 #include <sys/types.h>
31250 #ifdef HAVE_SYS_SOCKET_H
31251 #include <sys/socket.h>
31252 #endif
31253 #ifdef HAVE_WS2TCPIP_H
31254 #include <ws2tcpip.h>
31255 #endif
31256
31257
31258 int
31259 main ()
31260 {
31261 if (sizeof (sa_family_t))
31262        return 0;
31263   ;
31264   return 0;
31265 }
31266 _ACEOF
31267 rm -f conftest.$ac_objext
31268 if { (ac_try="$ac_compile"
31269 case "(($ac_try" in
31270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31271   *) ac_try_echo=$ac_try;;
31272 esac
31273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31274 $as_echo "$ac_try_echo") >&5
31275   (eval "$ac_compile") 2>conftest.er1
31276   ac_status=$?
31277   grep -v '^ *+' conftest.er1 >conftest.err
31278   rm -f conftest.er1
31279   cat conftest.err >&5
31280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281   (exit $ac_status); } && {
31282          test -z "$ac_c_werror_flag" ||
31283          test ! -s conftest.err
31284        } && test -s conftest.$ac_objext; then
31285   cat >conftest.$ac_ext <<_ACEOF
31286 /* confdefs.h.  */
31287 _ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h.  */
31291
31292   /* sys/types.h is not needed according to POSIX, but the
31293      sys/socket.h in i386-unknown-freebsd4.10 and
31294      powerpc-apple-darwin5.5 required it. */
31295 #include <sys/types.h>
31296 #ifdef HAVE_SYS_SOCKET_H
31297 #include <sys/socket.h>
31298 #endif
31299 #ifdef HAVE_WS2TCPIP_H
31300 #include <ws2tcpip.h>
31301 #endif
31302
31303
31304 int
31305 main ()
31306 {
31307 if (sizeof ((sa_family_t)))
31308           return 0;
31309   ;
31310   return 0;
31311 }
31312 _ACEOF
31313 rm -f conftest.$ac_objext
31314 if { (ac_try="$ac_compile"
31315 case "(($ac_try" in
31316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317   *) ac_try_echo=$ac_try;;
31318 esac
31319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31320 $as_echo "$ac_try_echo") >&5
31321   (eval "$ac_compile") 2>conftest.er1
31322   ac_status=$?
31323   grep -v '^ *+' conftest.er1 >conftest.err
31324   rm -f conftest.er1
31325   cat conftest.err >&5
31326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327   (exit $ac_status); } && {
31328          test -z "$ac_c_werror_flag" ||
31329          test ! -s conftest.err
31330        } && test -s conftest.$ac_objext; then
31331   :
31332 else
31333   $as_echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31335
31336         ac_cv_type_sa_family_t=yes
31337 fi
31338
31339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31340 else
31341   $as_echo "$as_me: failed program was:" >&5
31342 sed 's/^/| /' conftest.$ac_ext >&5
31343
31344
31345 fi
31346
31347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31348 fi
31349 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31350 $as_echo "$ac_cv_type_sa_family_t" >&6; }
31351 if test "x$ac_cv_type_sa_family_t" = x""yes; then
31352
31353 cat >>confdefs.h <<_ACEOF
31354 #define HAVE_SA_FAMILY_T 1
31355 _ACEOF
31356
31357
31358 fi
31359
31360   if test $ac_cv_type_struct_sockaddr_storage = no; then
31361     HAVE_STRUCT_SOCKADDR_STORAGE=0
31362   fi
31363   if test $ac_cv_type_sa_family_t = no; then
31364     HAVE_SA_FAMILY_T=0
31365   fi
31366
31367
31368
31369
31370   :
31371
31372
31373
31374
31375
31376   if test $ac_cv_header_sys_socket_h != yes; then
31377
31378 for ac_header in winsock2.h
31379 do
31380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31382   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31383 $as_echo_n "checking for $ac_header... " >&6; }
31384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31385   $as_echo_n "(cached) " >&6
31386 fi
31387 ac_res=`eval 'as_val=${'$as_ac_Header'}
31388                  $as_echo "$as_val"'`
31389                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31390 $as_echo "$ac_res" >&6; }
31391 else
31392   # Is the header compilable?
31393 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31394 $as_echo_n "checking $ac_header usability... " >&6; }
31395 cat >conftest.$ac_ext <<_ACEOF
31396 /* confdefs.h.  */
31397 _ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h.  */
31401 $ac_includes_default
31402 #include <$ac_header>
31403 _ACEOF
31404 rm -f conftest.$ac_objext
31405 if { (ac_try="$ac_compile"
31406 case "(($ac_try" in
31407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408   *) ac_try_echo=$ac_try;;
31409 esac
31410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31411 $as_echo "$ac_try_echo") >&5
31412   (eval "$ac_compile") 2>conftest.er1
31413   ac_status=$?
31414   grep -v '^ *+' conftest.er1 >conftest.err
31415   rm -f conftest.er1
31416   cat conftest.err >&5
31417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31418   (exit $ac_status); } && {
31419          test -z "$ac_c_werror_flag" ||
31420          test ! -s conftest.err
31421        } && test -s conftest.$ac_objext; then
31422   ac_header_compiler=yes
31423 else
31424   $as_echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31426
31427         ac_header_compiler=no
31428 fi
31429
31430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31431 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31432 $as_echo "$ac_header_compiler" >&6; }
31433
31434 # Is the header present?
31435 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31436 $as_echo_n "checking $ac_header presence... " >&6; }
31437 cat >conftest.$ac_ext <<_ACEOF
31438 /* confdefs.h.  */
31439 _ACEOF
31440 cat confdefs.h >>conftest.$ac_ext
31441 cat >>conftest.$ac_ext <<_ACEOF
31442 /* end confdefs.h.  */
31443 #include <$ac_header>
31444 _ACEOF
31445 if { (ac_try="$ac_cpp conftest.$ac_ext"
31446 case "(($ac_try" in
31447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31448   *) ac_try_echo=$ac_try;;
31449 esac
31450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31451 $as_echo "$ac_try_echo") >&5
31452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31453   ac_status=$?
31454   grep -v '^ *+' conftest.er1 >conftest.err
31455   rm -f conftest.er1
31456   cat conftest.err >&5
31457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458   (exit $ac_status); } >/dev/null && {
31459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31460          test ! -s conftest.err
31461        }; then
31462   ac_header_preproc=yes
31463 else
31464   $as_echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31466
31467   ac_header_preproc=no
31468 fi
31469
31470 rm -f conftest.err conftest.$ac_ext
31471 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31472 $as_echo "$ac_header_preproc" >&6; }
31473
31474 # So?  What about this header?
31475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31476   yes:no: )
31477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31478 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31480 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31481     ac_header_preproc=yes
31482     ;;
31483   no:yes:* )
31484     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31485 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31486     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31487 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31488     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31489 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31491 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31495 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31496
31497     ;;
31498 esac
31499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31500 $as_echo_n "checking for $ac_header... " >&6; }
31501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31502   $as_echo_n "(cached) " >&6
31503 else
31504   eval "$as_ac_Header=\$ac_header_preproc"
31505 fi
31506 ac_res=`eval 'as_val=${'$as_ac_Header'}
31507                  $as_echo "$as_val"'`
31508                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31509 $as_echo "$ac_res" >&6; }
31510
31511 fi
31512 as_val=`eval 'as_val=${'$as_ac_Header'}
31513                  $as_echo "$as_val"'`
31514    if test "x$as_val" = x""yes; then
31515   cat >>confdefs.h <<_ACEOF
31516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31517 _ACEOF
31518
31519 fi
31520
31521 done
31522
31523   fi
31524   if test "$ac_cv_header_winsock2_h" = yes; then
31525     HAVE_WINSOCK2_H=1
31526     UNISTD_H_HAVE_WINSOCK2_H=1
31527     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
31528   else
31529     HAVE_WINSOCK2_H=0
31530   fi
31531
31532
31533
31534
31535
31536
31537
31538
31539
31540
31541
31542
31543
31544
31545
31546
31547
31548
31549
31550   for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
31551     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31552     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31553 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31554 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31555   $as_echo_n "(cached) " >&6
31556 else
31557   cat >conftest.$ac_ext <<_ACEOF
31558 /* confdefs.h.  */
31559 _ACEOF
31560 cat confdefs.h >>conftest.$ac_ext
31561 cat >>conftest.$ac_ext <<_ACEOF
31562 /* end confdefs.h.  */
31563
31564 /* Some systems require prerequisite headers.  */
31565 #include <sys/types.h>
31566 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
31567 # include <sys/time.h>
31568 #endif
31569 #include <sys/select.h>
31570
31571 int
31572 main ()
31573 {
31574 #undef $gl_func
31575   (void) $gl_func;
31576   ;
31577   return 0;
31578 }
31579 _ACEOF
31580 rm -f conftest.$ac_objext
31581 if { (ac_try="$ac_compile"
31582 case "(($ac_try" in
31583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31584   *) ac_try_echo=$ac_try;;
31585 esac
31586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31587 $as_echo "$ac_try_echo") >&5
31588   (eval "$ac_compile") 2>conftest.er1
31589   ac_status=$?
31590   grep -v '^ *+' conftest.er1 >conftest.err
31591   rm -f conftest.er1
31592   cat conftest.err >&5
31593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594   (exit $ac_status); } && {
31595          test -z "$ac_c_werror_flag" ||
31596          test ! -s conftest.err
31597        } && test -s conftest.$ac_objext; then
31598   eval "$as_gl_Symbol=yes"
31599 else
31600   $as_echo "$as_me: failed program was:" >&5
31601 sed 's/^/| /' conftest.$ac_ext >&5
31602
31603         eval "$as_gl_Symbol=no"
31604 fi
31605
31606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31607 fi
31608 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31609                  $as_echo "$as_val"'`
31610                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31611 $as_echo "$ac_res" >&6; }
31612      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31613                  $as_echo "$as_val"'`
31614    if test "x$as_val" = x""yes; then
31615   cat >>confdefs.h <<_ACEOF
31616 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31617 _ACEOF
31618
31619                      eval ac_cv_have_decl_$gl_func=yes
31620 fi
31621
31622       done
31623
31624
31625   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31627 if test -z "$MKDIR_P"; then
31628   if test "${ac_cv_path_mkdir+set}" = set; then
31629   $as_echo_n "(cached) " >&6
31630 else
31631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31633 do
31634   IFS=$as_save_IFS
31635   test -z "$as_dir" && as_dir=.
31636   for ac_prog in mkdir gmkdir; do
31637          for ac_exec_ext in '' $ac_executable_extensions; do
31638            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31639            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31640              'mkdir (GNU coreutils) '* | \
31641              'mkdir (coreutils) '* | \
31642              'mkdir (fileutils) '4.1*)
31643                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31644                break 3;;
31645            esac
31646          done
31647        done
31648 done
31649 IFS=$as_save_IFS
31650
31651 fi
31652
31653   if test "${ac_cv_path_mkdir+set}" = set; then
31654     MKDIR_P="$ac_cv_path_mkdir -p"
31655   else
31656     # As a last resort, use the slow shell script.  Don't cache a
31657     # value for MKDIR_P within a source directory, because that will
31658     # break other packages using the cache if that directory is
31659     # removed, or if the value is a relative name.
31660     test -d ./--version && rmdir ./--version
31661     MKDIR_P="$ac_install_sh -d"
31662   fi
31663 fi
31664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31665 $as_echo "$MKDIR_P" >&6; }
31666
31667
31668   # Code from module sys_stat:
31669
31670
31671
31672
31673
31674
31675
31676
31677
31678
31679
31680   :
31681
31682
31683
31684
31685
31686
31687
31688      if test $gl_cv_have_include_next = yes; then
31689        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31690      else
31691        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31692 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
31693 if test "${gl_cv_next_sys_stat_h+set}" = set; then
31694   $as_echo_n "(cached) " >&6
31695 else
31696
31697           if test $ac_cv_header_sys_stat_h = yes; then
31698             cat >conftest.$ac_ext <<_ACEOF
31699 /* confdefs.h.  */
31700 _ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h.  */
31704 #include <sys/stat.h>
31705
31706 _ACEOF
31707                                                                                                 case "$host_os" in
31708               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31709               *)    gl_absname_cpp="$ac_cpp" ;;
31710             esac
31711                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31712                sed -n '\#/sys/stat.h#{
31713                  s#.*"\(.*/sys/stat.h\)".*#\1#
31714                  s#^/[^/]#//&#
31715                  p
31716                  q
31717                }'`'"'
31718           else
31719             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31720           fi
31721
31722 fi
31723 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
31724 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
31725      fi
31726      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31727
31728      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31729        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31730        gl_next_as_first_directive='<'sys/stat.h'>'
31731      else
31732        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31733        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
31734      fi
31735      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
31736
31737
31738
31739
31740       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
31741 $as_echo_n "checking for nlink_t... " >&6; }
31742 if test "${ac_cv_type_nlink_t+set}" = set; then
31743   $as_echo_n "(cached) " >&6
31744 else
31745   ac_cv_type_nlink_t=no
31746 cat >conftest.$ac_ext <<_ACEOF
31747 /* confdefs.h.  */
31748 _ACEOF
31749 cat confdefs.h >>conftest.$ac_ext
31750 cat >>conftest.$ac_ext <<_ACEOF
31751 /* end confdefs.h.  */
31752 #include <sys/types.h>
31753      #include <sys/stat.h>
31754
31755 int
31756 main ()
31757 {
31758 if (sizeof (nlink_t))
31759        return 0;
31760   ;
31761   return 0;
31762 }
31763 _ACEOF
31764 rm -f conftest.$ac_objext
31765 if { (ac_try="$ac_compile"
31766 case "(($ac_try" in
31767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768   *) ac_try_echo=$ac_try;;
31769 esac
31770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31771 $as_echo "$ac_try_echo") >&5
31772   (eval "$ac_compile") 2>conftest.er1
31773   ac_status=$?
31774   grep -v '^ *+' conftest.er1 >conftest.err
31775   rm -f conftest.er1
31776   cat conftest.err >&5
31777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); } && {
31779          test -z "$ac_c_werror_flag" ||
31780          test ! -s conftest.err
31781        } && test -s conftest.$ac_objext; then
31782   cat >conftest.$ac_ext <<_ACEOF
31783 /* confdefs.h.  */
31784 _ACEOF
31785 cat confdefs.h >>conftest.$ac_ext
31786 cat >>conftest.$ac_ext <<_ACEOF
31787 /* end confdefs.h.  */
31788 #include <sys/types.h>
31789      #include <sys/stat.h>
31790
31791 int
31792 main ()
31793 {
31794 if (sizeof ((nlink_t)))
31795           return 0;
31796   ;
31797   return 0;
31798 }
31799 _ACEOF
31800 rm -f conftest.$ac_objext
31801 if { (ac_try="$ac_compile"
31802 case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31807 $as_echo "$ac_try_echo") >&5
31808   (eval "$ac_compile") 2>conftest.er1
31809   ac_status=$?
31810   grep -v '^ *+' conftest.er1 >conftest.err
31811   rm -f conftest.er1
31812   cat conftest.err >&5
31813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814   (exit $ac_status); } && {
31815          test -z "$ac_c_werror_flag" ||
31816          test ! -s conftest.err
31817        } && test -s conftest.$ac_objext; then
31818   :
31819 else
31820   $as_echo "$as_me: failed program was:" >&5
31821 sed 's/^/| /' conftest.$ac_ext >&5
31822
31823         ac_cv_type_nlink_t=yes
31824 fi
31825
31826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31827 else
31828   $as_echo "$as_me: failed program was:" >&5
31829 sed 's/^/| /' conftest.$ac_ext >&5
31830
31831
31832 fi
31833
31834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31835 fi
31836 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
31837 $as_echo "$ac_cv_type_nlink_t" >&6; }
31838 if test "x$ac_cv_type_nlink_t" = x""yes; then
31839   :
31840 else
31841
31842 cat >>confdefs.h <<\_ACEOF
31843 #define nlink_t int
31844 _ACEOF
31845
31846 fi
31847
31848
31849
31850
31851
31852
31853
31854
31855
31856
31857
31858
31859
31860
31861
31862   for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
31863     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31864     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31865 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31866 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31867   $as_echo_n "(cached) " >&6
31868 else
31869   cat >conftest.$ac_ext <<_ACEOF
31870 /* confdefs.h.  */
31871 _ACEOF
31872 cat confdefs.h >>conftest.$ac_ext
31873 cat >>conftest.$ac_ext <<_ACEOF
31874 /* end confdefs.h.  */
31875 #include <sys/stat.h>
31876
31877 int
31878 main ()
31879 {
31880 #undef $gl_func
31881   (void) $gl_func;
31882   ;
31883   return 0;
31884 }
31885 _ACEOF
31886 rm -f conftest.$ac_objext
31887 if { (ac_try="$ac_compile"
31888 case "(($ac_try" in
31889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31890   *) ac_try_echo=$ac_try;;
31891 esac
31892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31893 $as_echo "$ac_try_echo") >&5
31894   (eval "$ac_compile") 2>conftest.er1
31895   ac_status=$?
31896   grep -v '^ *+' conftest.er1 >conftest.err
31897   rm -f conftest.er1
31898   cat conftest.err >&5
31899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31900   (exit $ac_status); } && {
31901          test -z "$ac_c_werror_flag" ||
31902          test ! -s conftest.err
31903        } && test -s conftest.$ac_objext; then
31904   eval "$as_gl_Symbol=yes"
31905 else
31906   $as_echo "$as_me: failed program was:" >&5
31907 sed 's/^/| /' conftest.$ac_ext >&5
31908
31909         eval "$as_gl_Symbol=no"
31910 fi
31911
31912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31913 fi
31914 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31915                  $as_echo "$as_val"'`
31916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31917 $as_echo "$ac_res" >&6; }
31918      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31919                  $as_echo "$as_val"'`
31920    if test "x$as_val" = x""yes; then
31921   cat >>confdefs.h <<_ACEOF
31922 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31923 _ACEOF
31924
31925                      eval ac_cv_have_decl_$gl_func=yes
31926 fi
31927
31928       done
31929
31930
31931   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31932 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31933 if test -z "$MKDIR_P"; then
31934   if test "${ac_cv_path_mkdir+set}" = set; then
31935   $as_echo_n "(cached) " >&6
31936 else
31937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31939 do
31940   IFS=$as_save_IFS
31941   test -z "$as_dir" && as_dir=.
31942   for ac_prog in mkdir gmkdir; do
31943          for ac_exec_ext in '' $ac_executable_extensions; do
31944            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31945            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31946              'mkdir (GNU coreutils) '* | \
31947              'mkdir (coreutils) '* | \
31948              'mkdir (fileutils) '4.1*)
31949                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31950                break 3;;
31951            esac
31952          done
31953        done
31954 done
31955 IFS=$as_save_IFS
31956
31957 fi
31958
31959   if test "${ac_cv_path_mkdir+set}" = set; then
31960     MKDIR_P="$ac_cv_path_mkdir -p"
31961   else
31962     # As a last resort, use the slow shell script.  Don't cache a
31963     # value for MKDIR_P within a source directory, because that will
31964     # break other packages using the cache if that directory is
31965     # removed, or if the value is a relative name.
31966     test -d ./--version && rmdir ./--version
31967     MKDIR_P="$ac_install_sh -d"
31968   fi
31969 fi
31970 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31971 $as_echo "$MKDIR_P" >&6; }
31972
31973
31974   # Code from module sys_time:
31975
31976
31977
31978   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31980 if test -z "$MKDIR_P"; then
31981   if test "${ac_cv_path_mkdir+set}" = set; then
31982   $as_echo_n "(cached) " >&6
31983 else
31984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31986 do
31987   IFS=$as_save_IFS
31988   test -z "$as_dir" && as_dir=.
31989   for ac_prog in mkdir gmkdir; do
31990          for ac_exec_ext in '' $ac_executable_extensions; do
31991            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31992            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31993              'mkdir (GNU coreutils) '* | \
31994              'mkdir (coreutils) '* | \
31995              'mkdir (fileutils) '4.1*)
31996                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31997                break 3;;
31998            esac
31999          done
32000        done
32001 done
32002 IFS=$as_save_IFS
32003
32004 fi
32005
32006   if test "${ac_cv_path_mkdir+set}" = set; then
32007     MKDIR_P="$ac_cv_path_mkdir -p"
32008   else
32009     # As a last resort, use the slow shell script.  Don't cache a
32010     # value for MKDIR_P within a source directory, because that will
32011     # break other packages using the cache if that directory is
32012     # removed, or if the value is a relative name.
32013     test -d ./--version && rmdir ./--version
32014     MKDIR_P="$ac_install_sh -d"
32015   fi
32016 fi
32017 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32018 $as_echo "$MKDIR_P" >&6; }
32019
32020
32021   # Code from module tempname:
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
32034
32035
32036   :
32037
32038
32039   # Code from module threadlib:
32040
32041
32042
32043
32044   # Code from module time:
32045
32046
32047
32048   # Code from module unistd:
32049
32050
32051
32052
32053
32054
32055
32056
32057   :
32058
32059
32060
32061
32062
32063
32064
32065      if test $gl_cv_have_include_next = yes; then
32066        gl_cv_next_unistd_h='<'unistd.h'>'
32067      else
32068        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
32069 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
32070 if test "${gl_cv_next_unistd_h+set}" = set; then
32071   $as_echo_n "(cached) " >&6
32072 else
32073
32074           if test $ac_cv_header_unistd_h = yes; then
32075             cat >conftest.$ac_ext <<_ACEOF
32076 /* confdefs.h.  */
32077 _ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h.  */
32081 #include <unistd.h>
32082
32083 _ACEOF
32084                                                                                                 case "$host_os" in
32085               aix*) gl_absname_cpp="$ac_cpp -C" ;;
32086               *)    gl_absname_cpp="$ac_cpp" ;;
32087             esac
32088                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32089                sed -n '\#/unistd.h#{
32090                  s#.*"\(.*/unistd.h\)".*#\1#
32091                  s#^/[^/]#//&#
32092                  p
32093                  q
32094                }'`'"'
32095           else
32096             gl_cv_next_unistd_h='<'unistd.h'>'
32097           fi
32098
32099 fi
32100 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
32101 $as_echo "$gl_cv_next_unistd_h" >&6; }
32102      fi
32103      NEXT_UNISTD_H=$gl_cv_next_unistd_h
32104
32105      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32106        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32107        gl_next_as_first_directive='<'unistd.h'>'
32108      else
32109        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32110        gl_next_as_first_directive=$gl_cv_next_unistd_h
32111      fi
32112      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
32113
32114
32115
32116
32117
32118   :
32119
32120
32121
32122
32123
32124   if test $ac_cv_header_unistd_h = yes; then
32125     HAVE_UNISTD_H=1
32126   else
32127     HAVE_UNISTD_H=0
32128   fi
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
32150
32151
32152
32153
32154
32155
32156
32157
32158
32159
32160
32161
32162
32163
32164
32165
32166
32167
32168
32169
32170   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
32171     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32172     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32173 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32174 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32175   $as_echo_n "(cached) " >&6
32176 else
32177   cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183 #include <unistd.h>
32184 /* Some systems declare various items in the wrong headers.  */
32185 #ifndef __GLIBC__
32186 # include <fcntl.h>
32187 # include <stdio.h>
32188 # include <stdlib.h>
32189 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
32190 #  include <io.h>
32191 # endif
32192 #endif
32193
32194 int
32195 main ()
32196 {
32197 #undef $gl_func
32198   (void) $gl_func;
32199   ;
32200   return 0;
32201 }
32202 _ACEOF
32203 rm -f conftest.$ac_objext
32204 if { (ac_try="$ac_compile"
32205 case "(($ac_try" in
32206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32207   *) ac_try_echo=$ac_try;;
32208 esac
32209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32210 $as_echo "$ac_try_echo") >&5
32211   (eval "$ac_compile") 2>conftest.er1
32212   ac_status=$?
32213   grep -v '^ *+' conftest.er1 >conftest.err
32214   rm -f conftest.er1
32215   cat conftest.err >&5
32216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); } && {
32218          test -z "$ac_c_werror_flag" ||
32219          test ! -s conftest.err
32220        } && test -s conftest.$ac_objext; then
32221   eval "$as_gl_Symbol=yes"
32222 else
32223   $as_echo "$as_me: failed program was:" >&5
32224 sed 's/^/| /' conftest.$ac_ext >&5
32225
32226         eval "$as_gl_Symbol=no"
32227 fi
32228
32229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32230 fi
32231 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32232                  $as_echo "$as_val"'`
32233                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32234 $as_echo "$ac_res" >&6; }
32235      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32236                  $as_echo "$as_val"'`
32237    if test "x$as_val" = x""yes; then
32238   cat >>confdefs.h <<_ACEOF
32239 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32240 _ACEOF
32241
32242                      eval ac_cv_have_decl_$gl_func=yes
32243 fi
32244
32245       done
32246
32247
32248   # Code from module vasnprintf:
32249
32250
32251   :
32252
32253
32254
32255
32256
32257   if test $ac_cv_func_vasnprintf = no; then
32258
32259
32260   :
32261
32262
32263
32264
32265
32266
32267
32268
32269
32270
32271
32272
32273
32274   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
32275
32276
32277
32278
32279
32280
32281
32282
32283
32284   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
32285
32286
32287
32288
32289
32290
32291
32292
32293
32294   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
32295
32296
32297
32298
32299
32300
32301
32302
32303
32304   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
32305
32306   if test $ac_cv_func_vasnprintf = yes; then
32307
32308 cat >>confdefs.h <<\_ACEOF
32309 #define REPLACE_VASNPRINTF 1
32310 _ACEOF
32311
32312   fi
32313
32314
32315
32316
32317
32318
32319
32320
32321
32322
32323   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32324 $as_echo_n "checking for ptrdiff_t... " >&6; }
32325 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32326   $as_echo_n "(cached) " >&6
32327 else
32328   ac_cv_type_ptrdiff_t=no
32329 cat >conftest.$ac_ext <<_ACEOF
32330 /* confdefs.h.  */
32331 _ACEOF
32332 cat confdefs.h >>conftest.$ac_ext
32333 cat >>conftest.$ac_ext <<_ACEOF
32334 /* end confdefs.h.  */
32335 $ac_includes_default
32336 int
32337 main ()
32338 {
32339 if (sizeof (ptrdiff_t))
32340        return 0;
32341   ;
32342   return 0;
32343 }
32344 _ACEOF
32345 rm -f conftest.$ac_objext
32346 if { (ac_try="$ac_compile"
32347 case "(($ac_try" in
32348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349   *) ac_try_echo=$ac_try;;
32350 esac
32351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32352 $as_echo "$ac_try_echo") >&5
32353   (eval "$ac_compile") 2>conftest.er1
32354   ac_status=$?
32355   grep -v '^ *+' conftest.er1 >conftest.err
32356   rm -f conftest.er1
32357   cat conftest.err >&5
32358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); } && {
32360          test -z "$ac_c_werror_flag" ||
32361          test ! -s conftest.err
32362        } && test -s conftest.$ac_objext; then
32363   cat >conftest.$ac_ext <<_ACEOF
32364 /* confdefs.h.  */
32365 _ACEOF
32366 cat confdefs.h >>conftest.$ac_ext
32367 cat >>conftest.$ac_ext <<_ACEOF
32368 /* end confdefs.h.  */
32369 $ac_includes_default
32370 int
32371 main ()
32372 {
32373 if (sizeof ((ptrdiff_t)))
32374           return 0;
32375   ;
32376   return 0;
32377 }
32378 _ACEOF
32379 rm -f conftest.$ac_objext
32380 if { (ac_try="$ac_compile"
32381 case "(($ac_try" in
32382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383   *) ac_try_echo=$ac_try;;
32384 esac
32385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32386 $as_echo "$ac_try_echo") >&5
32387   (eval "$ac_compile") 2>conftest.er1
32388   ac_status=$?
32389   grep -v '^ *+' conftest.er1 >conftest.err
32390   rm -f conftest.er1
32391   cat conftest.err >&5
32392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393   (exit $ac_status); } && {
32394          test -z "$ac_c_werror_flag" ||
32395          test ! -s conftest.err
32396        } && test -s conftest.$ac_objext; then
32397   :
32398 else
32399   $as_echo "$as_me: failed program was:" >&5
32400 sed 's/^/| /' conftest.$ac_ext >&5
32401
32402         ac_cv_type_ptrdiff_t=yes
32403 fi
32404
32405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406 else
32407   $as_echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32409
32410
32411 fi
32412
32413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32414 fi
32415 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32416 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
32417 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
32418   :
32419 else
32420
32421 cat >>confdefs.h <<\_ACEOF
32422 #define ptrdiff_t long
32423 _ACEOF
32424
32425
32426 fi
32427
32428
32429
32430
32431
32432
32433
32434   fi
32435
32436   # Code from module verify:
32437   # Code from module warn-on-use:
32438   # Code from module wchar:
32439
32440
32441
32442
32443   :
32444
32445
32446
32447
32448
32449
32450
32451
32452
32453   :
32454
32455
32456
32457
32458
32459
32460
32461      if test $gl_cv_have_include_next = yes; then
32462        gl_cv_next_wchar_h='<'wchar.h'>'
32463      else
32464        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32465 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
32466 if test "${gl_cv_next_wchar_h+set}" = set; then
32467   $as_echo_n "(cached) " >&6
32468 else
32469
32470           if test $ac_cv_header_wchar_h = yes; then
32471             cat >conftest.$ac_ext <<_ACEOF
32472 /* confdefs.h.  */
32473 _ACEOF
32474 cat confdefs.h >>conftest.$ac_ext
32475 cat >>conftest.$ac_ext <<_ACEOF
32476 /* end confdefs.h.  */
32477 #include <wchar.h>
32478
32479 _ACEOF
32480                                                                                                 case "$host_os" in
32481               aix*) gl_absname_cpp="$ac_cpp -C" ;;
32482               *)    gl_absname_cpp="$ac_cpp" ;;
32483             esac
32484                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32485                sed -n '\#/wchar.h#{
32486                  s#.*"\(.*/wchar.h\)".*#\1#
32487                  s#^/[^/]#//&#
32488                  p
32489                  q
32490                }'`'"'
32491           else
32492             gl_cv_next_wchar_h='<'wchar.h'>'
32493           fi
32494
32495 fi
32496 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
32497 $as_echo "$gl_cv_next_wchar_h" >&6; }
32498      fi
32499      NEXT_WCHAR_H=$gl_cv_next_wchar_h
32500
32501      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32502        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32503        gl_next_as_first_directive='<'wchar.h'>'
32504      else
32505        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32506        gl_next_as_first_directive=$gl_cv_next_wchar_h
32507      fi
32508      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
32509
32510
32511
32512   if test $ac_cv_header_wchar_h = yes; then
32513     HAVE_WCHAR_H=1
32514   else
32515     HAVE_WCHAR_H=0
32516   fi
32517
32518
32519
32520   if test $gt_cv_c_wint_t = yes; then
32521     HAVE_WINT_T=1
32522   else
32523     HAVE_WINT_T=0
32524   fi
32525
32526
32527
32528
32529
32530
32531
32532
32533
32534
32535
32536
32537
32538
32539   for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
32540     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32541     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32542 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32543 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32544   $as_echo_n "(cached) " >&6
32545 else
32546   cat >conftest.$ac_ext <<_ACEOF
32547 /* confdefs.h.  */
32548 _ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h.  */
32552
32553 /* Some systems require additional headers.  */
32554 #ifndef __GLIBC__
32555 # include <stddef.h>
32556 # include <stdio.h>
32557 # include <time.h>
32558 #endif
32559 #include <wchar.h>
32560
32561 int
32562 main ()
32563 {
32564 #undef $gl_func
32565   (void) $gl_func;
32566   ;
32567   return 0;
32568 }
32569 _ACEOF
32570 rm -f conftest.$ac_objext
32571 if { (ac_try="$ac_compile"
32572 case "(($ac_try" in
32573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574   *) ac_try_echo=$ac_try;;
32575 esac
32576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32577 $as_echo "$ac_try_echo") >&5
32578   (eval "$ac_compile") 2>conftest.er1
32579   ac_status=$?
32580   grep -v '^ *+' conftest.er1 >conftest.err
32581   rm -f conftest.er1
32582   cat conftest.err >&5
32583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584   (exit $ac_status); } && {
32585          test -z "$ac_c_werror_flag" ||
32586          test ! -s conftest.err
32587        } && test -s conftest.$ac_objext; then
32588   eval "$as_gl_Symbol=yes"
32589 else
32590   $as_echo "$as_me: failed program was:" >&5
32591 sed 's/^/| /' conftest.$ac_ext >&5
32592
32593         eval "$as_gl_Symbol=no"
32594 fi
32595
32596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32597 fi
32598 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32599                  $as_echo "$as_val"'`
32600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32601 $as_echo "$ac_res" >&6; }
32602      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32603                  $as_echo "$as_val"'`
32604    if test "x$as_val" = x""yes; then
32605   cat >>confdefs.h <<_ACEOF
32606 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32607 _ACEOF
32608
32609                      eval ac_cv_have_decl_$gl_func=yes
32610 fi
32611
32612       done
32613
32614
32615   # Code from module wcrtomb:
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625   :
32626
32627
32628
32629
32630
32631
32632   :
32633
32634
32635
32636
32637
32638   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32639
32640
32641
32642      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
32643 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32644 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
32645   $as_echo_n "(cached) " >&6
32646 else
32647
32648                   case "$host_os" in
32649                      # Guess no on AIX and OSF/1.
32650         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32651                      # Guess yes otherwise.
32652         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32653       esac
32654       if test $LOCALE_JA != none; then
32655         if test "$cross_compiling" = yes; then
32656   :
32657 else
32658   cat >conftest.$ac_ext <<_ACEOF
32659 /* confdefs.h.  */
32660 _ACEOF
32661 cat confdefs.h >>conftest.$ac_ext
32662 cat >>conftest.$ac_ext <<_ACEOF
32663 /* end confdefs.h.  */
32664
32665 #include <locale.h>
32666 #include <string.h>
32667 #include <wchar.h>
32668 int main ()
32669 {
32670   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32671     {
32672       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32673       mbstate_t state;
32674       wchar_t wc;
32675
32676       memset (&state, '\0', sizeof (mbstate_t));
32677       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32678         if (mbsinit (&state))
32679           return 1;
32680     }
32681   return 0;
32682 }
32683 _ACEOF
32684 rm -f conftest$ac_exeext
32685 if { (ac_try="$ac_link"
32686 case "(($ac_try" in
32687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688   *) ac_try_echo=$ac_try;;
32689 esac
32690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32691 $as_echo "$ac_try_echo") >&5
32692   (eval "$ac_link") 2>&5
32693   ac_status=$?
32694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32696   { (case "(($ac_try" in
32697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698   *) ac_try_echo=$ac_try;;
32699 esac
32700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32701 $as_echo "$ac_try_echo") >&5
32702   (eval "$ac_try") 2>&5
32703   ac_status=$?
32704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); }; }; then
32706   gl_cv_func_mbrtowc_incomplete_state=yes
32707 else
32708   $as_echo "$as_me: program exited with status $ac_status" >&5
32709 $as_echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32711
32712 ( exit $ac_status )
32713 gl_cv_func_mbrtowc_incomplete_state=no
32714 fi
32715 rm -rf conftest.dSYM
32716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32717 fi
32718
32719
32720       fi
32721
32722 fi
32723 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32724 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32725
32726
32727
32728
32729      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32730 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32731 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32732   $as_echo_n "(cached) " >&6
32733 else
32734
32735                   case "$host_os" in
32736                     # Guess no on Solaris 8.
32737         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32738                     # Guess yes otherwise.
32739         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32740       esac
32741       if test $LOCALE_ZH_CN != none; then
32742         if test "$cross_compiling" = yes; then
32743   :
32744 else
32745   cat >conftest.$ac_ext <<_ACEOF
32746 /* confdefs.h.  */
32747 _ACEOF
32748 cat confdefs.h >>conftest.$ac_ext
32749 cat >>conftest.$ac_ext <<_ACEOF
32750 /* end confdefs.h.  */
32751
32752 #include <locale.h>
32753 #include <stdlib.h>
32754 #include <string.h>
32755 #include <wchar.h>
32756 int main ()
32757 {
32758   /* This fails on Solaris 8:
32759      mbrtowc returns 2, and sets wc to 0x00F0.
32760      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
32761   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32762     {
32763       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32764       mbstate_t state;
32765       wchar_t wc;
32766
32767       memset (&state, '\0', sizeof (mbstate_t));
32768       if (mbrtowc (&wc, input + 3, 6, &state) != 4
32769           && mbtowc (&wc, input + 3, 6) == 4)
32770         return 1;
32771     }
32772   return 0;
32773 }
32774 _ACEOF
32775 rm -f conftest$ac_exeext
32776 if { (ac_try="$ac_link"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32782 $as_echo "$ac_try_echo") >&5
32783   (eval "$ac_link") 2>&5
32784   ac_status=$?
32785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32787   { (case "(($ac_try" in
32788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32789   *) ac_try_echo=$ac_try;;
32790 esac
32791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32792 $as_echo "$ac_try_echo") >&5
32793   (eval "$ac_try") 2>&5
32794   ac_status=$?
32795   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796   (exit $ac_status); }; }; then
32797   gl_cv_func_mbrtowc_sanitycheck=yes
32798 else
32799   $as_echo "$as_me: program exited with status $ac_status" >&5
32800 $as_echo "$as_me: failed program was:" >&5
32801 sed 's/^/| /' conftest.$ac_ext >&5
32802
32803 ( exit $ac_status )
32804 gl_cv_func_mbrtowc_sanitycheck=no
32805 fi
32806 rm -rf conftest.dSYM
32807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32808 fi
32809
32810
32811       fi
32812
32813 fi
32814 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32815 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32816
32817     REPLACE_MBSTATE_T=0
32818     case "$gl_cv_func_mbrtowc_incomplete_state" in
32819       *yes) ;;
32820       *) REPLACE_MBSTATE_T=1 ;;
32821     esac
32822     case "$gl_cv_func_mbrtowc_sanitycheck" in
32823       *yes) ;;
32824       *) REPLACE_MBSTATE_T=1 ;;
32825     esac
32826   else
32827     REPLACE_MBSTATE_T=1
32828   fi
32829   if test $REPLACE_MBSTATE_T = 1; then
32830
32831     :
32832
32833   fi
32834
32835
32836
32837   :
32838
32839
32840
32841
32842
32843   if test $ac_cv_func_wcrtomb = no; then
32844     HAVE_WCRTOMB=0
32845   else
32846     if test $REPLACE_MBSTATE_T = 1; then
32847       REPLACE_WCRTOMB=1
32848     else
32849
32850
32851
32852
32853
32854              { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
32855 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
32856 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
32857   $as_echo_n "(cached) " >&6
32858 else
32859
32860                               case "$host_os" in
32861                                      # Guess no on AIX 4, OSF/1 and Solaris.
32862             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
32863                                      # Guess yes otherwise.
32864             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
32865           esac
32866           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
32867             if test "$cross_compiling" = yes; then
32868   :
32869 else
32870   cat >conftest.$ac_ext <<_ACEOF
32871 /* confdefs.h.  */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h.  */
32876
32877 #include <locale.h>
32878 #include <stdio.h>
32879 #include <string.h>
32880 #include <wchar.h>
32881 int main ()
32882 {
32883   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
32884     {
32885       if (wcrtomb (NULL, 0, NULL) != 1)
32886         return 1;
32887     }
32888   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
32889     {
32890       if (wcrtomb (NULL, 0, NULL) != 1)
32891         return 1;
32892     }
32893   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32894     {
32895       if (wcrtomb (NULL, 0, NULL) != 1)
32896         return 1;
32897     }
32898   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32899     {
32900       if (wcrtomb (NULL, 0, NULL) != 1)
32901         return 1;
32902     }
32903   return 0;
32904 }
32905 _ACEOF
32906 rm -f conftest$ac_exeext
32907 if { (ac_try="$ac_link"
32908 case "(($ac_try" in
32909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32910   *) ac_try_echo=$ac_try;;
32911 esac
32912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32913 $as_echo "$ac_try_echo") >&5
32914   (eval "$ac_link") 2>&5
32915   ac_status=$?
32916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32918   { (case "(($ac_try" in
32919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920   *) ac_try_echo=$ac_try;;
32921 esac
32922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32923 $as_echo "$ac_try_echo") >&5
32924   (eval "$ac_try") 2>&5
32925   ac_status=$?
32926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32927   (exit $ac_status); }; }; then
32928   gl_cv_func_wcrtomb_retval=yes
32929 else
32930   $as_echo "$as_me: program exited with status $ac_status" >&5
32931 $as_echo "$as_me: failed program was:" >&5
32932 sed 's/^/| /' conftest.$ac_ext >&5
32933
32934 ( exit $ac_status )
32935 gl_cv_func_wcrtomb_retval=no
32936 fi
32937 rm -rf conftest.dSYM
32938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32939 fi
32940
32941
32942           fi
32943
32944 fi
32945 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
32946 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
32947       case "$gl_cv_func_wcrtomb_retval" in
32948         *yes) ;;
32949         *) REPLACE_WCRTOMB=1 ;;
32950       esac
32951     fi
32952   fi
32953   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
32954
32955     :
32956
32957
32958
32959
32960
32961
32962
32963
32964
32965   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
32966
32967
32968   :
32969
32970   fi
32971
32972
32973
32974
32975   GNULIB_WCRTOMB=1
32976
32977
32978
32979 cat >>confdefs.h <<\_ACEOF
32980 #define GNULIB_TEST_WCRTOMB 1
32981 _ACEOF
32982
32983
32984
32985   # Code from module wctype:
32986
32987
32988
32989
32990   :
32991
32992
32993
32994
32995
32996   if test $ac_cv_func_iswcntrl = yes; then
32997     HAVE_ISWCNTRL=1
32998   else
32999     HAVE_ISWCNTRL=0
33000   fi
33001
33002
33003   :
33004
33005
33006
33007
33008
33009
33010   :
33011
33012
33013
33014
33015
33016   if test $ac_cv_func_iswblank = yes; then
33017     HAVE_ISWBLANK=1
33018     REPLACE_ISWBLANK=0
33019   else
33020     HAVE_ISWBLANK=0
33021     if test $ac_cv_have_decl_iswblank = yes; then
33022       REPLACE_ISWBLANK=1
33023     else
33024       REPLACE_ISWBLANK=0
33025     fi
33026   fi
33027
33028
33029
33030
33031   :
33032
33033
33034
33035
33036
33037
33038
33039
33040   if test $gt_cv_c_wint_t = yes; then
33041     HAVE_WINT_T=1
33042   else
33043     HAVE_WINT_T=0
33044   fi
33045
33046
33047   if test $ac_cv_header_wctype_h = yes; then
33048     if test $ac_cv_func_iswcntrl = yes; then
33049                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
33050 $as_echo_n "checking whether iswcntrl works... " >&6; }
33051 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
33052   $as_echo_n "(cached) " >&6
33053 else
33054
33055           if test "$cross_compiling" = yes; then
33056   cat >conftest.$ac_ext <<_ACEOF
33057 /* confdefs.h.  */
33058 _ACEOF
33059 cat confdefs.h >>conftest.$ac_ext
33060 cat >>conftest.$ac_ext <<_ACEOF
33061 /* end confdefs.h.  */
33062 #include <stdlib.h>
33063                           #if __GNU_LIBRARY__ == 1
33064                           Linux libc5 i18n is broken.
33065                           #endif
33066 int
33067 main ()
33068 {
33069
33070   ;
33071   return 0;
33072 }
33073 _ACEOF
33074 rm -f conftest.$ac_objext
33075 if { (ac_try="$ac_compile"
33076 case "(($ac_try" in
33077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33078   *) ac_try_echo=$ac_try;;
33079 esac
33080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33081 $as_echo "$ac_try_echo") >&5
33082   (eval "$ac_compile") 2>conftest.er1
33083   ac_status=$?
33084   grep -v '^ *+' conftest.er1 >conftest.err
33085   rm -f conftest.er1
33086   cat conftest.err >&5
33087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088   (exit $ac_status); } && {
33089          test -z "$ac_c_werror_flag" ||
33090          test ! -s conftest.err
33091        } && test -s conftest.$ac_objext; then
33092   gl_cv_func_iswcntrl_works=yes
33093 else
33094   $as_echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33096
33097         gl_cv_func_iswcntrl_works=no
33098 fi
33099
33100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33101
33102 else
33103   cat >conftest.$ac_ext <<_ACEOF
33104 /* confdefs.h.  */
33105 _ACEOF
33106 cat confdefs.h >>conftest.$ac_ext
33107 cat >>conftest.$ac_ext <<_ACEOF
33108 /* end confdefs.h.  */
33109
33110                             #include <stddef.h>
33111                             #include <stdio.h>
33112                             #include <time.h>
33113                             #include <wchar.h>
33114                             #include <wctype.h>
33115                             int main () { return iswprint ('x') == 0; }
33116 _ACEOF
33117 rm -f conftest$ac_exeext
33118 if { (ac_try="$ac_link"
33119 case "(($ac_try" in
33120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121   *) ac_try_echo=$ac_try;;
33122 esac
33123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33124 $as_echo "$ac_try_echo") >&5
33125   (eval "$ac_link") 2>&5
33126   ac_status=$?
33127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33129   { (case "(($ac_try" in
33130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131   *) ac_try_echo=$ac_try;;
33132 esac
33133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33134 $as_echo "$ac_try_echo") >&5
33135   (eval "$ac_try") 2>&5
33136   ac_status=$?
33137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138   (exit $ac_status); }; }; then
33139   gl_cv_func_iswcntrl_works=yes
33140 else
33141   $as_echo "$as_me: program exited with status $ac_status" >&5
33142 $as_echo "$as_me: failed program was:" >&5
33143 sed 's/^/| /' conftest.$ac_ext >&5
33144
33145 ( exit $ac_status )
33146 gl_cv_func_iswcntrl_works=no
33147 fi
33148 rm -rf conftest.dSYM
33149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33150 fi
33151
33152
33153
33154 fi
33155 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
33156 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
33157     fi
33158
33159
33160
33161
33162   :
33163
33164
33165
33166
33167
33168
33169
33170      if test $gl_cv_have_include_next = yes; then
33171        gl_cv_next_wctype_h='<'wctype.h'>'
33172      else
33173        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
33174 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
33175 if test "${gl_cv_next_wctype_h+set}" = set; then
33176   $as_echo_n "(cached) " >&6
33177 else
33178
33179           if test $ac_cv_header_wctype_h = yes; then
33180             cat >conftest.$ac_ext <<_ACEOF
33181 /* confdefs.h.  */
33182 _ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h.  */
33186 #include <wctype.h>
33187
33188 _ACEOF
33189                                                                                                 case "$host_os" in
33190               aix*) gl_absname_cpp="$ac_cpp -C" ;;
33191               *)    gl_absname_cpp="$ac_cpp" ;;
33192             esac
33193                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33194                sed -n '\#/wctype.h#{
33195                  s#.*"\(.*/wctype.h\)".*#\1#
33196                  s#^/[^/]#//&#
33197                  p
33198                  q
33199                }'`'"'
33200           else
33201             gl_cv_next_wctype_h='<'wctype.h'>'
33202           fi
33203
33204 fi
33205 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
33206 $as_echo "$gl_cv_next_wctype_h" >&6; }
33207      fi
33208      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
33209
33210      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33211        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33212        gl_next_as_first_directive='<'wctype.h'>'
33213      else
33214        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33215        gl_next_as_first_directive=$gl_cv_next_wctype_h
33216      fi
33217      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
33218
33219
33220
33221     HAVE_WCTYPE_H=1
33222   else
33223     HAVE_WCTYPE_H=0
33224   fi
33225
33226
33227   if test "$gl_cv_func_iswcntrl_works" = no; then
33228     REPLACE_ISWCNTRL=1
33229   else
33230     REPLACE_ISWCNTRL=0
33231   fi
33232
33233
33234   # Code from module write:
33235
33236
33237
33238
33239
33240
33241
33242   GNULIB_WRITE=1
33243
33244
33245
33246 cat >>confdefs.h <<\_ACEOF
33247 #define GNULIB_TEST_WRITE 1
33248 _ACEOF
33249
33250
33251
33252   # Code from module xsize:
33253
33254
33255
33256
33257 for ac_header in stdint.h
33258 do
33259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33261   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33262 $as_echo_n "checking for $ac_header... " >&6; }
33263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33264   $as_echo_n "(cached) " >&6
33265 fi
33266 ac_res=`eval 'as_val=${'$as_ac_Header'}
33267                  $as_echo "$as_val"'`
33268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33269 $as_echo "$ac_res" >&6; }
33270 else
33271   # Is the header compilable?
33272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33273 $as_echo_n "checking $ac_header usability... " >&6; }
33274 cat >conftest.$ac_ext <<_ACEOF
33275 /* confdefs.h.  */
33276 _ACEOF
33277 cat confdefs.h >>conftest.$ac_ext
33278 cat >>conftest.$ac_ext <<_ACEOF
33279 /* end confdefs.h.  */
33280 $ac_includes_default
33281 #include <$ac_header>
33282 _ACEOF
33283 rm -f conftest.$ac_objext
33284 if { (ac_try="$ac_compile"
33285 case "(($ac_try" in
33286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287   *) ac_try_echo=$ac_try;;
33288 esac
33289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33290 $as_echo "$ac_try_echo") >&5
33291   (eval "$ac_compile") 2>conftest.er1
33292   ac_status=$?
33293   grep -v '^ *+' conftest.er1 >conftest.err
33294   rm -f conftest.er1
33295   cat conftest.err >&5
33296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297   (exit $ac_status); } && {
33298          test -z "$ac_c_werror_flag" ||
33299          test ! -s conftest.err
33300        } && test -s conftest.$ac_objext; then
33301   ac_header_compiler=yes
33302 else
33303   $as_echo "$as_me: failed program was:" >&5
33304 sed 's/^/| /' conftest.$ac_ext >&5
33305
33306         ac_header_compiler=no
33307 fi
33308
33309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33311 $as_echo "$ac_header_compiler" >&6; }
33312
33313 # Is the header present?
33314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33315 $as_echo_n "checking $ac_header presence... " >&6; }
33316 cat >conftest.$ac_ext <<_ACEOF
33317 /* confdefs.h.  */
33318 _ACEOF
33319 cat confdefs.h >>conftest.$ac_ext
33320 cat >>conftest.$ac_ext <<_ACEOF
33321 /* end confdefs.h.  */
33322 #include <$ac_header>
33323 _ACEOF
33324 if { (ac_try="$ac_cpp conftest.$ac_ext"
33325 case "(($ac_try" in
33326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33327   *) ac_try_echo=$ac_try;;
33328 esac
33329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33330 $as_echo "$ac_try_echo") >&5
33331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33332   ac_status=$?
33333   grep -v '^ *+' conftest.er1 >conftest.err
33334   rm -f conftest.er1
33335   cat conftest.err >&5
33336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337   (exit $ac_status); } >/dev/null && {
33338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33339          test ! -s conftest.err
33340        }; then
33341   ac_header_preproc=yes
33342 else
33343   $as_echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33345
33346   ac_header_preproc=no
33347 fi
33348
33349 rm -f conftest.err conftest.$ac_ext
33350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33351 $as_echo "$ac_header_preproc" >&6; }
33352
33353 # So?  What about this header?
33354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33355   yes:no: )
33356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33360     ac_header_preproc=yes
33361     ;;
33362   no:yes:* )
33363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33366 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33370 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33375
33376     ;;
33377 esac
33378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33379 $as_echo_n "checking for $ac_header... " >&6; }
33380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33381   $as_echo_n "(cached) " >&6
33382 else
33383   eval "$as_ac_Header=\$ac_header_preproc"
33384 fi
33385 ac_res=`eval 'as_val=${'$as_ac_Header'}
33386                  $as_echo "$as_val"'`
33387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33388 $as_echo "$ac_res" >&6; }
33389
33390 fi
33391 as_val=`eval 'as_val=${'$as_ac_Header'}
33392                  $as_echo "$as_val"'`
33393    if test "x$as_val" = x""yes; then
33394   cat >>confdefs.h <<_ACEOF
33395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33396 _ACEOF
33397
33398 fi
33399
33400 done
33401
33402
33403   # End of code from modules
33404
33405
33406
33407
33408
33409
33410
33411
33412
33413   gltests_libdeps=
33414   gltests_ltlibdeps=
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424   gl_source_base='tests'
33425   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
33426
33427   gl_module_indicator_condition=$gltests_WITNESS
33428
33429
33430
33431
33432
33433
33434
33435
33436
33437
33438
33439
33440
33441     # support deprecated ./configure flags to set various compiler flags
33442
33443
33444 # Check whether --with-cflags was given.
33445 if test "${with_cflags+set}" = set; then
33446   withval=$with_cflags;
33447             case "$withval" in
33448             "" | y | ye | yes | n | no)
33449                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
33450 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
33451    { (exit 1); exit 1; }; }
33452                 ;;
33453             esac
33454
33455             CFLAGS="$withval"
33456
33457 fi
33458
33459
33460
33461 # Check whether --with-includes was given.
33462 if test "${with_includes+set}" = set; then
33463   withval=$with_includes;
33464             case "$withval" in
33465             "" | y | ye | yes | n | no)
33466                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
33467 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
33468    { (exit 1); exit 1; }; }
33469               ;;
33470             esac
33471
33472             for dir in $withval; do
33473                 if test -d "$dir"; then
33474                     CPPFLAGS="$CPPFLAGS -I$dir"
33475                 else
33476
33477     { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
33478 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
33479
33480
33481     cat <<AAW_EOF >>config.warnings
33482 Include directory $dir does not exist.
33483 AAW_EOF
33484
33485
33486                 fi
33487             done
33488
33489 fi
33490
33491
33492
33493 # Check whether --with-libraries was given.
33494 if test "${with_libraries+set}" = set; then
33495   withval=$with_libraries;
33496             case "$withval" in
33497             "" | y | ye | yes | n | no)
33498                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
33499 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
33500    { (exit 1); exit 1; }; }
33501               ;;
33502             esac
33503
33504             for dir in $withval; do
33505                 if test -d "$dir"; then
33506                     case "$host" in
33507                       *-solaris2*,*-netbsd*)
33508                             LDFLAGS="$LDFLAGS -R$dir"
33509                             ;;
33510                     esac
33511                     LDFLAGS="$LDFLAGS -L$dir"
33512                 else
33513
33514     { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
33515 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
33516
33517
33518     cat <<AAW_EOF >>config.warnings
33519 Library directory $dir does not exist.
33520 AAW_EOF
33521
33522
33523                 fi
33524             done
33525
33526 fi
33527
33528
33529     # Disable strict-aliasing optimizations
33530
33531     # test for -W'feature', then add the 'no-' version.
33532
33533
33534
33535     { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
33536 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
33537     if test "x$GCC" = "xyes"; then
33538                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33539            $CC -v --help 2>&1) |
33540          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
33541                 if test $? -eq 0; then
33542             found_warning=yes
33543             { $as_echo "$as_me:$LINENO: result: yes" >&5
33544 $as_echo "yes" >&6; }
33545         else
33546             found_warning=no
33547             { $as_echo "$as_me:$LINENO: result: no" >&5
33548 $as_echo "no" >&6; }
33549         fi
33550     else
33551         found_warning=no
33552         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33553 $as_echo "no (not using gcc)" >&6; }
33554     fi
33555
33556     if test x"$found_warning" = x"yes"; then
33557         CFLAGS="$CFLAGS -fno-strict-aliasing"
33558
33559         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
33560
33561
33562     else
33563         :
33564     fi
33565
33566
33567
33568     # Warn for just about everything
33569
33570
33571
33572
33573     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
33574 $as_echo_n "checking for gcc flag -Wall... " >&6; }
33575     if test "x$GCC" = "xyes"; then
33576                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33577            $CC -v --help 2>&1) |
33578          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
33579                 if test $? -eq 0; then
33580             found_warning=yes
33581             { $as_echo "$as_me:$LINENO: result: yes" >&5
33582 $as_echo "yes" >&6; }
33583         else
33584             found_warning=no
33585             { $as_echo "$as_me:$LINENO: result: no" >&5
33586 $as_echo "no" >&6; }
33587         fi
33588     else
33589         found_warning=no
33590         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33591 $as_echo "no (not using gcc)" >&6; }
33592     fi
33593
33594     if test x"$found_warning" = x"yes"; then
33595         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
33596
33597
33598     else
33599         :
33600     fi
33601
33602
33603
33604     # And add any extra warnings too
33605
33606
33607
33608     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
33609 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
33610     if test "x$GCC" = "xyes"; then
33611                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33612            $CC -v --help 2>&1) |
33613          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
33614                 if test $? -eq 0; then
33615             found_warning=yes
33616             { $as_echo "$as_me:$LINENO: result: yes" >&5
33617 $as_echo "yes" >&6; }
33618         else
33619             found_warning=no
33620             { $as_echo "$as_me:$LINENO: result: no" >&5
33621 $as_echo "no" >&6; }
33622         fi
33623     else
33624         found_warning=no
33625         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33626 $as_echo "no (not using gcc)" >&6; }
33627     fi
33628
33629     if test x"$found_warning" = x"yes"; then
33630         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
33631
33632
33633     else
33634
33635
33636
33637     { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
33638 $as_echo_n "checking for gcc flag -W... " >&6; }
33639     if test "x$GCC" = "xyes"; then
33640                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33641            $CC -v --help 2>&1) |
33642          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
33643                 if test $? -eq 0; then
33644             found_warning=yes
33645             { $as_echo "$as_me:$LINENO: result: yes" >&5
33646 $as_echo "yes" >&6; }
33647         else
33648             found_warning=no
33649             { $as_echo "$as_me:$LINENO: result: no" >&5
33650 $as_echo "no" >&6; }
33651         fi
33652     else
33653         found_warning=no
33654         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33655 $as_echo "no (not using gcc)" >&6; }
33656     fi
33657
33658     if test x"$found_warning" = x"yes"; then
33659         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
33660
33661
33662     else
33663         :
33664     fi
33665
33666
33667     fi
33668
33669
33670
33671 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
33672
33673
33674     # Check whether --enable-as-needed was given.
33675 if test "${enable_as_needed+set}" = set; then
33676   enableval=$enable_as_needed;  WANT_AS_NEEDED=$enableval
33677 else
33678    WANT_AS_NEEDED=no
33679 fi
33680
33681
33682      if test x"$WANT_AS_NEEDED" = x"yes"; then
33683   WANT_AS_NEEDED_TRUE=
33684   WANT_AS_NEEDED_FALSE='#'
33685 else
33686   WANT_AS_NEEDED_TRUE='#'
33687   WANT_AS_NEEDED_FALSE=
33688 fi
33689
33690
33691     if test x"$WANT_AS_NEEDED" = x"yes"; then
33692         AS_NEEDED_FLAGS="-Wl,--as-needed"
33693     else
33694         AS_NEEDED_FLAGS=""
33695     fi
33696
33697
33698
33699
33700 #
33701 # Configuration flags (--with-xxx and --enable-xxx)
33702 #
33703
33704
33705
33706 # Check whether --with-user was given.
33707 if test "${with_user+set}" = set; then
33708   withval=$with_user;
33709             case "$withval" in
33710                 "" | y | ye | yes | n | no)
33711                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
33712 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
33713    { (exit 1); exit 1; }; }
33714                   ;;
33715                 *)
33716                     CLIENT_LOGIN="$withval"
33717                   ;;
33718             esac
33719
33720 else
33721
33722
33723     { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
33724 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
33725
33726
33727     cat <<AAW_EOF >>config.warnings
33728 no user specified (--with-user) -- using 'amanda'
33729 AAW_EOF
33730
33731
33732             CLIENT_LOGIN=amanda
33733
33734
33735 fi
33736
33737
33738
33739 cat >>confdefs.h <<_ACEOF
33740 #define CLIENT_LOGIN "$CLIENT_LOGIN"
33741 _ACEOF
33742
33743
33744
33745
33746
33747 # Check whether --with-group was given.
33748 if test "${with_group+set}" = set; then
33749   withval=$with_group;
33750             case "$withval" in
33751                 "" | y | ye | yes | n | no)
33752                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
33753 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
33754    { (exit 1); exit 1; }; }
33755                   ;;
33756                 *) SETUID_GROUP="$withval"
33757                   ;;
33758             esac
33759
33760 else
33761
33762
33763     { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
33764 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
33765
33766
33767     cat <<AAW_EOF >>config.warnings
33768 no group specified (--with-group) -- using 'backup'
33769 AAW_EOF
33770
33771
33772             SETUID_GROUP=backup
33773
33774
33775 fi
33776
33777
33778
33779
33780
33781 # Check whether --with-dumperdir was given.
33782 if test "${with_dumperdir+set}" = set; then
33783   withval=$with_dumperdir;
33784
33785     { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
33786 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
33787
33788
33789     cat <<AAW_EOF >>config.warnings
33790 --with-dumperdir is no longer used.
33791 AAW_EOF
33792
33793
33794
33795
33796 fi
33797
33798
33799
33800
33801 # Check whether --with-configdir was given.
33802 if test "${with_configdir+set}" = set; then
33803   withval=$with_configdir;
33804             case "$withval" in
33805             "" | y | ye | yes | n | no)
33806                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
33807 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
33808    { (exit 1); exit 1; }; }
33809               ;;
33810             *) CONFIG_DIR="$withval"
33811               ;;
33812             esac
33813
33814 else
33815
33816             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
33817
33818
33819 fi
33820
33821
33822   prefix_NONE=
33823   exec_prefix_NONE=
33824   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33825   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33826   eval ac_define_dir="\"$CONFIG_DIR\""
33827   eval ac_define_dir="\"$ac_define_dir\""
33828   CONFIG_DIR="$ac_define_dir"
33829
33830
33831 cat >>confdefs.h <<_ACEOF
33832 #define CONFIG_DIR "$ac_define_dir"
33833 _ACEOF
33834
33835   test "$prefix_NONE" && prefix=NONE
33836   test "$exec_prefix_NONE" && exec_prefix=NONE
33837
33838
33839
33840
33841 # Check whether --with-indexdir was given.
33842 if test "${with_indexdir+set}" = set; then
33843   withval=$with_indexdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
33844 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
33845    { (exit 1); exit 1; }; }
33846
33847 fi
33848
33849
33850
33851
33852 # Check whether --with-dbdir was given.
33853 if test "${with_dbdir+set}" = set; then
33854   withval=$with_dbdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
33855 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
33856    { (exit 1); exit 1; }; }
33857
33858 fi
33859
33860
33861
33862
33863 # Check whether --with-logdir was given.
33864 if test "${with_logdir+set}" = set; then
33865   withval=$with_logdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
33866 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
33867    { (exit 1); exit 1; }; }
33868
33869 fi
33870
33871
33872
33873
33874 # Check whether --with-suffixes was given.
33875 if test "${with_suffixes+set}" = set; then
33876   withval=$with_suffixes;
33877
33878     { $as_echo "$as_me:$LINENO: WARNING: ** --with-suffixes is deprecated" >&5
33879 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
33880
33881
33882     cat <<AAW_EOF >>config.warnings
33883 ** --with-suffixes is deprecated
33884 AAW_EOF
33885
33886
33887
33888 fi
33889
33890
33891
33892
33893 # Check whether --with-gnutar-listdir was given.
33894 if test "${with_gnutar_listdir+set}" = set; then
33895   withval=$with_gnutar_listdir;
33896             case "$withval" in
33897                 n | no) GNUTAR_LISTDIR= ;;
33898                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
33899                 *) GNUTAR_LISTDIR="$withval" ;;
33900             esac
33901
33902 else
33903
33904             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
33905
33906
33907 fi
33908
33909
33910     # substitute $prefix, etc. if necessary
33911
33912   prefix_NONE=
33913   exec_prefix_NONE=
33914   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33915   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33916   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
33917   eval ac_define_dir="\"$ac_define_dir\""
33918   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
33919
33920
33921 cat >>confdefs.h <<_ACEOF
33922 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
33923 _ACEOF
33924
33925   test "$prefix_NONE" && prefix=NONE
33926   test "$exec_prefix_NONE" && exec_prefix=NONE
33927
33928
33929     # handle deprecated option
33930
33931 # Check whether --with-gnutar-listed-incremental was given.
33932 if test "${with_gnutar_listed_incremental+set}" = set; then
33933   withval=$with_gnutar_listed_incremental;
33934             { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
33935 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
33936    { (exit 1); exit 1; }; }
33937
33938
33939 fi
33940
33941
33942
33943
33944 # Check whether --with-tmpdir was given.
33945 if test "${with_tmpdir+set}" = set; then
33946   withval=$with_tmpdir;
33947             tmpdir="$withval"
33948
33949 else
33950
33951             tmpdir=yes
33952
33953
33954 fi
33955
33956
33957     case "$tmpdir" in
33958         n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
33959 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
33960    { (exit 1); exit 1; }; };;
33961         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
33962         *) AMANDA_TMPDIR="$tmpdir";;
33963     esac
33964
33965
33966   prefix_NONE=
33967   exec_prefix_NONE=
33968   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33969   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33970   eval ac_define_dir="\"$AMANDA_TMPDIR\""
33971   eval ac_define_dir="\"$ac_define_dir\""
33972   AMANDA_TMPDIR="$ac_define_dir"
33973
33974
33975 cat >>confdefs.h <<_ACEOF
33976 #define AMANDA_TMPDIR "$ac_define_dir"
33977 _ACEOF
33978
33979   test "$prefix_NONE" && prefix=NONE
33980   test "$exec_prefix_NONE" && exec_prefix=NONE
33981
33982
33983
33984
33985 # Check whether --with-force-uid was given.
33986 if test "${with_force_uid+set}" = set; then
33987   withval=$with_force_uid; CHECK_USERID="$withval"
33988 else
33989   : ${CHECK_USERID=yes}
33990
33991 fi
33992
33993     case "$CHECK_USERID" in
33994         y | ye | yes)
33995             CHECK_USERID=1
33996
33997 cat >>confdefs.h <<\_ACEOF
33998 #define CHECK_USERID 1
33999 _ACEOF
34000
34001           ;;
34002         n | no) :
34003             CHECK_USERID=
34004           ;;
34005         *)
34006             { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
34007 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
34008    { (exit 1); exit 1; }; }
34009     esac
34010
34011      if test x"$CHECK_USERID" = x"1"; then
34012   CHECK_USERID_TRUE=
34013   CHECK_USERID_FALSE='#'
34014 else
34015   CHECK_USERID_TRUE='#'
34016   CHECK_USERID_FALSE=
34017 fi
34018
34019
34020
34021
34022
34023 # Check whether --with-owner was given.
34024 if test "${with_owner+set}" = set; then
34025   withval=$with_owner;
34026             case "$withval" in
34027             "" | y | ye | yes | n | no)
34028                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
34029 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
34030    { (exit 1); exit 1; }; }
34031               ;;
34032             *) BINARY_OWNER="$withval"
34033               ;;
34034             esac
34035
34036 else
34037
34038             BINARY_OWNER="$CLIENT_LOGIN"
34039
34040
34041 fi
34042
34043
34044 cat >>confdefs.h <<_ACEOF
34045 #define BINARY_OWNER "$BINARY_OWNER"
34046 _ACEOF
34047
34048
34049
34050
34051
34052 # Check whether --with-fqdn was given.
34053 if test "${with_fqdn+set}" = set; then
34054   withval=$with_fqdn;  USE_FQDN=$withval
34055 else
34056    USE_FQDN=no
34057 fi
34058
34059
34060     case "$USE_FQDN" in
34061     n | no) : ;;
34062     y |  ye | yes)
34063
34064 cat >>confdefs.h <<\_ACEOF
34065 #define USE_FQDN 1
34066 _ACEOF
34067
34068       ;;
34069     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
34070 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
34071    { (exit 1); exit 1; }; }
34072       ;;
34073     esac
34074
34075
34076
34077 # Check whether --with-reuseports was given.
34078 if test "${with_reuseports+set}" = set; then
34079   withval=$with_reuseports;  case "$withval" in
34080             y | ye | yes) USE_REUSEADDR=no;;
34081             n | no) USE_REUSEADDR=yes;;
34082             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
34083 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
34084    { (exit 1); exit 1; }; };;
34085           esac
34086
34087 else
34088    USE_REUSEADDR=yes;
34089 fi
34090
34091     if test x"$USE_REUSEADDR" = x"yes"; then
34092
34093 cat >>confdefs.h <<\_ACEOF
34094 #define USE_REUSEADDR 1
34095 _ACEOF
34096
34097     fi
34098
34099
34100
34101 # Check whether --with-low-tcpportrange was given.
34102 if test "${with_low_tcpportrange+set}" = set; then
34103   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
34104 else
34105    LOW_TCPPORTRANGE=unlimited
34106 fi
34107
34108
34109     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
34110         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34111             { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
34112 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
34113    { (exit 1); exit 1; }; }
34114         fi
34115         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
34116         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
34117         if test $min_low_tcp_port -gt $max_low_tcp_port; then
34118             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
34119 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
34120    { (exit 1); exit 1; }; }
34121         fi
34122         if test $min_low_tcp_port -lt 512; then
34123
34124     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
34125 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
34126
34127
34128     cat <<AAW_EOF >>config.warnings
34129 the low TCP port range should be 512 or greater in --with-low-tcpportrange
34130 AAW_EOF
34131
34132
34133         fi
34134         if test $max_low_tcp_port -ge 1024; then
34135
34136     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
34137 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
34138
34139
34140     cat <<AAW_EOF >>config.warnings
34141 the low TCP port range should be less than 1024 in --with-low-tcpportrange
34142 AAW_EOF
34143
34144
34145         fi
34146
34147 cat >>confdefs.h <<_ACEOF
34148 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
34149 _ACEOF
34150
34151     fi
34152
34153
34154 # Check whether --with-tcpportrange was given.
34155 if test "${with_tcpportrange+set}" = set; then
34156   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
34157 else
34158    TCPPORTRANGE="unlimited"
34159 fi
34160
34161
34162     if test x"$TCPPORTRANGE" != x"unlimited"; then
34163         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34164             { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
34165 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
34166    { (exit 1); exit 1; }; }
34167         fi
34168         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
34169         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
34170         if test $min_tcp_port -gt $max_tcp_port; then
34171             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
34172 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
34173    { (exit 1); exit 1; }; }
34174         fi
34175         if test $min_tcp_port -lt 1024; then
34176
34177     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
34178 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
34179
34180
34181     cat <<AAW_EOF >>config.warnings
34182 the TCP port range should be 1024 or greater in --with-tcpportrange
34183 AAW_EOF
34184
34185
34186         fi
34187         if test $max_tcp_port -ge 65536; then
34188
34189     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
34190 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
34191
34192
34193     cat <<AAW_EOF >>config.warnings
34194 the TCP port range should be less than 65536 in --with-tcpportrange
34195 AAW_EOF
34196
34197
34198         fi
34199
34200 cat >>confdefs.h <<_ACEOF
34201 #define TCPPORTRANGE $TCPPORTRANGE
34202 _ACEOF
34203
34204     fi
34205
34206
34207 # Check whether --with-udpportrange was given.
34208 if test "${with_udpportrange+set}" = set; then
34209   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
34210 else
34211    UDPPORTRANGE="unlimited"
34212 fi
34213
34214     if test x"$UDPPORTRANGE" != x"unlimited"; then
34215         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34216             { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
34217 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
34218    { (exit 1); exit 1; }; }
34219         fi
34220         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
34221         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
34222         if test $min_udp_port -gt $max_udp_port; then
34223             { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
34224 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
34225    { (exit 1); exit 1; }; }
34226         fi
34227         if test $max_udp_port -ge 1024; then
34228
34229     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
34230 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
34231
34232
34233     cat <<AAW_EOF >>config.warnings
34234 the UDP port range should be less than 1025 in --with-udpportrange
34235 AAW_EOF
34236
34237
34238         fi
34239         if test $min_udp_port -le 0; then
34240
34241     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
34242 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
34243
34244
34245     cat <<AAW_EOF >>config.warnings
34246 the UDP port range should be greater than 0 in --with-udpportrange
34247 AAW_EOF
34248
34249
34250         fi
34251
34252 cat >>confdefs.h <<_ACEOF
34253 #define UDPPORTRANGE $UDPPORTRANGE
34254 _ACEOF
34255
34256     fi
34257
34258
34259
34260
34261
34262
34263 # Check whether --with-buffered-dump was given.
34264 if test "${with_buffered_dump+set}" = set; then
34265   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
34266 else
34267    DUMPER_SOCKET_BUFFERING=no
34268 fi
34269
34270     case "$DUMPER_SOCKET_BUFFERING" in
34271     n | no) ;;
34272     y | ye | yes)
34273
34274 cat >>confdefs.h <<\_ACEOF
34275 #define DUMPER_SOCKET_BUFFERING 1
34276 _ACEOF
34277
34278       ;;
34279     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
34280 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
34281    { (exit 1); exit 1; }; } ;;
34282     esac
34283
34284
34285
34286 # Check whether --with-maxtapeblocksize was given.
34287 if test "${with_maxtapeblocksize+set}" = set; then
34288   withval=$with_maxtapeblocksize;
34289     { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
34290 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
34291
34292
34293     cat <<AAW_EOF >>config.warnings
34294 --with-maxtapeblocksize is no longer needed
34295 AAW_EOF
34296
34297
34298
34299 fi
34300
34301
34302
34303     ASSERTIONS=
34304
34305 # Check whether --with-assertions was given.
34306 if test "${with_assertions+set}" = set; then
34307   withval=$with_assertions;
34308             case "$withval" in
34309                 n | no) : ;;
34310                 y |  ye | yes)
34311                     ASSERTIONS=1
34312
34313 cat >>confdefs.h <<\_ACEOF
34314 #define ASSERTIONS 1
34315 _ACEOF
34316
34317                   ;;
34318                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
34319 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
34320    { (exit 1); exit 1; }; }
34321                   ;;
34322             esac
34323
34324
34325 fi
34326
34327
34328
34329
34330
34331
34332 # Check whether --with-debugging was given.
34333 if test "${with_debugging+set}" = set; then
34334   withval=$with_debugging;  debugging="$withval"
34335 else
34336    debugging="yes"
34337
34338 fi
34339
34340
34341     case "$debugging" in
34342         n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
34343 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
34344    { (exit 1); exit 1; }; };;
34345         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
34346         *) AMANDA_DBGDIR="$debugging";;
34347     esac
34348
34349     # evaluate any extra variables in the directory
34350
34351   prefix_NONE=
34352   exec_prefix_NONE=
34353   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34354   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34355   eval ac_define_dir="\"$AMANDA_DBGDIR\""
34356   eval ac_define_dir="\"$ac_define_dir\""
34357   AMANDA_DBGDIR="$ac_define_dir"
34358
34359
34360 cat >>confdefs.h <<_ACEOF
34361 #define AMANDA_DBGDIR "$ac_define_dir"
34362 _ACEOF
34363
34364   test "$prefix_NONE" && prefix=NONE
34365   test "$exec_prefix_NONE" && exec_prefix=NONE
34366
34367
34368
34369
34370 # Check whether --with-debug_days was given.
34371 if test "${with_debug_days+set}" = set; then
34372   withval=$with_debug_days;
34373             debug_days="$withval"
34374
34375 else
34376
34377             debug_days="yes"
34378
34379
34380 fi
34381
34382     case "$debug_days" in
34383         n | no)
34384             AMANDA_DEBUG_DAYS=0 ;;
34385         y |  ye | yes)
34386             AMANDA_DEBUG_DAYS=4 ;;
34387         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
34388             AMANDA_DEBUG_DAYS="$debug_days" ;;
34389         *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
34390 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
34391    { (exit 1); exit 1; }; }
34392           ;;
34393     esac
34394
34395 cat >>confdefs.h <<_ACEOF
34396 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
34397 _ACEOF
34398
34399
34400
34401
34402
34403 # Check whether --with-testing was given.
34404 if test "${with_testing+set}" = set; then
34405   withval=$with_testing;
34406             TESTING="$withval"
34407
34408 else
34409
34410             TESTING="no"
34411
34412
34413 fi
34414
34415     case "$TESTING" in
34416         n | no) SERVICE_SUFFIX="";;
34417         y |  ye | yes) SERVICE_SUFFIX="-test";;
34418         *) SERVICE_SUFFIX="-$TESTING";;
34419     esac
34420
34421     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
34422     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
34423
34424
34425
34426 cat >>confdefs.h <<_ACEOF
34427 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
34428 _ACEOF
34429
34430
34431 cat >>confdefs.h <<_ACEOF
34432 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
34433 _ACEOF
34434
34435
34436 cat >>confdefs.h <<_ACEOF
34437 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
34438 _ACEOF
34439
34440
34441
34442     SINGLE_USERID=${SINGLE_USERID:-no}
34443     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
34444
34445
34446 # Check whether --with-single-userid was given.
34447 if test "${with_single_userid+set}" = set; then
34448   withval=$with_single_userid;    SINGLE_USERID=$withval
34449 fi
34450
34451
34452     case "$host" in
34453         *-pc-cygwin)
34454             WANT_SETUID_CLIENT=false
34455             SINGLE_USERID=yes
34456             ;;
34457     esac
34458
34459     if test x"$WANT_SETUID_CLIENT" = x"true"; then
34460
34461 cat >>confdefs.h <<\_ACEOF
34462 #define WANT_SETUID_CLIENT 1
34463 _ACEOF
34464
34465     fi
34466      if test x"$WANT_SETUID_CLIENT" = x"true"; then
34467   WANT_SETUID_CLIENT_TRUE=
34468   WANT_SETUID_CLIENT_FALSE='#'
34469 else
34470   WANT_SETUID_CLIENT_TRUE='#'
34471   WANT_SETUID_CLIENT_FALSE=
34472 fi
34473
34474
34475     if test x"$SINGLE_USERID" = x"yes"; then
34476
34477 cat >>confdefs.h <<\_ACEOF
34478 #define SINGLE_USERID 1
34479 _ACEOF
34480
34481     fi
34482
34483
34484     WANT_INSTALLPERMS=yes
34485     # Check whether --enable-installperms was given.
34486 if test "${enable_installperms+set}" = set; then
34487   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
34488 else
34489    WANT_INSTALLPERMS="yes"
34490
34491 fi
34492
34493      if test x"$WANT_INSTALLPERMS" = x"yes"; then
34494   WANT_INSTALLPERMS_TRUE=
34495   WANT_INSTALLPERMS_FALSE='#'
34496 else
34497   WANT_INSTALLPERMS_TRUE='#'
34498   WANT_INSTALLPERMS_FALSE=
34499 fi
34500
34501
34502
34503     # Check whether --enable-syntax-checks was given.
34504 if test "${enable_syntax_checks+set}" = set; then
34505   enableval=$enable_syntax_checks;
34506             case "$enableval" in
34507                 no) SYNTAX_CHECKS=false;;
34508                 *)
34509                     SYNTAX_CHECKS=true
34510
34511     { $as_echo "$as_me:$LINENO: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
34512 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
34513
34514
34515     cat <<AAW_EOF >>config.warnings
34516 --enable-syntax-checks can cause build failures and should only be used by developers
34517 AAW_EOF
34518
34519
34520                     ;;
34521             esac
34522
34523 else
34524
34525             SYNTAX_CHECKS=false
34526
34527 fi
34528
34529
34530      if $SYNTAX_CHECKS; then
34531   SYNTAX_CHECKS_TRUE=
34532   SYNTAX_CHECKS_FALSE='#'
34533 else
34534   SYNTAX_CHECKS_TRUE='#'
34535   SYNTAX_CHECKS_FALSE=
34536 fi
34537
34538
34539
34540
34541 #
34542 # Set up for Amanda components and modules
34543 #
34544
34545     WANT_SERVER=true
34546
34547 # Check whether --with-server was given.
34548 if test "${with_server+set}" = set; then
34549   withval=$with_server;
34550             case "$withval" in
34551             y | ye | yes) WANT_SERVER=true;;
34552             n | no) WANT_SERVER=false;;
34553             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
34554 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
34555    { (exit 1); exit 1; }; } ;;
34556             esac
34557
34558 fi
34559
34560
34561
34562     WANT_CLIENT=true
34563
34564 # Check whether --with-client was given.
34565 if test "${with_client+set}" = set; then
34566   withval=$with_client;
34567             case "$withval" in
34568             y | ye | yes) WANT_CLIENT=true;;
34569             n | no) WANT_CLIENT=false;;
34570             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
34571 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
34572    { (exit 1); exit 1; }; } ;;
34573             esac
34574
34575 fi
34576
34577
34578
34579
34580     WANT_RESTORE=${WANT_SERVER-true}
34581
34582 # Check whether --with-restore was given.
34583 if test "${with_restore+set}" = set; then
34584   withval=$with_restore;
34585             case "$withval" in
34586             y | ye | yes) WANT_RESTORE=true;;
34587             n | no) WANT_RESTORE=false;;
34588             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
34589 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
34590    { (exit 1); exit 1; }; } ;;
34591             esac
34592
34593 fi
34594
34595
34596
34597
34598     WANT_RECOVER=${WANT_CLIENT-true}
34599
34600 # Check whether --with-amrecover was given.
34601 if test "${with_amrecover+set}" = set; then
34602   withval=$with_amrecover;
34603             case "$withval" in
34604             y | ye | yes) WANT_RECOVER=true;;
34605             n | no) WANT_RECOVER=false;;
34606             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
34607 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
34608    { (exit 1); exit 1; }; } ;;
34609             esac
34610
34611 fi
34612
34613
34614
34615
34616 # Check whether --with-client-only was given.
34617 if test "${with_client_only+set}" = set; then
34618   withval=$with_client_only;    { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
34619 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
34620    { (exit 1); exit 1; }; }
34621
34622 fi
34623
34624
34625
34626
34627 # Check whether --with-server-only was given.
34628 if test "${with_server_only+set}" = set; then
34629   withval=$with_server_only;    { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
34630 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
34631    { (exit 1); exit 1; }; }
34632
34633 fi
34634
34635
34636
34637     WANT_NDMP=${WANT_NDMP-true}
34638
34639 # Check whether --with-ndmp was given.
34640 if test "${with_ndmp+set}" = set; then
34641   withval=$with_ndmp;
34642             case "$withval" in
34643             y | ye | yes) WANT_NDMP=true;;
34644             n | no) WANT_NDMP=false;;
34645             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-ndmp option." >&5
34646 $as_echo "$as_me: error: You must not supply an argument to --with-ndmp option." >&2;}
34647    { (exit 1); exit 1; }; } ;;
34648             esac
34649
34650 fi
34651
34652
34653
34654
34655
34656
34657
34658
34659
34660     # detect invalid combinations of components
34661     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
34662         { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
34663 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
34664    { (exit 1); exit 1; }; }
34665     fi
34666     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
34667         { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
34668 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
34669    { (exit 1); exit 1; }; }
34670     fi
34671
34672      if $WANT_CLIENT; then
34673   WANT_CLIENT_TRUE=
34674   WANT_CLIENT_FALSE='#'
34675 else
34676   WANT_CLIENT_TRUE='#'
34677   WANT_CLIENT_FALSE=
34678 fi
34679
34680      if $WANT_RESTORE; then
34681   WANT_RESTORE_TRUE=
34682   WANT_RESTORE_FALSE='#'
34683 else
34684   WANT_RESTORE_TRUE='#'
34685   WANT_RESTORE_FALSE=
34686 fi
34687
34688      if $WANT_SERVER; then
34689   WANT_SERVER_TRUE=
34690   WANT_SERVER_FALSE='#'
34691 else
34692   WANT_SERVER_TRUE='#'
34693   WANT_SERVER_FALSE=
34694 fi
34695
34696      if $WANT_RECOVER; then
34697   WANT_RECOVER_TRUE=
34698   WANT_RECOVER_FALSE='#'
34699 else
34700   WANT_RECOVER_TRUE='#'
34701   WANT_RECOVER_FALSE=
34702 fi
34703
34704      if $WANT_NDMP; then
34705   WANT_NDMP_TRUE=
34706   WANT_NDMP_FALSE='#'
34707 else
34708   WANT_NDMP_TRUE='#'
34709   WANT_NDMP_FALSE=
34710 fi
34711
34712
34713      if $WANT_SERVER || $WANT_RESTORE; then
34714   WANT_TAPE_TRUE=
34715   WANT_TAPE_FALSE='#'
34716 else
34717   WANT_TAPE_TRUE='#'
34718   WANT_TAPE_FALSE=
34719 fi
34720
34721
34722     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
34723     # summary, below
34724     AMANDA_COMPONENTS=''
34725     missing_components=''
34726
34727     if $WANT_SERVER; then
34728         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
34729     else
34730         missing_components="$missing_components (no server)";
34731     fi
34732     if $WANT_RESTORE; then
34733         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
34734     else
34735         missing_components="$missing_components (no restore)";
34736     fi
34737     if $WANT_CLIENT; then
34738         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
34739     else
34740         missing_components="$missing_components (no client)";
34741     fi
34742     if $WANT_RECOVER; then
34743         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
34744     else
34745         missing_components="$missing_components (no amrecover)";
34746     fi
34747     if $WANT_NDMP; then
34748         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
34749     else
34750         missing_components="$missing_components (no ndmp)";
34751     fi
34752
34753
34754
34755
34756
34757
34758
34759 # Check whether --with-gnuplot was given.
34760 if test "${with_gnuplot+set}" = set; then
34761   withval=$with_gnuplot;
34762             case "$withval" in
34763                 y | ye | yes) : ;;
34764                 n | no) GNUPLOT=no ;;
34765                 *) GNUPLOT="$withval" ;;
34766             esac
34767
34768 fi
34769
34770     if test "x$GNUPLOT" = "xno"; then
34771         GNUPLOT=
34772     else
34773         # Extract the first word of "gnuplot", so it can be a program name with args.
34774 set dummy gnuplot; ac_word=$2
34775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34776 $as_echo_n "checking for $ac_word... " >&6; }
34777 if test "${ac_cv_path_GNUPLOT+set}" = set; then
34778   $as_echo_n "(cached) " >&6
34779 else
34780   case $GNUPLOT in
34781   [\\/]* | ?:[\\/]*)
34782   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
34783   ;;
34784   *)
34785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34786 for as_dir in $LOCSYSPATH
34787 do
34788   IFS=$as_save_IFS
34789   test -z "$as_dir" && as_dir=.
34790   for ac_exec_ext in '' $ac_executable_extensions; do
34791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34792     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
34793     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34794     break 2
34795   fi
34796 done
34797 done
34798 IFS=$as_save_IFS
34799
34800   ;;
34801 esac
34802 fi
34803 GNUPLOT=$ac_cv_path_GNUPLOT
34804 if test -n "$GNUPLOT"; then
34805   { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
34806 $as_echo "$GNUPLOT" >&6; }
34807 else
34808   { $as_echo "$as_me:$LINENO: result: no" >&5
34809 $as_echo "no" >&6; }
34810 fi
34811
34812
34813     fi
34814
34815
34816
34817
34818
34819
34820     # Extract the first word of "pcat", so it can be a program name with args.
34821 set dummy pcat; ac_word=$2
34822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34823 $as_echo_n "checking for $ac_word... " >&6; }
34824 if test "${ac_cv_path_PCAT+set}" = set; then
34825   $as_echo_n "(cached) " >&6
34826 else
34827   case $PCAT in
34828   [\\/]* | ?:[\\/]*)
34829   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
34830   ;;
34831   *)
34832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34833 for as_dir in $LOCSYSPATH
34834 do
34835   IFS=$as_save_IFS
34836   test -z "$as_dir" && as_dir=.
34837   for ac_exec_ext in '' $ac_executable_extensions; do
34838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34839     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
34840     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34841     break 2
34842   fi
34843 done
34844 done
34845 IFS=$as_save_IFS
34846
34847   ;;
34848 esac
34849 fi
34850 PCAT=$ac_cv_path_PCAT
34851 if test -n "$PCAT"; then
34852   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
34853 $as_echo "$PCAT" >&6; }
34854 else
34855   { $as_echo "$as_me:$LINENO: result: no" >&5
34856 $as_echo "no" >&6; }
34857 fi
34858
34859
34860
34861
34862
34863     # Extract the first word of "compress", so it can be a program name with args.
34864 set dummy compress; ac_word=$2
34865 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34866 $as_echo_n "checking for $ac_word... " >&6; }
34867 if test "${ac_cv_path_COMPRESS+set}" = set; then
34868   $as_echo_n "(cached) " >&6
34869 else
34870   case $COMPRESS in
34871   [\\/]* | ?:[\\/]*)
34872   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
34873   ;;
34874   *)
34875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34876 for as_dir in $LOCSYSPATH
34877 do
34878   IFS=$as_save_IFS
34879   test -z "$as_dir" && as_dir=.
34880   for ac_exec_ext in '' $ac_executable_extensions; do
34881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34882     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
34883     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34884     break 2
34885   fi
34886 done
34887 done
34888 IFS=$as_save_IFS
34889
34890   ;;
34891 esac
34892 fi
34893 COMPRESS=$ac_cv_path_COMPRESS
34894 if test -n "$COMPRESS"; then
34895   { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
34896 $as_echo "$COMPRESS" >&6; }
34897 else
34898   { $as_echo "$as_me:$LINENO: result: no" >&5
34899 $as_echo "no" >&6; }
34900 fi
34901
34902
34903
34904
34905
34906     # Extract the first word of "gzip", so it can be a program name with args.
34907 set dummy gzip; ac_word=$2
34908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34909 $as_echo_n "checking for $ac_word... " >&6; }
34910 if test "${ac_cv_path_GZIP+set}" = set; then
34911   $as_echo_n "(cached) " >&6
34912 else
34913   case $GZIP in
34914   [\\/]* | ?:[\\/]*)
34915   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
34916   ;;
34917   *)
34918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34919 for as_dir in $LOCSYSPATH
34920 do
34921   IFS=$as_save_IFS
34922   test -z "$as_dir" && as_dir=.
34923   for ac_exec_ext in '' $ac_executable_extensions; do
34924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34925     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
34926     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34927     break 2
34928   fi
34929 done
34930 done
34931 IFS=$as_save_IFS
34932
34933   ;;
34934 esac
34935 fi
34936 GZIP=$ac_cv_path_GZIP
34937 if test -n "$GZIP"; then
34938   { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
34939 $as_echo "$GZIP" >&6; }
34940 else
34941   { $as_echo "$as_me:$LINENO: result: no" >&5
34942 $as_echo "no" >&6; }
34943 fi
34944
34945
34946
34947
34948
34949
34950
34951
34952
34953
34954     if test "x$GNUPLOT" != "x"; then
34955         WANT_AMPLOT=true
34956
34957         # variable substitutions for amcat.awk
34958         if test "$PCAT"; then
34959             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
34960         else
34961             AMPLOT_CAT_PACK=
34962         fi
34963         if test "$COMPRESS"; then
34964             AMPLOT_COMPRESS=$COMPRESS
34965             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
34966         else
34967             AMPLOT_CAT_COMPRESS=
34968         fi
34969         if test "$GZIP"; then
34970             AMPLOT_COMPRESS=$GZIP
34971             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
34972         else
34973             AMPLOT_CAT_GZIP=
34974         fi
34975
34976
34977
34978
34979
34980     else
34981         WANT_AMPLOT=false
34982
34983     { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
34984 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
34985
34986
34987     cat <<AAW_EOF >>config.warnings
34988 Not building 'amplot', because gnuplot was not found
34989 AAW_EOF
34990
34991
34992     fi
34993
34994      if test x"$WANT_AMPLOT" = x"true"; then
34995   WANT_AMPLOT_TRUE=
34996   WANT_AMPLOT_FALSE='#'
34997 else
34998   WANT_AMPLOT_TRUE='#'
34999   WANT_AMPLOT_FALSE=
35000 fi
35001
35002
35003
35004     # Check whether --enable-manpage-build was given.
35005 if test "${enable_manpage_build+set}" = set; then
35006   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
35007 else
35008    ENABLE_MANPAGE_BUILD=no
35009 fi
35010
35011
35012     # and ensure that everything docbook-related is OK if we'll be using it
35013     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
35014         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
35015
35016
35017 XSLTPROC_FLAGS="--nonet"
35018
35019
35020 # The (lack of) whitespace and overquoting here are all necessary for
35021 # proper formatting.
35022
35023 # Check whether --with-xsltproc was given.
35024 if test "${with_xsltproc+set}" = set; then
35025   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
35026 else
35027    ac_with_xsltproc=maybe;
35028 fi
35029
35030
35031
35032 # Check whether --with-xsltproc-flags was given.
35033 if test "${with_xsltproc_flags+set}" = set; then
35034   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
35035         XSLTPROC_FLAGS=''
35036     else
35037         if test "x$withval" != "xyes"; then
35038             XSLTPROC_FLAGS="$withval"
35039         fi
35040     fi
35041
35042 fi
35043
35044
35045 # search for xsltproc if it wasn't specified
35046 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
35047     for ac_prog in xsltproc
35048 do
35049   # Extract the first word of "$ac_prog", so it can be a program name with args.
35050 set dummy $ac_prog; ac_word=$2
35051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35052 $as_echo_n "checking for $ac_word... " >&6; }
35053 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35054   $as_echo_n "(cached) " >&6
35055 else
35056   case $XSLTPROC in
35057   [\\/]* | ?:[\\/]*)
35058   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35059   ;;
35060   *)
35061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35062 for as_dir in $LOCSYSPATH
35063 do
35064   IFS=$as_save_IFS
35065   test -z "$as_dir" && as_dir=.
35066   for ac_exec_ext in '' $ac_executable_extensions; do
35067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35068     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35069     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35070     break 2
35071   fi
35072 done
35073 done
35074 IFS=$as_save_IFS
35075
35076   ;;
35077 esac
35078 fi
35079 XSLTPROC=$ac_cv_path_XSLTPROC
35080 if test -n "$XSLTPROC"; then
35081   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35082 $as_echo "$XSLTPROC" >&6; }
35083 else
35084   { $as_echo "$as_me:$LINENO: result: no" >&5
35085 $as_echo "no" >&6; }
35086 fi
35087
35088
35089   test -n "$XSLTPROC" && break
35090 done
35091
35092 else
35093     if test "$ac_with_xsltproc" != "no"; then
35094         if test -x "$ac_with_xsltproc"; then
35095             XSLTPROC="$ac_with_xsltproc";
35096         else
35097
35098     { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
35099 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
35100
35101
35102     cat <<AAW_EOF >>config.warnings
35103 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
35104 AAW_EOF
35105
35106
35107             for ac_prog in xsltproc
35108 do
35109   # Extract the first word of "$ac_prog", so it can be a program name with args.
35110 set dummy $ac_prog; ac_word=$2
35111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35112 $as_echo_n "checking for $ac_word... " >&6; }
35113 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35114   $as_echo_n "(cached) " >&6
35115 else
35116   case $XSLTPROC in
35117   [\\/]* | ?:[\\/]*)
35118   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35119   ;;
35120   *)
35121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35122 for as_dir in $LOCSYSPATH
35123 do
35124   IFS=$as_save_IFS
35125   test -z "$as_dir" && as_dir=.
35126   for ac_exec_ext in '' $ac_executable_extensions; do
35127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35128     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35129     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35130     break 2
35131   fi
35132 done
35133 done
35134 IFS=$as_save_IFS
35135
35136   ;;
35137 esac
35138 fi
35139 XSLTPROC=$ac_cv_path_XSLTPROC
35140 if test -n "$XSLTPROC"; then
35141   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35142 $as_echo "$XSLTPROC" >&6; }
35143 else
35144   { $as_echo "$as_me:$LINENO: result: no" >&5
35145 $as_echo "no" >&6; }
35146 fi
35147
35148
35149   test -n "$XSLTPROC" && break
35150 done
35151
35152         fi
35153     fi
35154 fi
35155
35156
35157
35158
35159
35160
35161
35162
35163
35164
35165     { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
35166 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
35167 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
35168   $as_echo_n "(cached) " >&6
35169 else
35170
35171         ac_cv_docbook_xslt_1_72_0=no
35172         if test -n "$XSLTPROC"; then
35173             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
35174             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
35175
35176             if test "$?" = 0; then
35177                 ac_cv_docbook_xslt_1_72_0=yes
35178             fi
35179         fi
35180
35181 fi
35182 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
35183 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
35184
35185     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
35186     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
35187
35188
35189
35190
35191
35192
35193
35194
35195     { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
35196 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
35197 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
35198   $as_echo_n "(cached) " >&6
35199 else
35200
35201         ac_cv_docbook_xslt_current_version=no
35202
35203         if test -n "$XSLTPROC"; then
35204             cat >conftest.xsl <<EOF
35205                 <xsl:stylesheet
35206                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
35207                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
35208                     version="1.0">
35209                     <xsl:output method="text"/>
35210                     <xsl:template match="fm:project/fm:Version">
35211                         <xsl:value-of select="." />
35212                     </xsl:template>
35213                     <!-- do nothing with any other text -->
35214                     <xsl:template match="text()"/>
35215                 </xsl:stylesheet>
35216 EOF
35217             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
35218             echo "====" >&5
35219             cat conftest.xsl >&5
35220             echo "====" >&5
35221
35222             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
35223
35224             if test "$?" != 0; then
35225                 ac_cv_docbook_xslt_current_version='no'
35226             fi
35227
35228             rm conftest.xsl
35229         fi
35230
35231 fi
35232 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
35233 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
35234
35235     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
35236     { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
35237 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
35238
35239     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35240         { $as_echo "$as_me:$LINENO: result: no" >&5
35241 $as_echo "no" >&6; }
35242     else
35243
35244   # Used to indicate true or false condition
35245   ax_compare_version=false
35246
35247   # Convert the two version strings to be compared into a format that
35248   # allows a simple string comparison.  The end result is that a version
35249   # string of the form 1.12.5-r617 will be converted to the form
35250   # 0001001200050617.  In other words, each number is zero padded to four
35251   # digits, and non digits are removed.
35252
35253   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35254                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35255                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35256                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35257                      -e 's/[^0-9]//g'`
35258
35259
35260   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35261                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35262                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35263                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35264                      -e 's/[^0-9]//g'`
35265
35266
35267     ax_compare_version=`echo "x$ax_compare_version_A
35268 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
35269
35270
35271
35272     if test "$ax_compare_version" = "true" ; then
35273
35274             # version is less than required, so mark it as "no"
35275             DOCBOOK_XSLT_CURRENT_VERSION=no
35276
35277       fi
35278
35279
35280         if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35281             { $as_echo "$as_me:$LINENO: result: no" >&5
35282 $as_echo "no" >&6; }
35283         else
35284             { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
35285 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
35286         fi
35287     fi
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
35299 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
35300 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
35301   $as_echo_n "(cached) " >&6
35302 else
35303
35304         ac_cv_docbook_dtd_4_1_2=no
35305         if test -n "$XSLTPROC"; then
35306             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35307             cat <<EOF >conftest.xml
35308 <?xml version="1.0" encoding='ISO-8859-1'?>
35309 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
35310 <book id="empty">
35311 </book>
35312 EOF
35313             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35314             echo "conftest.xml:" >&5
35315             echo "====" >&5
35316             cat conftest.xml >&5
35317             echo "====" >&5
35318
35319             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35320             if test "$?" = 0 -o "$?" = 5; then
35321                 # failing to load the DTD is just a warning, so check for it in the output.
35322                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35323                     : # no good..
35324                 else
35325                     ac_cv_docbook_dtd_4_1_2=yes
35326                 fi
35327             fi
35328             cat conftest.out >&5
35329
35330             rm -f conftest.xml conftest.out
35331         fi
35332
35333 fi
35334 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
35335 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
35336
35337     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
35338     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
35354 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
35355 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
35356   $as_echo_n "(cached) " >&6
35357 else
35358
35359         ac_cv_docbook_dtd_4_2=no
35360         if test -n "$XSLTPROC"; then
35361             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35362             cat <<EOF >conftest.xml
35363 <?xml version="1.0" encoding='ISO-8859-1'?>
35364 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
35365 <book id="empty">
35366 </book>
35367 EOF
35368             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35369             echo "conftest.xml:" >&5
35370             echo "====" >&5
35371             cat conftest.xml >&5
35372             echo "====" >&5
35373
35374             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35375             if test "$?" = 0 -o "$?" = 5; then
35376                 # failing to load the DTD is just a warning, so check for it in the output.
35377                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35378                     : # no good..
35379                 else
35380                     ac_cv_docbook_dtd_4_2=yes
35381                 fi
35382             fi
35383             cat conftest.out >&5
35384
35385             rm -f conftest.xml conftest.out
35386         fi
35387
35388 fi
35389 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
35390 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
35391
35392     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
35393     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
35394
35395
35396
35397
35398
35399
35400         if test -z "$XSLTPROC"; then
35401             { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
35402 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
35403    { (exit 1); exit 1; }; }
35404         fi
35405
35406         # if the 'current' Docbook revision is good enough, use that; otherwise,
35407         # if 1.72.0 is available, use that.
35408         XSLREL=current
35409         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
35410             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
35411                 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
35412 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
35413    { (exit 1); exit 1; }; }
35414             else
35415                 XSLREL=1.72.0
35416             fi
35417         fi
35418
35419         # disable validation if the correct DTDs are not available
35420         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
35421
35422     { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
35423 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
35424
35425
35426     cat <<AAW_EOF >>config.warnings
35427 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
35428 AAW_EOF
35429
35430
35431             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
35432         fi
35433     fi
35434
35435      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
35436   ENABLE_MANPAGE_BUILD_TRUE=
35437   ENABLE_MANPAGE_BUILD_FALSE='#'
35438 else
35439   ENABLE_MANPAGE_BUILD_TRUE='#'
35440   ENABLE_MANPAGE_BUILD_FALSE=
35441 fi
35442
35443
35444
35445
35446
35447     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
35448     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
35449
35450
35451
35452 # Check whether --with-index-server was given.
35453 if test "${with_index_server+set}" = set; then
35454   withval=$with_index_server;
35455             case "$withval" in
35456             "" | y | ye | yes | n | no)
35457                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
35458 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
35459    { (exit 1); exit 1; }; }
35460               ;;
35461             *) DEFAULT_SERVER="$withval"
35462               ;;
35463             esac
35464
35465 else
35466   : ${DEFAULT_SERVER=`uname -n`}
35467
35468 fi
35469
35470
35471 cat >>confdefs.h <<_ACEOF
35472 #define DEFAULT_SERVER "$DEFAULT_SERVER"
35473 _ACEOF
35474
35475
35476
35477
35478 # Check whether --with-config was given.
35479 if test "${with_config+set}" = set; then
35480   withval=$with_config;
35481             case "$withval" in
35482             "" | y | ye | yes | n | no)
35483                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
35484 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
35485    { (exit 1); exit 1; }; }
35486               ;;
35487             *) DEFAULT_CONFIG="$withval"
35488               ;;
35489             esac
35490
35491 else
35492   : ${DEFAULT_CONFIG=DailySet1}
35493
35494 fi
35495
35496
35497 cat >>confdefs.h <<_ACEOF
35498 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
35499 _ACEOF
35500
35501
35502
35503
35504 # Check whether --with-tape-server was given.
35505 if test "${with_tape_server+set}" = set; then
35506   withval=$with_tape_server;
35507             case "$withval" in
35508             "" | y | ye | yes | n | no)
35509                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
35510 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
35511    { (exit 1); exit 1; }; }
35512               ;;
35513             *) DEFAULT_TAPE_SERVER="$withval"
35514               ;;
35515             esac
35516
35517 else
35518   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
35519
35520 fi
35521
35522
35523 cat >>confdefs.h <<_ACEOF
35524 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
35525 _ACEOF
35526
35527
35528
35529
35530 # Check whether --with-tape-device was given.
35531 if test "${with_tape_device+set}" = set; then
35532   withval=$with_tape_device;
35533             case "$withval" in
35534             "" | y | ye | yes | n | no)
35535                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
35536 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
35537    { (exit 1); exit 1; }; }
35538               ;;
35539             *) DEFAULT_TAPE_DEVICE="$withval"
35540               ;;
35541             esac
35542
35543
35544 fi
35545
35546
35547
35548 cat >>confdefs.h <<_ACEOF
35549 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
35550 _ACEOF
35551
35552
35553
35554     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
35555         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
35556     else
35557         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
35558     fi
35559
35560
35561
35562 # Check whether --with-changer-device was given.
35563 if test "${with_changer_device+set}" = set; then
35564   withval=$with_changer_device;
35565
35566     { $as_echo "$as_me:$LINENO: WARNING: --with-changer-device is no longer used." >&5
35567 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
35568
35569
35570     cat <<AAW_EOF >>config.warnings
35571 --with-changer-device is no longer used.
35572 AAW_EOF
35573
35574
35575
35576
35577 fi
35578
35579
35580
35581 # Check whether --with-amandates was given.
35582 if test "${with_amandates+set}" = set; then
35583   withval=$with_amandates;
35584             case "$withval" in
35585                 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
35586 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
35587    { (exit 1); exit 1; }; };;
35588                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
35589                 *) amandates="$withval";;
35590             esac
35591
35592 else
35593   amandates='$localstatedir/amanda/amandates'
35594
35595 fi
35596
35597
35598
35599   prefix_NONE=
35600   exec_prefix_NONE=
35601   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35602   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35603   eval ac_define_dir="\"$amandates\""
35604   eval ac_define_dir="\"$ac_define_dir\""
35605   DEFAULT_AMANDATES_FILE="$ac_define_dir"
35606
35607
35608 cat >>confdefs.h <<_ACEOF
35609 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
35610 _ACEOF
35611
35612   test "$prefix_NONE" && prefix=NONE
35613   test "$exec_prefix_NONE" && exec_prefix=NONE
35614
35615
35616     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
35617     case "$host" in
35618         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
35619                     ;;
35620     esac
35621
35622 cat >>confdefs.h <<_ACEOF
35623 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
35624 _ACEOF
35625
35626
35627
35628
35629     # Extract the first word of "getconf", so it can be a program name with args.
35630 set dummy getconf; ac_word=$2
35631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35632 $as_echo_n "checking for $ac_word... " >&6; }
35633 if test "${ac_cv_path_GETCONF+set}" = set; then
35634   $as_echo_n "(cached) " >&6
35635 else
35636   case $GETCONF in
35637   [\\/]* | ?:[\\/]*)
35638   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
35639   ;;
35640   *)
35641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35642 for as_dir in $SYSPATH
35643 do
35644   IFS=$as_save_IFS
35645   test -z "$as_dir" && as_dir=.
35646   for ac_exec_ext in '' $ac_executable_extensions; do
35647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35648     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
35649     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35650     break 2
35651   fi
35652 done
35653 done
35654 IFS=$as_save_IFS
35655
35656   ;;
35657 esac
35658 fi
35659 GETCONF=$ac_cv_path_GETCONF
35660 if test -n "$GETCONF"; then
35661   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
35662 $as_echo "$GETCONF" >&6; }
35663 else
35664   { $as_echo "$as_me:$LINENO: result: no" >&5
35665 $as_echo "no" >&6; }
35666 fi
35667
35668
35669
35670
35671
35672
35673
35674     # we use 'getconf', if it exists, to get the relevant
35675     # compiler flags.
35676     GETCONF_LFS="LFS"
35677     case "$host" in
35678         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35679         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35680     esac
35681
35682     # Checks for compilers, typedefs, structures, and compiler characteristics.
35683     # Check for large file compilation environment.
35684     NEED_RESETOFS=yes
35685     { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
35686 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
35687 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
35688   $as_echo_n "(cached) " >&6
35689 else
35690
35691         amanda_cv_LFS_CFLAGS=
35692         if test "$GETCONF"; then
35693             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
35694                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
35695                 NEED_RESETOFS=no
35696             fi
35697         fi
35698
35699
35700 fi
35701 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
35702 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
35703     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
35704
35705
35706     { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
35707 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
35708 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
35709   $as_echo_n "(cached) " >&6
35710 else
35711
35712         amanda_cv_LFS_LDFLAGS=
35713         if test "$GETCONF"; then
35714             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
35715                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
35716                 NEED_RESETOFS=no
35717             fi
35718         fi
35719
35720
35721 fi
35722 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
35723 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
35724     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
35725
35726
35727     { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
35728 $as_echo_n "checking for large file compilation LIBS... " >&6; }
35729 if test "${amanda_cv_LFS_LIBS+set}" = set; then
35730   $as_echo_n "(cached) " >&6
35731 else
35732
35733         amanda_cv_LFS_LIBS=
35734         if test "$GETCONF"; then
35735             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
35736                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
35737                 NEED_RESETOFS=no
35738             fi
35739         fi
35740
35741
35742 fi
35743 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
35744 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
35745     LIBS="$amanda_cv_LFS_LIBS $LIBS"
35746
35747
35748     if test x"$NEED_RESETOFS" = x"yes"; then
35749
35750 cat >>confdefs.h <<\_ACEOF
35751 #define NEED_RESETOFS 1
35752 _ACEOF
35753
35754     fi
35755
35756
35757
35758
35759
35760
35761 for ac_header in fstab.h \
35762         mntent.h \
35763         mnttab.h \
35764         sys/vfstab.h \
35765
35766 do
35767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35769   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35770 $as_echo_n "checking for $ac_header... " >&6; }
35771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35772   $as_echo_n "(cached) " >&6
35773 fi
35774 ac_res=`eval 'as_val=${'$as_ac_Header'}
35775                  $as_echo "$as_val"'`
35776                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35777 $as_echo "$ac_res" >&6; }
35778 else
35779   # Is the header compilable?
35780 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35781 $as_echo_n "checking $ac_header usability... " >&6; }
35782 cat >conftest.$ac_ext <<_ACEOF
35783 /* confdefs.h.  */
35784 _ACEOF
35785 cat confdefs.h >>conftest.$ac_ext
35786 cat >>conftest.$ac_ext <<_ACEOF
35787 /* end confdefs.h.  */
35788 $ac_includes_default
35789 #include <$ac_header>
35790 _ACEOF
35791 rm -f conftest.$ac_objext
35792 if { (ac_try="$ac_compile"
35793 case "(($ac_try" in
35794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35795   *) ac_try_echo=$ac_try;;
35796 esac
35797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35798 $as_echo "$ac_try_echo") >&5
35799   (eval "$ac_compile") 2>conftest.er1
35800   ac_status=$?
35801   grep -v '^ *+' conftest.er1 >conftest.err
35802   rm -f conftest.er1
35803   cat conftest.err >&5
35804   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805   (exit $ac_status); } && {
35806          test -z "$ac_c_werror_flag" ||
35807          test ! -s conftest.err
35808        } && test -s conftest.$ac_objext; then
35809   ac_header_compiler=yes
35810 else
35811   $as_echo "$as_me: failed program was:" >&5
35812 sed 's/^/| /' conftest.$ac_ext >&5
35813
35814         ac_header_compiler=no
35815 fi
35816
35817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35818 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35819 $as_echo "$ac_header_compiler" >&6; }
35820
35821 # Is the header present?
35822 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35823 $as_echo_n "checking $ac_header presence... " >&6; }
35824 cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830 #include <$ac_header>
35831 _ACEOF
35832 if { (ac_try="$ac_cpp conftest.$ac_ext"
35833 case "(($ac_try" in
35834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35835   *) ac_try_echo=$ac_try;;
35836 esac
35837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35838 $as_echo "$ac_try_echo") >&5
35839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35840   ac_status=$?
35841   grep -v '^ *+' conftest.er1 >conftest.err
35842   rm -f conftest.er1
35843   cat conftest.err >&5
35844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845   (exit $ac_status); } >/dev/null && {
35846          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35847          test ! -s conftest.err
35848        }; then
35849   ac_header_preproc=yes
35850 else
35851   $as_echo "$as_me: failed program was:" >&5
35852 sed 's/^/| /' conftest.$ac_ext >&5
35853
35854   ac_header_preproc=no
35855 fi
35856
35857 rm -f conftest.err conftest.$ac_ext
35858 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35859 $as_echo "$ac_header_preproc" >&6; }
35860
35861 # So?  What about this header?
35862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35863   yes:no: )
35864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35865 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35868     ac_header_preproc=yes
35869     ;;
35870   no:yes:* )
35871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35872 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35874 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35876 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35878 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35880 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35881     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35882 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35883
35884     ;;
35885 esac
35886 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35887 $as_echo_n "checking for $ac_header... " >&6; }
35888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35889   $as_echo_n "(cached) " >&6
35890 else
35891   eval "$as_ac_Header=\$ac_header_preproc"
35892 fi
35893 ac_res=`eval 'as_val=${'$as_ac_Header'}
35894                  $as_echo "$as_val"'`
35895                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35896 $as_echo "$ac_res" >&6; }
35897
35898 fi
35899 as_val=`eval 'as_val=${'$as_ac_Header'}
35900                  $as_echo "$as_val"'`
35901    if test "x$as_val" = x""yes; then
35902   cat >>confdefs.h <<_ACEOF
35903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35904 _ACEOF
35905
35906 fi
35907
35908 done
35909
35910
35911
35912 for ac_func in endmntent
35913 do
35914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35915 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35916 $as_echo_n "checking for $ac_func... " >&6; }
35917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35918   $as_echo_n "(cached) " >&6
35919 else
35920   cat >conftest.$ac_ext <<_ACEOF
35921 /* confdefs.h.  */
35922 _ACEOF
35923 cat confdefs.h >>conftest.$ac_ext
35924 cat >>conftest.$ac_ext <<_ACEOF
35925 /* end confdefs.h.  */
35926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35928 #define $ac_func innocuous_$ac_func
35929
35930 /* System header to define __stub macros and hopefully few prototypes,
35931     which can conflict with char $ac_func (); below.
35932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35933     <limits.h> exists even on freestanding compilers.  */
35934
35935 #ifdef __STDC__
35936 # include <limits.h>
35937 #else
35938 # include <assert.h>
35939 #endif
35940
35941 #undef $ac_func
35942
35943 /* Override any GCC internal prototype to avoid an error.
35944    Use char because int might match the return type of a GCC
35945    builtin and then its argument prototype would still apply.  */
35946 #ifdef __cplusplus
35947 extern "C"
35948 #endif
35949 char $ac_func ();
35950 /* The GNU C library defines this for functions which it implements
35951     to always fail with ENOSYS.  Some functions are actually named
35952     something starting with __ and the normal name is an alias.  */
35953 #if defined __stub_$ac_func || defined __stub___$ac_func
35954 choke me
35955 #endif
35956
35957 int
35958 main ()
35959 {
35960 return $ac_func ();
35961   ;
35962   return 0;
35963 }
35964 _ACEOF
35965 rm -f conftest.$ac_objext conftest$ac_exeext
35966 if { (ac_try="$ac_link"
35967 case "(($ac_try" in
35968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35969   *) ac_try_echo=$ac_try;;
35970 esac
35971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35972 $as_echo "$ac_try_echo") >&5
35973   (eval "$ac_link") 2>conftest.er1
35974   ac_status=$?
35975   grep -v '^ *+' conftest.er1 >conftest.err
35976   rm -f conftest.er1
35977   cat conftest.err >&5
35978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35979   (exit $ac_status); } && {
35980          test -z "$ac_c_werror_flag" ||
35981          test ! -s conftest.err
35982        } && test -s conftest$ac_exeext && {
35983          test "$cross_compiling" = yes ||
35984          $as_test_x conftest$ac_exeext
35985        }; then
35986   eval "$as_ac_var=yes"
35987 else
35988   $as_echo "$as_me: failed program was:" >&5
35989 sed 's/^/| /' conftest.$ac_ext >&5
35990
35991         eval "$as_ac_var=no"
35992 fi
35993
35994 rm -rf conftest.dSYM
35995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35996       conftest$ac_exeext conftest.$ac_ext
35997 fi
35998 ac_res=`eval 'as_val=${'$as_ac_var'}
35999                  $as_echo "$as_val"'`
36000                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36001 $as_echo "$ac_res" >&6; }
36002 as_val=`eval 'as_val=${'$as_ac_var'}
36003                  $as_echo "$as_val"'`
36004    if test "x$as_val" = x""yes; then
36005   cat >>confdefs.h <<_ACEOF
36006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36007 _ACEOF
36008
36009 fi
36010 done
36011
36012
36013 for ac_func in setmntent
36014 do
36015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36017 $as_echo_n "checking for $ac_func... " >&6; }
36018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36019   $as_echo_n "(cached) " >&6
36020 else
36021   cat >conftest.$ac_ext <<_ACEOF
36022 /* confdefs.h.  */
36023 _ACEOF
36024 cat confdefs.h >>conftest.$ac_ext
36025 cat >>conftest.$ac_ext <<_ACEOF
36026 /* end confdefs.h.  */
36027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36029 #define $ac_func innocuous_$ac_func
36030
36031 /* System header to define __stub macros and hopefully few prototypes,
36032     which can conflict with char $ac_func (); below.
36033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36034     <limits.h> exists even on freestanding compilers.  */
36035
36036 #ifdef __STDC__
36037 # include <limits.h>
36038 #else
36039 # include <assert.h>
36040 #endif
36041
36042 #undef $ac_func
36043
36044 /* Override any GCC internal prototype to avoid an error.
36045    Use char because int might match the return type of a GCC
36046    builtin and then its argument prototype would still apply.  */
36047 #ifdef __cplusplus
36048 extern "C"
36049 #endif
36050 char $ac_func ();
36051 /* The GNU C library defines this for functions which it implements
36052     to always fail with ENOSYS.  Some functions are actually named
36053     something starting with __ and the normal name is an alias.  */
36054 #if defined __stub_$ac_func || defined __stub___$ac_func
36055 choke me
36056 #endif
36057
36058 int
36059 main ()
36060 {
36061 return $ac_func ();
36062   ;
36063   return 0;
36064 }
36065 _ACEOF
36066 rm -f conftest.$ac_objext conftest$ac_exeext
36067 if { (ac_try="$ac_link"
36068 case "(($ac_try" in
36069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36070   *) ac_try_echo=$ac_try;;
36071 esac
36072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36073 $as_echo "$ac_try_echo") >&5
36074   (eval "$ac_link") 2>conftest.er1
36075   ac_status=$?
36076   grep -v '^ *+' conftest.er1 >conftest.err
36077   rm -f conftest.er1
36078   cat conftest.err >&5
36079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36080   (exit $ac_status); } && {
36081          test -z "$ac_c_werror_flag" ||
36082          test ! -s conftest.err
36083        } && test -s conftest$ac_exeext && {
36084          test "$cross_compiling" = yes ||
36085          $as_test_x conftest$ac_exeext
36086        }; then
36087   eval "$as_ac_var=yes"
36088 else
36089   $as_echo "$as_me: failed program was:" >&5
36090 sed 's/^/| /' conftest.$ac_ext >&5
36091
36092         eval "$as_ac_var=no"
36093 fi
36094
36095 rm -rf conftest.dSYM
36096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36097       conftest$ac_exeext conftest.$ac_ext
36098 fi
36099 ac_res=`eval 'as_val=${'$as_ac_var'}
36100                  $as_echo "$as_val"'`
36101                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36102 $as_echo "$ac_res" >&6; }
36103 as_val=`eval 'as_val=${'$as_ac_var'}
36104                  $as_echo "$as_val"'`
36105    if test "x$as_val" = x""yes; then
36106   cat >>confdefs.h <<_ACEOF
36107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36108 _ACEOF
36109
36110 fi
36111 done
36112
36113
36114
36115
36116
36117
36118
36119
36120 for ac_header in fcntl.h \
36121         sys/fcntl.h \
36122         sys/types.h \
36123         sys/file.h \
36124         unistd.h \
36125
36126 do
36127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36129   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36130 $as_echo_n "checking for $ac_header... " >&6; }
36131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36132   $as_echo_n "(cached) " >&6
36133 fi
36134 ac_res=`eval 'as_val=${'$as_ac_Header'}
36135                  $as_echo "$as_val"'`
36136                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36137 $as_echo "$ac_res" >&6; }
36138 else
36139   # Is the header compilable?
36140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36141 $as_echo_n "checking $ac_header usability... " >&6; }
36142 cat >conftest.$ac_ext <<_ACEOF
36143 /* confdefs.h.  */
36144 _ACEOF
36145 cat confdefs.h >>conftest.$ac_ext
36146 cat >>conftest.$ac_ext <<_ACEOF
36147 /* end confdefs.h.  */
36148 $ac_includes_default
36149 #include <$ac_header>
36150 _ACEOF
36151 rm -f conftest.$ac_objext
36152 if { (ac_try="$ac_compile"
36153 case "(($ac_try" in
36154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36155   *) ac_try_echo=$ac_try;;
36156 esac
36157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36158 $as_echo "$ac_try_echo") >&5
36159   (eval "$ac_compile") 2>conftest.er1
36160   ac_status=$?
36161   grep -v '^ *+' conftest.er1 >conftest.err
36162   rm -f conftest.er1
36163   cat conftest.err >&5
36164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165   (exit $ac_status); } && {
36166          test -z "$ac_c_werror_flag" ||
36167          test ! -s conftest.err
36168        } && test -s conftest.$ac_objext; then
36169   ac_header_compiler=yes
36170 else
36171   $as_echo "$as_me: failed program was:" >&5
36172 sed 's/^/| /' conftest.$ac_ext >&5
36173
36174         ac_header_compiler=no
36175 fi
36176
36177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36179 $as_echo "$ac_header_compiler" >&6; }
36180
36181 # Is the header present?
36182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36183 $as_echo_n "checking $ac_header presence... " >&6; }
36184 cat >conftest.$ac_ext <<_ACEOF
36185 /* confdefs.h.  */
36186 _ACEOF
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h.  */
36190 #include <$ac_header>
36191 _ACEOF
36192 if { (ac_try="$ac_cpp conftest.$ac_ext"
36193 case "(($ac_try" in
36194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36195   *) ac_try_echo=$ac_try;;
36196 esac
36197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36198 $as_echo "$ac_try_echo") >&5
36199   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36200   ac_status=$?
36201   grep -v '^ *+' conftest.er1 >conftest.err
36202   rm -f conftest.er1
36203   cat conftest.err >&5
36204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205   (exit $ac_status); } >/dev/null && {
36206          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36207          test ! -s conftest.err
36208        }; then
36209   ac_header_preproc=yes
36210 else
36211   $as_echo "$as_me: failed program was:" >&5
36212 sed 's/^/| /' conftest.$ac_ext >&5
36213
36214   ac_header_preproc=no
36215 fi
36216
36217 rm -f conftest.err conftest.$ac_ext
36218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36219 $as_echo "$ac_header_preproc" >&6; }
36220
36221 # So?  What about this header?
36222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36223   yes:no: )
36224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36228     ac_header_preproc=yes
36229     ;;
36230   no:yes:* )
36231     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36234 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36237     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36238 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36239     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36241     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36243
36244     ;;
36245 esac
36246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36247 $as_echo_n "checking for $ac_header... " >&6; }
36248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36249   $as_echo_n "(cached) " >&6
36250 else
36251   eval "$as_ac_Header=\$ac_header_preproc"
36252 fi
36253 ac_res=`eval 'as_val=${'$as_ac_Header'}
36254                  $as_echo "$as_val"'`
36255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36256 $as_echo "$ac_res" >&6; }
36257
36258 fi
36259 as_val=`eval 'as_val=${'$as_ac_Header'}
36260                  $as_echo "$as_val"'`
36261    if test "x$as_val" = x""yes; then
36262   cat >>confdefs.h <<_ACEOF
36263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36264 _ACEOF
36265
36266 fi
36267
36268 done
36269
36270
36271     # find a working file-locking mechanism.
36272     # Note: these all use AC_TRY_LINK to make sure that we can compile
36273     # and link each variant.  They do not try to test the variants --
36274     # that is left to runtime.
36275     LOCKING="no"
36276
36277     # check POSIX locking
36278     { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
36279 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
36280 if test "${amanda_cv_posix_filelocking+set}" = set; then
36281   $as_echo_n "(cached) " >&6
36282 else
36283
36284             cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h.  */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h.  */
36290
36291 #if HAVE_SYS_TYPES_H
36292 # include <sys/types.h>
36293 #endif
36294 #if HAVE_UNISTD_H
36295 # include <unistd.h>
36296 #endif
36297 #if HAVE_FCNTL_H
36298 # include <fcntl.h>
36299 #endif
36300
36301 int
36302 main ()
36303 {
36304
36305             struct flock lock;
36306
36307             lock.l_type = F_RDLCK;
36308             lock.l_start = 0;
36309             lock.l_whence = SEEK_CUR;
36310             lock.l_len = 0;
36311             return fcntl(1, F_SETLK, &lock);
36312
36313   ;
36314   return 0;
36315 }
36316 _ACEOF
36317 rm -f conftest.$ac_objext conftest$ac_exeext
36318 if { (ac_try="$ac_link"
36319 case "(($ac_try" in
36320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36321   *) ac_try_echo=$ac_try;;
36322 esac
36323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36324 $as_echo "$ac_try_echo") >&5
36325   (eval "$ac_link") 2>conftest.er1
36326   ac_status=$?
36327   grep -v '^ *+' conftest.er1 >conftest.err
36328   rm -f conftest.er1
36329   cat conftest.err >&5
36330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36331   (exit $ac_status); } && {
36332          test -z "$ac_c_werror_flag" ||
36333          test ! -s conftest.err
36334        } && test -s conftest$ac_exeext && {
36335          test "$cross_compiling" = yes ||
36336          $as_test_x conftest$ac_exeext
36337        }; then
36338
36339         amanda_cv_posix_filelocking="yes"
36340
36341 else
36342   $as_echo "$as_me: failed program was:" >&5
36343 sed 's/^/| /' conftest.$ac_ext >&5
36344
36345
36346         amanda_cv_posix_filelocking="no"
36347
36348 fi
36349
36350 rm -rf conftest.dSYM
36351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36352       conftest$ac_exeext conftest.$ac_ext
36353
36354 fi
36355 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
36356 $as_echo "$amanda_cv_posix_filelocking" >&6; }
36357     if test "x$amanda_cv_posix_filelocking" = xyes; then
36358
36359 cat >>confdefs.h <<\_ACEOF
36360 #define WANT_AMFLOCK_POSIX 1
36361 _ACEOF
36362
36363         WANT_AMFLOCK_POSIX="yes"
36364         LOCKING="POSIX_FCNTL"
36365     fi
36366      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
36367   WANT_AMFLOCK_POSIX_TRUE=
36368   WANT_AMFLOCK_POSIX_FALSE='#'
36369 else
36370   WANT_AMFLOCK_POSIX_TRUE='#'
36371   WANT_AMFLOCK_POSIX_FALSE=
36372 fi
36373
36374
36375     # check flock-based (BSD) locking
36376     { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
36377 $as_echo_n "checking whether flock locking is available... " >&6; }
36378 if test "${amanda_cv_flock_filelocking+set}" = set; then
36379   $as_echo_n "(cached) " >&6
36380 else
36381
36382             cat >conftest.$ac_ext <<_ACEOF
36383 /* confdefs.h.  */
36384 _ACEOF
36385 cat confdefs.h >>conftest.$ac_ext
36386 cat >>conftest.$ac_ext <<_ACEOF
36387 /* end confdefs.h.  */
36388
36389 #if HAVE_SYS_FILE_H
36390 # include <sys/file.h>
36391 #endif
36392
36393 int
36394 main ()
36395 {
36396
36397             return flock(1, LOCK_SH);
36398
36399   ;
36400   return 0;
36401 }
36402 _ACEOF
36403 rm -f conftest.$ac_objext conftest$ac_exeext
36404 if { (ac_try="$ac_link"
36405 case "(($ac_try" in
36406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36407   *) ac_try_echo=$ac_try;;
36408 esac
36409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36410 $as_echo "$ac_try_echo") >&5
36411   (eval "$ac_link") 2>conftest.er1
36412   ac_status=$?
36413   grep -v '^ *+' conftest.er1 >conftest.err
36414   rm -f conftest.er1
36415   cat conftest.err >&5
36416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36417   (exit $ac_status); } && {
36418          test -z "$ac_c_werror_flag" ||
36419          test ! -s conftest.err
36420        } && test -s conftest$ac_exeext && {
36421          test "$cross_compiling" = yes ||
36422          $as_test_x conftest$ac_exeext
36423        }; then
36424
36425         amanda_cv_flock_filelocking="yes"
36426
36427 else
36428   $as_echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36430
36431
36432         amanda_cv_flock_filelocking="no"
36433
36434 fi
36435
36436 rm -rf conftest.dSYM
36437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36438       conftest$ac_exeext conftest.$ac_ext
36439
36440 fi
36441 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
36442 $as_echo "$amanda_cv_flock_filelocking" >&6; }
36443     if test "x$amanda_cv_flock_filelocking" = xyes; then
36444
36445 cat >>confdefs.h <<\_ACEOF
36446 #define WANT_AMFLOCK_FLOCK 1
36447 _ACEOF
36448
36449         WANT_AMFLOCK_FLOCK="yes"
36450         LOCKING="FLOCK"
36451     fi
36452      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
36453   WANT_AMFLOCK_FLOCK_TRUE=
36454   WANT_AMFLOCK_FLOCK_FALSE='#'
36455 else
36456   WANT_AMFLOCK_FLOCK_TRUE='#'
36457   WANT_AMFLOCK_FLOCK_FALSE=
36458 fi
36459
36460
36461     # check lockf-based (SVR2, SVR3, SVR4) locking
36462     { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
36463 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
36464 if test "${amanda_cv_lockf_filelocking+set}" = set; then
36465   $as_echo_n "(cached) " >&6
36466 else
36467
36468             cat >conftest.$ac_ext <<_ACEOF
36469 /* confdefs.h.  */
36470 _ACEOF
36471 cat confdefs.h >>conftest.$ac_ext
36472 cat >>conftest.$ac_ext <<_ACEOF
36473 /* end confdefs.h.  */
36474
36475 #if HAVE_UNISTD_H
36476 # include <unistd.h>
36477 #endif
36478
36479 int
36480 main ()
36481 {
36482
36483             return lockf(1, F_LOCK, 0);
36484
36485   ;
36486   return 0;
36487 }
36488 _ACEOF
36489 rm -f conftest.$ac_objext conftest$ac_exeext
36490 if { (ac_try="$ac_link"
36491 case "(($ac_try" in
36492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36493   *) ac_try_echo=$ac_try;;
36494 esac
36495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36496 $as_echo "$ac_try_echo") >&5
36497   (eval "$ac_link") 2>conftest.er1
36498   ac_status=$?
36499   grep -v '^ *+' conftest.er1 >conftest.err
36500   rm -f conftest.er1
36501   cat conftest.err >&5
36502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503   (exit $ac_status); } && {
36504          test -z "$ac_c_werror_flag" ||
36505          test ! -s conftest.err
36506        } && test -s conftest$ac_exeext && {
36507          test "$cross_compiling" = yes ||
36508          $as_test_x conftest$ac_exeext
36509        }; then
36510
36511         amanda_cv_lockf_filelocking="yes"
36512
36513 else
36514   $as_echo "$as_me: failed program was:" >&5
36515 sed 's/^/| /' conftest.$ac_ext >&5
36516
36517
36518         amanda_cv_lockf_filelocking="no"
36519
36520 fi
36521
36522 rm -rf conftest.dSYM
36523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36524       conftest$ac_exeext conftest.$ac_ext
36525
36526 fi
36527 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
36528 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
36529     if test "x$amanda_cv_lockf_filelocking" = xyes; then
36530
36531 cat >>confdefs.h <<\_ACEOF
36532 #define WANT_AMFLOCK_LOCKF 1
36533 _ACEOF
36534
36535         WANT_AMFLOCK_LOCKF="yes"
36536         LOCKING="LOCKF"
36537     fi
36538      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
36539   WANT_AMFLOCK_LOCKF_TRUE=
36540   WANT_AMFLOCK_LOCKF_FALSE='#'
36541 else
36542   WANT_AMFLOCK_LOCKF_TRUE='#'
36543   WANT_AMFLOCK_LOCKF_FALSE=
36544 fi
36545
36546
36547     # check our homebrew hardlink-based locking (requires hardlinks)
36548     { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
36549 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
36550 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
36551   $as_echo_n "(cached) " >&6
36552 else
36553
36554             cat >conftest.$ac_ext <<_ACEOF
36555 /* confdefs.h.  */
36556 _ACEOF
36557 cat confdefs.h >>conftest.$ac_ext
36558 cat >>conftest.$ac_ext <<_ACEOF
36559 /* end confdefs.h.  */
36560
36561 #if HAVE_UNISTD_H
36562 # include <unistd.h>
36563 #endif
36564
36565 int
36566 main ()
36567 {
36568
36569             return link("/tmp/foo", "/tmp/bar");
36570
36571   ;
36572   return 0;
36573 }
36574 _ACEOF
36575 rm -f conftest.$ac_objext conftest$ac_exeext
36576 if { (ac_try="$ac_link"
36577 case "(($ac_try" in
36578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36579   *) ac_try_echo=$ac_try;;
36580 esac
36581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36582 $as_echo "$ac_try_echo") >&5
36583   (eval "$ac_link") 2>conftest.er1
36584   ac_status=$?
36585   grep -v '^ *+' conftest.er1 >conftest.err
36586   rm -f conftest.er1
36587   cat conftest.err >&5
36588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589   (exit $ac_status); } && {
36590          test -z "$ac_c_werror_flag" ||
36591          test ! -s conftest.err
36592        } && test -s conftest$ac_exeext && {
36593          test "$cross_compiling" = yes ||
36594          $as_test_x conftest$ac_exeext
36595        }; then
36596
36597         amanda_cv_lnlock_filelocking="yes"
36598
36599 else
36600   $as_echo "$as_me: failed program was:" >&5
36601 sed 's/^/| /' conftest.$ac_ext >&5
36602
36603
36604         amanda_cv_lnlock_filelocking="no"
36605
36606 fi
36607
36608 rm -rf conftest.dSYM
36609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36610       conftest$ac_exeext conftest.$ac_ext
36611
36612 fi
36613 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
36614 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
36615     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
36616
36617 cat >>confdefs.h <<\_ACEOF
36618 #define WANT_AMFLOCK_LNLOCK 1
36619 _ACEOF
36620
36621         WANT_AMFLOCK_LNLOCK="yes"
36622         LOCKING="LNLOCK"
36623     fi
36624      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
36625   WANT_AMFLOCK_LNLOCK_TRUE=
36626   WANT_AMFLOCK_LNLOCK_FALSE='#'
36627 else
36628   WANT_AMFLOCK_LNLOCK_TRUE='#'
36629   WANT_AMFLOCK_LNLOCK_FALSE=
36630 fi
36631
36632
36633     if test x"$LOCKING" = "no"; then
36634         # this shouldn't happen, and is *bad* if it does
36635         { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
36636 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
36637    { (exit 1); exit 1; }; }
36638     fi
36639
36640
36641
36642
36643
36644     for ac_prog in swig
36645 do
36646   # Extract the first word of "$ac_prog", so it can be a program name with args.
36647 set dummy $ac_prog; ac_word=$2
36648 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36649 $as_echo_n "checking for $ac_word... " >&6; }
36650 if test "${ac_cv_path_SWIG+set}" = set; then
36651   $as_echo_n "(cached) " >&6
36652 else
36653   case $SWIG in
36654   [\\/]* | ?:[\\/]*)
36655   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36656   ;;
36657   *)
36658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36659 for as_dir in $LOCSYSPATH
36660 do
36661   IFS=$as_save_IFS
36662   test -z "$as_dir" && as_dir=.
36663   for ac_exec_ext in '' $ac_executable_extensions; do
36664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36665     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36666     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36667     break 2
36668   fi
36669 done
36670 done
36671 IFS=$as_save_IFS
36672
36673   ;;
36674 esac
36675 fi
36676 SWIG=$ac_cv_path_SWIG
36677 if test -n "$SWIG"; then
36678   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36679 $as_echo "$SWIG" >&6; }
36680 else
36681   { $as_echo "$as_me:$LINENO: result: no" >&5
36682 $as_echo "no" >&6; }
36683 fi
36684
36685
36686   test -n "$SWIG" && break
36687 done
36688
36689
36690     # 1.3.32 introduces a change in the way empty strings are handled (old versions
36691     # returned undef in Perl, while new versions return an empty Perl string)
36692     # 1.3.39 is required for the %begin block
36693
36694         # Extract the first word of "swig", so it can be a program name with args.
36695 set dummy swig; ac_word=$2
36696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36697 $as_echo_n "checking for $ac_word... " >&6; }
36698 if test "${ac_cv_path_SWIG+set}" = set; then
36699   $as_echo_n "(cached) " >&6
36700 else
36701   case $SWIG in
36702   [\\/]* | ?:[\\/]*)
36703   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36704   ;;
36705   *)
36706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36707 for as_dir in $PATH
36708 do
36709   IFS=$as_save_IFS
36710   test -z "$as_dir" && as_dir=.
36711   for ac_exec_ext in '' $ac_executable_extensions; do
36712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36713     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36715     break 2
36716   fi
36717 done
36718 done
36719 IFS=$as_save_IFS
36720
36721   ;;
36722 esac
36723 fi
36724 SWIG=$ac_cv_path_SWIG
36725 if test -n "$SWIG"; then
36726   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36727 $as_echo "$SWIG" >&6; }
36728 else
36729   { $as_echo "$as_me:$LINENO: result: no" >&5
36730 $as_echo "no" >&6; }
36731 fi
36732
36733
36734         if test -z "$SWIG" ; then
36735                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
36736         elif test -n "1.3.39" ; then
36737                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
36738 $as_echo_n "checking for SWIG version... " >&6; }
36739                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
36740                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
36741 $as_echo "$swig_version" >&6; }
36742                 if test -n "$swig_version" ; then
36743
36744   # Used to indicate true or false condition
36745   ax_compare_version=false
36746
36747   # Convert the two version strings to be compared into a format that
36748   # allows a simple string comparison.  The end result is that a version
36749   # string of the form 1.12.5-r617 will be converted to the form
36750   # 0001001200050617.  In other words, each number is zero padded to four
36751   # digits, and non digits are removed.
36752
36753   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36754                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36755                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36756                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36757                      -e 's/[^0-9]//g'`
36758
36759
36760   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36761                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36762                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36763                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36764                      -e 's/[^0-9]//g'`
36765
36766
36767     ax_compare_version=`echo "x$ax_compare_version_A
36768 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36769
36770
36771
36772     if test "$ax_compare_version" = "true" ; then
36773
36774                                                     SWIG_LIB=`$SWIG -swiglib`
36775
36776     else
36777                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
36778
36779   fi
36780
36781                 else
36782                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
36783                 fi
36784         fi
36785
36786
36787
36788
36789
36790     for ac_prog in perl5 perl
36791 do
36792   # Extract the first word of "$ac_prog", so it can be a program name with args.
36793 set dummy $ac_prog; ac_word=$2
36794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36795 $as_echo_n "checking for $ac_word... " >&6; }
36796 if test "${ac_cv_path_PERL+set}" = set; then
36797   $as_echo_n "(cached) " >&6
36798 else
36799   case $PERL in
36800   [\\/]* | ?:[\\/]*)
36801   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36802   ;;
36803   *)
36804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36805 for as_dir in $LOCSYSPATH
36806 do
36807   IFS=$as_save_IFS
36808   test -z "$as_dir" && as_dir=.
36809   for ac_exec_ext in '' $ac_executable_extensions; do
36810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36811     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36812     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36813     break 2
36814   fi
36815 done
36816 done
36817 IFS=$as_save_IFS
36818
36819   ;;
36820 esac
36821 fi
36822 PERL=$ac_cv_path_PERL
36823 if test -n "$PERL"; then
36824   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36825 $as_echo "$PERL" >&6; }
36826 else
36827   { $as_echo "$as_me:$LINENO: result: no" >&5
36828 $as_echo "no" >&6; }
36829 fi
36830
36831
36832   test -n "$PERL" && break
36833 done
36834
36835
36836     # Make sure we have perl
36837 if test -z "$PERL"; then
36838 # Extract the first word of "perl", so it can be a program name with args.
36839 set dummy perl; ac_word=$2
36840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36841 $as_echo_n "checking for $ac_word... " >&6; }
36842 if test "${ac_cv_prog_PERL+set}" = set; then
36843   $as_echo_n "(cached) " >&6
36844 else
36845   if test -n "$PERL"; then
36846   ac_cv_prog_PERL="$PERL" # Let the user override the test.
36847 else
36848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36849 for as_dir in $PATH
36850 do
36851   IFS=$as_save_IFS
36852   test -z "$as_dir" && as_dir=.
36853   for ac_exec_ext in '' $ac_executable_extensions; do
36854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36855     ac_cv_prog_PERL="perl"
36856     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36857     break 2
36858   fi
36859 done
36860 done
36861 IFS=$as_save_IFS
36862
36863 fi
36864 fi
36865 PERL=$ac_cv_prog_PERL
36866 if test -n "$PERL"; then
36867   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36868 $as_echo "$PERL" >&6; }
36869 else
36870   { $as_echo "$as_me:$LINENO: result: no" >&5
36871 $as_echo "no" >&6; }
36872 fi
36873
36874
36875 fi
36876
36877 # Check if version of Perl is sufficient
36878 ac_perl_version="5.6.0"
36879
36880 if test "x$PERL" != "x"; then
36881   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
36882 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
36883   # NB: It would be nice to log the error if there is one, but we cannot rely
36884   # on autoconf internals
36885   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
36886   if test $? -ne 0; then
36887     { $as_echo "$as_me:$LINENO: result: no" >&5
36888 $as_echo "no" >&6; };
36889
36890         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
36891 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
36892    { (exit 1); exit 1; }; }
36893
36894   else
36895     { $as_echo "$as_me:$LINENO: result: ok" >&5
36896 $as_echo "ok" >&6; };
36897
36898   fi
36899 else
36900   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
36901 $as_echo "$as_me: WARNING: could not find perl" >&2;}
36902 fi
36903
36904
36905
36906
36907
36908
36909     WANT_CYGWIN_COPY_PERL_DLL=false
36910     WANT_MANDATORY_THREAD_CHECK=false
36911
36912     # test for ExtUtils::Embed
36913     ac_perl_list_modules="ExtUtils::Embed 0.0"
36914 # Make sure we have perl
36915 if test -z "$PERL"; then
36916 # Extract the first word of "perl", so it can be a program name with args.
36917 set dummy perl; ac_word=$2
36918 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36919 $as_echo_n "checking for $ac_word... " >&6; }
36920 if test "${ac_cv_prog_PERL+set}" = set; then
36921   $as_echo_n "(cached) " >&6
36922 else
36923   if test -n "$PERL"; then
36924   ac_cv_prog_PERL="$PERL" # Let the user override the test.
36925 else
36926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36927 for as_dir in $PATH
36928 do
36929   IFS=$as_save_IFS
36930   test -z "$as_dir" && as_dir=.
36931   for ac_exec_ext in '' $ac_executable_extensions; do
36932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36933     ac_cv_prog_PERL="perl"
36934     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36935     break 2
36936   fi
36937 done
36938 done
36939 IFS=$as_save_IFS
36940
36941 fi
36942 fi
36943 PERL=$ac_cv_prog_PERL
36944 if test -n "$PERL"; then
36945   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36946 $as_echo "$PERL" >&6; }
36947 else
36948   { $as_echo "$as_me:$LINENO: result: no" >&5
36949 $as_echo "no" >&6; }
36950 fi
36951
36952
36953 fi
36954
36955 # Check the number of arguments
36956 args_num=`echo $ac_perl_list_modules | wc -w`
36957 let "ckeck_args = $args_num % 2"
36958 if test "$check_args" = "1" ; then
36959   { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
36960 $as_echo "$as_me: error: syntax error" >&2;}
36961    { (exit 1); exit 1; }; }
36962 else
36963   eval
36964 fi
36965
36966 if test "x$PERL" != x; then
36967   ac_failed=0
36968   while test ${#ac_perl_list_modules} -gt 2 ; do
36969         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
36970         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
36971         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
36972         { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
36973 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
36974
36975         $PERL "-M$module_name" -e exit > /dev/null 2>&1
36976         if test $? -ne 0; then
36977           { $as_echo "$as_me:$LINENO: result: no" >&5
36978 $as_echo "no" >&6; };
36979           ac_failed=1
36980           ac_perl_list_modules=""
36981         else
36982           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
36983           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
36984           if test $? -eq 0 -o $? -eq 1 ; then
36985             { $as_echo "$as_me:$LINENO: result: ok" >&5
36986 $as_echo "ok" >&6; };
36987           else
36988             { $as_echo "$as_me:$LINENO: result: no" >&5
36989 $as_echo "no" >&6; }
36990             ac_failed=1
36991             ac_perl_list_modules=""
36992           fi
36993         fi;
36994   done
36995
36996   if test "$ac_failed" = 0; then
36997     :
36998
36999   else
37000     :
37001
37002         { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
37003 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
37004    { (exit 1); exit 1; }; }
37005
37006   fi
37007 else
37008   { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
37009 $as_echo "$as_me: error: could not find perl" >&2;}
37010    { (exit 1); exit 1; }; }
37011 fi
37012
37013     # get the include path for building perl extensions
37014     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
37015
37016
37017     if test x"$enable_shared" = x"no"; then
37018         { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
37019 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
37020    { (exit 1); exit 1; }; }
37021     fi
37022
37023     case "$host" in
37024         *freebsd[123456].*) # up to and including FreeBSD 6.*
37025             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
37026             # libgthread to automatically pull in the desired threading library.
37027             # Instead, they assume that any application linking against
37028             # libgthread will pull in the threading library.  This is fine for
37029             # Amanda C applications, but for Perl applications this assumption
37030             # means that the perl binary would pull in the threading library.
37031             # But perl is compiled without threading by default.
37032             #
37033             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
37034             # decision is made in gcc's spec files, which were changed in
37035             # gcc-4.0.  For a more in-depth discussion, see
37036             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
37037             #
37038             # The easiest solution for the "default" case is to link all perl
37039             # extension libraries against the threading library, so it is loaded
37040             # when perl loads the extension library.  The default threading
37041             # library in FreeBSD is libpthread.  The below default will work on
37042             # such a FreeBSD system, but ports maintainers and those with
37043             # different configurations may need to override this value with
37044             # --with-perlextlibs.
37045             #
37046             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
37047             # combination with -shared.  See
37048             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
37049
37050             PERLEXTLIBS="-lpthread"
37051             WANT_MANDATORY_THREAD_CHECK=true
37052             ;;
37053
37054         *freebsd*) # all FreeBSD not matched above
37055             # for all FreeBSD (including 1.0-6.0, above), we want to run the
37056             # thread-check rule in perl/Makefile.am to double-check that a Perl
37057             # script can call a C extension that uses threads.
37058             WANT_MANDATORY_THREAD_CHECK=true
37059             ;;
37060
37061         *-pc-cygwin)
37062             # When need -lperl and the '-L' where it is located,
37063             # we don't want the DynaLoader.a
37064             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
37065             # we want cygwin to copy ddl to modules directory.
37066             WANT_CYGWIN_COPY_PERL_DLL="true";
37067             ;;
37068     esac
37069      if $WANT_CYGWIN_COPY_PERL_DLL; then
37070   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
37071   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
37072 else
37073   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
37074   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
37075 fi
37076
37077      if $WANT_MANDATORY_THREAD_CHECK; then
37078   WANT_MANDATORY_THREAD_CHECK_TRUE=
37079   WANT_MANDATORY_THREAD_CHECK_FALSE='#'
37080 else
37081   WANT_MANDATORY_THREAD_CHECK_TRUE='#'
37082   WANT_MANDATORY_THREAD_CHECK_FALSE=
37083 fi
37084
37085
37086
37087 # Check whether --with-perlextlibs was given.
37088 if test "${with_perlextlibs+set}" = set; then
37089   withval=$with_perlextlibs;
37090             case "$withval" in
37091                 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
37092 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
37093    { (exit 1); exit 1; }; };;
37094                 n|no) PERLEXTLIBS='';;
37095                 *) PERLEXTLIBS="$withval" ;;
37096             esac
37097
37098 fi
37099
37100
37101
37102
37103
37104     # Extract the first word of "cat", so it can be a program name with args.
37105 set dummy cat; ac_word=$2
37106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37107 $as_echo_n "checking for $ac_word... " >&6; }
37108 if test "${ac_cv_path_CAT+set}" = set; then
37109   $as_echo_n "(cached) " >&6
37110 else
37111   case $CAT in
37112   [\\/]* | ?:[\\/]*)
37113   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
37114   ;;
37115   *)
37116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37117 for as_dir in $LOCSYSPATH
37118 do
37119   IFS=$as_save_IFS
37120   test -z "$as_dir" && as_dir=.
37121   for ac_exec_ext in '' $ac_executable_extensions; do
37122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37123     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
37124     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37125     break 2
37126   fi
37127 done
37128 done
37129 IFS=$as_save_IFS
37130
37131   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
37132   ;;
37133 esac
37134 fi
37135 CAT=$ac_cv_path_CAT
37136 if test -n "$CAT"; then
37137   { $as_echo "$as_me:$LINENO: result: $CAT" >&5
37138 $as_echo "$CAT" >&6; }
37139 else
37140   { $as_echo "$as_me:$LINENO: result: no" >&5
37141 $as_echo "no" >&6; }
37142 fi
37143
37144
37145
37146
37147
37148
37149
37150
37151     HAVE_GZIP=
37152     if test "$GZIP"; then
37153
37154 cat >>confdefs.h <<\_ACEOF
37155 #define HAVE_GZIP 1
37156 _ACEOF
37157
37158         HAVE_GZIP=1
37159         COMPRESS_PATH="$GZIP"
37160         COMPRESS_SUFFIX=".gz"
37161         COMPRESS_FAST_OPT="--fast"
37162         COMPRESS_BEST_OPT="--best"
37163         UNCOMPRESS_PATH="$GZIP"
37164         UNCOMPRESS_OPT="-dc"
37165     else
37166         if test "$COMPRESS"; then
37167             COMPRESS_PATH="$COMPRESS"
37168             COMPRESS_SUFFIX=".Z"
37169             COMPRESS_FAST_OPT="-f"
37170             COMPRESS_BEST_OPT="-f"
37171             UNCOMPRESS_PATH="$COMPRESS"
37172             UNCOMPRESS_OPT="-dc"
37173         else
37174             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
37175             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
37176             # look for a file by the name of "".
37177             # XXX is the above true? --dustin
37178
37179
37180     { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
37181 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
37182
37183
37184     cat <<AAW_EOF >>config.warnings
37185 Cannot find either gzip or compress.  Using cat.
37186 AAW_EOF
37187
37188
37189             COMPRESS_PATH="$CAT"
37190             COMPRESS_SUFFIX=""
37191             COMPRESS_FAST_OPT=""
37192             COMPRESS_BEST_OPT=""
37193             UNCOMPRESS_PATH="$CAT"
37194             UNCOMPRESS_OPT=""
37195         fi
37196     fi
37197
37198
37199 cat >>confdefs.h <<_ACEOF
37200 #define COMPRESS_PATH "$COMPRESS_PATH"
37201 _ACEOF
37202
37203
37204 cat >>confdefs.h <<_ACEOF
37205 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
37206 _ACEOF
37207
37208
37209 cat >>confdefs.h <<_ACEOF
37210 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
37211 _ACEOF
37212
37213
37214 cat >>confdefs.h <<_ACEOF
37215 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
37216 _ACEOF
37217
37218
37219 cat >>confdefs.h <<_ACEOF
37220 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
37221 _ACEOF
37222
37223
37224 cat >>confdefs.h <<_ACEOF
37225 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
37226 _ACEOF
37227
37228
37229
37230
37231
37232
37233
37234
37235
37236
37237     # Empty GZIP so that make dist works.
37238     GZIP=
37239
37240
37241     { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
37242 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
37243 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
37244   $as_echo_n "(cached) " >&6
37245 else
37246
37247         cat >conftest.$ac_ext <<_ACEOF
37248 /* confdefs.h.  */
37249 _ACEOF
37250 cat confdefs.h >>conftest.$ac_ext
37251 cat >>conftest.$ac_ext <<_ACEOF
37252 /* end confdefs.h.  */
37253
37254 #       include <sys/types.h>
37255 #       include <sys/socket.h>
37256 int
37257 main ()
37258 {
37259 u_int i = sizeof (struct sockaddr_storage)
37260   ;
37261   return 0;
37262 }
37263 _ACEOF
37264 rm -f conftest.$ac_objext
37265 if { (ac_try="$ac_compile"
37266 case "(($ac_try" in
37267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37268   *) ac_try_echo=$ac_try;;
37269 esac
37270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37271 $as_echo "$ac_try_echo") >&5
37272   (eval "$ac_compile") 2>conftest.er1
37273   ac_status=$?
37274   grep -v '^ *+' conftest.er1 >conftest.err
37275   rm -f conftest.er1
37276   cat conftest.err >&5
37277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278   (exit $ac_status); } && {
37279          test -z "$ac_c_werror_flag" ||
37280          test ! -s conftest.err
37281        } && test -s conftest.$ac_objext; then
37282   ac_cv_has_sockaddr_storage=yes
37283 else
37284   $as_echo "$as_me: failed program was:" >&5
37285 sed 's/^/| /' conftest.$ac_ext >&5
37286
37287         ac_cv_has_sockaddr_storage=no
37288 fi
37289
37290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37291
37292 fi
37293 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
37294 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
37295
37296     if test $ac_cv_has_sockaddr_storage = yes ; then
37297
37298 cat >>confdefs.h <<\_ACEOF
37299 #define HAVE_SOCKADDR_STORAGE 1
37300 _ACEOF
37301
37302     fi
37303
37304
37305
37306
37307     WORKING_IPV6=no
37308
37309 # Check whether --with-ipv6 was given.
37310 if test "${with_ipv6+set}" = set; then
37311   withval=$with_ipv6;
37312             case "$withval" in
37313             y | ye | yes) amanda_with_ipv6=yes;;
37314             n | no) amanda_with_ipv6=no;;
37315             *)
37316                 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
37317 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
37318    { (exit 1); exit 1; }; }
37319               ;;
37320             esac
37321
37322 else
37323
37324             amanda_with_ipv6=maybe
37325
37326
37327 fi
37328
37329
37330     if test x"$amanda_with_ipv6" = x"yes" ||
37331        test x"$amanda_with_ipv6" = x"maybe" ; then
37332         { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
37333 $as_echo_n "checking for working IPv6... " >&6; }
37334 if test "${amanda_cv_working_ipv6+set}" = set; then
37335   $as_echo_n "(cached) " >&6
37336 else
37337
37338             case "$host" in
37339                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
37340                 *)
37341                     if test "$cross_compiling" = yes; then
37342    amanda_cv_working_ipv6=yes
37343
37344 else
37345   cat >conftest.$ac_ext <<_ACEOF
37346 /* confdefs.h.  */
37347 _ACEOF
37348 cat confdefs.h >>conftest.$ac_ext
37349 cat >>conftest.$ac_ext <<_ACEOF
37350 /* end confdefs.h.  */
37351
37352 #include <sys/types.h>
37353 #ifdef HAVE_SYS_SOCKET_H
37354 #include <sys/socket.h>
37355 #endif
37356 #ifdef HAVE_NETINET_IN_H
37357 #include <netinet/in.h>
37358 #endif
37359 #ifdef HAVE_WINSOCK2_H
37360 #include <winsock2.h>
37361 #endif
37362 #include <sys/socket.h>
37363 #include <errno.h>
37364
37365 main()
37366 {
37367    int aa;
37368    aa = socket(AF_INET6, SOCK_STREAM, 0);
37369    if (aa > 0) return 0;
37370    return aa;
37371 }
37372 _ACEOF
37373 rm -f conftest$ac_exeext
37374 if { (ac_try="$ac_link"
37375 case "(($ac_try" in
37376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37377   *) ac_try_echo=$ac_try;;
37378 esac
37379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37380 $as_echo "$ac_try_echo") >&5
37381   (eval "$ac_link") 2>&5
37382   ac_status=$?
37383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37385   { (case "(($ac_try" in
37386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37387   *) ac_try_echo=$ac_try;;
37388 esac
37389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37390 $as_echo "$ac_try_echo") >&5
37391   (eval "$ac_try") 2>&5
37392   ac_status=$?
37393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394   (exit $ac_status); }; }; then
37395    amanda_cv_working_ipv6=yes
37396 else
37397   $as_echo "$as_me: program exited with status $ac_status" >&5
37398 $as_echo "$as_me: failed program was:" >&5
37399 sed 's/^/| /' conftest.$ac_ext >&5
37400
37401 ( exit $ac_status )
37402  amanda_cv_working_ipv6=no
37403 fi
37404 rm -rf conftest.dSYM
37405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37406 fi
37407
37408
37409             esac
37410
37411 fi
37412 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
37413 $as_echo "$amanda_cv_working_ipv6" >&6; }
37414
37415         if test "$amanda_cv_working_ipv6" = yes; then
37416             WORKING_IPV6=yes
37417
37418 cat >>confdefs.h <<\_ACEOF
37419 #define WORKING_IPV6 1
37420 _ACEOF
37421
37422         else
37423             # error out only if the user specifically requested support
37424             if test x"$amanda_with_ipv6" = x"yes"; then
37425                 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but opening an IPv6 socket failed" >&5
37426 $as_echo "$as_me: error: IPv6 support was requested, but opening an IPv6 socket failed" >&2;}
37427    { (exit 1); exit 1; }; }
37428             fi
37429         fi
37430     fi
37431
37432
37433
37434
37435
37436
37437
37438 ac_header_dirent=no
37439 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
37440   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
37441 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
37442 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
37443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37444   $as_echo_n "(cached) " >&6
37445 else
37446   cat >conftest.$ac_ext <<_ACEOF
37447 /* confdefs.h.  */
37448 _ACEOF
37449 cat confdefs.h >>conftest.$ac_ext
37450 cat >>conftest.$ac_ext <<_ACEOF
37451 /* end confdefs.h.  */
37452 #include <sys/types.h>
37453 #include <$ac_hdr>
37454
37455 int
37456 main ()
37457 {
37458 if ((DIR *) 0)
37459 return 0;
37460   ;
37461   return 0;
37462 }
37463 _ACEOF
37464 rm -f conftest.$ac_objext
37465 if { (ac_try="$ac_compile"
37466 case "(($ac_try" in
37467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37468   *) ac_try_echo=$ac_try;;
37469 esac
37470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37471 $as_echo "$ac_try_echo") >&5
37472   (eval "$ac_compile") 2>conftest.er1
37473   ac_status=$?
37474   grep -v '^ *+' conftest.er1 >conftest.err
37475   rm -f conftest.er1
37476   cat conftest.err >&5
37477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478   (exit $ac_status); } && {
37479          test -z "$ac_c_werror_flag" ||
37480          test ! -s conftest.err
37481        } && test -s conftest.$ac_objext; then
37482   eval "$as_ac_Header=yes"
37483 else
37484   $as_echo "$as_me: failed program was:" >&5
37485 sed 's/^/| /' conftest.$ac_ext >&5
37486
37487         eval "$as_ac_Header=no"
37488 fi
37489
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37491 fi
37492 ac_res=`eval 'as_val=${'$as_ac_Header'}
37493                  $as_echo "$as_val"'`
37494                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37495 $as_echo "$ac_res" >&6; }
37496 as_val=`eval 'as_val=${'$as_ac_Header'}
37497                  $as_echo "$as_val"'`
37498    if test "x$as_val" = x""yes; then
37499   cat >>confdefs.h <<_ACEOF
37500 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
37501 _ACEOF
37502
37503 ac_header_dirent=$ac_hdr; break
37504 fi
37505
37506 done
37507 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
37508 if test $ac_header_dirent = dirent.h; then
37509   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37510 $as_echo_n "checking for library containing opendir... " >&6; }
37511 if test "${ac_cv_search_opendir+set}" = set; then
37512   $as_echo_n "(cached) " >&6
37513 else
37514   ac_func_search_save_LIBS=$LIBS
37515 cat >conftest.$ac_ext <<_ACEOF
37516 /* confdefs.h.  */
37517 _ACEOF
37518 cat confdefs.h >>conftest.$ac_ext
37519 cat >>conftest.$ac_ext <<_ACEOF
37520 /* end confdefs.h.  */
37521
37522 /* Override any GCC internal prototype to avoid an error.
37523    Use char because int might match the return type of a GCC
37524    builtin and then its argument prototype would still apply.  */
37525 #ifdef __cplusplus
37526 extern "C"
37527 #endif
37528 char opendir ();
37529 int
37530 main ()
37531 {
37532 return opendir ();
37533   ;
37534   return 0;
37535 }
37536 _ACEOF
37537 for ac_lib in '' dir; do
37538   if test -z "$ac_lib"; then
37539     ac_res="none required"
37540   else
37541     ac_res=-l$ac_lib
37542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37543   fi
37544   rm -f conftest.$ac_objext conftest$ac_exeext
37545 if { (ac_try="$ac_link"
37546 case "(($ac_try" in
37547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37548   *) ac_try_echo=$ac_try;;
37549 esac
37550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37551 $as_echo "$ac_try_echo") >&5
37552   (eval "$ac_link") 2>conftest.er1
37553   ac_status=$?
37554   grep -v '^ *+' conftest.er1 >conftest.err
37555   rm -f conftest.er1
37556   cat conftest.err >&5
37557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); } && {
37559          test -z "$ac_c_werror_flag" ||
37560          test ! -s conftest.err
37561        } && test -s conftest$ac_exeext && {
37562          test "$cross_compiling" = yes ||
37563          $as_test_x conftest$ac_exeext
37564        }; then
37565   ac_cv_search_opendir=$ac_res
37566 else
37567   $as_echo "$as_me: failed program was:" >&5
37568 sed 's/^/| /' conftest.$ac_ext >&5
37569
37570
37571 fi
37572
37573 rm -rf conftest.dSYM
37574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37575       conftest$ac_exeext
37576   if test "${ac_cv_search_opendir+set}" = set; then
37577   break
37578 fi
37579 done
37580 if test "${ac_cv_search_opendir+set}" = set; then
37581   :
37582 else
37583   ac_cv_search_opendir=no
37584 fi
37585 rm conftest.$ac_ext
37586 LIBS=$ac_func_search_save_LIBS
37587 fi
37588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37589 $as_echo "$ac_cv_search_opendir" >&6; }
37590 ac_res=$ac_cv_search_opendir
37591 if test "$ac_res" != no; then
37592   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37593
37594 fi
37595
37596 else
37597   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37598 $as_echo_n "checking for library containing opendir... " >&6; }
37599 if test "${ac_cv_search_opendir+set}" = set; then
37600   $as_echo_n "(cached) " >&6
37601 else
37602   ac_func_search_save_LIBS=$LIBS
37603 cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h.  */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h.  */
37609
37610 /* Override any GCC internal prototype to avoid an error.
37611    Use char because int might match the return type of a GCC
37612    builtin and then its argument prototype would still apply.  */
37613 #ifdef __cplusplus
37614 extern "C"
37615 #endif
37616 char opendir ();
37617 int
37618 main ()
37619 {
37620 return opendir ();
37621   ;
37622   return 0;
37623 }
37624 _ACEOF
37625 for ac_lib in '' x; do
37626   if test -z "$ac_lib"; then
37627     ac_res="none required"
37628   else
37629     ac_res=-l$ac_lib
37630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37631   fi
37632   rm -f conftest.$ac_objext conftest$ac_exeext
37633 if { (ac_try="$ac_link"
37634 case "(($ac_try" in
37635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37636   *) ac_try_echo=$ac_try;;
37637 esac
37638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37639 $as_echo "$ac_try_echo") >&5
37640   (eval "$ac_link") 2>conftest.er1
37641   ac_status=$?
37642   grep -v '^ *+' conftest.er1 >conftest.err
37643   rm -f conftest.er1
37644   cat conftest.err >&5
37645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37646   (exit $ac_status); } && {
37647          test -z "$ac_c_werror_flag" ||
37648          test ! -s conftest.err
37649        } && test -s conftest$ac_exeext && {
37650          test "$cross_compiling" = yes ||
37651          $as_test_x conftest$ac_exeext
37652        }; then
37653   ac_cv_search_opendir=$ac_res
37654 else
37655   $as_echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37657
37658
37659 fi
37660
37661 rm -rf conftest.dSYM
37662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37663       conftest$ac_exeext
37664   if test "${ac_cv_search_opendir+set}" = set; then
37665   break
37666 fi
37667 done
37668 if test "${ac_cv_search_opendir+set}" = set; then
37669   :
37670 else
37671   ac_cv_search_opendir=no
37672 fi
37673 rm conftest.$ac_ext
37674 LIBS=$ac_func_search_save_LIBS
37675 fi
37676 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37677 $as_echo "$ac_cv_search_opendir" >&6; }
37678 ac_res=$ac_cv_search_opendir
37679 if test "$ac_res" != no; then
37680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37681
37682 fi
37683
37684 fi
37685
37686
37687     # include the dirent headers as described in the autoconf documentation.
37688     { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
37689 $as_echo_n "checking whether readdir is declared... " >&6; }
37690 if test "${ac_cv_have_decl_readdir+set}" = set; then
37691   $as_echo_n "(cached) " >&6
37692 else
37693   cat >conftest.$ac_ext <<_ACEOF
37694 /* confdefs.h.  */
37695 _ACEOF
37696 cat confdefs.h >>conftest.$ac_ext
37697 cat >>conftest.$ac_ext <<_ACEOF
37698 /* end confdefs.h.  */
37699
37700 #if HAVE_DIRENT_H
37701 # include <dirent.h>
37702 # define NAMLEN(dirent) strlen((dirent)->d_name)
37703 #else
37704 # define dirent direct
37705 # define NAMLEN(dirent) (dirent)->d_namlen
37706 # if HAVE_SYS_NDIR_H
37707 #  include <sys/ndir.h>
37708 # endif
37709 # if HAVE_SYS_DIR_H
37710 #  include <sys/dir.h>
37711 # endif
37712 # if HAVE_NDIR_H
37713 #  include <ndir.h>
37714 # endif
37715 #endif
37716
37717
37718 int
37719 main ()
37720 {
37721 #ifndef readdir
37722   (void) readdir;
37723 #endif
37724
37725   ;
37726   return 0;
37727 }
37728 _ACEOF
37729 rm -f conftest.$ac_objext
37730 if { (ac_try="$ac_compile"
37731 case "(($ac_try" in
37732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37733   *) ac_try_echo=$ac_try;;
37734 esac
37735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37736 $as_echo "$ac_try_echo") >&5
37737   (eval "$ac_compile") 2>conftest.er1
37738   ac_status=$?
37739   grep -v '^ *+' conftest.er1 >conftest.err
37740   rm -f conftest.er1
37741   cat conftest.err >&5
37742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37743   (exit $ac_status); } && {
37744          test -z "$ac_c_werror_flag" ||
37745          test ! -s conftest.err
37746        } && test -s conftest.$ac_objext; then
37747   ac_cv_have_decl_readdir=yes
37748 else
37749   $as_echo "$as_me: failed program was:" >&5
37750 sed 's/^/| /' conftest.$ac_ext >&5
37751
37752         ac_cv_have_decl_readdir=no
37753 fi
37754
37755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37756 fi
37757 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
37758 $as_echo "$ac_cv_have_decl_readdir" >&6; }
37759 if test "x$ac_cv_have_decl_readdir" = x""yes; then
37760
37761 cat >>confdefs.h <<_ACEOF
37762 #define HAVE_DECL_READDIR 1
37763 _ACEOF
37764
37765
37766 else
37767   cat >>confdefs.h <<_ACEOF
37768 #define HAVE_DECL_READDIR 0
37769 _ACEOF
37770
37771
37772 fi
37773 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
37774 $as_echo_n "checking whether readdir_r is declared... " >&6; }
37775 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
37776   $as_echo_n "(cached) " >&6
37777 else
37778   cat >conftest.$ac_ext <<_ACEOF
37779 /* confdefs.h.  */
37780 _ACEOF
37781 cat confdefs.h >>conftest.$ac_ext
37782 cat >>conftest.$ac_ext <<_ACEOF
37783 /* end confdefs.h.  */
37784
37785 #if HAVE_DIRENT_H
37786 # include <dirent.h>
37787 # define NAMLEN(dirent) strlen((dirent)->d_name)
37788 #else
37789 # define dirent direct
37790 # define NAMLEN(dirent) (dirent)->d_namlen
37791 # if HAVE_SYS_NDIR_H
37792 #  include <sys/ndir.h>
37793 # endif
37794 # if HAVE_SYS_DIR_H
37795 #  include <sys/dir.h>
37796 # endif
37797 # if HAVE_NDIR_H
37798 #  include <ndir.h>
37799 # endif
37800 #endif
37801
37802
37803 int
37804 main ()
37805 {
37806 #ifndef readdir_r
37807   (void) readdir_r;
37808 #endif
37809
37810   ;
37811   return 0;
37812 }
37813 _ACEOF
37814 rm -f conftest.$ac_objext
37815 if { (ac_try="$ac_compile"
37816 case "(($ac_try" in
37817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37818   *) ac_try_echo=$ac_try;;
37819 esac
37820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37821 $as_echo "$ac_try_echo") >&5
37822   (eval "$ac_compile") 2>conftest.er1
37823   ac_status=$?
37824   grep -v '^ *+' conftest.er1 >conftest.err
37825   rm -f conftest.er1
37826   cat conftest.err >&5
37827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828   (exit $ac_status); } && {
37829          test -z "$ac_c_werror_flag" ||
37830          test ! -s conftest.err
37831        } && test -s conftest.$ac_objext; then
37832   ac_cv_have_decl_readdir_r=yes
37833 else
37834   $as_echo "$as_me: failed program was:" >&5
37835 sed 's/^/| /' conftest.$ac_ext >&5
37836
37837         ac_cv_have_decl_readdir_r=no
37838 fi
37839
37840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37841 fi
37842 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
37843 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
37844 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
37845
37846 cat >>confdefs.h <<_ACEOF
37847 #define HAVE_DECL_READDIR_R 1
37848 _ACEOF
37849
37850
37851 else
37852   cat >>confdefs.h <<_ACEOF
37853 #define HAVE_DECL_READDIR_R 0
37854 _ACEOF
37855
37856
37857 fi
37858 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
37859 $as_echo_n "checking whether readdir64 is declared... " >&6; }
37860 if test "${ac_cv_have_decl_readdir64+set}" = set; then
37861   $as_echo_n "(cached) " >&6
37862 else
37863   cat >conftest.$ac_ext <<_ACEOF
37864 /* confdefs.h.  */
37865 _ACEOF
37866 cat confdefs.h >>conftest.$ac_ext
37867 cat >>conftest.$ac_ext <<_ACEOF
37868 /* end confdefs.h.  */
37869
37870 #if HAVE_DIRENT_H
37871 # include <dirent.h>
37872 # define NAMLEN(dirent) strlen((dirent)->d_name)
37873 #else
37874 # define dirent direct
37875 # define NAMLEN(dirent) (dirent)->d_namlen
37876 # if HAVE_SYS_NDIR_H
37877 #  include <sys/ndir.h>
37878 # endif
37879 # if HAVE_SYS_DIR_H
37880 #  include <sys/dir.h>
37881 # endif
37882 # if HAVE_NDIR_H
37883 #  include <ndir.h>
37884 # endif
37885 #endif
37886
37887
37888 int
37889 main ()
37890 {
37891 #ifndef readdir64
37892   (void) readdir64;
37893 #endif
37894
37895   ;
37896   return 0;
37897 }
37898 _ACEOF
37899 rm -f conftest.$ac_objext
37900 if { (ac_try="$ac_compile"
37901 case "(($ac_try" in
37902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37903   *) ac_try_echo=$ac_try;;
37904 esac
37905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37906 $as_echo "$ac_try_echo") >&5
37907   (eval "$ac_compile") 2>conftest.er1
37908   ac_status=$?
37909   grep -v '^ *+' conftest.er1 >conftest.err
37910   rm -f conftest.er1
37911   cat conftest.err >&5
37912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913   (exit $ac_status); } && {
37914          test -z "$ac_c_werror_flag" ||
37915          test ! -s conftest.err
37916        } && test -s conftest.$ac_objext; then
37917   ac_cv_have_decl_readdir64=yes
37918 else
37919   $as_echo "$as_me: failed program was:" >&5
37920 sed 's/^/| /' conftest.$ac_ext >&5
37921
37922         ac_cv_have_decl_readdir64=no
37923 fi
37924
37925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37926 fi
37927 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
37928 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
37929 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
37930
37931 cat >>confdefs.h <<_ACEOF
37932 #define HAVE_DECL_READDIR64 1
37933 _ACEOF
37934
37935
37936 else
37937   cat >>confdefs.h <<_ACEOF
37938 #define HAVE_DECL_READDIR64 0
37939 _ACEOF
37940
37941
37942 fi
37943 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
37944 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
37945 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
37946   $as_echo_n "(cached) " >&6
37947 else
37948   cat >conftest.$ac_ext <<_ACEOF
37949 /* confdefs.h.  */
37950 _ACEOF
37951 cat confdefs.h >>conftest.$ac_ext
37952 cat >>conftest.$ac_ext <<_ACEOF
37953 /* end confdefs.h.  */
37954
37955 #if HAVE_DIRENT_H
37956 # include <dirent.h>
37957 # define NAMLEN(dirent) strlen((dirent)->d_name)
37958 #else
37959 # define dirent direct
37960 # define NAMLEN(dirent) (dirent)->d_namlen
37961 # if HAVE_SYS_NDIR_H
37962 #  include <sys/ndir.h>
37963 # endif
37964 # if HAVE_SYS_DIR_H
37965 #  include <sys/dir.h>
37966 # endif
37967 # if HAVE_NDIR_H
37968 #  include <ndir.h>
37969 # endif
37970 #endif
37971
37972
37973 int
37974 main ()
37975 {
37976 #ifndef readdir64_r
37977   (void) readdir64_r;
37978 #endif
37979
37980   ;
37981   return 0;
37982 }
37983 _ACEOF
37984 rm -f conftest.$ac_objext
37985 if { (ac_try="$ac_compile"
37986 case "(($ac_try" in
37987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37988   *) ac_try_echo=$ac_try;;
37989 esac
37990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37991 $as_echo "$ac_try_echo") >&5
37992   (eval "$ac_compile") 2>conftest.er1
37993   ac_status=$?
37994   grep -v '^ *+' conftest.er1 >conftest.err
37995   rm -f conftest.er1
37996   cat conftest.err >&5
37997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37998   (exit $ac_status); } && {
37999          test -z "$ac_c_werror_flag" ||
38000          test ! -s conftest.err
38001        } && test -s conftest.$ac_objext; then
38002   ac_cv_have_decl_readdir64_r=yes
38003 else
38004   $as_echo "$as_me: failed program was:" >&5
38005 sed 's/^/| /' conftest.$ac_ext >&5
38006
38007         ac_cv_have_decl_readdir64_r=no
38008 fi
38009
38010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38011 fi
38012 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
38013 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
38014 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
38015
38016 cat >>confdefs.h <<_ACEOF
38017 #define HAVE_DECL_READDIR64_R 1
38018 _ACEOF
38019
38020
38021 else
38022   cat >>confdefs.h <<_ACEOF
38023 #define HAVE_DECL_READDIR64_R 0
38024 _ACEOF
38025
38026
38027 fi
38028
38029
38030
38031
38032     # disk device prefixes
38033     { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
38034 $as_echo_n "checking disk device prefixes... " >&6; }
38035
38036     # Use df to find the mount point for the root filesystem.  Use
38037     # the positional parameters to find the particular line from df
38038     # that contains the root paritition.  We put it in a subshell so
38039     # that the original positional parameters are not messed with.
38040     dfline=`(
38041         df / | while read line; do
38042             set -- $line
38043                     while test $# -gt 0; do
38044                 if test "x$1" = "x/"; then
38045                     echo $line
38046                     break 2
38047                 fi
38048                 shift
38049             done
38050         done
38051     ) | sed 's/(//' | sed 's/)//' `
38052
38053     # Search for the mount point by using expr to find the parameter
38054     # with dev in it.
38055     mount=`(
38056         set -- $dfline
38057                 while test $# -gt 0; do
38058             if expr "$1" : '.*dev' >/dev/null 2>&1; then
38059                 echo $1
38060                 break
38061             fi
38062             shift
38063         done
38064     )`
38065
38066     # get any system-specific configuration information
38067     case "$host" in
38068         *-hp-*)
38069             CLIENT_SCRIPTS_OPT=amhpfixdevs
38070             case $mount in
38071                 /dev/vg*)
38072
38073     { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
38074 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
38075
38076
38077     cat <<AAW_EOF >>config.warnings
38078 Run amhpfixdevs on HP-UX systems using /dev/vg??.
38079 AAW_EOF
38080
38081
38082                     ;;
38083             esac
38084             ;;
38085         *-sni-sysv4)
38086             DEV_PREFIX=/dev/dsk/
38087             RDEV_PREFIX=/dev/rdsk/
38088             CLIENT_SCRIPTS_OPT=amsinixfixdevs
38089             if ! test -d /dev/dsk; then
38090
38091     { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
38092 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
38093
38094
38095     cat <<AAW_EOF >>config.warnings
38096 Run amsinixfixdevs on Sinix systems using VxFS.
38097 AAW_EOF
38098
38099
38100             fi
38101             ;;
38102         *-sco3.2v4*)
38103             DEV_PREFIX=/dev/
38104             RDEV_PREFIX=/dev/
38105             ;;
38106         *)
38107             CLIENT_SCRIPTS_OPT=
38108             ;;
38109     esac
38110
38111     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
38112         { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
38113 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
38114     else
38115         if test -d /dev/dsk; then
38116             DEV_PREFIX=/dev/dsk/
38117             if test -d /dev/rdsk; then
38118                 RDEV_PREFIX=/dev/rdsk/
38119             else
38120                 RDEV_PREFIX=/dev/dsk/
38121             fi
38122         elif test -d /dev; then
38123             DEV_PREFIX=/dev/
38124
38125             # Some systems, notably Linux, do not have raw disk devices
38126             # names.  Check this by trying to see if a raw disk device name
38127             # exists using the normal raw device path prepended to the
38128             # mount point of the root filesystem.
38129             if test "$mount"; then
38130                 dev_name="/dev/r`basename $mount`"
38131                 if test -b $dev_name -o -c $dev_name; then
38132                     RDEV_PREFIX=/dev/r
38133                 else
38134                     RDEV_PREFIX=/dev/
38135                 fi
38136             else
38137                 RDEV_PREFIX=/dev/r
38138             fi
38139         else
38140             # just fake it..
38141             DEV_PREFIX=/
38142             RDEV_PREFIX=/
38143         fi
38144         { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
38145 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
38146     fi
38147
38148
38149 cat >>confdefs.h <<_ACEOF
38150 #define DEV_PREFIX "${DEV_PREFIX}"
38151 _ACEOF
38152
38153
38154 cat >>confdefs.h <<_ACEOF
38155 #define RDEV_PREFIX "${RDEV_PREFIX}"
38156 _ACEOF
38157
38158
38159
38160
38161     case "$host" in
38162         *-dec-osf*)
38163                     ;;
38164         *-dg-*)
38165                     ;;
38166         *-netbsd*)
38167                     ;;
38168         *-freebsd*)
38169                     ;;
38170         *-openbsd*)
38171                     ;;
38172         *-hp-*)
38173                     case "$CC" in
38174                         *gcc*)
38175                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
38176
38177                             ;;
38178                         *cc*)
38179                             CFLAGS="$CFLAGS -Ae"
38180
38181                             ;;
38182                     esac
38183                     ;;
38184         *-ibm-aix*)
38185                     ;;
38186         m88k-motorola-sysv4)
38187                     ;;
38188         *-nextstep3)
38189                     ;;
38190         *-pc-bsdi*)
38191                     ;;
38192         *-pc-linux-*)
38193                     ;;
38194         *-redhat-linux-*)
38195                     ;;
38196         *-suse-linux-*)
38197                     ;;
38198         x86_64-*-linux-*)
38199                     ;;
38200         alpha*-*-linux-*)
38201                     ;;
38202         sparc*-*-linux-*)
38203                     ;;
38204         powerpc-*-linux-*)
38205                     ;;
38206         *-sgi-irix3*)
38207                     # The old cc won't work!
38208                     if test "x$GCC" != "xyes"; then
38209                         { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
38210 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
38211    { (exit 1); exit 1; }; }
38212                     fi
38213                     ;;
38214         *-sgi-irix4*)
38215                     ;;
38216         *-sgi-irix5*)
38217                     ;;
38218         *-sgi-irix6*)
38219                     ;;
38220         *-solaris2*)
38221                     ;;
38222         *-sun-sunos4.1*)
38223                     ;;
38224         *-ultrix*)
38225                     ;;
38226         *-sysv4.2uw2*)
38227                     ;;
38228         *-sco3.2v5*)
38229                     ;;
38230         i386-pc-isc4*)
38231                     ;;
38232         *-sni-sysv4)
38233                     ;;
38234         *-pc-cygwin)
38235
38236 cat >>confdefs.h <<\_ACEOF
38237 #define IGNORE_TAR_ERRORS 1
38238 _ACEOF
38239
38240                     # Cygwin needs PATH to find cygwin1.dll
38241
38242 cat >>confdefs.h <<\_ACEOF
38243 #define NEED_PATH_ENV 1
38244 _ACEOF
38245
38246
38247 cat >>confdefs.h <<\_ACEOF
38248 #define IGNORE_FSTAB 1
38249 _ACEOF
38250
38251                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
38252
38253                     ;;
38254         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
38255                     ;;
38256         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
38257                     ;;
38258         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
38259                     ;;
38260         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
38261                     ;;
38262       *)
38263
38264
38265     cat <<AAW_EOF >>config.warnings
38266 *****
38267 This machine, target type $host, is not known to be fully supported
38268 by this configure script.  If the installation of Amanda on this system
38269 succeeds or needed any patches, please email amanda-hackers@amanda.org
38270 with the patches or an indication of the sucess or failure of the
38271 Amanda installation on your system.
38272 *****
38273 AAW_EOF
38274
38275                     ;;
38276     esac
38277
38278
38279
38280
38281
38282   prefix_NONE=
38283   exec_prefix_NONE=
38284   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38285   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38286   eval ac_define_dir="\"$bindir\""
38287   eval ac_define_dir="\"$ac_define_dir\""
38288   bindir="$ac_define_dir"
38289
38290
38291 cat >>confdefs.h <<_ACEOF
38292 #define bindir "$ac_define_dir"
38293 _ACEOF
38294
38295   test "$prefix_NONE" && prefix=NONE
38296   test "$exec_prefix_NONE" && exec_prefix=NONE
38297
38298
38299
38300   prefix_NONE=
38301   exec_prefix_NONE=
38302   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38303   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38304   eval ac_define_dir="\"$sbindir\""
38305   eval ac_define_dir="\"$ac_define_dir\""
38306   sbindir="$ac_define_dir"
38307
38308
38309 cat >>confdefs.h <<_ACEOF
38310 #define sbindir "$ac_define_dir"
38311 _ACEOF
38312
38313   test "$prefix_NONE" && prefix=NONE
38314   test "$exec_prefix_NONE" && exec_prefix=NONE
38315
38316
38317
38318   prefix_NONE=
38319   exec_prefix_NONE=
38320   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38321   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38322   eval ac_define_dir="\"$libexecdir\""
38323   eval ac_define_dir="\"$ac_define_dir\""
38324   libexecdir="$ac_define_dir"
38325
38326
38327 cat >>confdefs.h <<_ACEOF
38328 #define libexecdir "$ac_define_dir"
38329 _ACEOF
38330
38331   test "$prefix_NONE" && prefix=NONE
38332   test "$exec_prefix_NONE" && exec_prefix=NONE
38333
38334
38335
38336   prefix_NONE=
38337   exec_prefix_NONE=
38338   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38339   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38340   eval ac_define_dir="\"$mandir\""
38341   eval ac_define_dir="\"$ac_define_dir\""
38342   mandir="$ac_define_dir"
38343
38344
38345 cat >>confdefs.h <<_ACEOF
38346 #define mandir "$ac_define_dir"
38347 _ACEOF
38348
38349   test "$prefix_NONE" && prefix=NONE
38350   test "$exec_prefix_NONE" && exec_prefix=NONE
38351
38352
38353
38354     # amanda-specific directories
38355     AMLIBDIR=$libdir/amanda
38356
38357 # Check whether --with-amlibdir was given.
38358 if test "${with_amlibdir+set}" = set; then
38359   withval=$with_amlibdir;
38360             case "$withval" in
38361                 n | no) AMLIBDIR=$libdir ;;
38362                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
38363                 *) AMLIBDIR=$withval ;;
38364             esac
38365
38366
38367 fi
38368
38369
38370   prefix_NONE=
38371   exec_prefix_NONE=
38372   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38373   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38374   eval ac_define_dir="\"$AMLIBDIR\""
38375   eval ac_define_dir="\"$ac_define_dir\""
38376   amlibdir="$ac_define_dir"
38377
38378
38379 cat >>confdefs.h <<_ACEOF
38380 #define amlibdir "$ac_define_dir"
38381 _ACEOF
38382
38383   test "$prefix_NONE" && prefix=NONE
38384   test "$exec_prefix_NONE" && exec_prefix=NONE
38385
38386
38387     AMLIBEXECDIR=$libexecdir/amanda
38388
38389 # Check whether --with-amlibexecdir was given.
38390 if test "${with_amlibexecdir+set}" = set; then
38391   withval=$with_amlibexecdir;
38392             case "$withval" in
38393                 n | no) AMLIBEXECDIR=$libexecdir ;;
38394                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
38395                 *) AMLIBEXECDIR=$withval ;;
38396             esac
38397
38398
38399 fi
38400
38401
38402   prefix_NONE=
38403   exec_prefix_NONE=
38404   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38405   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38406   eval ac_define_dir="\"$AMLIBEXECDIR\""
38407   eval ac_define_dir="\"$ac_define_dir\""
38408   amlibexecdir="$ac_define_dir"
38409
38410
38411 cat >>confdefs.h <<_ACEOF
38412 #define amlibexecdir "$ac_define_dir"
38413 _ACEOF
38414
38415   test "$prefix_NONE" && prefix=NONE
38416   test "$exec_prefix_NONE" && exec_prefix=NONE
38417
38418
38419     amincludedir="${includedir}/amanda"
38420
38421   prefix_NONE=
38422   exec_prefix_NONE=
38423   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38424   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38425   eval ac_define_dir="\"$amincludedir\""
38426   eval ac_define_dir="\"$ac_define_dir\""
38427   amincludedir="$ac_define_dir"
38428
38429
38430 cat >>confdefs.h <<_ACEOF
38431 #define amincludedir "$ac_define_dir"
38432 _ACEOF
38433
38434   test "$prefix_NONE" && prefix=NONE
38435   test "$exec_prefix_NONE" && exec_prefix=NONE
38436
38437
38438
38439 # Check whether --with-amperldir was given.
38440 if test "${with_amperldir+set}" = set; then
38441   withval=$with_amperldir;
38442             case "$withval" in
38443                 y | ye | yes) AMPERLLIB=DEFAULT ;;
38444                 n | no) AMPERLLIB=$amlibdir/perl ;;
38445                 *) AMPERLLIB=$withval ;;
38446             esac
38447
38448 else
38449
38450             AMPERLLIB=DEFAULT
38451
38452
38453 fi
38454
38455     # apply the default if no value was given.
38456     if test x"$AMPERLLIB" = x"DEFAULT"; then
38457         eval `$PERL -V:installsitelib`
38458         AMPERLLIB=$installsitelib
38459     fi
38460
38461   prefix_NONE=
38462   exec_prefix_NONE=
38463   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38464   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38465   eval ac_define_dir="\"$AMPERLLIB\""
38466   eval ac_define_dir="\"$ac_define_dir\""
38467   amperldir="$ac_define_dir"
38468
38469
38470 cat >>confdefs.h <<_ACEOF
38471 #define amperldir "$ac_define_dir"
38472 _ACEOF
38473
38474   test "$prefix_NONE" && prefix=NONE
38475   test "$exec_prefix_NONE" && exec_prefix=NONE
38476
38477
38478     APPLICATION_DIR='${amlibexecdir}/application'
38479
38480   prefix_NONE=
38481   exec_prefix_NONE=
38482   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38483   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38484   eval ac_define_dir="\"$APPLICATION_DIR\""
38485   eval ac_define_dir="\"$ac_define_dir\""
38486   APPLICATION_DIR="$ac_define_dir"
38487
38488
38489 cat >>confdefs.h <<_ACEOF
38490 #define APPLICATION_DIR "$ac_define_dir"
38491 _ACEOF
38492
38493   test "$prefix_NONE" && prefix=NONE
38494   test "$exec_prefix_NONE" && exec_prefix=NONE
38495
38496
38497
38498 # Check whether --with-amdatadir was given.
38499 if test "${with_amdatadir+set}" = set; then
38500   withval=$with_amdatadir;
38501             AMDATADIR=$withval
38502
38503 else
38504
38505             AMDATADIR=$datadir/amanda
38506
38507
38508 fi
38509
38510
38511   prefix_NONE=
38512   exec_prefix_NONE=
38513   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38514   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38515   eval ac_define_dir="\"$AMDATADIR\""
38516   eval ac_define_dir="\"$ac_define_dir\""
38517   amdatadir="$ac_define_dir"
38518
38519
38520 cat >>confdefs.h <<_ACEOF
38521 #define amdatadir "$ac_define_dir"
38522 _ACEOF
38523
38524   test "$prefix_NONE" && prefix=NONE
38525   test "$exec_prefix_NONE" && exec_prefix=NONE
38526
38527
38528
38529 #
38530 # Internationalization
38531 #
38532
38533     # FreeBSD needs to link libxpg4
38534
38535 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
38536 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
38537 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
38538   $as_echo_n "(cached) " >&6
38539 else
38540   ac_check_lib_save_LIBS=$LIBS
38541 LIBS="-lxpg4  $LIBS"
38542 cat >conftest.$ac_ext <<_ACEOF
38543 /* confdefs.h.  */
38544 _ACEOF
38545 cat confdefs.h >>conftest.$ac_ext
38546 cat >>conftest.$ac_ext <<_ACEOF
38547 /* end confdefs.h.  */
38548
38549 /* Override any GCC internal prototype to avoid an error.
38550    Use char because int might match the return type of a GCC
38551    builtin and then its argument prototype would still apply.  */
38552 #ifdef __cplusplus
38553 extern "C"
38554 #endif
38555 char setlocale ();
38556 int
38557 main ()
38558 {
38559 return setlocale ();
38560   ;
38561   return 0;
38562 }
38563 _ACEOF
38564 rm -f conftest.$ac_objext conftest$ac_exeext
38565 if { (ac_try="$ac_link"
38566 case "(($ac_try" in
38567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38568   *) ac_try_echo=$ac_try;;
38569 esac
38570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38571 $as_echo "$ac_try_echo") >&5
38572   (eval "$ac_link") 2>conftest.er1
38573   ac_status=$?
38574   grep -v '^ *+' conftest.er1 >conftest.err
38575   rm -f conftest.er1
38576   cat conftest.err >&5
38577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578   (exit $ac_status); } && {
38579          test -z "$ac_c_werror_flag" ||
38580          test ! -s conftest.err
38581        } && test -s conftest$ac_exeext && {
38582          test "$cross_compiling" = yes ||
38583          $as_test_x conftest$ac_exeext
38584        }; then
38585   ac_cv_lib_xpg4_setlocale=yes
38586 else
38587   $as_echo "$as_me: failed program was:" >&5
38588 sed 's/^/| /' conftest.$ac_ext >&5
38589
38590         ac_cv_lib_xpg4_setlocale=no
38591 fi
38592
38593 rm -rf conftest.dSYM
38594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38595       conftest$ac_exeext conftest.$ac_ext
38596 LIBS=$ac_check_lib_save_LIBS
38597 fi
38598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
38599 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
38600 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
38601   cat >>confdefs.h <<_ACEOF
38602 #define HAVE_LIBXPG4 1
38603 _ACEOF
38604
38605   LIBS="-lxpg4 $LIBS"
38606
38607 fi
38608
38609
38610     # ------------------------------------------------------------------
38611     # All list of languages for which a translation exist. Each
38612     #  language is separated by a space.
38613     # ------------------------------------------------------------------
38614     ALL_LINGUAS=""
38615
38616
38617     # Extract the first word of "msgfmt", so it can be a program name with args.
38618 set dummy msgfmt; ac_word=$2
38619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38620 $as_echo_n "checking for $ac_word... " >&6; }
38621 if test "${ac_cv_path_MSGFMT+set}" = set; then
38622   $as_echo_n "(cached) " >&6
38623 else
38624   case $MSGFMT in
38625   [\\/]* | ?:[\\/]*)
38626   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38627   ;;
38628   *)
38629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38630 for as_dir in $LOCSYSPATH
38631 do
38632   IFS=$as_save_IFS
38633   test -z "$as_dir" && as_dir=.
38634   for ac_exec_ext in '' $ac_executable_extensions; do
38635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38636     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
38637     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38638     break 2
38639   fi
38640 done
38641 done
38642 IFS=$as_save_IFS
38643
38644   ;;
38645 esac
38646 fi
38647 MSGFMT=$ac_cv_path_MSGFMT
38648 if test -n "$MSGFMT"; then
38649   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38650 $as_echo "$MSGFMT" >&6; }
38651 else
38652   { $as_echo "$as_me:$LINENO: result: no" >&5
38653 $as_echo "no" >&6; }
38654 fi
38655
38656
38657     # Extract the first word of "gettext", so it can be a program name with args.
38658 set dummy gettext; ac_word=$2
38659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38660 $as_echo_n "checking for $ac_word... " >&6; }
38661 if test "${ac_cv_path_GETTEXT+set}" = set; then
38662   $as_echo_n "(cached) " >&6
38663 else
38664   case $GETTEXT in
38665   [\\/]* | ?:[\\/]*)
38666   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
38667   ;;
38668   *)
38669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38670 for as_dir in $LOCSYSPATH
38671 do
38672   IFS=$as_save_IFS
38673   test -z "$as_dir" && as_dir=.
38674   for ac_exec_ext in '' $ac_executable_extensions; do
38675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38676     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
38677     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38678     break 2
38679   fi
38680 done
38681 done
38682 IFS=$as_save_IFS
38683
38684   ;;
38685 esac
38686 fi
38687 GETTEXT=$ac_cv_path_GETTEXT
38688 if test -n "$GETTEXT"; then
38689   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
38690 $as_echo "$GETTEXT" >&6; }
38691 else
38692   { $as_echo "$as_me:$LINENO: result: no" >&5
38693 $as_echo "no" >&6; }
38694 fi
38695
38696
38697
38698
38699
38700   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38701 $as_echo_n "checking whether NLS is requested... " >&6; }
38702     # Check whether --enable-nls was given.
38703 if test "${enable_nls+set}" = set; then
38704   enableval=$enable_nls; USE_NLS=$enableval
38705 else
38706   USE_NLS=yes
38707 fi
38708
38709   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
38710 $as_echo "$USE_NLS" >&6; }
38711
38712
38713
38714
38715
38716
38717 # Prepare PATH_SEPARATOR.
38718 # The user is always right.
38719 if test "${PATH_SEPARATOR+set}" != set; then
38720   echo "#! /bin/sh" >conf$$.sh
38721   echo  "exit 0"   >>conf$$.sh
38722   chmod +x conf$$.sh
38723   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38724     PATH_SEPARATOR=';'
38725   else
38726     PATH_SEPARATOR=:
38727   fi
38728   rm -f conf$$.sh
38729 fi
38730
38731 # Find out how to test for executable files. Don't use a zero-byte file,
38732 # as systems may use methods other than mode bits to determine executability.
38733 cat >conf$$.file <<_ASEOF
38734 #! /bin/sh
38735 exit 0
38736 _ASEOF
38737 chmod +x conf$$.file
38738 if test -x conf$$.file >/dev/null 2>&1; then
38739   ac_executable_p="test -x"
38740 else
38741   ac_executable_p="test -f"
38742 fi
38743 rm -f conf$$.file
38744
38745 # Extract the first word of "msgfmt", so it can be a program name with args.
38746 set dummy msgfmt; ac_word=$2
38747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38748 $as_echo_n "checking for $ac_word... " >&6; }
38749 if test "${ac_cv_path_MSGFMT+set}" = set; then
38750   $as_echo_n "(cached) " >&6
38751 else
38752   case "$MSGFMT" in
38753   [\\/]* | ?:[\\/]*)
38754     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38755     ;;
38756   *)
38757     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38758     for ac_dir in $PATH; do
38759       IFS="$ac_save_IFS"
38760       test -z "$ac_dir" && ac_dir=.
38761       for ac_exec_ext in '' $ac_executable_extensions; do
38762         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38763           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38764           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
38765      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38766             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
38767             break 2
38768           fi
38769         fi
38770       done
38771     done
38772     IFS="$ac_save_IFS"
38773   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38774     ;;
38775 esac
38776 fi
38777 MSGFMT="$ac_cv_path_MSGFMT"
38778 if test "$MSGFMT" != ":"; then
38779   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38780 $as_echo "$MSGFMT" >&6; }
38781 else
38782   { $as_echo "$as_me:$LINENO: result: no" >&5
38783 $as_echo "no" >&6; }
38784 fi
38785
38786   # Extract the first word of "gmsgfmt", so it can be a program name with args.
38787 set dummy gmsgfmt; ac_word=$2
38788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38789 $as_echo_n "checking for $ac_word... " >&6; }
38790 if test "${ac_cv_path_GMSGFMT+set}" = set; then
38791   $as_echo_n "(cached) " >&6
38792 else
38793   case $GMSGFMT in
38794   [\\/]* | ?:[\\/]*)
38795   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38796   ;;
38797   *)
38798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38799 for as_dir in $PATH
38800 do
38801   IFS=$as_save_IFS
38802   test -z "$as_dir" && as_dir=.
38803   for ac_exec_ext in '' $ac_executable_extensions; do
38804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38805     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38806     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38807     break 2
38808   fi
38809 done
38810 done
38811 IFS=$as_save_IFS
38812
38813   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38814   ;;
38815 esac
38816 fi
38817 GMSGFMT=$ac_cv_path_GMSGFMT
38818 if test -n "$GMSGFMT"; then
38819   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38820 $as_echo "$GMSGFMT" >&6; }
38821 else
38822   { $as_echo "$as_me:$LINENO: result: no" >&5
38823 $as_echo "no" >&6; }
38824 fi
38825
38826
38827
38828     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38829     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
38830     *) MSGFMT_015=$MSGFMT ;;
38831   esac
38832
38833   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38834     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
38835     *) GMSGFMT_015=$GMSGFMT ;;
38836   esac
38837
38838
38839
38840 # Prepare PATH_SEPARATOR.
38841 # The user is always right.
38842 if test "${PATH_SEPARATOR+set}" != set; then
38843   echo "#! /bin/sh" >conf$$.sh
38844   echo  "exit 0"   >>conf$$.sh
38845   chmod +x conf$$.sh
38846   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38847     PATH_SEPARATOR=';'
38848   else
38849     PATH_SEPARATOR=:
38850   fi
38851   rm -f conf$$.sh
38852 fi
38853
38854 # Find out how to test for executable files. Don't use a zero-byte file,
38855 # as systems may use methods other than mode bits to determine executability.
38856 cat >conf$$.file <<_ASEOF
38857 #! /bin/sh
38858 exit 0
38859 _ASEOF
38860 chmod +x conf$$.file
38861 if test -x conf$$.file >/dev/null 2>&1; then
38862   ac_executable_p="test -x"
38863 else
38864   ac_executable_p="test -f"
38865 fi
38866 rm -f conf$$.file
38867
38868 # Extract the first word of "xgettext", so it can be a program name with args.
38869 set dummy xgettext; ac_word=$2
38870 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38871 $as_echo_n "checking for $ac_word... " >&6; }
38872 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38873   $as_echo_n "(cached) " >&6
38874 else
38875   case "$XGETTEXT" in
38876   [\\/]* | ?:[\\/]*)
38877     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38878     ;;
38879   *)
38880     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38881     for ac_dir in $PATH; do
38882       IFS="$ac_save_IFS"
38883       test -z "$ac_dir" && ac_dir=.
38884       for ac_exec_ext in '' $ac_executable_extensions; do
38885         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38886           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38887           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
38888      (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
38889             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
38890             break 2
38891           fi
38892         fi
38893       done
38894     done
38895     IFS="$ac_save_IFS"
38896   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38897     ;;
38898 esac
38899 fi
38900 XGETTEXT="$ac_cv_path_XGETTEXT"
38901 if test "$XGETTEXT" != ":"; then
38902   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38903 $as_echo "$XGETTEXT" >&6; }
38904 else
38905   { $as_echo "$as_me:$LINENO: result: no" >&5
38906 $as_echo "no" >&6; }
38907 fi
38908
38909     rm -f messages.po
38910
38911     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38912     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
38913     *) XGETTEXT_015=$XGETTEXT ;;
38914   esac
38915
38916
38917
38918 # Prepare PATH_SEPARATOR.
38919 # The user is always right.
38920 if test "${PATH_SEPARATOR+set}" != set; then
38921   echo "#! /bin/sh" >conf$$.sh
38922   echo  "exit 0"   >>conf$$.sh
38923   chmod +x conf$$.sh
38924   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38925     PATH_SEPARATOR=';'
38926   else
38927     PATH_SEPARATOR=:
38928   fi
38929   rm -f conf$$.sh
38930 fi
38931
38932 # Find out how to test for executable files. Don't use a zero-byte file,
38933 # as systems may use methods other than mode bits to determine executability.
38934 cat >conf$$.file <<_ASEOF
38935 #! /bin/sh
38936 exit 0
38937 _ASEOF
38938 chmod +x conf$$.file
38939 if test -x conf$$.file >/dev/null 2>&1; then
38940   ac_executable_p="test -x"
38941 else
38942   ac_executable_p="test -f"
38943 fi
38944 rm -f conf$$.file
38945
38946 # Extract the first word of "msgmerge", so it can be a program name with args.
38947 set dummy msgmerge; ac_word=$2
38948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38949 $as_echo_n "checking for $ac_word... " >&6; }
38950 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38951   $as_echo_n "(cached) " >&6
38952 else
38953   case "$MSGMERGE" in
38954   [\\/]* | ?:[\\/]*)
38955     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38956     ;;
38957   *)
38958     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38959     for ac_dir in $PATH; do
38960       IFS="$ac_save_IFS"
38961       test -z "$ac_dir" && ac_dir=.
38962       for ac_exec_ext in '' $ac_executable_extensions; do
38963         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38964           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38965           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
38966             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
38967             break 2
38968           fi
38969         fi
38970       done
38971     done
38972     IFS="$ac_save_IFS"
38973   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38974     ;;
38975 esac
38976 fi
38977 MSGMERGE="$ac_cv_path_MSGMERGE"
38978 if test "$MSGMERGE" != ":"; then
38979   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38980 $as_echo "$MSGMERGE" >&6; }
38981 else
38982   { $as_echo "$as_me:$LINENO: result: no" >&5
38983 $as_echo "no" >&6; }
38984 fi
38985
38986
38987         test -n "$localedir" || localedir='${datadir}/locale'
38988
38989
38990   ac_config_commands="$ac_config_commands po-directories"
38991
38992
38993
38994
38995
38996
38997
38998
38999
39000     use_additional=yes
39001
39002   acl_save_prefix="$prefix"
39003   prefix="$acl_final_prefix"
39004   acl_save_exec_prefix="$exec_prefix"
39005   exec_prefix="$acl_final_exec_prefix"
39006
39007     eval additional_includedir=\"$includedir\"
39008     eval additional_libdir=\"$libdir\"
39009
39010   exec_prefix="$acl_save_exec_prefix"
39011   prefix="$acl_save_prefix"
39012
39013
39014 # Check whether --with-libiconv-prefix was given.
39015 if test "${with_libiconv_prefix+set}" = set; then
39016   withval=$with_libiconv_prefix;
39017     if test "X$withval" = "Xno"; then
39018       use_additional=no
39019     else
39020       if test "X$withval" = "X"; then
39021
39022   acl_save_prefix="$prefix"
39023   prefix="$acl_final_prefix"
39024   acl_save_exec_prefix="$exec_prefix"
39025   exec_prefix="$acl_final_exec_prefix"
39026
39027           eval additional_includedir=\"$includedir\"
39028           eval additional_libdir=\"$libdir\"
39029
39030   exec_prefix="$acl_save_exec_prefix"
39031   prefix="$acl_save_prefix"
39032
39033       else
39034         additional_includedir="$withval/include"
39035         additional_libdir="$withval/$acl_libdirstem"
39036       fi
39037     fi
39038
39039 fi
39040
39041       LIBICONV=
39042   LTLIBICONV=
39043   INCICONV=
39044   rpathdirs=
39045   ltrpathdirs=
39046   names_already_handled=
39047   names_next_round='iconv '
39048   while test -n "$names_next_round"; do
39049     names_this_round="$names_next_round"
39050     names_next_round=
39051     for name in $names_this_round; do
39052       already_handled=
39053       for n in $names_already_handled; do
39054         if test "$n" = "$name"; then
39055           already_handled=yes
39056           break
39057         fi
39058       done
39059       if test -z "$already_handled"; then
39060         names_already_handled="$names_already_handled $name"
39061                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39062         eval value=\"\$HAVE_LIB$uppername\"
39063         if test -n "$value"; then
39064           if test "$value" = yes; then
39065             eval value=\"\$LIB$uppername\"
39066             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
39067             eval value=\"\$LTLIB$uppername\"
39068             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
39069           else
39070                                     :
39071           fi
39072         else
39073                               found_dir=
39074           found_la=
39075           found_so=
39076           found_a=
39077           if test $use_additional = yes; then
39078             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39079               found_dir="$additional_libdir"
39080               found_so="$additional_libdir/lib$name.$shlibext"
39081               if test -f "$additional_libdir/lib$name.la"; then
39082                 found_la="$additional_libdir/lib$name.la"
39083               fi
39084             else
39085               if test -f "$additional_libdir/lib$name.$libext"; then
39086                 found_dir="$additional_libdir"
39087                 found_a="$additional_libdir/lib$name.$libext"
39088                 if test -f "$additional_libdir/lib$name.la"; then
39089                   found_la="$additional_libdir/lib$name.la"
39090                 fi
39091               fi
39092             fi
39093           fi
39094           if test "X$found_dir" = "X"; then
39095             for x in $LDFLAGS $LTLIBICONV; do
39096
39097   acl_save_prefix="$prefix"
39098   prefix="$acl_final_prefix"
39099   acl_save_exec_prefix="$exec_prefix"
39100   exec_prefix="$acl_final_exec_prefix"
39101   eval x=\"$x\"
39102   exec_prefix="$acl_save_exec_prefix"
39103   prefix="$acl_save_prefix"
39104
39105               case "$x" in
39106                 -L*)
39107                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39108                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39109                     found_dir="$dir"
39110                     found_so="$dir/lib$name.$shlibext"
39111                     if test -f "$dir/lib$name.la"; then
39112                       found_la="$dir/lib$name.la"
39113                     fi
39114                   else
39115                     if test -f "$dir/lib$name.$libext"; then
39116                       found_dir="$dir"
39117                       found_a="$dir/lib$name.$libext"
39118                       if test -f "$dir/lib$name.la"; then
39119                         found_la="$dir/lib$name.la"
39120                       fi
39121                     fi
39122                   fi
39123                   ;;
39124               esac
39125               if test "X$found_dir" != "X"; then
39126                 break
39127               fi
39128             done
39129           fi
39130           if test "X$found_dir" != "X"; then
39131                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
39132             if test "X$found_so" != "X"; then
39133                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39134                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39135               else
39136                                                                                 haveit=
39137                 for x in $ltrpathdirs; do
39138                   if test "X$x" = "X$found_dir"; then
39139                     haveit=yes
39140                     break
39141                   fi
39142                 done
39143                 if test -z "$haveit"; then
39144                   ltrpathdirs="$ltrpathdirs $found_dir"
39145                 fi
39146                                 if test "$hardcode_direct" = yes; then
39147                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39148                 else
39149                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39150                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39151                                                             haveit=
39152                     for x in $rpathdirs; do
39153                       if test "X$x" = "X$found_dir"; then
39154                         haveit=yes
39155                         break
39156                       fi
39157                     done
39158                     if test -z "$haveit"; then
39159                       rpathdirs="$rpathdirs $found_dir"
39160                     fi
39161                   else
39162                                                                                 haveit=
39163                     for x in $LDFLAGS $LIBICONV; do
39164
39165   acl_save_prefix="$prefix"
39166   prefix="$acl_final_prefix"
39167   acl_save_exec_prefix="$exec_prefix"
39168   exec_prefix="$acl_final_exec_prefix"
39169   eval x=\"$x\"
39170   exec_prefix="$acl_save_exec_prefix"
39171   prefix="$acl_save_prefix"
39172
39173                       if test "X$x" = "X-L$found_dir"; then
39174                         haveit=yes
39175                         break
39176                       fi
39177                     done
39178                     if test -z "$haveit"; then
39179                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
39180                     fi
39181                     if test "$hardcode_minus_L" != no; then
39182                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39183                     else
39184                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39185                     fi
39186                   fi
39187                 fi
39188               fi
39189             else
39190               if test "X$found_a" != "X"; then
39191                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
39192               else
39193                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
39194               fi
39195             fi
39196                         additional_includedir=
39197             case "$found_dir" in
39198               */$acl_libdirstem | */$acl_libdirstem/)
39199                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39200                 additional_includedir="$basedir/include"
39201                 ;;
39202             esac
39203             if test "X$additional_includedir" != "X"; then
39204                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39205                 haveit=
39206                 if test "X$additional_includedir" = "X/usr/local/include"; then
39207                   if test -n "$GCC"; then
39208                     case $host_os in
39209                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39210                     esac
39211                   fi
39212                 fi
39213                 if test -z "$haveit"; then
39214                   for x in $CPPFLAGS $INCICONV; do
39215
39216   acl_save_prefix="$prefix"
39217   prefix="$acl_final_prefix"
39218   acl_save_exec_prefix="$exec_prefix"
39219   exec_prefix="$acl_final_exec_prefix"
39220   eval x=\"$x\"
39221   exec_prefix="$acl_save_exec_prefix"
39222   prefix="$acl_save_prefix"
39223
39224                     if test "X$x" = "X-I$additional_includedir"; then
39225                       haveit=yes
39226                       break
39227                     fi
39228                   done
39229                   if test -z "$haveit"; then
39230                     if test -d "$additional_includedir"; then
39231                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
39232                     fi
39233                   fi
39234                 fi
39235               fi
39236             fi
39237                         if test -n "$found_la"; then
39238                                                         save_libdir="$libdir"
39239               case "$found_la" in
39240                 */* | *\\*) . "$found_la" ;;
39241                 *) . "./$found_la" ;;
39242               esac
39243               libdir="$save_libdir"
39244                             for dep in $dependency_libs; do
39245                 case "$dep" in
39246                   -L*)
39247                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39248                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39249                       haveit=
39250                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39251                         if test -n "$GCC"; then
39252                           case $host_os in
39253                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39254                           esac
39255                         fi
39256                       fi
39257                       if test -z "$haveit"; then
39258                         haveit=
39259                         for x in $LDFLAGS $LIBICONV; do
39260
39261   acl_save_prefix="$prefix"
39262   prefix="$acl_final_prefix"
39263   acl_save_exec_prefix="$exec_prefix"
39264   exec_prefix="$acl_final_exec_prefix"
39265   eval x=\"$x\"
39266   exec_prefix="$acl_save_exec_prefix"
39267   prefix="$acl_save_prefix"
39268
39269                           if test "X$x" = "X-L$additional_libdir"; then
39270                             haveit=yes
39271                             break
39272                           fi
39273                         done
39274                         if test -z "$haveit"; then
39275                           if test -d "$additional_libdir"; then
39276                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
39277                           fi
39278                         fi
39279                         haveit=
39280                         for x in $LDFLAGS $LTLIBICONV; do
39281
39282   acl_save_prefix="$prefix"
39283   prefix="$acl_final_prefix"
39284   acl_save_exec_prefix="$exec_prefix"
39285   exec_prefix="$acl_final_exec_prefix"
39286   eval x=\"$x\"
39287   exec_prefix="$acl_save_exec_prefix"
39288   prefix="$acl_save_prefix"
39289
39290                           if test "X$x" = "X-L$additional_libdir"; then
39291                             haveit=yes
39292                             break
39293                           fi
39294                         done
39295                         if test -z "$haveit"; then
39296                           if test -d "$additional_libdir"; then
39297                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
39298                           fi
39299                         fi
39300                       fi
39301                     fi
39302                     ;;
39303                   -R*)
39304                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
39305                     if test "$enable_rpath" != no; then
39306                                                                   haveit=
39307                       for x in $rpathdirs; do
39308                         if test "X$x" = "X$dir"; then
39309                           haveit=yes
39310                           break
39311                         fi
39312                       done
39313                       if test -z "$haveit"; then
39314                         rpathdirs="$rpathdirs $dir"
39315                       fi
39316                                                                   haveit=
39317                       for x in $ltrpathdirs; do
39318                         if test "X$x" = "X$dir"; then
39319                           haveit=yes
39320                           break
39321                         fi
39322                       done
39323                       if test -z "$haveit"; then
39324                         ltrpathdirs="$ltrpathdirs $dir"
39325                       fi
39326                     fi
39327                     ;;
39328                   -l*)
39329                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39330                     ;;
39331                   *.la)
39332                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39333                     ;;
39334                   *)
39335                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
39336                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
39337                     ;;
39338                 esac
39339               done
39340             fi
39341           else
39342                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39343             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
39344           fi
39345         fi
39346       fi
39347     done
39348   done
39349   if test "X$rpathdirs" != "X"; then
39350     if test -n "$hardcode_libdir_separator"; then
39351                         alldirs=
39352       for found_dir in $rpathdirs; do
39353         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39354       done
39355             acl_save_libdir="$libdir"
39356       libdir="$alldirs"
39357       eval flag=\"$hardcode_libdir_flag_spec\"
39358       libdir="$acl_save_libdir"
39359       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39360     else
39361             for found_dir in $rpathdirs; do
39362         acl_save_libdir="$libdir"
39363         libdir="$found_dir"
39364         eval flag=\"$hardcode_libdir_flag_spec\"
39365         libdir="$acl_save_libdir"
39366         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39367       done
39368     fi
39369   fi
39370   if test "X$ltrpathdirs" != "X"; then
39371             for found_dir in $ltrpathdirs; do
39372       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
39373     done
39374   fi
39375
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387
39388
39389
39390
39391
39392
39393     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
39394 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
39395 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
39396   $as_echo_n "(cached) " >&6
39397 else
39398   gt_save_LIBS="$LIBS"
39399      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39400      cat >conftest.$ac_ext <<_ACEOF
39401 /* confdefs.h.  */
39402 _ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h.  */
39406 #include <CoreFoundation/CFPreferences.h>
39407 int
39408 main ()
39409 {
39410 CFPreferencesCopyAppValue(NULL, NULL)
39411   ;
39412   return 0;
39413 }
39414 _ACEOF
39415 rm -f conftest.$ac_objext conftest$ac_exeext
39416 if { (ac_try="$ac_link"
39417 case "(($ac_try" in
39418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39419   *) ac_try_echo=$ac_try;;
39420 esac
39421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39422 $as_echo "$ac_try_echo") >&5
39423   (eval "$ac_link") 2>conftest.er1
39424   ac_status=$?
39425   grep -v '^ *+' conftest.er1 >conftest.err
39426   rm -f conftest.er1
39427   cat conftest.err >&5
39428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429   (exit $ac_status); } && {
39430          test -z "$ac_c_werror_flag" ||
39431          test ! -s conftest.err
39432        } && test -s conftest$ac_exeext && {
39433          test "$cross_compiling" = yes ||
39434          $as_test_x conftest$ac_exeext
39435        }; then
39436   gt_cv_func_CFPreferencesCopyAppValue=yes
39437 else
39438   $as_echo "$as_me: failed program was:" >&5
39439 sed 's/^/| /' conftest.$ac_ext >&5
39440
39441         gt_cv_func_CFPreferencesCopyAppValue=no
39442 fi
39443
39444 rm -rf conftest.dSYM
39445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39446       conftest$ac_exeext conftest.$ac_ext
39447      LIBS="$gt_save_LIBS"
39448 fi
39449 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
39450 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
39451   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
39452
39453 cat >>confdefs.h <<\_ACEOF
39454 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
39455 _ACEOF
39456
39457   fi
39458     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
39459 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
39460 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
39461   $as_echo_n "(cached) " >&6
39462 else
39463   gt_save_LIBS="$LIBS"
39464      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39465      cat >conftest.$ac_ext <<_ACEOF
39466 /* confdefs.h.  */
39467 _ACEOF
39468 cat confdefs.h >>conftest.$ac_ext
39469 cat >>conftest.$ac_ext <<_ACEOF
39470 /* end confdefs.h.  */
39471 #include <CoreFoundation/CFLocale.h>
39472 int
39473 main ()
39474 {
39475 CFLocaleCopyCurrent();
39476   ;
39477   return 0;
39478 }
39479 _ACEOF
39480 rm -f conftest.$ac_objext conftest$ac_exeext
39481 if { (ac_try="$ac_link"
39482 case "(($ac_try" in
39483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39484   *) ac_try_echo=$ac_try;;
39485 esac
39486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39487 $as_echo "$ac_try_echo") >&5
39488   (eval "$ac_link") 2>conftest.er1
39489   ac_status=$?
39490   grep -v '^ *+' conftest.er1 >conftest.err
39491   rm -f conftest.er1
39492   cat conftest.err >&5
39493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39494   (exit $ac_status); } && {
39495          test -z "$ac_c_werror_flag" ||
39496          test ! -s conftest.err
39497        } && test -s conftest$ac_exeext && {
39498          test "$cross_compiling" = yes ||
39499          $as_test_x conftest$ac_exeext
39500        }; then
39501   gt_cv_func_CFLocaleCopyCurrent=yes
39502 else
39503   $as_echo "$as_me: failed program was:" >&5
39504 sed 's/^/| /' conftest.$ac_ext >&5
39505
39506         gt_cv_func_CFLocaleCopyCurrent=no
39507 fi
39508
39509 rm -rf conftest.dSYM
39510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39511       conftest$ac_exeext conftest.$ac_ext
39512      LIBS="$gt_save_LIBS"
39513 fi
39514 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
39515 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
39516   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39517
39518 cat >>confdefs.h <<\_ACEOF
39519 #define HAVE_CFLOCALECOPYCURRENT 1
39520 _ACEOF
39521
39522   fi
39523   INTL_MACOSX_LIBS=
39524   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39525     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
39526   fi
39527
39528
39529
39530
39531
39532
39533   LIBINTL=
39534   LTLIBINTL=
39535   POSUB=
39536
39537     if test "$USE_NLS" = "yes"; then
39538     gt_use_preinstalled_gnugettext=no
39539
39540
39541
39542
39543
39544
39545         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
39546 $as_echo_n "checking for GNU gettext in libc... " >&6; }
39547 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
39548   $as_echo_n "(cached) " >&6
39549 else
39550   cat >conftest.$ac_ext <<_ACEOF
39551 /* confdefs.h.  */
39552 _ACEOF
39553 cat confdefs.h >>conftest.$ac_ext
39554 cat >>conftest.$ac_ext <<_ACEOF
39555 /* end confdefs.h.  */
39556 #include <libintl.h>
39557 extern int _nl_msg_cat_cntr;
39558 extern int *_nl_domain_bindings;
39559 int
39560 main ()
39561 {
39562 bindtextdomain ("", "");
39563 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
39564   ;
39565   return 0;
39566 }
39567 _ACEOF
39568 rm -f conftest.$ac_objext conftest$ac_exeext
39569 if { (ac_try="$ac_link"
39570 case "(($ac_try" in
39571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39572   *) ac_try_echo=$ac_try;;
39573 esac
39574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39575 $as_echo "$ac_try_echo") >&5
39576   (eval "$ac_link") 2>conftest.er1
39577   ac_status=$?
39578   grep -v '^ *+' conftest.er1 >conftest.err
39579   rm -f conftest.er1
39580   cat conftest.err >&5
39581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582   (exit $ac_status); } && {
39583          test -z "$ac_c_werror_flag" ||
39584          test ! -s conftest.err
39585        } && test -s conftest$ac_exeext && {
39586          test "$cross_compiling" = yes ||
39587          $as_test_x conftest$ac_exeext
39588        }; then
39589   gt_cv_func_gnugettext1_libc=yes
39590 else
39591   $as_echo "$as_me: failed program was:" >&5
39592 sed 's/^/| /' conftest.$ac_ext >&5
39593
39594         gt_cv_func_gnugettext1_libc=no
39595 fi
39596
39597 rm -rf conftest.dSYM
39598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39599       conftest$ac_exeext conftest.$ac_ext
39600 fi
39601 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
39602 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
39603
39604         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
39605
39606
39607
39608
39609
39610           am_save_CPPFLAGS="$CPPFLAGS"
39611
39612   for element in $INCICONV; do
39613     haveit=
39614     for x in $CPPFLAGS; do
39615
39616   acl_save_prefix="$prefix"
39617   prefix="$acl_final_prefix"
39618   acl_save_exec_prefix="$exec_prefix"
39619   exec_prefix="$acl_final_exec_prefix"
39620   eval x=\"$x\"
39621   exec_prefix="$acl_save_exec_prefix"
39622   prefix="$acl_save_prefix"
39623
39624       if test "X$x" = "X$element"; then
39625         haveit=yes
39626         break
39627       fi
39628     done
39629     if test -z "$haveit"; then
39630       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39631     fi
39632   done
39633
39634
39635   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
39636 $as_echo_n "checking for iconv... " >&6; }
39637 if test "${am_cv_func_iconv+set}" = set; then
39638   $as_echo_n "(cached) " >&6
39639 else
39640
39641     am_cv_func_iconv="no, consider installing GNU libiconv"
39642     am_cv_lib_iconv=no
39643     cat >conftest.$ac_ext <<_ACEOF
39644 /* confdefs.h.  */
39645 _ACEOF
39646 cat confdefs.h >>conftest.$ac_ext
39647 cat >>conftest.$ac_ext <<_ACEOF
39648 /* end confdefs.h.  */
39649 #include <stdlib.h>
39650 #include <iconv.h>
39651 int
39652 main ()
39653 {
39654 iconv_t cd = iconv_open("","");
39655        iconv(cd,NULL,NULL,NULL,NULL);
39656        iconv_close(cd);
39657   ;
39658   return 0;
39659 }
39660 _ACEOF
39661 rm -f conftest.$ac_objext conftest$ac_exeext
39662 if { (ac_try="$ac_link"
39663 case "(($ac_try" in
39664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39665   *) ac_try_echo=$ac_try;;
39666 esac
39667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39668 $as_echo "$ac_try_echo") >&5
39669   (eval "$ac_link") 2>conftest.er1
39670   ac_status=$?
39671   grep -v '^ *+' conftest.er1 >conftest.err
39672   rm -f conftest.er1
39673   cat conftest.err >&5
39674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39675   (exit $ac_status); } && {
39676          test -z "$ac_c_werror_flag" ||
39677          test ! -s conftest.err
39678        } && test -s conftest$ac_exeext && {
39679          test "$cross_compiling" = yes ||
39680          $as_test_x conftest$ac_exeext
39681        }; then
39682   am_cv_func_iconv=yes
39683 else
39684   $as_echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39686
39687
39688 fi
39689
39690 rm -rf conftest.dSYM
39691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39692       conftest$ac_exeext conftest.$ac_ext
39693     if test "$am_cv_func_iconv" != yes; then
39694       am_save_LIBS="$LIBS"
39695       LIBS="$LIBS $LIBICONV"
39696       cat >conftest.$ac_ext <<_ACEOF
39697 /* confdefs.h.  */
39698 _ACEOF
39699 cat confdefs.h >>conftest.$ac_ext
39700 cat >>conftest.$ac_ext <<_ACEOF
39701 /* end confdefs.h.  */
39702 #include <stdlib.h>
39703 #include <iconv.h>
39704 int
39705 main ()
39706 {
39707 iconv_t cd = iconv_open("","");
39708          iconv(cd,NULL,NULL,NULL,NULL);
39709          iconv_close(cd);
39710   ;
39711   return 0;
39712 }
39713 _ACEOF
39714 rm -f conftest.$ac_objext conftest$ac_exeext
39715 if { (ac_try="$ac_link"
39716 case "(($ac_try" in
39717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39718   *) ac_try_echo=$ac_try;;
39719 esac
39720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39721 $as_echo "$ac_try_echo") >&5
39722   (eval "$ac_link") 2>conftest.er1
39723   ac_status=$?
39724   grep -v '^ *+' conftest.er1 >conftest.err
39725   rm -f conftest.er1
39726   cat conftest.err >&5
39727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728   (exit $ac_status); } && {
39729          test -z "$ac_c_werror_flag" ||
39730          test ! -s conftest.err
39731        } && test -s conftest$ac_exeext && {
39732          test "$cross_compiling" = yes ||
39733          $as_test_x conftest$ac_exeext
39734        }; then
39735   am_cv_lib_iconv=yes
39736         am_cv_func_iconv=yes
39737 else
39738   $as_echo "$as_me: failed program was:" >&5
39739 sed 's/^/| /' conftest.$ac_ext >&5
39740
39741
39742 fi
39743
39744 rm -rf conftest.dSYM
39745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39746       conftest$ac_exeext conftest.$ac_ext
39747       LIBS="$am_save_LIBS"
39748     fi
39749
39750 fi
39751 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39752 $as_echo "$am_cv_func_iconv" >&6; }
39753   if test "$am_cv_func_iconv" = yes; then
39754
39755 cat >>confdefs.h <<\_ACEOF
39756 #define HAVE_ICONV 1
39757 _ACEOF
39758
39759   fi
39760   if test "$am_cv_lib_iconv" = yes; then
39761     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
39762 $as_echo_n "checking how to link with libiconv... " >&6; }
39763     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
39764 $as_echo "$LIBICONV" >&6; }
39765   else
39766             CPPFLAGS="$am_save_CPPFLAGS"
39767     LIBICONV=
39768     LTLIBICONV=
39769   fi
39770
39771
39772
39773
39774
39775
39776
39777     use_additional=yes
39778
39779   acl_save_prefix="$prefix"
39780   prefix="$acl_final_prefix"
39781   acl_save_exec_prefix="$exec_prefix"
39782   exec_prefix="$acl_final_exec_prefix"
39783
39784     eval additional_includedir=\"$includedir\"
39785     eval additional_libdir=\"$libdir\"
39786
39787   exec_prefix="$acl_save_exec_prefix"
39788   prefix="$acl_save_prefix"
39789
39790
39791 # Check whether --with-libintl-prefix was given.
39792 if test "${with_libintl_prefix+set}" = set; then
39793   withval=$with_libintl_prefix;
39794     if test "X$withval" = "Xno"; then
39795       use_additional=no
39796     else
39797       if test "X$withval" = "X"; then
39798
39799   acl_save_prefix="$prefix"
39800   prefix="$acl_final_prefix"
39801   acl_save_exec_prefix="$exec_prefix"
39802   exec_prefix="$acl_final_exec_prefix"
39803
39804           eval additional_includedir=\"$includedir\"
39805           eval additional_libdir=\"$libdir\"
39806
39807   exec_prefix="$acl_save_exec_prefix"
39808   prefix="$acl_save_prefix"
39809
39810       else
39811         additional_includedir="$withval/include"
39812         additional_libdir="$withval/$acl_libdirstem"
39813       fi
39814     fi
39815
39816 fi
39817
39818       LIBINTL=
39819   LTLIBINTL=
39820   INCINTL=
39821   rpathdirs=
39822   ltrpathdirs=
39823   names_already_handled=
39824   names_next_round='intl '
39825   while test -n "$names_next_round"; do
39826     names_this_round="$names_next_round"
39827     names_next_round=
39828     for name in $names_this_round; do
39829       already_handled=
39830       for n in $names_already_handled; do
39831         if test "$n" = "$name"; then
39832           already_handled=yes
39833           break
39834         fi
39835       done
39836       if test -z "$already_handled"; then
39837         names_already_handled="$names_already_handled $name"
39838                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39839         eval value=\"\$HAVE_LIB$uppername\"
39840         if test -n "$value"; then
39841           if test "$value" = yes; then
39842             eval value=\"\$LIB$uppername\"
39843             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
39844             eval value=\"\$LTLIB$uppername\"
39845             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
39846           else
39847                                     :
39848           fi
39849         else
39850                               found_dir=
39851           found_la=
39852           found_so=
39853           found_a=
39854           if test $use_additional = yes; then
39855             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39856               found_dir="$additional_libdir"
39857               found_so="$additional_libdir/lib$name.$shlibext"
39858               if test -f "$additional_libdir/lib$name.la"; then
39859                 found_la="$additional_libdir/lib$name.la"
39860               fi
39861             else
39862               if test -f "$additional_libdir/lib$name.$libext"; then
39863                 found_dir="$additional_libdir"
39864                 found_a="$additional_libdir/lib$name.$libext"
39865                 if test -f "$additional_libdir/lib$name.la"; then
39866                   found_la="$additional_libdir/lib$name.la"
39867                 fi
39868               fi
39869             fi
39870           fi
39871           if test "X$found_dir" = "X"; then
39872             for x in $LDFLAGS $LTLIBINTL; do
39873
39874   acl_save_prefix="$prefix"
39875   prefix="$acl_final_prefix"
39876   acl_save_exec_prefix="$exec_prefix"
39877   exec_prefix="$acl_final_exec_prefix"
39878   eval x=\"$x\"
39879   exec_prefix="$acl_save_exec_prefix"
39880   prefix="$acl_save_prefix"
39881
39882               case "$x" in
39883                 -L*)
39884                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39885                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39886                     found_dir="$dir"
39887                     found_so="$dir/lib$name.$shlibext"
39888                     if test -f "$dir/lib$name.la"; then
39889                       found_la="$dir/lib$name.la"
39890                     fi
39891                   else
39892                     if test -f "$dir/lib$name.$libext"; then
39893                       found_dir="$dir"
39894                       found_a="$dir/lib$name.$libext"
39895                       if test -f "$dir/lib$name.la"; then
39896                         found_la="$dir/lib$name.la"
39897                       fi
39898                     fi
39899                   fi
39900                   ;;
39901               esac
39902               if test "X$found_dir" != "X"; then
39903                 break
39904               fi
39905             done
39906           fi
39907           if test "X$found_dir" != "X"; then
39908                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
39909             if test "X$found_so" != "X"; then
39910                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39911                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39912               else
39913                                                                                 haveit=
39914                 for x in $ltrpathdirs; do
39915                   if test "X$x" = "X$found_dir"; then
39916                     haveit=yes
39917                     break
39918                   fi
39919                 done
39920                 if test -z "$haveit"; then
39921                   ltrpathdirs="$ltrpathdirs $found_dir"
39922                 fi
39923                                 if test "$hardcode_direct" = yes; then
39924                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39925                 else
39926                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39927                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39928                                                             haveit=
39929                     for x in $rpathdirs; do
39930                       if test "X$x" = "X$found_dir"; then
39931                         haveit=yes
39932                         break
39933                       fi
39934                     done
39935                     if test -z "$haveit"; then
39936                       rpathdirs="$rpathdirs $found_dir"
39937                     fi
39938                   else
39939                                                                                 haveit=
39940                     for x in $LDFLAGS $LIBINTL; do
39941
39942   acl_save_prefix="$prefix"
39943   prefix="$acl_final_prefix"
39944   acl_save_exec_prefix="$exec_prefix"
39945   exec_prefix="$acl_final_exec_prefix"
39946   eval x=\"$x\"
39947   exec_prefix="$acl_save_exec_prefix"
39948   prefix="$acl_save_prefix"
39949
39950                       if test "X$x" = "X-L$found_dir"; then
39951                         haveit=yes
39952                         break
39953                       fi
39954                     done
39955                     if test -z "$haveit"; then
39956                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39957                     fi
39958                     if test "$hardcode_minus_L" != no; then
39959                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39960                     else
39961                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39962                     fi
39963                   fi
39964                 fi
39965               fi
39966             else
39967               if test "X$found_a" != "X"; then
39968                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39969               else
39970                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39971               fi
39972             fi
39973                         additional_includedir=
39974             case "$found_dir" in
39975               */$acl_libdirstem | */$acl_libdirstem/)
39976                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39977                 additional_includedir="$basedir/include"
39978                 ;;
39979             esac
39980             if test "X$additional_includedir" != "X"; then
39981                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39982                 haveit=
39983                 if test "X$additional_includedir" = "X/usr/local/include"; then
39984                   if test -n "$GCC"; then
39985                     case $host_os in
39986                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39987                     esac
39988                   fi
39989                 fi
39990                 if test -z "$haveit"; then
39991                   for x in $CPPFLAGS $INCINTL; do
39992
39993   acl_save_prefix="$prefix"
39994   prefix="$acl_final_prefix"
39995   acl_save_exec_prefix="$exec_prefix"
39996   exec_prefix="$acl_final_exec_prefix"
39997   eval x=\"$x\"
39998   exec_prefix="$acl_save_exec_prefix"
39999   prefix="$acl_save_prefix"
40000
40001                     if test "X$x" = "X-I$additional_includedir"; then
40002                       haveit=yes
40003                       break
40004                     fi
40005                   done
40006                   if test -z "$haveit"; then
40007                     if test -d "$additional_includedir"; then
40008                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40009                     fi
40010                   fi
40011                 fi
40012               fi
40013             fi
40014                         if test -n "$found_la"; then
40015                                                         save_libdir="$libdir"
40016               case "$found_la" in
40017                 */* | *\\*) . "$found_la" ;;
40018                 *) . "./$found_la" ;;
40019               esac
40020               libdir="$save_libdir"
40021                             for dep in $dependency_libs; do
40022                 case "$dep" in
40023                   -L*)
40024                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
40025                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
40026                       haveit=
40027                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
40028                         if test -n "$GCC"; then
40029                           case $host_os in
40030                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
40031                           esac
40032                         fi
40033                       fi
40034                       if test -z "$haveit"; then
40035                         haveit=
40036                         for x in $LDFLAGS $LIBINTL; do
40037
40038   acl_save_prefix="$prefix"
40039   prefix="$acl_final_prefix"
40040   acl_save_exec_prefix="$exec_prefix"
40041   exec_prefix="$acl_final_exec_prefix"
40042   eval x=\"$x\"
40043   exec_prefix="$acl_save_exec_prefix"
40044   prefix="$acl_save_prefix"
40045
40046                           if test "X$x" = "X-L$additional_libdir"; then
40047                             haveit=yes
40048                             break
40049                           fi
40050                         done
40051                         if test -z "$haveit"; then
40052                           if test -d "$additional_libdir"; then
40053                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40054                           fi
40055                         fi
40056                         haveit=
40057                         for x in $LDFLAGS $LTLIBINTL; do
40058
40059   acl_save_prefix="$prefix"
40060   prefix="$acl_final_prefix"
40061   acl_save_exec_prefix="$exec_prefix"
40062   exec_prefix="$acl_final_exec_prefix"
40063   eval x=\"$x\"
40064   exec_prefix="$acl_save_exec_prefix"
40065   prefix="$acl_save_prefix"
40066
40067                           if test "X$x" = "X-L$additional_libdir"; then
40068                             haveit=yes
40069                             break
40070                           fi
40071                         done
40072                         if test -z "$haveit"; then
40073                           if test -d "$additional_libdir"; then
40074                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40075                           fi
40076                         fi
40077                       fi
40078                     fi
40079                     ;;
40080                   -R*)
40081                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
40082                     if test "$enable_rpath" != no; then
40083                                                                   haveit=
40084                       for x in $rpathdirs; do
40085                         if test "X$x" = "X$dir"; then
40086                           haveit=yes
40087                           break
40088                         fi
40089                       done
40090                       if test -z "$haveit"; then
40091                         rpathdirs="$rpathdirs $dir"
40092                       fi
40093                                                                   haveit=
40094                       for x in $ltrpathdirs; do
40095                         if test "X$x" = "X$dir"; then
40096                           haveit=yes
40097                           break
40098                         fi
40099                       done
40100                       if test -z "$haveit"; then
40101                         ltrpathdirs="$ltrpathdirs $dir"
40102                       fi
40103                     fi
40104                     ;;
40105                   -l*)
40106                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40107                     ;;
40108                   *.la)
40109                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40110                     ;;
40111                   *)
40112                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40113                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40114                     ;;
40115                 esac
40116               done
40117             fi
40118           else
40119                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40120             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40121           fi
40122         fi
40123       fi
40124     done
40125   done
40126   if test "X$rpathdirs" != "X"; then
40127     if test -n "$hardcode_libdir_separator"; then
40128                         alldirs=
40129       for found_dir in $rpathdirs; do
40130         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40131       done
40132             acl_save_libdir="$libdir"
40133       libdir="$alldirs"
40134       eval flag=\"$hardcode_libdir_flag_spec\"
40135       libdir="$acl_save_libdir"
40136       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40137     else
40138             for found_dir in $rpathdirs; do
40139         acl_save_libdir="$libdir"
40140         libdir="$found_dir"
40141         eval flag=\"$hardcode_libdir_flag_spec\"
40142         libdir="$acl_save_libdir"
40143         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40144       done
40145     fi
40146   fi
40147   if test "X$ltrpathdirs" != "X"; then
40148             for found_dir in $ltrpathdirs; do
40149       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40150     done
40151   fi
40152
40153           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40154 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
40155 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
40156   $as_echo_n "(cached) " >&6
40157 else
40158   gt_save_CPPFLAGS="$CPPFLAGS"
40159             CPPFLAGS="$CPPFLAGS $INCINTL"
40160             gt_save_LIBS="$LIBS"
40161             LIBS="$LIBS $LIBINTL"
40162                         cat >conftest.$ac_ext <<_ACEOF
40163 /* confdefs.h.  */
40164 _ACEOF
40165 cat confdefs.h >>conftest.$ac_ext
40166 cat >>conftest.$ac_ext <<_ACEOF
40167 /* end confdefs.h.  */
40168 #include <libintl.h>
40169 extern int _nl_msg_cat_cntr;
40170 extern
40171 #ifdef __cplusplus
40172 "C"
40173 #endif
40174 const char *_nl_expand_alias (const char *);
40175 int
40176 main ()
40177 {
40178 bindtextdomain ("", "");
40179 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40180   ;
40181   return 0;
40182 }
40183 _ACEOF
40184 rm -f conftest.$ac_objext conftest$ac_exeext
40185 if { (ac_try="$ac_link"
40186 case "(($ac_try" in
40187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40188   *) ac_try_echo=$ac_try;;
40189 esac
40190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40191 $as_echo "$ac_try_echo") >&5
40192   (eval "$ac_link") 2>conftest.er1
40193   ac_status=$?
40194   grep -v '^ *+' conftest.er1 >conftest.err
40195   rm -f conftest.er1
40196   cat conftest.err >&5
40197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198   (exit $ac_status); } && {
40199          test -z "$ac_c_werror_flag" ||
40200          test ! -s conftest.err
40201        } && test -s conftest$ac_exeext && {
40202          test "$cross_compiling" = yes ||
40203          $as_test_x conftest$ac_exeext
40204        }; then
40205   gt_cv_func_gnugettext1_libintl=yes
40206 else
40207   $as_echo "$as_me: failed program was:" >&5
40208 sed 's/^/| /' conftest.$ac_ext >&5
40209
40210         gt_cv_func_gnugettext1_libintl=no
40211 fi
40212
40213 rm -rf conftest.dSYM
40214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40215       conftest$ac_exeext conftest.$ac_ext
40216                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
40217               LIBS="$LIBS $LIBICONV"
40218               cat >conftest.$ac_ext <<_ACEOF
40219 /* confdefs.h.  */
40220 _ACEOF
40221 cat confdefs.h >>conftest.$ac_ext
40222 cat >>conftest.$ac_ext <<_ACEOF
40223 /* end confdefs.h.  */
40224 #include <libintl.h>
40225 extern int _nl_msg_cat_cntr;
40226 extern
40227 #ifdef __cplusplus
40228 "C"
40229 #endif
40230 const char *_nl_expand_alias (const char *);
40231 int
40232 main ()
40233 {
40234 bindtextdomain ("", "");
40235 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40236   ;
40237   return 0;
40238 }
40239 _ACEOF
40240 rm -f conftest.$ac_objext conftest$ac_exeext
40241 if { (ac_try="$ac_link"
40242 case "(($ac_try" in
40243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40244   *) ac_try_echo=$ac_try;;
40245 esac
40246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40247 $as_echo "$ac_try_echo") >&5
40248   (eval "$ac_link") 2>conftest.er1
40249   ac_status=$?
40250   grep -v '^ *+' conftest.er1 >conftest.err
40251   rm -f conftest.er1
40252   cat conftest.err >&5
40253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40254   (exit $ac_status); } && {
40255          test -z "$ac_c_werror_flag" ||
40256          test ! -s conftest.err
40257        } && test -s conftest$ac_exeext && {
40258          test "$cross_compiling" = yes ||
40259          $as_test_x conftest$ac_exeext
40260        }; then
40261   LIBINTL="$LIBINTL $LIBICONV"
40262                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40263                 gt_cv_func_gnugettext1_libintl=yes
40264
40265 else
40266   $as_echo "$as_me: failed program was:" >&5
40267 sed 's/^/| /' conftest.$ac_ext >&5
40268
40269
40270 fi
40271
40272 rm -rf conftest.dSYM
40273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40274       conftest$ac_exeext conftest.$ac_ext
40275             fi
40276             CPPFLAGS="$gt_save_CPPFLAGS"
40277             LIBS="$gt_save_LIBS"
40278 fi
40279 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
40280 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
40281         fi
40282
40283                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
40284            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
40285                 && test "$PACKAGE" != gettext-runtime \
40286                 && test "$PACKAGE" != gettext-tools; }; then
40287           gt_use_preinstalled_gnugettext=yes
40288         else
40289                     LIBINTL=
40290           LTLIBINTL=
40291           INCINTL=
40292         fi
40293
40294
40295
40296     if test -n "$INTL_MACOSX_LIBS"; then
40297       if test "$gt_use_preinstalled_gnugettext" = "yes" \
40298          || test "$nls_cv_use_gnu_gettext" = "yes"; then
40299                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
40300         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
40301       fi
40302     fi
40303
40304     if test "$gt_use_preinstalled_gnugettext" = "yes" \
40305        || test "$nls_cv_use_gnu_gettext" = "yes"; then
40306
40307 cat >>confdefs.h <<\_ACEOF
40308 #define ENABLE_NLS 1
40309 _ACEOF
40310
40311     else
40312       USE_NLS=no
40313     fi
40314   fi
40315
40316   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
40317 $as_echo_n "checking whether to use NLS... " >&6; }
40318   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
40319 $as_echo "$USE_NLS" >&6; }
40320   if test "$USE_NLS" = "yes"; then
40321     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
40322 $as_echo_n "checking where the gettext function comes from... " >&6; }
40323     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40324       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40325         gt_source="external libintl"
40326       else
40327         gt_source="libc"
40328       fi
40329     else
40330       gt_source="included intl directory"
40331     fi
40332     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
40333 $as_echo "$gt_source" >&6; }
40334   fi
40335
40336   if test "$USE_NLS" = "yes"; then
40337
40338     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40339       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40340         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
40341 $as_echo_n "checking how to link with libintl... " >&6; }
40342         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
40343 $as_echo "$LIBINTL" >&6; }
40344
40345   for element in $INCINTL; do
40346     haveit=
40347     for x in $CPPFLAGS; do
40348
40349   acl_save_prefix="$prefix"
40350   prefix="$acl_final_prefix"
40351   acl_save_exec_prefix="$exec_prefix"
40352   exec_prefix="$acl_final_exec_prefix"
40353   eval x=\"$x\"
40354   exec_prefix="$acl_save_exec_prefix"
40355   prefix="$acl_save_prefix"
40356
40357       if test "X$x" = "X$element"; then
40358         haveit=yes
40359         break
40360       fi
40361     done
40362     if test -z "$haveit"; then
40363       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40364     fi
40365   done
40366
40367       fi
40368
40369
40370 cat >>confdefs.h <<\_ACEOF
40371 #define HAVE_GETTEXT 1
40372 _ACEOF
40373
40374
40375 cat >>confdefs.h <<\_ACEOF
40376 #define HAVE_DCGETTEXT 1
40377 _ACEOF
40378
40379     fi
40380
40381         POSUB=po
40382   fi
40383
40384
40385
40386     INTLLIBS="$LIBINTL"
40387
40388
40389
40390
40391
40392
40393
40394 #
40395 # Security (authentication) mechansims
40396 #
40397
40398     BSD_SECURITY="yes"
40399
40400 # Check whether --with-bsd-security was given.
40401 if test "${with_bsd_security+set}" = set; then
40402   withval=$with_bsd_security;
40403             case "$withval" in
40404                 n | no) BSD_SECURITY=no ;;
40405                 y |  ye | yes) BSD_SECURITY=yes ;;
40406                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
40407 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
40408    { (exit 1); exit 1; }; }
40409                     ;;
40410             esac
40411
40412 fi
40413
40414
40415     USE_AMANDAHOSTS=yes
40416
40417 # Check whether --with-amandahosts was given.
40418 if test "${with_amandahosts+set}" = set; then
40419   withval=$with_amandahosts;
40420             case "$withval" in
40421                 n | no ) USE_AMANDAHOSTS=no ;;
40422                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
40423                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
40424 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
40425    { (exit 1); exit 1; }; }
40426                   ;;
40427             esac
40428
40429
40430 fi
40431
40432
40433     if test "x$BSD_SECURITY" = "xyes"; then
40434
40435 cat >>confdefs.h <<\_ACEOF
40436 #define BSD_SECURITY 1
40437 _ACEOF
40438
40439         if test "x$USE_AMANDAHOSTS" = "xyes"; then
40440
40441 cat >>confdefs.h <<\_ACEOF
40442 #define USE_AMANDAHOSTS 1
40443 _ACEOF
40444
40445         fi
40446     fi
40447
40448      if test x"$BSD_SECURITY" = x"yes"; then
40449   WANT_BSD_SECURITY_TRUE=
40450   WANT_BSD_SECURITY_FALSE='#'
40451 else
40452   WANT_BSD_SECURITY_TRUE='#'
40453   WANT_BSD_SECURITY_FALSE=
40454 fi
40455
40456
40457
40458
40459
40460     BSDTCP_SECURITY="yes"
40461
40462 # Check whether --with-bsdtcp-security was given.
40463 if test "${with_bsdtcp_security+set}" = set; then
40464   withval=$with_bsdtcp_security;
40465             case "$withval" in
40466                 n | no) BSDTCP_SECURITY=no ;;
40467                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
40468                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
40469 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
40470    { (exit 1); exit 1; }; }
40471               ;;
40472             esac
40473
40474 fi
40475
40476
40477     if test "x$BSDTCP_SECURITY" = "xyes"; then
40478
40479 cat >>confdefs.h <<\_ACEOF
40480 #define BSDTCP_SECURITY 1
40481 _ACEOF
40482
40483     fi
40484
40485      if test x"$BSDTCP_SECURITY" = x"yes"; then
40486   WANT_BSDTCP_SECURITY_TRUE=
40487   WANT_BSDTCP_SECURITY_FALSE='#'
40488 else
40489   WANT_BSDTCP_SECURITY_TRUE='#'
40490   WANT_BSDTCP_SECURITY_FALSE=
40491 fi
40492
40493
40494
40495
40496     BSDUDP_SECURITY="no"
40497
40498 # Check whether --with-bsdudp-security was given.
40499 if test "${with_bsdudp_security+set}" = set; then
40500   withval=$with_bsdudp_security;
40501             case "$withval" in
40502                 n | no) : ;;
40503                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
40504                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
40505 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
40506    { (exit 1); exit 1; }; }
40507               ;;
40508             esac
40509
40510 fi
40511
40512
40513     if test "x$BSDUDP_SECURITY" = "xyes"; then
40514
40515 cat >>confdefs.h <<\_ACEOF
40516 #define BSDUDP_SECURITY 1
40517 _ACEOF
40518
40519     fi
40520
40521      if test x"$BSDUDP_SECURITY" = x"yes"; then
40522   WANT_BSDUDP_SECURITY_TRUE=
40523   WANT_BSDUDP_SECURITY_FALSE='#'
40524 else
40525   WANT_BSDUDP_SECURITY_TRUE='#'
40526   WANT_BSDUDP_SECURITY_FALSE=
40527 fi
40528
40529
40530
40531
40532     RSH_SECURITY=no
40533
40534 # Check whether --with-rsh-security was given.
40535 if test "${with_rsh_security+set}" = set; then
40536   withval=$with_rsh_security;
40537             case "$withval" in
40538                 n | no) : ;;
40539                 y |  ye | yes) RSH_SECURITY=yes ;;
40540                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
40541 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
40542    { (exit 1); exit 1; }; }
40543               ;;
40544             esac
40545
40546 fi
40547
40548
40549     if test "x$RSH_SECURITY" = "xyes"; then
40550
40551 cat >>confdefs.h <<\_ACEOF
40552 #define RSH_SECURITY 1
40553 _ACEOF
40554
40555     fi
40556      if test x"$RSH_SECURITY" = x"yes"; then
40557   WANT_RSH_SECURITY_TRUE=
40558   WANT_RSH_SECURITY_FALSE='#'
40559 else
40560   WANT_RSH_SECURITY_TRUE='#'
40561   WANT_RSH_SECURITY_FALSE=
40562 fi
40563
40564
40565
40566
40567     SSH_SECURITY=yes
40568
40569 # Check whether --with-ssh-security was given.
40570 if test "${with_ssh_security+set}" = set; then
40571   withval=$with_ssh_security;
40572             case "$withval" in
40573                 n | no) SSH_SECURITY=no ;;
40574                 y |  ye | yes) SSH_SECURITY=yes ;;
40575                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
40576 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
40577    { (exit 1); exit 1; }; }
40578               ;;
40579             esac
40580
40581 fi
40582
40583
40584     if test "x$SSH_SECURITY" = "xyes"; then
40585         # find the SSH binary
40586         for ac_prog in ssh
40587 do
40588   # Extract the first word of "$ac_prog", so it can be a program name with args.
40589 set dummy $ac_prog; ac_word=$2
40590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40591 $as_echo_n "checking for $ac_word... " >&6; }
40592 if test "${ac_cv_path_SSH+set}" = set; then
40593   $as_echo_n "(cached) " >&6
40594 else
40595   case $SSH in
40596   [\\/]* | ?:[\\/]*)
40597   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
40598   ;;
40599   *)
40600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40601 for as_dir in $LOCSYSPATH
40602 do
40603   IFS=$as_save_IFS
40604   test -z "$as_dir" && as_dir=.
40605   for ac_exec_ext in '' $ac_executable_extensions; do
40606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40607     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
40608     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40609     break 2
40610   fi
40611 done
40612 done
40613 IFS=$as_save_IFS
40614
40615   ;;
40616 esac
40617 fi
40618 SSH=$ac_cv_path_SSH
40619 if test -n "$SSH"; then
40620   { $as_echo "$as_me:$LINENO: result: $SSH" >&5
40621 $as_echo "$SSH" >&6; }
40622 else
40623   { $as_echo "$as_me:$LINENO: result: no" >&5
40624 $as_echo "no" >&6; }
40625 fi
40626
40627
40628   test -n "$SSH" && break
40629 done
40630
40631
40632         # see what options we should use
40633
40634 # Check whether --with-ssh-options was given.
40635 if test "${with_ssh_options+set}" = set; then
40636   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
40637 else
40638    SSH_OPTIONS=''
40639
40640 fi
40641
40642
40643         case "$SSH_OPTIONS" in
40644             y | ye | yes | n | no)
40645                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
40646 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
40647    { (exit 1); exit 1; }; };;
40648             *) : ;;
40649         esac
40650
40651         { $as_echo "$as_me:$LINENO: checking SSH options" >&5
40652 $as_echo_n "checking SSH options... " >&6; }
40653         # if we didn't get SSH options from the user, figure them out for ourselves
40654         if test -z "$SSH_OPTIONS"; then
40655             case `$SSH -V 2>&1` in
40656                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
40657                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
40658             esac
40659         fi
40660
40661         # now convert that to a comma-separated list of C strings
40662         eval "set dummy ${SSH_OPTIONS}"; shift
40663         SSH_OPTIONS=''
40664         for i in "${@}"; do
40665             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
40666             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
40667         done
40668         { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
40669 $as_echo "$SSH_OPTIONS" >&6; }
40670
40671         # finally, make the various outputs for all of this
40672
40673 cat >>confdefs.h <<\_ACEOF
40674 #define SSH_SECURITY 1
40675 _ACEOF
40676
40677
40678 cat >>confdefs.h <<_ACEOF
40679 #define SSH "$SSH"
40680 _ACEOF
40681
40682
40683 cat >>confdefs.h <<_ACEOF
40684 #define SSH_OPTIONS $SSH_OPTIONS
40685 _ACEOF
40686
40687     fi
40688      if test x"$SSH_SECURITY" = x"yes"; then
40689   WANT_SSH_SECURITY_TRUE=
40690   WANT_SSH_SECURITY_FALSE='#'
40691 else
40692   WANT_SSH_SECURITY_TRUE='#'
40693   WANT_SSH_SECURITY_FALSE=
40694 fi
40695
40696
40697
40698     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
40699
40700
40701     # Specify --with-krb5-security if Kerberos software is in somewhere
40702     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
40703     # if the right files are there.
40704
40705     KRB5_SECURITY="no"
40706     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
40707
40708
40709 # Check whether --with-krb5-security was given.
40710 if test "${with_krb5_security+set}" = set; then
40711   withval=$with_krb5_security;
40712             case "$withval" in
40713                 n | no) KRB5_SECURITY=no ;;
40714                 y | ye | yes) KRB5_SECURITY=yes ;;
40715                 *) KRB5_SPOTS="$KRB5_SECURITY"
40716                    KRB5_SECURITY=yes
40717                    ;;
40718             esac
40719
40720
40721 fi
40722
40723
40724     if test "x$KRB5_SECURITY" = "xyes"; then
40725         # if found, force the static versions of these libs (.a) by linking directly
40726         # with the .a files.  I don't know how to get -R dependancies checked
40727         # in autoconf at this time. -kashmir
40728         { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
40729 $as_echo_n "checking for Kerberos V libraries... " >&6; }
40730         KRB5_DIR_FOUND=""
40731         for dir in $KRB5_SPOTS; do
40732           for lib in lib lib64; do
40733             k5libdir=${dir}/${lib}
40734             if test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libgssapi_krb5.so -o -f ${k5libdir}/libgssapi_krb5.a \) -a \( -f ${k5libdir}/libcom_err.a -o -f ${k5libdir}/libcom_err.so \); then
40735                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
40736                     K5CRYPTO=-lk5crypto
40737                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
40738                     K5CRYPTO=-lcrypto
40739                 else
40740                     K5CRYPTO=""
40741                 fi
40742                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
40743                     K5SUPPORT=-lkrb5support
40744                 else
40745                     K5SUPPORT=""
40746                 fi
40747                 KRB5_DIR_FOUND=$dir
40748                 KRB5_LIBDIR_FOUND=$k5libdir
40749                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
40750
40751                 break
40752             elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
40753                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
40754
40755                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
40756
40757                 break
40758             fi
40759           done
40760         done
40761
40762         if test "$KRB5_DIR_FOUND"; then
40763             { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
40764 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
40765             #
40766             # some OS's, such as NetBSD, stick krb5 includes out of the way...
40767             # should probably just use autoconf to look for various include
40768             # options and set them, but don't quite want to do that until I've
40769             # dug into it a bit more.
40770             #
40771             if test -d "$KRB5_DIR_FOUND/krb5" ; then
40772                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
40773
40774             else
40775                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
40776
40777             fi
40778
40779 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
40780 $as_echo_n "checking for main in -lkrb5support... " >&6; }
40781 if test "${ac_cv_lib_krb5support_main+set}" = set; then
40782   $as_echo_n "(cached) " >&6
40783 else
40784   ac_check_lib_save_LIBS=$LIBS
40785 LIBS="-lkrb5support  $LIBS"
40786 cat >conftest.$ac_ext <<_ACEOF
40787 /* confdefs.h.  */
40788 _ACEOF
40789 cat confdefs.h >>conftest.$ac_ext
40790 cat >>conftest.$ac_ext <<_ACEOF
40791 /* end confdefs.h.  */
40792
40793
40794 int
40795 main ()
40796 {
40797 return main ();
40798   ;
40799   return 0;
40800 }
40801 _ACEOF
40802 rm -f conftest.$ac_objext conftest$ac_exeext
40803 if { (ac_try="$ac_link"
40804 case "(($ac_try" in
40805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40806   *) ac_try_echo=$ac_try;;
40807 esac
40808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40809 $as_echo "$ac_try_echo") >&5
40810   (eval "$ac_link") 2>conftest.er1
40811   ac_status=$?
40812   grep -v '^ *+' conftest.er1 >conftest.err
40813   rm -f conftest.er1
40814   cat conftest.err >&5
40815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40816   (exit $ac_status); } && {
40817          test -z "$ac_c_werror_flag" ||
40818          test ! -s conftest.err
40819        } && test -s conftest$ac_exeext && {
40820          test "$cross_compiling" = yes ||
40821          $as_test_x conftest$ac_exeext
40822        }; then
40823   ac_cv_lib_krb5support_main=yes
40824 else
40825   $as_echo "$as_me: failed program was:" >&5
40826 sed 's/^/| /' conftest.$ac_ext >&5
40827
40828         ac_cv_lib_krb5support_main=no
40829 fi
40830
40831 rm -rf conftest.dSYM
40832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40833       conftest$ac_exeext conftest.$ac_ext
40834 LIBS=$ac_check_lib_save_LIBS
40835 fi
40836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
40837 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
40838 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
40839   cat >>confdefs.h <<_ACEOF
40840 #define HAVE_LIBKRB5SUPPORT 1
40841 _ACEOF
40842
40843   LIBS="-lkrb5support $LIBS"
40844
40845 fi
40846
40847
40848             if test "$KRB5_LIBDIR_FOUND" != "$libdir" ; then
40849                 LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
40850
40851             fi
40852
40853
40854 cat >>confdefs.h <<\_ACEOF
40855 #define KRB5_SECURITY 1
40856 _ACEOF
40857
40858         else
40859             { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
40860 $as_echo "no krb5 system libraries found" >&6; }
40861             { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
40862 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
40863    { (exit 1); exit 1; }; }
40864             KRB5_SECURITY="no"
40865         fi
40866     fi
40867
40868      if test x"$KRB5_SECURITY" = x"yes"; then
40869   WANT_KRB5_SECURITY_TRUE=
40870   WANT_KRB5_SECURITY_FALSE='#'
40871 else
40872   WANT_KRB5_SECURITY_TRUE='#'
40873   WANT_KRB5_SECURITY_FALSE=
40874 fi
40875
40876
40877
40878
40879 #
40880 # Dumpers
40881 #
40882
40883
40884
40885     for ac_prog in xfsdump
40886 do
40887   # Extract the first word of "$ac_prog", so it can be a program name with args.
40888 set dummy $ac_prog; ac_word=$2
40889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40890 $as_echo_n "checking for $ac_word... " >&6; }
40891 if test "${ac_cv_path_XFSDUMP+set}" = set; then
40892   $as_echo_n "(cached) " >&6
40893 else
40894   case $XFSDUMP in
40895   [\\/]* | ?:[\\/]*)
40896   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
40897   ;;
40898   *)
40899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40900 for as_dir in $SYSLOCPATH
40901 do
40902   IFS=$as_save_IFS
40903   test -z "$as_dir" && as_dir=.
40904   for ac_exec_ext in '' $ac_executable_extensions; do
40905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40906     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
40907     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40908     break 2
40909   fi
40910 done
40911 done
40912 IFS=$as_save_IFS
40913
40914   ;;
40915 esac
40916 fi
40917 XFSDUMP=$ac_cv_path_XFSDUMP
40918 if test -n "$XFSDUMP"; then
40919   { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
40920 $as_echo "$XFSDUMP" >&6; }
40921 else
40922   { $as_echo "$as_me:$LINENO: result: no" >&5
40923 $as_echo "no" >&6; }
40924 fi
40925
40926
40927   test -n "$XFSDUMP" && break
40928 done
40929
40930     for ac_prog in xfsrestore
40931 do
40932   # Extract the first word of "$ac_prog", so it can be a program name with args.
40933 set dummy $ac_prog; ac_word=$2
40934 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40935 $as_echo_n "checking for $ac_word... " >&6; }
40936 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
40937   $as_echo_n "(cached) " >&6
40938 else
40939   case $XFSRESTORE in
40940   [\\/]* | ?:[\\/]*)
40941   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
40942   ;;
40943   *)
40944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40945 for as_dir in $SYSLOCPATH
40946 do
40947   IFS=$as_save_IFS
40948   test -z "$as_dir" && as_dir=.
40949   for ac_exec_ext in '' $ac_executable_extensions; do
40950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40951     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
40952     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40953     break 2
40954   fi
40955 done
40956 done
40957 IFS=$as_save_IFS
40958
40959   ;;
40960 esac
40961 fi
40962 XFSRESTORE=$ac_cv_path_XFSRESTORE
40963 if test -n "$XFSRESTORE"; then
40964   { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
40965 $as_echo "$XFSRESTORE" >&6; }
40966 else
40967   { $as_echo "$as_me:$LINENO: result: no" >&5
40968 $as_echo "no" >&6; }
40969 fi
40970
40971
40972   test -n "$XFSRESTORE" && break
40973 done
40974
40975     if test "$XFSDUMP" -a "$XFSRESTORE"; then
40976
40977 cat >>confdefs.h <<_ACEOF
40978 #define XFSDUMP "$XFSDUMP"
40979 _ACEOF
40980
40981
40982 cat >>confdefs.h <<_ACEOF
40983 #define XFSRESTORE "$XFSRESTORE"
40984 _ACEOF
40985
40986
40987     { $as_echo "$as_me:$LINENO: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&5
40988 $as_echo "$as_me: WARNING: xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h" >&2;}
40989
40990
40991     cat <<AAW_EOF >>config.warnings
40992 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
40993 AAW_EOF
40994
40995
40996     fi
40997
40998
40999
41000
41001     # Extract the first word of "vxdump", so it can be a program name with args.
41002 set dummy vxdump; ac_word=$2
41003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41004 $as_echo_n "checking for $ac_word... " >&6; }
41005 if test "${ac_cv_path_VXDUMP+set}" = set; then
41006   $as_echo_n "(cached) " >&6
41007 else
41008   case $VXDUMP in
41009   [\\/]* | ?:[\\/]*)
41010   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
41011   ;;
41012   *)
41013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41014 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
41015 for as_dir in $as_dummy
41016 do
41017   IFS=$as_save_IFS
41018   test -z "$as_dir" && as_dir=.
41019   for ac_exec_ext in '' $ac_executable_extensions; do
41020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41021     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
41022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41023     break 2
41024   fi
41025 done
41026 done
41027 IFS=$as_save_IFS
41028
41029   ;;
41030 esac
41031 fi
41032 VXDUMP=$ac_cv_path_VXDUMP
41033 if test -n "$VXDUMP"; then
41034   { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
41035 $as_echo "$VXDUMP" >&6; }
41036 else
41037   { $as_echo "$as_me:$LINENO: result: no" >&5
41038 $as_echo "no" >&6; }
41039 fi
41040
41041
41042     # Extract the first word of "vxrestore", so it can be a program name with args.
41043 set dummy vxrestore; ac_word=$2
41044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41045 $as_echo_n "checking for $ac_word... " >&6; }
41046 if test "${ac_cv_path_VXRESTORE+set}" = set; then
41047   $as_echo_n "(cached) " >&6
41048 else
41049   case $VXRESTORE in
41050   [\\/]* | ?:[\\/]*)
41051   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
41052   ;;
41053   *)
41054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41055 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
41056 for as_dir in $as_dummy
41057 do
41058   IFS=$as_save_IFS
41059   test -z "$as_dir" && as_dir=.
41060   for ac_exec_ext in '' $ac_executable_extensions; do
41061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41062     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
41063     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41064     break 2
41065   fi
41066 done
41067 done
41068 IFS=$as_save_IFS
41069
41070   ;;
41071 esac
41072 fi
41073 VXRESTORE=$ac_cv_path_VXRESTORE
41074 if test -n "$VXRESTORE"; then
41075   { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
41076 $as_echo "$VXRESTORE" >&6; }
41077 else
41078   { $as_echo "$as_me:$LINENO: result: no" >&5
41079 $as_echo "no" >&6; }
41080 fi
41081
41082
41083     if test "$VXDUMP" -a "$VXRESTORE"; then
41084
41085 cat >>confdefs.h <<_ACEOF
41086 #define VXDUMP "$VXDUMP"
41087 _ACEOF
41088
41089
41090 cat >>confdefs.h <<_ACEOF
41091 #define VXRESTORE "$VXRESTORE"
41092 _ACEOF
41093
41094     fi
41095
41096
41097
41098
41099     # Extract the first word of "vdump", so it can be a program name with args.
41100 set dummy vdump; ac_word=$2
41101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41102 $as_echo_n "checking for $ac_word... " >&6; }
41103 if test "${ac_cv_path_VDUMP+set}" = set; then
41104   $as_echo_n "(cached) " >&6
41105 else
41106   case $VDUMP in
41107   [\\/]* | ?:[\\/]*)
41108   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
41109   ;;
41110   *)
41111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41112 for as_dir in $SYSLOCPATH
41113 do
41114   IFS=$as_save_IFS
41115   test -z "$as_dir" && as_dir=.
41116   for ac_exec_ext in '' $ac_executable_extensions; do
41117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41118     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
41119     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41120     break 2
41121   fi
41122 done
41123 done
41124 IFS=$as_save_IFS
41125
41126   ;;
41127 esac
41128 fi
41129 VDUMP=$ac_cv_path_VDUMP
41130 if test -n "$VDUMP"; then
41131   { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
41132 $as_echo "$VDUMP" >&6; }
41133 else
41134   { $as_echo "$as_me:$LINENO: result: no" >&5
41135 $as_echo "no" >&6; }
41136 fi
41137
41138
41139     # Extract the first word of "vrestore", so it can be a program name with args.
41140 set dummy vrestore; ac_word=$2
41141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41142 $as_echo_n "checking for $ac_word... " >&6; }
41143 if test "${ac_cv_path_VRESTORE+set}" = set; then
41144   $as_echo_n "(cached) " >&6
41145 else
41146   case $VRESTORE in
41147   [\\/]* | ?:[\\/]*)
41148   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
41149   ;;
41150   *)
41151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41152 for as_dir in $SYSLOCPATH
41153 do
41154   IFS=$as_save_IFS
41155   test -z "$as_dir" && as_dir=.
41156   for ac_exec_ext in '' $ac_executable_extensions; do
41157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41158     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
41159     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41160     break 2
41161   fi
41162 done
41163 done
41164 IFS=$as_save_IFS
41165
41166   ;;
41167 esac
41168 fi
41169 VRESTORE=$ac_cv_path_VRESTORE
41170 if test -n "$VRESTORE"; then
41171   { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
41172 $as_echo "$VRESTORE" >&6; }
41173 else
41174   { $as_echo "$as_me:$LINENO: result: no" >&5
41175 $as_echo "no" >&6; }
41176 fi
41177
41178
41179     if test "$VDUMP" -a "$VRESTORE"; then
41180
41181 cat >>confdefs.h <<_ACEOF
41182 #define VDUMP "$VDUMP"
41183 _ACEOF
41184
41185
41186 cat >>confdefs.h <<_ACEOF
41187 #define VRESTORE "$VRESTORE"
41188 _ACEOF
41189
41190     fi
41191
41192
41193
41194
41195
41196     # Set the order of dump programs to look for.  Finding the proper file
41197     # system dumping program is problematic.  Some systems, notably HP-UX
41198     # and AIX, have both the backup and dump programs.  HP-UX can't use the
41199     # the backup program while AIX systems can't use the dump program.  So
41200     # a variable is set up here to specify the order of dump programs to
41201     # search for on the system.
41202     DUMP_PROGRAMS="ufsdump dump backup"
41203     DUMP_RETURNS_1=
41204     AIX_BACKUP=
41205     case "$host" in
41206         *-dg-*)
41207             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
41208             DUMP_RETURNS_1=1
41209             ;;
41210       *-ibm-aix*)
41211             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
41212             AIX_BACKUP=1
41213
41214 cat >>confdefs.h <<\_ACEOF
41215 #define AIX_BACKUP 1
41216 _ACEOF
41217
41218             ;;
41219       *-ultrix*)
41220             DUMP_RETURNS_1=1
41221             ;;
41222     esac
41223
41224     if test -n "$DUMP_RETURNS_1"; then
41225
41226 cat >>confdefs.h <<\_ACEOF
41227 #define DUMP_RETURNS_1 1
41228 _ACEOF
41229
41230     fi
41231
41232     for ac_prog in $DUMP_PROGRAMS
41233 do
41234   # Extract the first word of "$ac_prog", so it can be a program name with args.
41235 set dummy $ac_prog; ac_word=$2
41236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41237 $as_echo_n "checking for $ac_word... " >&6; }
41238 if test "${ac_cv_path_DUMP+set}" = set; then
41239   $as_echo_n "(cached) " >&6
41240 else
41241   case $DUMP in
41242   [\\/]* | ?:[\\/]*)
41243   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
41244   ;;
41245   *)
41246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41247 for as_dir in $SYSLOCPATH
41248 do
41249   IFS=$as_save_IFS
41250   test -z "$as_dir" && as_dir=.
41251   for ac_exec_ext in '' $ac_executable_extensions; do
41252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41253     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
41254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41255     break 2
41256   fi
41257 done
41258 done
41259 IFS=$as_save_IFS
41260
41261   ;;
41262 esac
41263 fi
41264 DUMP=$ac_cv_path_DUMP
41265 if test -n "$DUMP"; then
41266   { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
41267 $as_echo "$DUMP" >&6; }
41268 else
41269   { $as_echo "$as_me:$LINENO: result: no" >&5
41270 $as_echo "no" >&6; }
41271 fi
41272
41273
41274   test -n "$DUMP" && break
41275 done
41276
41277     for ac_prog in ufsrestore restore
41278 do
41279   # Extract the first word of "$ac_prog", so it can be a program name with args.
41280 set dummy $ac_prog; ac_word=$2
41281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41282 $as_echo_n "checking for $ac_word... " >&6; }
41283 if test "${ac_cv_path_RESTORE+set}" = set; then
41284   $as_echo_n "(cached) " >&6
41285 else
41286   case $RESTORE in
41287   [\\/]* | ?:[\\/]*)
41288   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
41289   ;;
41290   *)
41291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41292 for as_dir in $SYSLOCPATH
41293 do
41294   IFS=$as_save_IFS
41295   test -z "$as_dir" && as_dir=.
41296   for ac_exec_ext in '' $ac_executable_extensions; do
41297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41298     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
41299     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41300     break 2
41301   fi
41302 done
41303 done
41304 IFS=$as_save_IFS
41305
41306   ;;
41307 esac
41308 fi
41309 RESTORE=$ac_cv_path_RESTORE
41310 if test -n "$RESTORE"; then
41311   { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
41312 $as_echo "$RESTORE" >&6; }
41313 else
41314   { $as_echo "$as_me:$LINENO: result: no" >&5
41315 $as_echo "no" >&6; }
41316 fi
41317
41318
41319   test -n "$RESTORE" && break
41320 done
41321
41322
41323     # newer versions of GNU tar include a program named 'backup' which
41324     # does *not* implement the expected 'dump' interface.  Detect that here
41325     # and pretend we never saw it.
41326     if test -n "$DUMP"; then
41327       if test "`basename $DUMP`" = "backup"; then
41328         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
41329         if test $? -eq 0; then
41330           DUMP=
41331         fi
41332       fi
41333     fi
41334
41335     if test "$DUMP" -a "$RESTORE"; then
41336
41337 cat >>confdefs.h <<_ACEOF
41338 #define DUMP "$DUMP"
41339 _ACEOF
41340
41341
41342 cat >>confdefs.h <<_ACEOF
41343 #define RESTORE "$RESTORE"
41344 _ACEOF
41345
41346
41347         # check for an estimate flag
41348         if test -x $DUMP; then
41349             { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
41350 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
41351 if test "${amanda_cv_dump_estimate+set}" = set; then
41352   $as_echo_n "(cached) " >&6
41353 else
41354
41355                     case "$DUMP" in
41356                     *dump)
41357                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
41358                             | $GREP -v Dumping
41359                             | $GREP -v Date
41360                             | $GREP -v Label >conftest.d-E 2>&1'
41361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362   (eval $ac_try) 2>&5
41363   ac_status=$?
41364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365   (exit $ac_status); }; }
41366                         cat conftest.d-E >&5
41367                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
41368                             | $GREP -v Dumping
41369                             | $GREP -v Date
41370                             | $GREP -v Label >conftest.d-S 2>&1'
41371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41372   (eval $ac_try) 2>&5
41373   ac_status=$?
41374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375   (exit $ac_status); }; }
41376                         cat conftest.d-S >&5
41377                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
41378                             | $GREP -v Dumping
41379                             | $GREP -v Date
41380                             | $GREP -v Label >conftest.d 2>&1'
41381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41382   (eval $ac_try) 2>&5
41383   ac_status=$?
41384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385   (exit $ac_status); }; }
41386                         cat conftest.d >&5
41387                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
41388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41389   (eval $ac_try) 2>&5
41390   ac_status=$?
41391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41392   (exit $ac_status); }; }; then
41393                             amanda_cv_dump_estimate=E
41394                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
41395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41396   (eval $ac_try) 2>&5
41397   ac_status=$?
41398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41399   (exit $ac_status); }; }; then
41400                             amanda_cv_dump_estimate=S
41401                         else
41402                             amanda_cv_dump_estimate=no
41403                         fi
41404                         rm -f conftest.d conftest.d-E conftest.d-S
41405                       ;;
41406                     *) amanda_cv_dump_estimate=no
41407                       ;;
41408                     esac
41409
41410 fi
41411 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
41412 $as_echo "$amanda_cv_dump_estimate" >&6; }
41413         else
41414
41415     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
41416 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
41417
41418
41419     cat <<AAW_EOF >>config.warnings
41420 $DUMP is not executable, cannot run -E/-S test
41421 AAW_EOF
41422
41423
41424             amanda_cv_dump_estimate=no
41425         fi
41426         if test "x$amanda_cv_dump_estimate" != xno; then
41427
41428 cat >>confdefs.h <<_ACEOF
41429 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
41430 _ACEOF
41431
41432         fi
41433
41434
41435 # Check whether --with-dump-honor-nodump was given.
41436 if test "${with_dump_honor_nodump+set}" = set; then
41437   withval=$with_dump_honor_nodump;
41438             if test -x $DUMP; then
41439                 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
41440 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
41441 if test "${amanda_cv_honor_nodump+set}" = set; then
41442   $as_echo_n "(cached) " >&6
41443 else
41444
41445                     case "$DUMP" in
41446                     *dump)
41447                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
41448                             | $GREP -v Dumping
41449                             | $GREP -v Date
41450                             | $GREP -v Label >conftest.d-h 2>&1'
41451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41452   (eval $ac_try) 2>&5
41453   ac_status=$?
41454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41455   (exit $ac_status); }; }
41456                         cat conftest.d-h >&5
41457                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
41458                             | $GREP -v Dumping
41459                             | $GREP -v Date
41460                             | $GREP -v Label >conftest.d 2>&1'
41461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41462   (eval $ac_try) 2>&5
41463   ac_status=$?
41464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41465   (exit $ac_status); }; }
41466                         cat conftest.d >&5
41467                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
41468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41469   (eval $ac_try) 2>&5
41470   ac_status=$?
41471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41472   (exit $ac_status); }; }; then
41473                             amanda_cv_honor_nodump=yes
41474                         else
41475                             amanda_cv_honor_nodump=no
41476                         fi
41477                         rm -f conftest.d conftest.d-h
41478                       ;;
41479                     *) amanda_cv_honor_nodump=no
41480                       ;;
41481                     esac
41482
41483 fi
41484 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
41485 $as_echo "$amanda_cv_honor_nodump" >&6; }
41486             else
41487
41488     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
41489 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
41490
41491
41492     cat <<AAW_EOF >>config.warnings
41493 $DUMP is not executable, cannot run -h test
41494 AAW_EOF
41495
41496
41497                 amanda_cv_honor_nodump=no
41498             fi
41499             if test "x$amanda_cv_honor_nodump" = xyes; then
41500
41501 cat >>confdefs.h <<\_ACEOF
41502 #define HAVE_HONOR_NODUMP 1
41503 _ACEOF
41504
41505             fi
41506
41507 fi
41508
41509     fi
41510
41511
41512
41513
41514
41515
41516
41517     # call with
41518
41519 # Check whether --with-gnutar was given.
41520 if test "${with_gnutar+set}" = set; then
41521   withval=$with_gnutar;
41522             # check withval
41523             case "$withval" in
41524                 /*) GNUTAR="$withval";;
41525                 y|ye|yes) :;;
41526                 n|no) GNUTAR=no ;;
41527                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
41528 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
41529    { (exit 1); exit 1; }; };;
41530             esac
41531             # done
41532
41533
41534 fi
41535
41536
41537     if test "x$GNUTAR" = "xno"; then
41538         GNUTAR=
41539     else
41540         OLD_GNUTAR=$GNUTAR
41541         for gnutar_name in gtar gnutar tar; do
41542             for ac_prog in $gnutar_name
41543 do
41544   # Extract the first word of "$ac_prog", so it can be a program name with args.
41545 set dummy $ac_prog; ac_word=$2
41546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41547 $as_echo_n "checking for $ac_word... " >&6; }
41548 if test "${ac_cv_path_GNUTAR+set}" = set; then
41549   $as_echo_n "(cached) " >&6
41550 else
41551   case $GNUTAR in
41552   [\\/]* | ?:[\\/]*)
41553   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
41554   ;;
41555   *)
41556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41557 for as_dir in $LOCSYSPATH
41558 do
41559   IFS=$as_save_IFS
41560   test -z "$as_dir" && as_dir=.
41561   for ac_exec_ext in '' $ac_executable_extensions; do
41562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41563     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
41564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41565     break 2
41566   fi
41567 done
41568 done
41569 IFS=$as_save_IFS
41570
41571   ;;
41572 esac
41573 fi
41574 GNUTAR=$ac_cv_path_GNUTAR
41575 if test -n "$GNUTAR"; then
41576   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
41577 $as_echo "$GNUTAR" >&6; }
41578 else
41579   { $as_echo "$as_me:$LINENO: result: no" >&5
41580 $as_echo "no" >&6; }
41581 fi
41582
41583
41584   test -n "$GNUTAR" && break
41585 done
41586
41587             if test -n "$GNUTAR"; then
41588               case `"$GNUTAR" --version 2>&1` in
41589                *GNU*tar* | *Free*paxutils* )
41590                             # OK, it is GNU tar
41591                             break
41592                             ;;
41593                *)
41594                             if test -n "$OLD_GNUTAR"; then
41595
41596     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
41597 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
41598
41599
41600     cat <<AAW_EOF >>config.warnings
41601 $GNUTAR is not GNU tar, it will be used.
41602 AAW_EOF
41603
41604
41605                             else
41606                                     # warning..
41607
41608     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
41609 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
41610
41611
41612     cat <<AAW_EOF >>config.warnings
41613 $GNUTAR is not GNU tar, so it will not be used.
41614 AAW_EOF
41615
41616
41617                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
41618                                     GNUTAR=''
41619                                     unset ac_cv_path_GNUTAR
41620                             fi
41621                             ;;
41622               esac
41623             fi
41624         done
41625     fi
41626
41627     if test "x$GNUTAR" != "x"; then
41628         # define unquoted
41629
41630 cat >>confdefs.h <<_ACEOF
41631 #define GNUTAR "$GNUTAR"
41632 _ACEOF
41633
41634     fi
41635
41636
41637
41638
41639
41640
41641     # call with
41642
41643 # Check whether --with-star was given.
41644 if test "${with_star+set}" = set; then
41645   withval=$with_star;
41646             # check withval
41647             case "$withval" in
41648                 /*) STAR="$withval";;
41649                 y|ye|yes) :;;
41650                 n|no) STAR=no ;;
41651                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-star" >&5
41652 $as_echo "$as_me: error: *** You must supply a full pathname to --with-star" >&2;}
41653    { (exit 1); exit 1; }; };;
41654             esac
41655             # done
41656
41657
41658 fi
41659
41660
41661     if test "x$STAR" = "xno"; then
41662         STAR=
41663     else
41664         OLD_STAR=$STAR
41665         for ac_prog in star
41666 do
41667   # Extract the first word of "$ac_prog", so it can be a program name with args.
41668 set dummy $ac_prog; ac_word=$2
41669 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41670 $as_echo_n "checking for $ac_word... " >&6; }
41671 if test "${ac_cv_path_STAR+set}" = set; then
41672   $as_echo_n "(cached) " >&6
41673 else
41674   case $STAR in
41675   [\\/]* | ?:[\\/]*)
41676   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
41677   ;;
41678   *)
41679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41680 for as_dir in $LOCSYSPATH
41681 do
41682   IFS=$as_save_IFS
41683   test -z "$as_dir" && as_dir=.
41684   for ac_exec_ext in '' $ac_executable_extensions; do
41685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41686     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
41687     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41688     break 2
41689   fi
41690 done
41691 done
41692 IFS=$as_save_IFS
41693
41694   ;;
41695 esac
41696 fi
41697 STAR=$ac_cv_path_STAR
41698 if test -n "$STAR"; then
41699   { $as_echo "$as_me:$LINENO: result: $STAR" >&5
41700 $as_echo "$STAR" >&6; }
41701 else
41702   { $as_echo "$as_me:$LINENO: result: no" >&5
41703 $as_echo "no" >&6; }
41704 fi
41705
41706
41707   test -n "$STAR" && break
41708 done
41709
41710         if test -n "$STAR"; then
41711             case `"$STAR" --version 2>/dev/null` in
41712              *star*)
41713                     # OK, it is star
41714                     break
41715                     ;;
41716              *)
41717                     if test -n "$OLD_STAR"; then
41718
41719     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, it will be used." >&5
41720 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
41721
41722
41723     cat <<AAW_EOF >>config.warnings
41724 $STAR is not star, it will be used.
41725 AAW_EOF
41726
41727
41728                     else
41729                         # warning..
41730
41731     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, so it will not be used." >&5
41732 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
41733
41734
41735     cat <<AAW_EOF >>config.warnings
41736 $STAR is not star, so it will not be used.
41737 AAW_EOF
41738
41739
41740                         # reset the cache for STAR so AC_PATH_PROGS will search again
41741                         STAR=''
41742                         unset ac_cv_path_STAR
41743                     fi
41744                     ;;
41745             esac
41746         fi
41747     fi
41748
41749     if test "x$STAR" != "x"; then
41750         # define unquoted
41751
41752 cat >>confdefs.h <<_ACEOF
41753 #define STAR "$STAR"
41754 _ACEOF
41755
41756     fi
41757
41758
41759
41760
41761
41762
41763     # call with
41764
41765 # Check whether --with-suntar was given.
41766 if test "${with_suntar+set}" = set; then
41767   withval=$with_suntar;
41768             # check withval
41769             case "$withval" in
41770                 /*) SUNTAR="$withval";;
41771                 y|ye|yes) :;;
41772                 n|no) SUNTAR=no ;;
41773                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-suntar" >&5
41774 $as_echo "$as_me: error: *** You must supply a full pathname to --with-suntar" >&2;}
41775    { (exit 1); exit 1; }; };;
41776             esac
41777             # done
41778
41779 else
41780
41781             if test "x$SUNTAR" == "x"; then
41782                 SUNTAR="/usr/sbin/tar"
41783             fi
41784
41785
41786 fi
41787
41788
41789     if test "x$SUNTAR" = "xno"; then
41790         SUNTAR=
41791     fi
41792
41793     if test "x$SUNTAR" != "x"; then
41794         # define unquoted
41795
41796 cat >>confdefs.h <<_ACEOF
41797 #define SUNTAR "$SUNTAR"
41798 _ACEOF
41799
41800     fi
41801
41802
41803
41804
41805
41806
41807
41808 # Check whether --with-smbclient was given.
41809 if test "${with_smbclient+set}" = set; then
41810   withval=$with_smbclient;
41811             case "$withval" in
41812                 /*) SAMBA_CLIENT="$withval";;
41813                 y|ye|yes) :;;
41814                 n|no) SAMBA_CLIENT=no ;;
41815                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
41816 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
41817    { (exit 1); exit 1; }; };;
41818             esac
41819
41820
41821 fi
41822
41823
41824
41825 # Check whether --with-samba-user was given.
41826 if test "${with_samba_user+set}" = set; then
41827   withval=$with_samba_user;  { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
41828 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
41829    { (exit 1); exit 1; }; }
41830
41831 fi
41832
41833
41834     if test "x$SAMBA_CLIENT" != "xno"; then
41835       # Extract the first word of "smbclient", so it can be a program name with args.
41836 set dummy smbclient; ac_word=$2
41837 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41838 $as_echo_n "checking for $ac_word... " >&6; }
41839 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
41840   $as_echo_n "(cached) " >&6
41841 else
41842   case $SAMBA_CLIENT in
41843   [\\/]* | ?:[\\/]*)
41844   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
41845   ;;
41846   *)
41847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41848 for as_dir in $LOCSYSPATH
41849 do
41850   IFS=$as_save_IFS
41851   test -z "$as_dir" && as_dir=.
41852   for ac_exec_ext in '' $ac_executable_extensions; do
41853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41854     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
41855     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41856     break 2
41857   fi
41858 done
41859 done
41860 IFS=$as_save_IFS
41861
41862   ;;
41863 esac
41864 fi
41865 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
41866 if test -n "$SAMBA_CLIENT"; then
41867   { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
41868 $as_echo "$SAMBA_CLIENT" >&6; }
41869 else
41870   { $as_echo "$as_me:$LINENO: result: no" >&5
41871 $as_echo "no" >&6; }
41872 fi
41873
41874
41875       smbversion=0
41876       if test ! -z "$SAMBA_CLIENT"; then
41877         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
41878         *"Unknown host"*)
41879                       smbversion=1
41880                       ;;
41881         *"Connection to nosuchhost.amanda.org failed"*)
41882                       smbversion=2
41883                       ;;
41884         *)
41885
41886     { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
41887 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
41888
41889
41890     cat <<AAW_EOF >>config.warnings
41891 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
41892 AAW_EOF
41893
41894
41895                       SAMBA_CLIENT=
41896                       ;;
41897         esac
41898         if test -n "$SAMBA_CLIENT"; then
41899
41900 cat >>confdefs.h <<_ACEOF
41901 #define SAMBA_CLIENT "$SAMBA_CLIENT"
41902 _ACEOF
41903
41904
41905 cat >>confdefs.h <<_ACEOF
41906 #define SAMBA_VERSION $smbversion
41907 _ACEOF
41908
41909         fi
41910       fi
41911     fi
41912
41913      if test -n "$SAMBA_CLIENT"; then
41914   WANT_SAMBA_TRUE=
41915   WANT_SAMBA_FALSE='#'
41916 else
41917   WANT_SAMBA_TRUE='#'
41918   WANT_SAMBA_FALSE=
41919 fi
41920
41921
41922
41923     USE_RUNDUMP=no
41924
41925     # some systems require rundump unconditionally
41926     case "$host" in
41927         *-ultrix*) USE_RUNDUMP=yes ;;
41928         *-dg-*) USE_RUNDUMP=yes ;;
41929     esac
41930
41931
41932 # Check whether --with-rundump was given.
41933 if test "${with_rundump+set}" = set; then
41934   withval=$with_rundump;
41935         case "$withval" in
41936             n | no) USE_RUNDUMP=no ;;
41937             y | ye | yes) USE_RUNDUMP=yes ;;
41938             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
41939 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
41940    { (exit 1); exit 1; }; };;
41941         esac
41942
41943 fi
41944
41945
41946     if test x"$USE_RUNDUMP" = x"yes"; then
41947         USE_RUNDUMP=1
41948
41949 cat >>confdefs.h <<\_ACEOF
41950 #define USE_RUNDUMP 1
41951 _ACEOF
41952
41953     else
41954         USE_RUNDUMP=
41955     fi
41956
41957
41958
41959
41960 #
41961 # Look for other programs Amanda will use
41962 #
41963
41964
41965     # Extract the first word of "grep", so it can be a program name with args.
41966 set dummy grep; ac_word=$2
41967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
41968 $as_echo_n "checking for $ac_word... " >&6; }
41969 if test "${ac_cv_path_GREP+set}" = set; then
41970   $as_echo_n "(cached) " >&6
41971 else
41972   case $GREP in
41973   [\\/]* | ?:[\\/]*)
41974   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
41975   ;;
41976   *)
41977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41978 for as_dir in $LOCSYSPATH
41979 do
41980   IFS=$as_save_IFS
41981   test -z "$as_dir" && as_dir=.
41982   for ac_exec_ext in '' $ac_executable_extensions; do
41983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
41984     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
41985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41986     break 2
41987   fi
41988 done
41989 done
41990 IFS=$as_save_IFS
41991
41992   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
41993   ;;
41994 esac
41995 fi
41996 GREP=$ac_cv_path_GREP
41997 if test -n "$GREP"; then
41998   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
41999 $as_echo "$GREP" >&6; }
42000 else
42001   { $as_echo "$as_me:$LINENO: result: no" >&5
42002 $as_echo "no" >&6; }
42003 fi
42004
42005
42006
42007 cat >>confdefs.h <<_ACEOF
42008 #define GREP "$GREP"
42009 _ACEOF
42010
42011
42012 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
42013 $as_echo_n "checking for egrep... " >&6; }
42014 if test "${ac_cv_path_EGREP+set}" = set; then
42015   $as_echo_n "(cached) " >&6
42016 else
42017   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
42018    then ac_cv_path_EGREP="$GREP -E"
42019    else
42020      if test -z "$EGREP"; then
42021   ac_path_EGREP_found=false
42022   # Loop through the user's path and test for each of PROGNAME-LIST
42023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
42025 do
42026   IFS=$as_save_IFS
42027   test -z "$as_dir" && as_dir=.
42028   for ac_prog in egrep; do
42029     for ac_exec_ext in '' $ac_executable_extensions; do
42030       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
42031       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
42032 # Check for GNU ac_path_EGREP and select it if it is found.
42033   # Check for GNU $ac_path_EGREP
42034 case `"$ac_path_EGREP" --version 2>&1` in
42035 *GNU*)
42036   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
42037 *)
42038   ac_count=0
42039   $as_echo_n 0123456789 >"conftest.in"
42040   while :
42041   do
42042     cat "conftest.in" "conftest.in" >"conftest.tmp"
42043     mv "conftest.tmp" "conftest.in"
42044     cp "conftest.in" "conftest.nl"
42045     $as_echo 'EGREP' >> "conftest.nl"
42046     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
42047     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
42048     ac_count=`expr $ac_count + 1`
42049     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
42050       # Best one so far, save it but keep looking for a better one
42051       ac_cv_path_EGREP="$ac_path_EGREP"
42052       ac_path_EGREP_max=$ac_count
42053     fi
42054     # 10*(2^10) chars as input seems more than enough
42055     test $ac_count -gt 10 && break
42056   done
42057   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
42058 esac
42059
42060       $ac_path_EGREP_found && break 3
42061     done
42062   done
42063 done
42064 IFS=$as_save_IFS
42065   if test -z "$ac_cv_path_EGREP"; then
42066     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
42067 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
42068    { (exit 1); exit 1; }; }
42069   fi
42070 else
42071   ac_cv_path_EGREP=$EGREP
42072 fi
42073
42074    fi
42075 fi
42076 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
42077 $as_echo "$ac_cv_path_EGREP" >&6; }
42078  EGREP="$ac_cv_path_EGREP"
42079
42080
42081
42082
42083
42084
42085     # Extract the first word of "lint", so it can be a program name with args.
42086 set dummy lint; ac_word=$2
42087 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42088 $as_echo_n "checking for $ac_word... " >&6; }
42089 if test "${ac_cv_path_AMLINT+set}" = set; then
42090   $as_echo_n "(cached) " >&6
42091 else
42092   case $AMLINT in
42093   [\\/]* | ?:[\\/]*)
42094   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
42095   ;;
42096   *)
42097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42098 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
42099 for as_dir in $as_dummy
42100 do
42101   IFS=$as_save_IFS
42102   test -z "$as_dir" && as_dir=.
42103   for ac_exec_ext in '' $ac_executable_extensions; do
42104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42105     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
42106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42107     break 2
42108   fi
42109 done
42110 done
42111 IFS=$as_save_IFS
42112
42113   ;;
42114 esac
42115 fi
42116 AMLINT=$ac_cv_path_AMLINT
42117 if test -n "$AMLINT"; then
42118   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
42119 $as_echo "$AMLINT" >&6; }
42120 else
42121   { $as_echo "$as_me:$LINENO: result: no" >&5
42122 $as_echo "no" >&6; }
42123 fi
42124
42125
42126     if test ! -z "$AMLINT"; then
42127       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
42128       if test $? -eq 0; then
42129         AMLINTFLAGS="-n -s -u -m -x"
42130         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
42131         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
42132         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
42133         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
42134         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
42135         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
42136         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
42137         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
42138         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
42139         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
42140         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
42141         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
42142         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
42143         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
42144         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
42145         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
42146         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
42147         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
42148         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
42149         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
42150         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
42151         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
42152         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
42153         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
42154         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
42155         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
42156         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
42157         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
42158         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
42159         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
42160         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
42161         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
42162         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
42163         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
42164         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
42165         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
42166         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
42167         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
42168         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
42169         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
42170         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
42171         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
42172         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
42173         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
42174         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
42175         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
42176         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
42177         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
42178         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
42179         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
42180       else
42181         AMLINTFLAGS=""
42182       fi
42183     else
42184       # Extract the first word of "splint", so it can be a program name with args.
42185 set dummy splint; ac_word=$2
42186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42187 $as_echo_n "checking for $ac_word... " >&6; }
42188 if test "${ac_cv_path_AMLINT+set}" = set; then
42189   $as_echo_n "(cached) " >&6
42190 else
42191   case $AMLINT in
42192   [\\/]* | ?:[\\/]*)
42193   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
42194   ;;
42195   *)
42196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42197 for as_dir in $SYSLOCPATH
42198 do
42199   IFS=$as_save_IFS
42200   test -z "$as_dir" && as_dir=.
42201   for ac_exec_ext in '' $ac_executable_extensions; do
42202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42203     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
42204     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42205     break 2
42206   fi
42207 done
42208 done
42209 IFS=$as_save_IFS
42210
42211   ;;
42212 esac
42213 fi
42214 AMLINT=$ac_cv_path_AMLINT
42215 if test -n "$AMLINT"; then
42216   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
42217 $as_echo "$AMLINT" >&6; }
42218 else
42219   { $as_echo "$as_me:$LINENO: result: no" >&5
42220 $as_echo "no" >&6; }
42221 fi
42222
42223
42224       if test ! -z "$AMLINT"; then
42225         AMLINT="splint"
42226         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
42227       else
42228         AMLINT='echo "Error: LINT is not installed" ; false'
42229         AMLINTFLAGS=''
42230       fi
42231     fi
42232
42233
42234 for ac_prog in flex lex
42235 do
42236   # Extract the first word of "$ac_prog", so it can be a program name with args.
42237 set dummy $ac_prog; ac_word=$2
42238 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42239 $as_echo_n "checking for $ac_word... " >&6; }
42240 if test "${ac_cv_prog_LEX+set}" = set; then
42241   $as_echo_n "(cached) " >&6
42242 else
42243   if test -n "$LEX"; then
42244   ac_cv_prog_LEX="$LEX" # Let the user override the test.
42245 else
42246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42247 for as_dir in $PATH
42248 do
42249   IFS=$as_save_IFS
42250   test -z "$as_dir" && as_dir=.
42251   for ac_exec_ext in '' $ac_executable_extensions; do
42252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42253     ac_cv_prog_LEX="$ac_prog"
42254     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42255     break 2
42256   fi
42257 done
42258 done
42259 IFS=$as_save_IFS
42260
42261 fi
42262 fi
42263 LEX=$ac_cv_prog_LEX
42264 if test -n "$LEX"; then
42265   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
42266 $as_echo "$LEX" >&6; }
42267 else
42268   { $as_echo "$as_me:$LINENO: result: no" >&5
42269 $as_echo "no" >&6; }
42270 fi
42271
42272
42273   test -n "$LEX" && break
42274 done
42275 test -n "$LEX" || LEX=":"
42276
42277 if test "x$LEX" != "x:"; then
42278   cat >conftest.l <<_ACEOF
42279 %%
42280 a { ECHO; }
42281 b { REJECT; }
42282 c { yymore (); }
42283 d { yyless (1); }
42284 e { yyless (input () != 0); }
42285 f { unput (yytext[0]); }
42286 . { BEGIN INITIAL; }
42287 %%
42288 #ifdef YYTEXT_POINTER
42289 extern char *yytext;
42290 #endif
42291 int
42292 main (void)
42293 {
42294   return ! yylex () + ! yywrap ();
42295 }
42296 _ACEOF
42297 { (ac_try="$LEX conftest.l"
42298 case "(($ac_try" in
42299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42300   *) ac_try_echo=$ac_try;;
42301 esac
42302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42303 $as_echo "$ac_try_echo") >&5
42304   (eval "$LEX conftest.l") 2>&5
42305   ac_status=$?
42306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307   (exit $ac_status); }
42308 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
42309 $as_echo_n "checking lex output file root... " >&6; }
42310 if test "${ac_cv_prog_lex_root+set}" = set; then
42311   $as_echo_n "(cached) " >&6
42312 else
42313
42314 if test -f lex.yy.c; then
42315   ac_cv_prog_lex_root=lex.yy
42316 elif test -f lexyy.c; then
42317   ac_cv_prog_lex_root=lexyy
42318 else
42319   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
42320 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
42321    { (exit 1); exit 1; }; }
42322 fi
42323 fi
42324 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
42325 $as_echo "$ac_cv_prog_lex_root" >&6; }
42326 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
42327
42328 if test -z "${LEXLIB+set}"; then
42329   { $as_echo "$as_me:$LINENO: checking lex library" >&5
42330 $as_echo_n "checking lex library... " >&6; }
42331 if test "${ac_cv_lib_lex+set}" = set; then
42332   $as_echo_n "(cached) " >&6
42333 else
42334
42335     ac_save_LIBS=$LIBS
42336     ac_cv_lib_lex='none needed'
42337     for ac_lib in '' -lfl -ll; do
42338       LIBS="$ac_lib $ac_save_LIBS"
42339       cat >conftest.$ac_ext <<_ACEOF
42340 `cat $LEX_OUTPUT_ROOT.c`
42341 _ACEOF
42342 rm -f conftest.$ac_objext conftest$ac_exeext
42343 if { (ac_try="$ac_link"
42344 case "(($ac_try" in
42345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42346   *) ac_try_echo=$ac_try;;
42347 esac
42348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42349 $as_echo "$ac_try_echo") >&5
42350   (eval "$ac_link") 2>conftest.er1
42351   ac_status=$?
42352   grep -v '^ *+' conftest.er1 >conftest.err
42353   rm -f conftest.er1
42354   cat conftest.err >&5
42355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42356   (exit $ac_status); } && {
42357          test -z "$ac_c_werror_flag" ||
42358          test ! -s conftest.err
42359        } && test -s conftest$ac_exeext && {
42360          test "$cross_compiling" = yes ||
42361          $as_test_x conftest$ac_exeext
42362        }; then
42363   ac_cv_lib_lex=$ac_lib
42364 else
42365   $as_echo "$as_me: failed program was:" >&5
42366 sed 's/^/| /' conftest.$ac_ext >&5
42367
42368
42369 fi
42370
42371 rm -rf conftest.dSYM
42372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42373       conftest$ac_exeext conftest.$ac_ext
42374       test "$ac_cv_lib_lex" != 'none needed' && break
42375     done
42376     LIBS=$ac_save_LIBS
42377
42378 fi
42379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
42380 $as_echo "$ac_cv_lib_lex" >&6; }
42381   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
42382 fi
42383
42384
42385 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
42386 $as_echo_n "checking whether yytext is a pointer... " >&6; }
42387 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
42388   $as_echo_n "(cached) " >&6
42389 else
42390   # POSIX says lex can declare yytext either as a pointer or an array; the
42391 # default is implementation-dependent.  Figure out which it is, since
42392 # not all implementations provide the %pointer and %array declarations.
42393 ac_cv_prog_lex_yytext_pointer=no
42394 ac_save_LIBS=$LIBS
42395 LIBS="$LEXLIB $ac_save_LIBS"
42396 cat >conftest.$ac_ext <<_ACEOF
42397 #define YYTEXT_POINTER 1
42398 `cat $LEX_OUTPUT_ROOT.c`
42399 _ACEOF
42400 rm -f conftest.$ac_objext conftest$ac_exeext
42401 if { (ac_try="$ac_link"
42402 case "(($ac_try" in
42403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42404   *) ac_try_echo=$ac_try;;
42405 esac
42406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42407 $as_echo "$ac_try_echo") >&5
42408   (eval "$ac_link") 2>conftest.er1
42409   ac_status=$?
42410   grep -v '^ *+' conftest.er1 >conftest.err
42411   rm -f conftest.er1
42412   cat conftest.err >&5
42413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414   (exit $ac_status); } && {
42415          test -z "$ac_c_werror_flag" ||
42416          test ! -s conftest.err
42417        } && test -s conftest$ac_exeext && {
42418          test "$cross_compiling" = yes ||
42419          $as_test_x conftest$ac_exeext
42420        }; then
42421   ac_cv_prog_lex_yytext_pointer=yes
42422 else
42423   $as_echo "$as_me: failed program was:" >&5
42424 sed 's/^/| /' conftest.$ac_ext >&5
42425
42426
42427 fi
42428
42429 rm -rf conftest.dSYM
42430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42431       conftest$ac_exeext conftest.$ac_ext
42432 LIBS=$ac_save_LIBS
42433
42434 fi
42435 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
42436 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
42437 if test $ac_cv_prog_lex_yytext_pointer = yes; then
42438
42439 cat >>confdefs.h <<\_ACEOF
42440 #define YYTEXT_POINTER 1
42441 _ACEOF
42442
42443 fi
42444 rm -f conftest.l $LEX_OUTPUT_ROOT.c
42445
42446 fi
42447 if test "$LEX" = :; then
42448   LEX=${am_missing_run}flex
42449 fi
42450
42451
42452
42453     if test x"$LEX" != x""; then
42454         { $as_echo "$as_me:$LINENO: checking whether lex is broken Solaris (SGU) lex" >&5
42455 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
42456         $LEX -V < /dev/null >/dev/null 2>conftest.out
42457         if grep SGU conftest.out >/dev/null; then
42458             { $as_echo "$as_me:$LINENO: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
42459 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
42460             LEX='echo no lex equivalent available; false'
42461         else
42462             { $as_echo "$as_me:$LINENO: result: no" >&5
42463 $as_echo "no" >&6; }
42464         fi
42465         rm conftest.out
42466     fi
42467
42468
42469
42470     # Extract the first word of "ar", so it can be a program name with args.
42471 set dummy ar; ac_word=$2
42472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42473 $as_echo_n "checking for $ac_word... " >&6; }
42474 if test "${ac_cv_path_AR+set}" = set; then
42475   $as_echo_n "(cached) " >&6
42476 else
42477   case $AR in
42478   [\\/]* | ?:[\\/]*)
42479   ac_cv_path_AR="$AR" # Let the user override the test with a path.
42480   ;;
42481   *)
42482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42483 for as_dir in $LOCSYSPATH
42484 do
42485   IFS=$as_save_IFS
42486   test -z "$as_dir" && as_dir=.
42487   for ac_exec_ext in '' $ac_executable_extensions; do
42488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42489     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
42490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42491     break 2
42492   fi
42493 done
42494 done
42495 IFS=$as_save_IFS
42496
42497   ;;
42498 esac
42499 fi
42500 AR=$ac_cv_path_AR
42501 if test -n "$AR"; then
42502   { $as_echo "$as_me:$LINENO: result: $AR" >&5
42503 $as_echo "$AR" >&6; }
42504 else
42505   { $as_echo "$as_me:$LINENO: result: no" >&5
42506 $as_echo "no" >&6; }
42507 fi
42508
42509
42510
42511
42512
42513     # Extract the first word of "gettext", so it can be a program name with args.
42514 set dummy gettext; ac_word=$2
42515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42516 $as_echo_n "checking for $ac_word... " >&6; }
42517 if test "${ac_cv_path_GETTEXT+set}" = set; then
42518   $as_echo_n "(cached) " >&6
42519 else
42520   case $GETTEXT in
42521   [\\/]* | ?:[\\/]*)
42522   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
42523   ;;
42524   *)
42525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42526 for as_dir in $LOCSYSPATH
42527 do
42528   IFS=$as_save_IFS
42529   test -z "$as_dir" && as_dir=.
42530   for ac_exec_ext in '' $ac_executable_extensions; do
42531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42532     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
42533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42534     break 2
42535   fi
42536 done
42537 done
42538 IFS=$as_save_IFS
42539
42540   ;;
42541 esac
42542 fi
42543 GETTEXT=$ac_cv_path_GETTEXT
42544 if test -n "$GETTEXT"; then
42545   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
42546 $as_echo "$GETTEXT" >&6; }
42547 else
42548   { $as_echo "$as_me:$LINENO: result: no" >&5
42549 $as_echo "no" >&6; }
42550 fi
42551
42552
42553
42554 for ac_prog in gawk mawk nawk awk
42555 do
42556   # Extract the first word of "$ac_prog", so it can be a program name with args.
42557 set dummy $ac_prog; ac_word=$2
42558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42559 $as_echo_n "checking for $ac_word... " >&6; }
42560 if test "${ac_cv_prog_AWK+set}" = set; then
42561   $as_echo_n "(cached) " >&6
42562 else
42563   if test -n "$AWK"; then
42564   ac_cv_prog_AWK="$AWK" # Let the user override the test.
42565 else
42566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42567 for as_dir in $PATH
42568 do
42569   IFS=$as_save_IFS
42570   test -z "$as_dir" && as_dir=.
42571   for ac_exec_ext in '' $ac_executable_extensions; do
42572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42573     ac_cv_prog_AWK="$ac_prog"
42574     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42575     break 2
42576   fi
42577 done
42578 done
42579 IFS=$as_save_IFS
42580
42581 fi
42582 fi
42583 AWK=$ac_cv_prog_AWK
42584 if test -n "$AWK"; then
42585   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
42586 $as_echo "$AWK" >&6; }
42587 else
42588   { $as_echo "$as_me:$LINENO: result: no" >&5
42589 $as_echo "no" >&6; }
42590 fi
42591
42592
42593   test -n "$AWK" && break
42594 done
42595
42596 for ac_prog in 'bison -y' byacc
42597 do
42598   # Extract the first word of "$ac_prog", so it can be a program name with args.
42599 set dummy $ac_prog; ac_word=$2
42600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42601 $as_echo_n "checking for $ac_word... " >&6; }
42602 if test "${ac_cv_prog_YACC+set}" = set; then
42603   $as_echo_n "(cached) " >&6
42604 else
42605   if test -n "$YACC"; then
42606   ac_cv_prog_YACC="$YACC" # Let the user override the test.
42607 else
42608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42609 for as_dir in $PATH
42610 do
42611   IFS=$as_save_IFS
42612   test -z "$as_dir" && as_dir=.
42613   for ac_exec_ext in '' $ac_executable_extensions; do
42614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42615     ac_cv_prog_YACC="$ac_prog"
42616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42617     break 2
42618   fi
42619 done
42620 done
42621 IFS=$as_save_IFS
42622
42623 fi
42624 fi
42625 YACC=$ac_cv_prog_YACC
42626 if test -n "$YACC"; then
42627   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
42628 $as_echo "$YACC" >&6; }
42629 else
42630   { $as_echo "$as_me:$LINENO: result: no" >&5
42631 $as_echo "no" >&6; }
42632 fi
42633
42634
42635   test -n "$YACC" && break
42636 done
42637 test -n "$YACC" || YACC="yacc"
42638
42639 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
42640 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
42641 if test -z "$MKDIR_P"; then
42642   if test "${ac_cv_path_mkdir+set}" = set; then
42643   $as_echo_n "(cached) " >&6
42644 else
42645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42646 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
42647 do
42648   IFS=$as_save_IFS
42649   test -z "$as_dir" && as_dir=.
42650   for ac_prog in mkdir gmkdir; do
42651          for ac_exec_ext in '' $ac_executable_extensions; do
42652            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
42653            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
42654              'mkdir (GNU coreutils) '* | \
42655              'mkdir (coreutils) '* | \
42656              'mkdir (fileutils) '4.1*)
42657                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
42658                break 3;;
42659            esac
42660          done
42661        done
42662 done
42663 IFS=$as_save_IFS
42664
42665 fi
42666
42667   if test "${ac_cv_path_mkdir+set}" = set; then
42668     MKDIR_P="$ac_cv_path_mkdir -p"
42669   else
42670     # As a last resort, use the slow shell script.  Don't cache a
42671     # value for MKDIR_P within a source directory, because that will
42672     # break other packages using the cache if that directory is
42673     # removed, or if the value is a relative name.
42674     test -d ./--version && rmdir ./--version
42675     MKDIR_P="$ac_install_sh -d"
42676   fi
42677 fi
42678 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
42679 $as_echo "$MKDIR_P" >&6; }
42680
42681
42682
42683
42684     # Extract the first word of "dd", so it can be a program name with args.
42685 set dummy dd; ac_word=$2
42686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42687 $as_echo_n "checking for $ac_word... " >&6; }
42688 if test "${ac_cv_path_DD+set}" = set; then
42689   $as_echo_n "(cached) " >&6
42690 else
42691   case $DD in
42692   [\\/]* | ?:[\\/]*)
42693   ac_cv_path_DD="$DD" # Let the user override the test with a path.
42694   ;;
42695   *)
42696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42697 for as_dir in $LOCSYSPATH
42698 do
42699   IFS=$as_save_IFS
42700   test -z "$as_dir" && as_dir=.
42701   for ac_exec_ext in '' $ac_executable_extensions; do
42702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42703     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
42704     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42705     break 2
42706   fi
42707 done
42708 done
42709 IFS=$as_save_IFS
42710
42711   ;;
42712 esac
42713 fi
42714 DD=$ac_cv_path_DD
42715 if test -n "$DD"; then
42716   { $as_echo "$as_me:$LINENO: result: $DD" >&5
42717 $as_echo "$DD" >&6; }
42718 else
42719   { $as_echo "$as_me:$LINENO: result: no" >&5
42720 $as_echo "no" >&6; }
42721 fi
42722
42723
42724
42725
42726
42727     # Extract the first word of "bash", so it can be a program name with args.
42728 set dummy bash; ac_word=$2
42729 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42730 $as_echo_n "checking for $ac_word... " >&6; }
42731 if test "${ac_cv_path_BASH+set}" = set; then
42732   $as_echo_n "(cached) " >&6
42733 else
42734   case $BASH in
42735   [\\/]* | ?:[\\/]*)
42736   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
42737   ;;
42738   *)
42739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42740 for as_dir in $SYSPATH
42741 do
42742   IFS=$as_save_IFS
42743   test -z "$as_dir" && as_dir=.
42744   for ac_exec_ext in '' $ac_executable_extensions; do
42745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42746     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
42747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42748     break 2
42749   fi
42750 done
42751 done
42752 IFS=$as_save_IFS
42753
42754   ;;
42755 esac
42756 fi
42757 BASH=$ac_cv_path_BASH
42758 if test -n "$BASH"; then
42759   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
42760 $as_echo "$BASH" >&6; }
42761 else
42762   { $as_echo "$as_me:$LINENO: result: no" >&5
42763 $as_echo "no" >&6; }
42764 fi
42765
42766
42767
42768
42769
42770
42771
42772     # Extract the first word of "sort", so it can be a program name with args.
42773 set dummy sort; ac_word=$2
42774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42775 $as_echo_n "checking for $ac_word... " >&6; }
42776 if test "${ac_cv_path_SORT+set}" = set; then
42777   $as_echo_n "(cached) " >&6
42778 else
42779   case $SORT in
42780   [\\/]* | ?:[\\/]*)
42781   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
42782   ;;
42783   *)
42784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42785 for as_dir in $LOCSYSPATH
42786 do
42787   IFS=$as_save_IFS
42788   test -z "$as_dir" && as_dir=.
42789   for ac_exec_ext in '' $ac_executable_extensions; do
42790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42791     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
42792     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42793     break 2
42794   fi
42795 done
42796 done
42797 IFS=$as_save_IFS
42798
42799   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
42800   ;;
42801 esac
42802 fi
42803 SORT=$ac_cv_path_SORT
42804 if test -n "$SORT"; then
42805   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
42806 $as_echo "$SORT" >&6; }
42807 else
42808   { $as_echo "$as_me:$LINENO: result: no" >&5
42809 $as_echo "no" >&6; }
42810 fi
42811
42812
42813
42814     # sort is only needed in the server build
42815     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
42816         { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
42817 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
42818    { (exit 1); exit 1; }; }
42819     fi
42820
42821
42822 cat >>confdefs.h <<_ACEOF
42823 #define SORT_PATH "$SORT"
42824 _ACEOF
42825
42826
42827
42828
42829     for ac_prog in Mail mailx mail
42830 do
42831   # Extract the first word of "$ac_prog", so it can be a program name with args.
42832 set dummy $ac_prog; ac_word=$2
42833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42834 $as_echo_n "checking for $ac_word... " >&6; }
42835 if test "${ac_cv_path_MAILER+set}" = set; then
42836   $as_echo_n "(cached) " >&6
42837 else
42838   case $MAILER in
42839   [\\/]* | ?:[\\/]*)
42840   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
42841   ;;
42842   *)
42843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42844 for as_dir in $PATH
42845 do
42846   IFS=$as_save_IFS
42847   test -z "$as_dir" && as_dir=.
42848   for ac_exec_ext in '' $ac_executable_extensions; do
42849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42850     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
42851     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42852     break 2
42853   fi
42854 done
42855 done
42856 IFS=$as_save_IFS
42857
42858   ;;
42859 esac
42860 fi
42861 MAILER=$ac_cv_path_MAILER
42862 if test -n "$MAILER"; then
42863   { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
42864 $as_echo "$MAILER" >&6; }
42865 else
42866   { $as_echo "$as_me:$LINENO: result: no" >&5
42867 $as_echo "no" >&6; }
42868 fi
42869
42870
42871   test -n "$MAILER" && break
42872 done
42873 test -n "$MAILER" || MAILER="NONE"
42874
42875     if test x"$MAILER" = x"NONE"; then
42876
42877     { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
42878 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
42879
42880
42881     cat <<AAW_EOF >>config.warnings
42882 WARNING: Amanda cannot send mail reports without a mailer.
42883 AAW_EOF
42884
42885
42886         DEFAULT_MAILER=""
42887     else
42888         DEFAULT_MAILER="$MAILER"
42889     fi
42890
42891 cat >>confdefs.h <<_ACEOF
42892 #define DEFAULT_MAILER "$DEFAULT_MAILER"
42893 _ACEOF
42894
42895
42896
42897
42898
42899     # Extract the first word of "mt", so it can be a program name with args.
42900 set dummy mt; ac_word=$2
42901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42902 $as_echo_n "checking for $ac_word... " >&6; }
42903 if test "${ac_cv_path_MT+set}" = set; then
42904   $as_echo_n "(cached) " >&6
42905 else
42906   case $MT in
42907   [\\/]* | ?:[\\/]*)
42908   ac_cv_path_MT="$MT" # Let the user override the test with a path.
42909   ;;
42910   *)
42911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42912 for as_dir in $SYSLOCPATH
42913 do
42914   IFS=$as_save_IFS
42915   test -z "$as_dir" && as_dir=.
42916   for ac_exec_ext in '' $ac_executable_extensions; do
42917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42918     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
42919     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42920     break 2
42921   fi
42922 done
42923 done
42924 IFS=$as_save_IFS
42925
42926   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
42927   ;;
42928 esac
42929 fi
42930 MT=$ac_cv_path_MT
42931 if test -n "$MT"; then
42932   { $as_echo "$as_me:$LINENO: result: $MT" >&5
42933 $as_echo "$MT" >&6; }
42934 else
42935   { $as_echo "$as_me:$LINENO: result: no" >&5
42936 $as_echo "no" >&6; }
42937 fi
42938
42939
42940
42941     case "$host" in
42942         *-hp-*) MT_FILE_FLAG="-t" ;;
42943         *) MT_FILE_FLAG="-f" ;;
42944     esac
42945
42946
42947
42948 cat >>confdefs.h <<_ACEOF
42949 #define MT_FILE_FLAG "$MT_FILE_FLAG"
42950 _ACEOF
42951
42952
42953
42954
42955     # Extract the first word of "mtx", so it can be a program name with args.
42956 set dummy mtx; ac_word=$2
42957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42958 $as_echo_n "checking for $ac_word... " >&6; }
42959 if test "${ac_cv_path_MTX+set}" = set; then
42960   $as_echo_n "(cached) " >&6
42961 else
42962   case $MTX in
42963   [\\/]* | ?:[\\/]*)
42964   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
42965   ;;
42966   *)
42967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42968 for as_dir in $LOCSYSPATH
42969 do
42970   IFS=$as_save_IFS
42971   test -z "$as_dir" && as_dir=.
42972   for ac_exec_ext in '' $ac_executable_extensions; do
42973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42974     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
42975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42976     break 2
42977   fi
42978 done
42979 done
42980 IFS=$as_save_IFS
42981
42982   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
42983   ;;
42984 esac
42985 fi
42986 MTX=$ac_cv_path_MTX
42987 if test -n "$MTX"; then
42988   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
42989 $as_echo "$MTX" >&6; }
42990 else
42991   { $as_echo "$as_me:$LINENO: result: no" >&5
42992 $as_echo "no" >&6; }
42993 fi
42994
42995
42996
42997
42998
42999
43000     # Extract the first word of "mount", so it can be a program name with args.
43001 set dummy mount; ac_word=$2
43002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43003 $as_echo_n "checking for $ac_word... " >&6; }
43004 if test "${ac_cv_path_MOUNT+set}" = set; then
43005   $as_echo_n "(cached) " >&6
43006 else
43007   case $MOUNT in
43008   [\\/]* | ?:[\\/]*)
43009   ac_cv_path_MOUNT="$MOUNT" # Let the user override the test with a path.
43010   ;;
43011   *)
43012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43013 for as_dir in $LOCSYSPATH
43014 do
43015   IFS=$as_save_IFS
43016   test -z "$as_dir" && as_dir=.
43017   for ac_exec_ext in '' $ac_executable_extensions; do
43018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43019     ac_cv_path_MOUNT="$as_dir/$ac_word$ac_exec_ext"
43020     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43021     break 2
43022   fi
43023 done
43024 done
43025 IFS=$as_save_IFS
43026
43027   test -z "$ac_cv_path_MOUNT" && ac_cv_path_MOUNT="mount"
43028   ;;
43029 esac
43030 fi
43031 MOUNT=$ac_cv_path_MOUNT
43032 if test -n "$MOUNT"; then
43033   { $as_echo "$as_me:$LINENO: result: $MOUNT" >&5
43034 $as_echo "$MOUNT" >&6; }
43035 else
43036   { $as_echo "$as_me:$LINENO: result: no" >&5
43037 $as_echo "no" >&6; }
43038 fi
43039
43040
43041
43042
43043
43044
43045     # Extract the first word of "umount", so it can be a program name with args.
43046 set dummy umount; ac_word=$2
43047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43048 $as_echo_n "checking for $ac_word... " >&6; }
43049 if test "${ac_cv_path_UMOUNT+set}" = set; then
43050   $as_echo_n "(cached) " >&6
43051 else
43052   case $UMOUNT in
43053   [\\/]* | ?:[\\/]*)
43054   ac_cv_path_UMOUNT="$UMOUNT" # Let the user override the test with a path.
43055   ;;
43056   *)
43057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43058 for as_dir in $LOCSYSPATH
43059 do
43060   IFS=$as_save_IFS
43061   test -z "$as_dir" && as_dir=.
43062   for ac_exec_ext in '' $ac_executable_extensions; do
43063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43064     ac_cv_path_UMOUNT="$as_dir/$ac_word$ac_exec_ext"
43065     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43066     break 2
43067   fi
43068 done
43069 done
43070 IFS=$as_save_IFS
43071
43072   test -z "$ac_cv_path_UMOUNT" && ac_cv_path_UMOUNT="umount"
43073   ;;
43074 esac
43075 fi
43076 UMOUNT=$ac_cv_path_UMOUNT
43077 if test -n "$UMOUNT"; then
43078   { $as_echo "$as_me:$LINENO: result: $UMOUNT" >&5
43079 $as_echo "$UMOUNT" >&6; }
43080 else
43081   { $as_echo "$as_me:$LINENO: result: no" >&5
43082 $as_echo "no" >&6; }
43083 fi
43084
43085
43086
43087
43088
43089
43090
43091     for ac_prog in lpr lp
43092 do
43093   # Extract the first word of "$ac_prog", so it can be a program name with args.
43094 set dummy $ac_prog; ac_word=$2
43095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43096 $as_echo_n "checking for $ac_word... " >&6; }
43097 if test "${ac_cv_path_LPR+set}" = set; then
43098   $as_echo_n "(cached) " >&6
43099 else
43100   case $LPR in
43101   [\\/]* | ?:[\\/]*)
43102   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
43103   ;;
43104   *)
43105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43106 for as_dir in $PATH
43107 do
43108   IFS=$as_save_IFS
43109   test -z "$as_dir" && as_dir=.
43110   for ac_exec_ext in '' $ac_executable_extensions; do
43111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43112     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
43113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43114     break 2
43115   fi
43116 done
43117 done
43118 IFS=$as_save_IFS
43119
43120   ;;
43121 esac
43122 fi
43123 LPR=$ac_cv_path_LPR
43124 if test -n "$LPR"; then
43125   { $as_echo "$as_me:$LINENO: result: $LPR" >&5
43126 $as_echo "$LPR" >&6; }
43127 else
43128   { $as_echo "$as_me:$LINENO: result: no" >&5
43129 $as_echo "no" >&6; }
43130 fi
43131
43132
43133   test -n "$LPR" && break
43134 done
43135
43136     if test ! -z "$LPR"; then
43137
43138 cat >>confdefs.h <<\_ACEOF
43139 #define HAVE_LPR_CMD 1
43140 _ACEOF
43141
43142
43143         { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
43144 $as_echo_n "checking which flag to use to select a printer... " >&6; }
43145 if test "${amanda_cv_printer_flag+set}" = set; then
43146   $as_echo_n "(cached) " >&6
43147 else
43148
43149             amanda_cv_printer_flag=$LPRFLAG
43150             case "$LPR" in
43151                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
43152                 lp|*/lp) amanda_cv_printer_flag="-d";;
43153             esac
43154
43155 fi
43156 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
43157 $as_echo "$amanda_cv_printer_flag" >&6; }
43158         if test -z "$amanda_cv_printer_flag"; then
43159
43160     { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
43161 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
43162
43163
43164     cat <<AAW_EOF >>config.warnings
43165 WARNING: amanda will always print to the default printer
43166 AAW_EOF
43167
43168
43169         fi
43170     fi
43171
43172
43173
43174
43175
43176
43177     # Extract the first word of "pcat", so it can be a program name with args.
43178 set dummy pcat; ac_word=$2
43179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43180 $as_echo_n "checking for $ac_word... " >&6; }
43181 if test "${ac_cv_path_PCAT+set}" = set; then
43182   $as_echo_n "(cached) " >&6
43183 else
43184   case $PCAT in
43185   [\\/]* | ?:[\\/]*)
43186   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
43187   ;;
43188   *)
43189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43190 for as_dir in $LOCSYSPATH
43191 do
43192   IFS=$as_save_IFS
43193   test -z "$as_dir" && as_dir=.
43194   for ac_exec_ext in '' $ac_executable_extensions; do
43195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43196     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
43197     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43198     break 2
43199   fi
43200 done
43201 done
43202 IFS=$as_save_IFS
43203
43204   ;;
43205 esac
43206 fi
43207 PCAT=$ac_cv_path_PCAT
43208 if test -n "$PCAT"; then
43209   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
43210 $as_echo "$PCAT" >&6; }
43211 else
43212   { $as_echo "$as_me:$LINENO: result: no" >&5
43213 $as_echo "no" >&6; }
43214 fi
43215
43216
43217
43218
43219
43220     for ac_prog in perl5 perl
43221 do
43222   # Extract the first word of "$ac_prog", so it can be a program name with args.
43223 set dummy $ac_prog; ac_word=$2
43224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43225 $as_echo_n "checking for $ac_word... " >&6; }
43226 if test "${ac_cv_path_PERL+set}" = set; then
43227   $as_echo_n "(cached) " >&6
43228 else
43229   case $PERL in
43230   [\\/]* | ?:[\\/]*)
43231   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43232   ;;
43233   *)
43234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43235 for as_dir in $LOCSYSPATH
43236 do
43237   IFS=$as_save_IFS
43238   test -z "$as_dir" && as_dir=.
43239   for ac_exec_ext in '' $ac_executable_extensions; do
43240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43241     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
43242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43243     break 2
43244   fi
43245 done
43246 done
43247 IFS=$as_save_IFS
43248
43249   ;;
43250 esac
43251 fi
43252 PERL=$ac_cv_path_PERL
43253 if test -n "$PERL"; then
43254   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
43255 $as_echo "$PERL" >&6; }
43256 else
43257   { $as_echo "$as_me:$LINENO: result: no" >&5
43258 $as_echo "no" >&6; }
43259 fi
43260
43261
43262   test -n "$PERL" && break
43263 done
43264
43265
43266     # Make sure we have perl
43267 if test -z "$PERL"; then
43268 # Extract the first word of "perl", so it can be a program name with args.
43269 set dummy perl; ac_word=$2
43270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43271 $as_echo_n "checking for $ac_word... " >&6; }
43272 if test "${ac_cv_prog_PERL+set}" = set; then
43273   $as_echo_n "(cached) " >&6
43274 else
43275   if test -n "$PERL"; then
43276   ac_cv_prog_PERL="$PERL" # Let the user override the test.
43277 else
43278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43279 for as_dir in $PATH
43280 do
43281   IFS=$as_save_IFS
43282   test -z "$as_dir" && as_dir=.
43283   for ac_exec_ext in '' $ac_executable_extensions; do
43284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43285     ac_cv_prog_PERL="perl"
43286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43287     break 2
43288   fi
43289 done
43290 done
43291 IFS=$as_save_IFS
43292
43293 fi
43294 fi
43295 PERL=$ac_cv_prog_PERL
43296 if test -n "$PERL"; then
43297   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
43298 $as_echo "$PERL" >&6; }
43299 else
43300   { $as_echo "$as_me:$LINENO: result: no" >&5
43301 $as_echo "no" >&6; }
43302 fi
43303
43304
43305 fi
43306
43307 # Check if version of Perl is sufficient
43308 ac_perl_version="5.6.0"
43309
43310 if test "x$PERL" != "x"; then
43311   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
43312 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
43313   # NB: It would be nice to log the error if there is one, but we cannot rely
43314   # on autoconf internals
43315   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
43316   if test $? -ne 0; then
43317     { $as_echo "$as_me:$LINENO: result: no" >&5
43318 $as_echo "no" >&6; };
43319
43320         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
43321 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
43322    { (exit 1); exit 1; }; }
43323
43324   else
43325     { $as_echo "$as_me:$LINENO: result: ok" >&5
43326 $as_echo "ok" >&6; };
43327
43328   fi
43329 else
43330   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
43331 $as_echo "$as_me: WARNING: could not find perl" >&2;}
43332 fi
43333
43334
43335
43336
43337     for ac_prog in swig
43338 do
43339   # Extract the first word of "$ac_prog", so it can be a program name with args.
43340 set dummy $ac_prog; ac_word=$2
43341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43342 $as_echo_n "checking for $ac_word... " >&6; }
43343 if test "${ac_cv_path_SWIG+set}" = set; then
43344   $as_echo_n "(cached) " >&6
43345 else
43346   case $SWIG in
43347   [\\/]* | ?:[\\/]*)
43348   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
43349   ;;
43350   *)
43351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43352 for as_dir in $LOCSYSPATH
43353 do
43354   IFS=$as_save_IFS
43355   test -z "$as_dir" && as_dir=.
43356   for ac_exec_ext in '' $ac_executable_extensions; do
43357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43358     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
43359     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43360     break 2
43361   fi
43362 done
43363 done
43364 IFS=$as_save_IFS
43365
43366   ;;
43367 esac
43368 fi
43369 SWIG=$ac_cv_path_SWIG
43370 if test -n "$SWIG"; then
43371   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
43372 $as_echo "$SWIG" >&6; }
43373 else
43374   { $as_echo "$as_me:$LINENO: result: no" >&5
43375 $as_echo "no" >&6; }
43376 fi
43377
43378
43379   test -n "$SWIG" && break
43380 done
43381
43382
43383     # 1.3.32 introduces a change in the way empty strings are handled (old versions
43384     # returned undef in Perl, while new versions return an empty Perl string)
43385     # 1.3.39 is required for the %begin block
43386
43387         # Extract the first word of "swig", so it can be a program name with args.
43388 set dummy swig; ac_word=$2
43389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43390 $as_echo_n "checking for $ac_word... " >&6; }
43391 if test "${ac_cv_path_SWIG+set}" = set; then
43392   $as_echo_n "(cached) " >&6
43393 else
43394   case $SWIG in
43395   [\\/]* | ?:[\\/]*)
43396   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
43397   ;;
43398   *)
43399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43400 for as_dir in $PATH
43401 do
43402   IFS=$as_save_IFS
43403   test -z "$as_dir" && as_dir=.
43404   for ac_exec_ext in '' $ac_executable_extensions; do
43405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43406     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
43407     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43408     break 2
43409   fi
43410 done
43411 done
43412 IFS=$as_save_IFS
43413
43414   ;;
43415 esac
43416 fi
43417 SWIG=$ac_cv_path_SWIG
43418 if test -n "$SWIG"; then
43419   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
43420 $as_echo "$SWIG" >&6; }
43421 else
43422   { $as_echo "$as_me:$LINENO: result: no" >&5
43423 $as_echo "no" >&6; }
43424 fi
43425
43426
43427         if test -z "$SWIG" ; then
43428                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
43429         elif test -n "1.3.39" ; then
43430                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
43431 $as_echo_n "checking for SWIG version... " >&6; }
43432                 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
43433                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
43434 $as_echo "$swig_version" >&6; }
43435                 if test -n "$swig_version" ; then
43436
43437   # Used to indicate true or false condition
43438   ax_compare_version=false
43439
43440   # Convert the two version strings to be compared into a format that
43441   # allows a simple string comparison.  The end result is that a version
43442   # string of the form 1.12.5-r617 will be converted to the form
43443   # 0001001200050617.  In other words, each number is zero padded to four
43444   # digits, and non digits are removed.
43445
43446   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
43447                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
43448                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
43449                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
43450                      -e 's/[^0-9]//g'`
43451
43452
43453   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
43454                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
43455                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
43456                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
43457                      -e 's/[^0-9]//g'`
43458
43459
43460     ax_compare_version=`echo "x$ax_compare_version_A
43461 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
43462
43463
43464
43465     if test "$ax_compare_version" = "true" ; then
43466
43467                                                     SWIG_LIB=`$SWIG -swiglib`
43468
43469     else
43470                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
43471
43472   fi
43473
43474                 else
43475                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
43476                 fi
43477         fi
43478
43479
43480
43481
43482     # Extract the first word of "ps", so it can be a program name with args.
43483 set dummy ps; ac_word=$2
43484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43485 $as_echo_n "checking for $ac_word... " >&6; }
43486 if test "${ac_cv_path_PS+set}" = set; then
43487   $as_echo_n "(cached) " >&6
43488 else
43489   case $PS in
43490   [\\/]* | ?:[\\/]*)
43491   ac_cv_path_PS="$PS" # Let the user override the test with a path.
43492   ;;
43493   *)
43494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43495 for as_dir in $PATH
43496 do
43497   IFS=$as_save_IFS
43498   test -z "$as_dir" && as_dir=.
43499   for ac_exec_ext in '' $ac_executable_extensions; do
43500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43501     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
43502     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43503     break 2
43504   fi
43505 done
43506 done
43507 IFS=$as_save_IFS
43508
43509   ;;
43510 esac
43511 fi
43512 PS=$ac_cv_path_PS
43513 if test -n "$PS"; then
43514   { $as_echo "$as_me:$LINENO: result: $PS" >&5
43515 $as_echo "$PS" >&6; }
43516 else
43517   { $as_echo "$as_me:$LINENO: result: no" >&5
43518 $as_echo "no" >&6; }
43519 fi
43520
43521
43522     { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
43523 $as_echo_n "checking ps argument to use... " >&6; }
43524     PS_ARGUMENT=
43525
43526     # ps is *very* non-portable, and across many systems, the same option
43527     # (e.g., -e) can mean different things.  So this macro tries to
43528     # special-case most known systems, and makes an effort to detect unknown
43529     # systems
43530     case "$host" in
43531         *-*-solaris*)
43532             PS_ARGUMENT="-eo pid,ppid,comm"
43533             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
43534             ;;
43535
43536         *-*-linux-*)
43537             PS_ARGUMENT="-eo pid,ppid,command"
43538             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
43539             ;;
43540
43541         *-*-*bsd*)
43542             PS_ARGUMENT="-axo pid,ppid,command"
43543             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
43544             ;;
43545
43546         *-apple-darwin*)
43547             PS_ARGUMENT="-aAco pid,ppid,command"
43548             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
43549             ;;
43550
43551         *-pc-cygwin)
43552             # Cygwin is special-cased in Amanda::Process
43553             PS_ARGUMENT=CYGWIN
43554             PS_ARGUMENT_ARGS="-ef"
43555             ;;
43556
43557         *-*-hpux*)
43558             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
43559             PS="UNIX95=1 $PS"
43560             PS_ARGUMENT="-eo pid,ppid,comm"
43561             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
43562             ;;
43563
43564         *)
43565             for try in \
43566                 "-axo pid,ppid,command" \
43567                 "-aAco pid,ppid,command" \
43568                 "-eo pid,ppid,comm"
43569             do
43570                 ps $try >/dev/null 2>/dev/null
43571                 if test $? -eq 0; then
43572                     PS_ARGUMENT="$try"
43573                     break
43574                 fi
43575             done
43576             for try in \
43577                 "-axo pid,ppid,command" \
43578                 "-aAo pid,ppid,command" \
43579                 "-eo pid,ppid,comm"
43580             do
43581                 ps $try >/dev/null 2>/dev/null
43582                 if test $? -eq 0; then
43583                     PS_ARGUMENT_ARGS="$try"
43584                     break
43585                 fi
43586             done
43587             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
43588                 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
43589 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
43590    { (exit 1); exit 1; }; }
43591             fi
43592             ;;
43593     esac
43594
43595     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
43596 $as_echo "$PS_ARGUMENT" >&6; }
43597
43598     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT_ARGS" >&5
43599 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
43600
43601
43602
43603
43604     # Extract the first word of "rpcgen", so it can be a program name with args.
43605 set dummy rpcgen; ac_word=$2
43606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43607 $as_echo_n "checking for $ac_word... " >&6; }
43608 if test "${ac_cv_path_RPCGEN+set}" = set; then
43609   $as_echo_n "(cached) " >&6
43610 else
43611   case $RPCGEN in
43612   [\\/]* | ?:[\\/]*)
43613   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
43614   ;;
43615   *)
43616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43617 for as_dir in $LOCSYSPATH
43618 do
43619   IFS=$as_save_IFS
43620   test -z "$as_dir" && as_dir=.
43621   for ac_exec_ext in '' $ac_executable_extensions; do
43622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43623     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
43624     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43625     break 2
43626   fi
43627 done
43628 done
43629 IFS=$as_save_IFS
43630
43631   ;;
43632 esac
43633 fi
43634 RPCGEN=$ac_cv_path_RPCGEN
43635 if test -n "$RPCGEN"; then
43636   { $as_echo "$as_me:$LINENO: result: $RPCGEN" >&5
43637 $as_echo "$RPCGEN" >&6; }
43638 else
43639   { $as_echo "$as_me:$LINENO: result: no" >&5
43640 $as_echo "no" >&6; }
43641 fi
43642
43643
43644
43645
43646
43647 #
43648 # Compiler / system characteristics
43649 #
43650
43651 #
43652 # compiler
43653 #
43654 if test $ac_cv_c_compiler_gnu = yes; then
43655     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
43656 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
43657 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
43658   $as_echo_n "(cached) " >&6
43659 else
43660     ac_pattern="Autoconf.*'x'"
43661   cat >conftest.$ac_ext <<_ACEOF
43662 /* confdefs.h.  */
43663 _ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h.  */
43667 #include <sgtty.h>
43668 Autoconf TIOCGETP
43669 _ACEOF
43670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43671   $EGREP "$ac_pattern" >/dev/null 2>&1; then
43672   ac_cv_prog_gcc_traditional=yes
43673 else
43674   ac_cv_prog_gcc_traditional=no
43675 fi
43676 rm -f conftest*
43677
43678
43679   if test $ac_cv_prog_gcc_traditional = no; then
43680     cat >conftest.$ac_ext <<_ACEOF
43681 /* confdefs.h.  */
43682 _ACEOF
43683 cat confdefs.h >>conftest.$ac_ext
43684 cat >>conftest.$ac_ext <<_ACEOF
43685 /* end confdefs.h.  */
43686 #include <termio.h>
43687 Autoconf TCGETA
43688 _ACEOF
43689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43690   $EGREP "$ac_pattern" >/dev/null 2>&1; then
43691   ac_cv_prog_gcc_traditional=yes
43692 fi
43693 rm -f conftest*
43694
43695   fi
43696 fi
43697 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
43698 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
43699   if test $ac_cv_prog_gcc_traditional = yes; then
43700     CC="$CC -traditional"
43701   fi
43702 fi
43703
43704 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
43705 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
43706 if test "${ac_cv_c_const+set}" = set; then
43707   $as_echo_n "(cached) " >&6
43708 else
43709   cat >conftest.$ac_ext <<_ACEOF
43710 /* confdefs.h.  */
43711 _ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h.  */
43715
43716 int
43717 main ()
43718 {
43719 /* FIXME: Include the comments suggested by Paul. */
43720 #ifndef __cplusplus
43721   /* Ultrix mips cc rejects this.  */
43722   typedef int charset[2];
43723   const charset cs;
43724   /* SunOS 4.1.1 cc rejects this.  */
43725   char const *const *pcpcc;
43726   char **ppc;
43727   /* NEC SVR4.0.2 mips cc rejects this.  */
43728   struct point {int x, y;};
43729   static struct point const zero = {0,0};
43730   /* AIX XL C 1.02.0.0 rejects this.
43731      It does not let you subtract one const X* pointer from another in
43732      an arm of an if-expression whose if-part is not a constant
43733      expression */
43734   const char *g = "string";
43735   pcpcc = &g + (g ? g-g : 0);
43736   /* HPUX 7.0 cc rejects these. */
43737   ++pcpcc;
43738   ppc = (char**) pcpcc;
43739   pcpcc = (char const *const *) ppc;
43740   { /* SCO 3.2v4 cc rejects this.  */
43741     char *t;
43742     char const *s = 0 ? (char *) 0 : (char const *) 0;
43743
43744     *t++ = 0;
43745     if (s) return 0;
43746   }
43747   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
43748     int x[] = {25, 17};
43749     const int *foo = &x[0];
43750     ++foo;
43751   }
43752   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
43753     typedef const int *iptr;
43754     iptr p = 0;
43755     ++p;
43756   }
43757   { /* AIX XL C 1.02.0.0 rejects this saying
43758        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
43759     struct s { int j; const int *ap[3]; };
43760     struct s *b; b->j = 5;
43761   }
43762   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
43763     const int foo = 10;
43764     if (!foo) return 0;
43765   }
43766   return !cs[0] && !zero.x;
43767 #endif
43768
43769   ;
43770   return 0;
43771 }
43772 _ACEOF
43773 rm -f conftest.$ac_objext
43774 if { (ac_try="$ac_compile"
43775 case "(($ac_try" in
43776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43777   *) ac_try_echo=$ac_try;;
43778 esac
43779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43780 $as_echo "$ac_try_echo") >&5
43781   (eval "$ac_compile") 2>conftest.er1
43782   ac_status=$?
43783   grep -v '^ *+' conftest.er1 >conftest.err
43784   rm -f conftest.er1
43785   cat conftest.err >&5
43786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43787   (exit $ac_status); } && {
43788          test -z "$ac_c_werror_flag" ||
43789          test ! -s conftest.err
43790        } && test -s conftest.$ac_objext; then
43791   ac_cv_c_const=yes
43792 else
43793   $as_echo "$as_me: failed program was:" >&5
43794 sed 's/^/| /' conftest.$ac_ext >&5
43795
43796         ac_cv_c_const=no
43797 fi
43798
43799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43800 fi
43801 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
43802 $as_echo "$ac_cv_c_const" >&6; }
43803 if test $ac_cv_c_const = no; then
43804
43805 cat >>confdefs.h <<\_ACEOF
43806 #define const /**/
43807 _ACEOF
43808
43809 fi
43810
43811
43812  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
43813 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
43814 if test "${ac_cv_c_bigendian+set}" = set; then
43815   $as_echo_n "(cached) " >&6
43816 else
43817   ac_cv_c_bigendian=unknown
43818     # See if we're dealing with a universal compiler.
43819     cat >conftest.$ac_ext <<_ACEOF
43820 /* confdefs.h.  */
43821 _ACEOF
43822 cat confdefs.h >>conftest.$ac_ext
43823 cat >>conftest.$ac_ext <<_ACEOF
43824 /* end confdefs.h.  */
43825 #ifndef __APPLE_CC__
43826                not a universal capable compiler
43827              #endif
43828              typedef int dummy;
43829
43830 _ACEOF
43831 rm -f conftest.$ac_objext
43832 if { (ac_try="$ac_compile"
43833 case "(($ac_try" in
43834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43835   *) ac_try_echo=$ac_try;;
43836 esac
43837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43838 $as_echo "$ac_try_echo") >&5
43839   (eval "$ac_compile") 2>conftest.er1
43840   ac_status=$?
43841   grep -v '^ *+' conftest.er1 >conftest.err
43842   rm -f conftest.er1
43843   cat conftest.err >&5
43844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43845   (exit $ac_status); } && {
43846          test -z "$ac_c_werror_flag" ||
43847          test ! -s conftest.err
43848        } && test -s conftest.$ac_objext; then
43849
43850         # Check for potential -arch flags.  It is not universal unless
43851         # there are some -arch flags.  Note that *ppc* also matches
43852         # ppc64.  This check is also rather less than ideal.
43853         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
43854           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
43855         esac
43856 else
43857   $as_echo "$as_me: failed program was:" >&5
43858 sed 's/^/| /' conftest.$ac_ext >&5
43859
43860
43861 fi
43862
43863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43864     if test $ac_cv_c_bigendian = unknown; then
43865       # See if sys/param.h defines the BYTE_ORDER macro.
43866       cat >conftest.$ac_ext <<_ACEOF
43867 /* confdefs.h.  */
43868 _ACEOF
43869 cat confdefs.h >>conftest.$ac_ext
43870 cat >>conftest.$ac_ext <<_ACEOF
43871 /* end confdefs.h.  */
43872 #include <sys/types.h>
43873              #include <sys/param.h>
43874
43875 int
43876 main ()
43877 {
43878 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
43879                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
43880                      && LITTLE_ENDIAN)
43881               bogus endian macros
43882              #endif
43883
43884   ;
43885   return 0;
43886 }
43887 _ACEOF
43888 rm -f conftest.$ac_objext
43889 if { (ac_try="$ac_compile"
43890 case "(($ac_try" in
43891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43892   *) ac_try_echo=$ac_try;;
43893 esac
43894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43895 $as_echo "$ac_try_echo") >&5
43896   (eval "$ac_compile") 2>conftest.er1
43897   ac_status=$?
43898   grep -v '^ *+' conftest.er1 >conftest.err
43899   rm -f conftest.er1
43900   cat conftest.err >&5
43901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43902   (exit $ac_status); } && {
43903          test -z "$ac_c_werror_flag" ||
43904          test ! -s conftest.err
43905        } && test -s conftest.$ac_objext; then
43906   # It does; now see whether it defined to BIG_ENDIAN or not.
43907          cat >conftest.$ac_ext <<_ACEOF
43908 /* confdefs.h.  */
43909 _ACEOF
43910 cat confdefs.h >>conftest.$ac_ext
43911 cat >>conftest.$ac_ext <<_ACEOF
43912 /* end confdefs.h.  */
43913 #include <sys/types.h>
43914                 #include <sys/param.h>
43915
43916 int
43917 main ()
43918 {
43919 #if BYTE_ORDER != BIG_ENDIAN
43920                  not big endian
43921                 #endif
43922
43923   ;
43924   return 0;
43925 }
43926 _ACEOF
43927 rm -f conftest.$ac_objext
43928 if { (ac_try="$ac_compile"
43929 case "(($ac_try" in
43930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43931   *) ac_try_echo=$ac_try;;
43932 esac
43933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43934 $as_echo "$ac_try_echo") >&5
43935   (eval "$ac_compile") 2>conftest.er1
43936   ac_status=$?
43937   grep -v '^ *+' conftest.er1 >conftest.err
43938   rm -f conftest.er1
43939   cat conftest.err >&5
43940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941   (exit $ac_status); } && {
43942          test -z "$ac_c_werror_flag" ||
43943          test ! -s conftest.err
43944        } && test -s conftest.$ac_objext; then
43945   ac_cv_c_bigendian=yes
43946 else
43947   $as_echo "$as_me: failed program was:" >&5
43948 sed 's/^/| /' conftest.$ac_ext >&5
43949
43950         ac_cv_c_bigendian=no
43951 fi
43952
43953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43954 else
43955   $as_echo "$as_me: failed program was:" >&5
43956 sed 's/^/| /' conftest.$ac_ext >&5
43957
43958
43959 fi
43960
43961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43962     fi
43963     if test $ac_cv_c_bigendian = unknown; then
43964       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
43965       cat >conftest.$ac_ext <<_ACEOF
43966 /* confdefs.h.  */
43967 _ACEOF
43968 cat confdefs.h >>conftest.$ac_ext
43969 cat >>conftest.$ac_ext <<_ACEOF
43970 /* end confdefs.h.  */
43971 #include <limits.h>
43972
43973 int
43974 main ()
43975 {
43976 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
43977               bogus endian macros
43978              #endif
43979
43980   ;
43981   return 0;
43982 }
43983 _ACEOF
43984 rm -f conftest.$ac_objext
43985 if { (ac_try="$ac_compile"
43986 case "(($ac_try" in
43987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43988   *) ac_try_echo=$ac_try;;
43989 esac
43990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43991 $as_echo "$ac_try_echo") >&5
43992   (eval "$ac_compile") 2>conftest.er1
43993   ac_status=$?
43994   grep -v '^ *+' conftest.er1 >conftest.err
43995   rm -f conftest.er1
43996   cat conftest.err >&5
43997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); } && {
43999          test -z "$ac_c_werror_flag" ||
44000          test ! -s conftest.err
44001        } && test -s conftest.$ac_objext; then
44002   # It does; now see whether it defined to _BIG_ENDIAN or not.
44003          cat >conftest.$ac_ext <<_ACEOF
44004 /* confdefs.h.  */
44005 _ACEOF
44006 cat confdefs.h >>conftest.$ac_ext
44007 cat >>conftest.$ac_ext <<_ACEOF
44008 /* end confdefs.h.  */
44009 #include <limits.h>
44010
44011 int
44012 main ()
44013 {
44014 #ifndef _BIG_ENDIAN
44015                  not big endian
44016                 #endif
44017
44018   ;
44019   return 0;
44020 }
44021 _ACEOF
44022 rm -f conftest.$ac_objext
44023 if { (ac_try="$ac_compile"
44024 case "(($ac_try" in
44025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44026   *) ac_try_echo=$ac_try;;
44027 esac
44028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44029 $as_echo "$ac_try_echo") >&5
44030   (eval "$ac_compile") 2>conftest.er1
44031   ac_status=$?
44032   grep -v '^ *+' conftest.er1 >conftest.err
44033   rm -f conftest.er1
44034   cat conftest.err >&5
44035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44036   (exit $ac_status); } && {
44037          test -z "$ac_c_werror_flag" ||
44038          test ! -s conftest.err
44039        } && test -s conftest.$ac_objext; then
44040   ac_cv_c_bigendian=yes
44041 else
44042   $as_echo "$as_me: failed program was:" >&5
44043 sed 's/^/| /' conftest.$ac_ext >&5
44044
44045         ac_cv_c_bigendian=no
44046 fi
44047
44048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44049 else
44050   $as_echo "$as_me: failed program was:" >&5
44051 sed 's/^/| /' conftest.$ac_ext >&5
44052
44053
44054 fi
44055
44056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44057     fi
44058     if test $ac_cv_c_bigendian = unknown; then
44059       # Compile a test program.
44060       if test "$cross_compiling" = yes; then
44061   # Try to guess by grepping values from an object file.
44062          cat >conftest.$ac_ext <<_ACEOF
44063 /* confdefs.h.  */
44064 _ACEOF
44065 cat confdefs.h >>conftest.$ac_ext
44066 cat >>conftest.$ac_ext <<_ACEOF
44067 /* end confdefs.h.  */
44068 short int ascii_mm[] =
44069                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
44070                 short int ascii_ii[] =
44071                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
44072                 int use_ascii (int i) {
44073                   return ascii_mm[i] + ascii_ii[i];
44074                 }
44075                 short int ebcdic_ii[] =
44076                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
44077                 short int ebcdic_mm[] =
44078                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
44079                 int use_ebcdic (int i) {
44080                   return ebcdic_mm[i] + ebcdic_ii[i];
44081                 }
44082                 extern int foo;
44083
44084 int
44085 main ()
44086 {
44087 return use_ascii (foo) == use_ebcdic (foo);
44088   ;
44089   return 0;
44090 }
44091 _ACEOF
44092 rm -f conftest.$ac_objext
44093 if { (ac_try="$ac_compile"
44094 case "(($ac_try" in
44095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44096   *) ac_try_echo=$ac_try;;
44097 esac
44098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44099 $as_echo "$ac_try_echo") >&5
44100   (eval "$ac_compile") 2>conftest.er1
44101   ac_status=$?
44102   grep -v '^ *+' conftest.er1 >conftest.err
44103   rm -f conftest.er1
44104   cat conftest.err >&5
44105   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44106   (exit $ac_status); } && {
44107          test -z "$ac_c_werror_flag" ||
44108          test ! -s conftest.err
44109        } && test -s conftest.$ac_objext; then
44110   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
44111               ac_cv_c_bigendian=yes
44112             fi
44113             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
44114               if test "$ac_cv_c_bigendian" = unknown; then
44115                 ac_cv_c_bigendian=no
44116               else
44117                 # finding both strings is unlikely to happen, but who knows?
44118                 ac_cv_c_bigendian=unknown
44119               fi
44120             fi
44121 else
44122   $as_echo "$as_me: failed program was:" >&5
44123 sed 's/^/| /' conftest.$ac_ext >&5
44124
44125
44126 fi
44127
44128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44129 else
44130   cat >conftest.$ac_ext <<_ACEOF
44131 /* confdefs.h.  */
44132 _ACEOF
44133 cat confdefs.h >>conftest.$ac_ext
44134 cat >>conftest.$ac_ext <<_ACEOF
44135 /* end confdefs.h.  */
44136 $ac_includes_default
44137 int
44138 main ()
44139 {
44140
44141              /* Are we little or big endian?  From Harbison&Steele.  */
44142              union
44143              {
44144                long int l;
44145                char c[sizeof (long int)];
44146              } u;
44147              u.l = 1;
44148              return u.c[sizeof (long int) - 1] == 1;
44149
44150   ;
44151   return 0;
44152 }
44153 _ACEOF
44154 rm -f conftest$ac_exeext
44155 if { (ac_try="$ac_link"
44156 case "(($ac_try" in
44157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44158   *) ac_try_echo=$ac_try;;
44159 esac
44160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44161 $as_echo "$ac_try_echo") >&5
44162   (eval "$ac_link") 2>&5
44163   ac_status=$?
44164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44166   { (case "(($ac_try" in
44167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44168   *) ac_try_echo=$ac_try;;
44169 esac
44170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44171 $as_echo "$ac_try_echo") >&5
44172   (eval "$ac_try") 2>&5
44173   ac_status=$?
44174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44175   (exit $ac_status); }; }; then
44176   ac_cv_c_bigendian=no
44177 else
44178   $as_echo "$as_me: program exited with status $ac_status" >&5
44179 $as_echo "$as_me: failed program was:" >&5
44180 sed 's/^/| /' conftest.$ac_ext >&5
44181
44182 ( exit $ac_status )
44183 ac_cv_c_bigendian=yes
44184 fi
44185 rm -rf conftest.dSYM
44186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44187 fi
44188
44189
44190     fi
44191 fi
44192 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
44193 $as_echo "$ac_cv_c_bigendian" >&6; }
44194  case $ac_cv_c_bigendian in #(
44195    yes)
44196      cat >>confdefs.h <<\_ACEOF
44197 #define WORDS_BIGENDIAN 1
44198 _ACEOF
44199 ;; #(
44200    no)
44201       ;; #(
44202    universal)
44203
44204 cat >>confdefs.h <<\_ACEOF
44205 #define AC_APPLE_UNIVERSAL_BUILD 1
44206 _ACEOF
44207
44208      ;; #(
44209    *)
44210      { { $as_echo "$as_me:$LINENO: error: unknown endianness
44211  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
44212 $as_echo "$as_me: error: unknown endianness
44213  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
44214    { (exit 1); exit 1; }; } ;;
44215  esac
44216
44217
44218 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
44219  if test "x$GCC" = "xyes"; then
44220   GCC_COMPILER_TRUE=
44221   GCC_COMPILER_FALSE='#'
44222 else
44223   GCC_COMPILER_TRUE='#'
44224   GCC_COMPILER_FALSE=
44225 fi
44226
44227
44228 #
44229 # Warnings
44230 #
44231
44232
44233
44234
44235     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
44236 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
44237     if test "x$GCC" = "xyes"; then
44238                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44239            $CC -v --help 2>&1) |
44240          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
44241                 if test $? -eq 0; then
44242             found_warning=yes
44243             { $as_echo "$as_me:$LINENO: result: yes" >&5
44244 $as_echo "yes" >&6; }
44245         else
44246             found_warning=no
44247             { $as_echo "$as_me:$LINENO: result: no" >&5
44248 $as_echo "no" >&6; }
44249         fi
44250     else
44251         found_warning=no
44252         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44253 $as_echo "no (not using gcc)" >&6; }
44254     fi
44255
44256     if test x"$found_warning" = x"yes"; then
44257         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
44258
44259
44260     else
44261         :
44262     fi
44263
44264
44265
44266
44267
44268
44269     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
44270 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
44271     if test "x$GCC" = "xyes"; then
44272                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44273            $CC -v --help 2>&1) |
44274          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
44275                 if test $? -eq 0; then
44276             found_warning=yes
44277             { $as_echo "$as_me:$LINENO: result: yes" >&5
44278 $as_echo "yes" >&6; }
44279         else
44280             found_warning=no
44281             { $as_echo "$as_me:$LINENO: result: no" >&5
44282 $as_echo "no" >&6; }
44283         fi
44284     else
44285         found_warning=no
44286         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44287 $as_echo "no (not using gcc)" >&6; }
44288     fi
44289
44290     if test x"$found_warning" = x"yes"; then
44291         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
44292
44293
44294     else
44295         :
44296     fi
44297
44298
44299
44300
44301
44302
44303     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
44304 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
44305     if test "x$GCC" = "xyes"; then
44306                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44307            $CC -v --help 2>&1) |
44308          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
44309                 if test $? -eq 0; then
44310             found_warning=yes
44311             { $as_echo "$as_me:$LINENO: result: yes" >&5
44312 $as_echo "yes" >&6; }
44313         else
44314             found_warning=no
44315             { $as_echo "$as_me:$LINENO: result: no" >&5
44316 $as_echo "no" >&6; }
44317         fi
44318     else
44319         found_warning=no
44320         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44321 $as_echo "no (not using gcc)" >&6; }
44322     fi
44323
44324     if test x"$found_warning" = x"yes"; then
44325         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
44326
44327
44328     else
44329         :
44330     fi
44331
44332
44333
44334
44335
44336
44337     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
44338 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
44339     if test "x$GCC" = "xyes"; then
44340                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44341            $CC -v --help 2>&1) |
44342          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
44343                 if test $? -eq 0; then
44344             found_warning=yes
44345             { $as_echo "$as_me:$LINENO: result: yes" >&5
44346 $as_echo "yes" >&6; }
44347         else
44348             found_warning=no
44349             { $as_echo "$as_me:$LINENO: result: no" >&5
44350 $as_echo "no" >&6; }
44351         fi
44352     else
44353         found_warning=no
44354         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44355 $as_echo "no (not using gcc)" >&6; }
44356     fi
44357
44358     if test x"$found_warning" = x"yes"; then
44359         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
44360
44361
44362     else
44363         :
44364     fi
44365
44366
44367
44368
44369
44370
44371     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
44372 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
44373     if test "x$GCC" = "xyes"; then
44374                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44375            $CC -v --help 2>&1) |
44376          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
44377                 if test $? -eq 0; then
44378             found_warning=yes
44379             { $as_echo "$as_me:$LINENO: result: yes" >&5
44380 $as_echo "yes" >&6; }
44381         else
44382             found_warning=no
44383             { $as_echo "$as_me:$LINENO: result: no" >&5
44384 $as_echo "no" >&6; }
44385         fi
44386     else
44387         found_warning=no
44388         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44389 $as_echo "no (not using gcc)" >&6; }
44390     fi
44391
44392     if test x"$found_warning" = x"yes"; then
44393         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
44394
44395
44396     else
44397         :
44398     fi
44399
44400
44401
44402
44403
44404
44405     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
44406 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
44407     if test "x$GCC" = "xyes"; then
44408                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44409            $CC -v --help 2>&1) |
44410          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
44411                 if test $? -eq 0; then
44412             found_warning=yes
44413             { $as_echo "$as_me:$LINENO: result: yes" >&5
44414 $as_echo "yes" >&6; }
44415         else
44416             found_warning=no
44417             { $as_echo "$as_me:$LINENO: result: no" >&5
44418 $as_echo "no" >&6; }
44419         fi
44420     else
44421         found_warning=no
44422         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44423 $as_echo "no (not using gcc)" >&6; }
44424     fi
44425
44426     if test x"$found_warning" = x"yes"; then
44427         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
44428
44429
44430     else
44431         :
44432     fi
44433
44434
44435
44436
44437
44438
44439     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
44440 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
44441     if test "x$GCC" = "xyes"; then
44442                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44443            $CC -v --help 2>&1) |
44444          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
44445                 if test $? -eq 0; then
44446             found_warning=yes
44447             { $as_echo "$as_me:$LINENO: result: yes" >&5
44448 $as_echo "yes" >&6; }
44449         else
44450             found_warning=no
44451             { $as_echo "$as_me:$LINENO: result: no" >&5
44452 $as_echo "no" >&6; }
44453         fi
44454     else
44455         found_warning=no
44456         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44457 $as_echo "no (not using gcc)" >&6; }
44458     fi
44459
44460     if test x"$found_warning" = x"yes"; then
44461         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
44462
44463
44464     else
44465         :
44466     fi
44467
44468
44469
44470
44471
44472
44473     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
44474 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
44475     if test "x$GCC" = "xyes"; then
44476                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44477            $CC -v --help 2>&1) |
44478          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
44479                 if test $? -eq 0; then
44480             found_warning=yes
44481             { $as_echo "$as_me:$LINENO: result: yes" >&5
44482 $as_echo "yes" >&6; }
44483         else
44484             found_warning=no
44485             { $as_echo "$as_me:$LINENO: result: no" >&5
44486 $as_echo "no" >&6; }
44487         fi
44488     else
44489         found_warning=no
44490         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44491 $as_echo "no (not using gcc)" >&6; }
44492     fi
44493
44494     if test x"$found_warning" = x"yes"; then
44495         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
44496
44497
44498     else
44499         :
44500     fi
44501
44502
44503
44504
44505
44506
44507     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
44508 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
44509     if test "x$GCC" = "xyes"; then
44510                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44511            $CC -v --help 2>&1) |
44512          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
44513                 if test $? -eq 0; then
44514             found_warning=yes
44515             { $as_echo "$as_me:$LINENO: result: yes" >&5
44516 $as_echo "yes" >&6; }
44517         else
44518             found_warning=no
44519             { $as_echo "$as_me:$LINENO: result: no" >&5
44520 $as_echo "no" >&6; }
44521         fi
44522     else
44523         found_warning=no
44524         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44525 $as_echo "no (not using gcc)" >&6; }
44526     fi
44527
44528     if test x"$found_warning" = x"yes"; then
44529         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
44530
44531
44532     else
44533         :
44534     fi
44535
44536
44537
44538
44539
44540
44541     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
44542 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
44543     if test "x$GCC" = "xyes"; then
44544                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44545            $CC -v --help 2>&1) |
44546          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
44547                 if test $? -eq 0; then
44548             found_warning=yes
44549             { $as_echo "$as_me:$LINENO: result: yes" >&5
44550 $as_echo "yes" >&6; }
44551         else
44552             found_warning=no
44553             { $as_echo "$as_me:$LINENO: result: no" >&5
44554 $as_echo "no" >&6; }
44555         fi
44556     else
44557         found_warning=no
44558         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44559 $as_echo "no (not using gcc)" >&6; }
44560     fi
44561
44562     if test x"$found_warning" = x"yes"; then
44563         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
44564
44565
44566     else
44567         :
44568     fi
44569
44570
44571
44572     # test for -W'warning', then add the 'no-' version.
44573
44574
44575
44576     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
44577 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
44578     if test "x$GCC" = "xyes"; then
44579                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44580            $CC -v --help 2>&1) |
44581          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
44582                 if test $? -eq 0; then
44583             found_warning=yes
44584             { $as_echo "$as_me:$LINENO: result: yes" >&5
44585 $as_echo "yes" >&6; }
44586         else
44587             found_warning=no
44588             { $as_echo "$as_me:$LINENO: result: no" >&5
44589 $as_echo "no" >&6; }
44590         fi
44591     else
44592         found_warning=no
44593         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44594 $as_echo "no (not using gcc)" >&6; }
44595     fi
44596
44597     if test x"$found_warning" = x"yes"; then
44598         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
44599
44600
44601     else
44602         :
44603     fi
44604
44605
44606
44607     # test for -W'warning', then add the 'no-' version.
44608
44609
44610
44611     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
44612 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
44613     if test "x$GCC" = "xyes"; then
44614                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44615            $CC -v --help 2>&1) |
44616          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
44617                 if test $? -eq 0; then
44618             found_warning=yes
44619             { $as_echo "$as_me:$LINENO: result: yes" >&5
44620 $as_echo "yes" >&6; }
44621         else
44622             found_warning=no
44623             { $as_echo "$as_me:$LINENO: result: no" >&5
44624 $as_echo "no" >&6; }
44625         fi
44626     else
44627         found_warning=no
44628         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44629 $as_echo "no (not using gcc)" >&6; }
44630     fi
44631
44632     if test x"$found_warning" = x"yes"; then
44633         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
44634
44635
44636     else
44637         :
44638     fi
44639
44640
44641
44642     # Check whether --enable-werror was given.
44643 if test "${enable_werror+set}" = set; then
44644   enableval=$enable_werror;
44645             case "$enableval" in
44646             "" | y | ye | yes)
44647
44648
44649
44650
44651     { $as_echo "$as_me:$LINENO: checking for gcc flag -Werror" >&5
44652 $as_echo_n "checking for gcc flag -Werror... " >&6; }
44653     if test "x$GCC" = "xyes"; then
44654                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
44655            $CC -v --help 2>&1) |
44656          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
44657                 if test $? -eq 0; then
44658             found_warning=yes
44659             { $as_echo "$as_me:$LINENO: result: yes" >&5
44660 $as_echo "yes" >&6; }
44661         else
44662             found_warning=no
44663             { $as_echo "$as_me:$LINENO: result: no" >&5
44664 $as_echo "no" >&6; }
44665         fi
44666     else
44667         found_warning=no
44668         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
44669 $as_echo "no (not using gcc)" >&6; }
44670     fi
44671
44672     if test x"$found_warning" = x"yes"; then
44673         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
44674
44675
44676     else
44677         :
44678     fi
44679
44680
44681                 ;;
44682             esac
44683
44684 fi
44685
44686
44687
44688     # Check whether --enable-swig-error was given.
44689 if test "${enable_swig_error+set}" = set; then
44690   enableval=$enable_swig_error;
44691             case "$enableval" in
44692             "" | y | ye | yes)
44693                 AMANDA_SWIG_PERL_CFLAGS=-Werror
44694                 ;;
44695             *n | no)
44696                 AMANDA_SWIG_PERL_CFLAGS=
44697                 ;;
44698             esac
44699
44700 fi
44701
44702
44703
44704
44705 #
44706 # Libtool
44707 #
44708 case `pwd` in
44709   *\ * | *\     *)
44710     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
44711 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
44712 esac
44713
44714
44715
44716 macro_version='2.2.4'
44717 macro_revision='1.2976'
44718
44719
44720
44721
44722
44723
44724
44725
44726
44727
44728
44729
44730
44731 ltmain="$ac_aux_dir/ltmain.sh"
44732
44733 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
44734 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
44735 if test "${ac_cv_path_SED+set}" = set; then
44736   $as_echo_n "(cached) " >&6
44737 else
44738             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
44739      for ac_i in 1 2 3 4 5 6 7; do
44740        ac_script="$ac_script$as_nl$ac_script"
44741      done
44742      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
44743      $as_unset ac_script || ac_script=
44744      if test -z "$SED"; then
44745   ac_path_SED_found=false
44746   # Loop through the user's path and test for each of PROGNAME-LIST
44747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44748 for as_dir in $PATH
44749 do
44750   IFS=$as_save_IFS
44751   test -z "$as_dir" && as_dir=.
44752   for ac_prog in sed gsed; do
44753     for ac_exec_ext in '' $ac_executable_extensions; do
44754       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
44755       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
44756 # Check for GNU ac_path_SED and select it if it is found.
44757   # Check for GNU $ac_path_SED
44758 case `"$ac_path_SED" --version 2>&1` in
44759 *GNU*)
44760   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
44761 *)
44762   ac_count=0
44763   $as_echo_n 0123456789 >"conftest.in"
44764   while :
44765   do
44766     cat "conftest.in" "conftest.in" >"conftest.tmp"
44767     mv "conftest.tmp" "conftest.in"
44768     cp "conftest.in" "conftest.nl"
44769     $as_echo '' >> "conftest.nl"
44770     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
44771     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
44772     ac_count=`expr $ac_count + 1`
44773     if test $ac_count -gt ${ac_path_SED_max-0}; then
44774       # Best one so far, save it but keep looking for a better one
44775       ac_cv_path_SED="$ac_path_SED"
44776       ac_path_SED_max=$ac_count
44777     fi
44778     # 10*(2^10) chars as input seems more than enough
44779     test $ac_count -gt 10 && break
44780   done
44781   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
44782 esac
44783
44784       $ac_path_SED_found && break 3
44785     done
44786   done
44787 done
44788 IFS=$as_save_IFS
44789   if test -z "$ac_cv_path_SED"; then
44790     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
44791 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
44792    { (exit 1); exit 1; }; }
44793   fi
44794 else
44795   ac_cv_path_SED=$SED
44796 fi
44797
44798 fi
44799 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
44800 $as_echo "$ac_cv_path_SED" >&6; }
44801  SED="$ac_cv_path_SED"
44802   rm -f conftest.sed
44803
44804 test -z "$SED" && SED=sed
44805 Xsed="$SED -e 1s/^X//"
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
44818 $as_echo_n "checking for fgrep... " >&6; }
44819 if test "${ac_cv_path_FGREP+set}" = set; then
44820   $as_echo_n "(cached) " >&6
44821 else
44822   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
44823    then ac_cv_path_FGREP="$GREP -F"
44824    else
44825      if test -z "$FGREP"; then
44826   ac_path_FGREP_found=false
44827   # Loop through the user's path and test for each of PROGNAME-LIST
44828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
44830 do
44831   IFS=$as_save_IFS
44832   test -z "$as_dir" && as_dir=.
44833   for ac_prog in fgrep; do
44834     for ac_exec_ext in '' $ac_executable_extensions; do
44835       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
44836       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
44837 # Check for GNU ac_path_FGREP and select it if it is found.
44838   # Check for GNU $ac_path_FGREP
44839 case `"$ac_path_FGREP" --version 2>&1` in
44840 *GNU*)
44841   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
44842 *)
44843   ac_count=0
44844   $as_echo_n 0123456789 >"conftest.in"
44845   while :
44846   do
44847     cat "conftest.in" "conftest.in" >"conftest.tmp"
44848     mv "conftest.tmp" "conftest.in"
44849     cp "conftest.in" "conftest.nl"
44850     $as_echo 'FGREP' >> "conftest.nl"
44851     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
44852     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
44853     ac_count=`expr $ac_count + 1`
44854     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
44855       # Best one so far, save it but keep looking for a better one
44856       ac_cv_path_FGREP="$ac_path_FGREP"
44857       ac_path_FGREP_max=$ac_count
44858     fi
44859     # 10*(2^10) chars as input seems more than enough
44860     test $ac_count -gt 10 && break
44861   done
44862   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
44863 esac
44864
44865       $ac_path_FGREP_found && break 3
44866     done
44867   done
44868 done
44869 IFS=$as_save_IFS
44870   if test -z "$ac_cv_path_FGREP"; then
44871     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
44872 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
44873    { (exit 1); exit 1; }; }
44874   fi
44875 else
44876   ac_cv_path_FGREP=$FGREP
44877 fi
44878
44879    fi
44880 fi
44881 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
44882 $as_echo "$ac_cv_path_FGREP" >&6; }
44883  FGREP="$ac_cv_path_FGREP"
44884
44885
44886 test -z "$GREP" && GREP=grep
44887
44888
44889
44890
44891
44892
44893
44894
44895
44896
44897
44898
44899
44900
44901
44902
44903
44904
44905
44906 # Check whether --with-gnu-ld was given.
44907 if test "${with_gnu_ld+set}" = set; then
44908   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
44909 else
44910   with_gnu_ld=no
44911 fi
44912
44913 ac_prog=ld
44914 if test "$GCC" = yes; then
44915   # Check if gcc -print-prog-name=ld gives a path.
44916   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
44917 $as_echo_n "checking for ld used by $CC... " >&6; }
44918   case $host in
44919   *-*-mingw*)
44920     # gcc leaves a trailing carriage return which upsets mingw
44921     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
44922   *)
44923     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
44924   esac
44925   case $ac_prog in
44926     # Accept absolute paths.
44927     [\\/]* | ?:[\\/]*)
44928       re_direlt='/[^/][^/]*/\.\./'
44929       # Canonicalize the pathname of ld
44930       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
44931       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
44932         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
44933       done
44934       test -z "$LD" && LD="$ac_prog"
44935       ;;
44936   "")
44937     # If it fails, then pretend we aren't using GCC.
44938     ac_prog=ld
44939     ;;
44940   *)
44941     # If it is relative, then search for the first ld in PATH.
44942     with_gnu_ld=unknown
44943     ;;
44944   esac
44945 elif test "$with_gnu_ld" = yes; then
44946   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
44947 $as_echo_n "checking for GNU ld... " >&6; }
44948 else
44949   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
44950 $as_echo_n "checking for non-GNU ld... " >&6; }
44951 fi
44952 if test "${lt_cv_path_LD+set}" = set; then
44953   $as_echo_n "(cached) " >&6
44954 else
44955   if test -z "$LD"; then
44956   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
44957   for ac_dir in $PATH; do
44958     IFS="$lt_save_ifs"
44959     test -z "$ac_dir" && ac_dir=.
44960     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
44961       lt_cv_path_LD="$ac_dir/$ac_prog"
44962       # Check to see if the program is GNU ld.  I'd rather use --version,
44963       # but apparently some variants of GNU ld only accept -v.
44964       # Break only if it was the GNU/non-GNU ld that we prefer.
44965       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
44966       *GNU* | *'with BFD'*)
44967         test "$with_gnu_ld" != no && break
44968         ;;
44969       *)
44970         test "$with_gnu_ld" != yes && break
44971         ;;
44972       esac
44973     fi
44974   done
44975   IFS="$lt_save_ifs"
44976 else
44977   lt_cv_path_LD="$LD" # Let the user override the test with a path.
44978 fi
44979 fi
44980
44981 LD="$lt_cv_path_LD"
44982 if test -n "$LD"; then
44983   { $as_echo "$as_me:$LINENO: result: $LD" >&5
44984 $as_echo "$LD" >&6; }
44985 else
44986   { $as_echo "$as_me:$LINENO: result: no" >&5
44987 $as_echo "no" >&6; }
44988 fi
44989 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
44990 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
44991    { (exit 1); exit 1; }; }
44992 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
44993 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
44994 if test "${lt_cv_prog_gnu_ld+set}" = set; then
44995   $as_echo_n "(cached) " >&6
44996 else
44997   # I'd rather use --version here, but apparently some GNU lds only accept -v.
44998 case `$LD -v 2>&1 </dev/null` in
44999 *GNU* | *'with BFD'*)
45000   lt_cv_prog_gnu_ld=yes
45001   ;;
45002 *)
45003   lt_cv_prog_gnu_ld=no
45004   ;;
45005 esac
45006 fi
45007 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
45008 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
45009 with_gnu_ld=$lt_cv_prog_gnu_ld
45010
45011
45012
45013
45014
45015
45016
45017
45018
45019 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
45020 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
45021 if test "${lt_cv_path_NM+set}" = set; then
45022   $as_echo_n "(cached) " >&6
45023 else
45024   if test -n "$NM"; then
45025   # Let the user override the test.
45026   lt_cv_path_NM="$NM"
45027 else
45028   lt_nm_to_check="${ac_tool_prefix}nm"
45029   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
45030     lt_nm_to_check="$lt_nm_to_check nm"
45031   fi
45032   for lt_tmp_nm in $lt_nm_to_check; do
45033     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
45034     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
45035       IFS="$lt_save_ifs"
45036       test -z "$ac_dir" && ac_dir=.
45037       tmp_nm="$ac_dir/$lt_tmp_nm"
45038       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
45039         # Check to see if the nm accepts a BSD-compat flag.
45040         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
45041         #   nm: unknown option "B" ignored
45042         # Tru64's nm complains that /dev/null is an invalid object file
45043         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
45044         */dev/null* | *'Invalid file or object type'*)
45045           lt_cv_path_NM="$tmp_nm -B"
45046           break
45047           ;;
45048         *)
45049           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
45050           */dev/null*)
45051             lt_cv_path_NM="$tmp_nm -p"
45052             break
45053             ;;
45054           *)
45055             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
45056             continue # so that we can try to find one that supports BSD flags
45057             ;;
45058           esac
45059           ;;
45060         esac
45061       fi
45062     done
45063     IFS="$lt_save_ifs"
45064   done
45065   : ${lt_cv_path_NM=no}
45066 fi
45067 fi
45068 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
45069 $as_echo "$lt_cv_path_NM" >&6; }
45070 if test "$lt_cv_path_NM" != "no"; then
45071   NM="$lt_cv_path_NM"
45072 else
45073   # Didn't find any BSD compatible name lister, look for dumpbin.
45074   if test -n "$ac_tool_prefix"; then
45075   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
45076   do
45077     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
45078 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
45079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45080 $as_echo_n "checking for $ac_word... " >&6; }
45081 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
45082   $as_echo_n "(cached) " >&6
45083 else
45084   if test -n "$DUMPBIN"; then
45085   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
45086 else
45087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45088 for as_dir in $PATH
45089 do
45090   IFS=$as_save_IFS
45091   test -z "$as_dir" && as_dir=.
45092   for ac_exec_ext in '' $ac_executable_extensions; do
45093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45094     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
45095     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45096     break 2
45097   fi
45098 done
45099 done
45100 IFS=$as_save_IFS
45101
45102 fi
45103 fi
45104 DUMPBIN=$ac_cv_prog_DUMPBIN
45105 if test -n "$DUMPBIN"; then
45106   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
45107 $as_echo "$DUMPBIN" >&6; }
45108 else
45109   { $as_echo "$as_me:$LINENO: result: no" >&5
45110 $as_echo "no" >&6; }
45111 fi
45112
45113
45114     test -n "$DUMPBIN" && break
45115   done
45116 fi
45117 if test -z "$DUMPBIN"; then
45118   ac_ct_DUMPBIN=$DUMPBIN
45119   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
45120 do
45121   # Extract the first word of "$ac_prog", so it can be a program name with args.
45122 set dummy $ac_prog; ac_word=$2
45123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45124 $as_echo_n "checking for $ac_word... " >&6; }
45125 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
45126   $as_echo_n "(cached) " >&6
45127 else
45128   if test -n "$ac_ct_DUMPBIN"; then
45129   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
45130 else
45131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45132 for as_dir in $PATH
45133 do
45134   IFS=$as_save_IFS
45135   test -z "$as_dir" && as_dir=.
45136   for ac_exec_ext in '' $ac_executable_extensions; do
45137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45138     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
45139     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45140     break 2
45141   fi
45142 done
45143 done
45144 IFS=$as_save_IFS
45145
45146 fi
45147 fi
45148 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
45149 if test -n "$ac_ct_DUMPBIN"; then
45150   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
45151 $as_echo "$ac_ct_DUMPBIN" >&6; }
45152 else
45153   { $as_echo "$as_me:$LINENO: result: no" >&5
45154 $as_echo "no" >&6; }
45155 fi
45156
45157
45158   test -n "$ac_ct_DUMPBIN" && break
45159 done
45160
45161   if test "x$ac_ct_DUMPBIN" = x; then
45162     DUMPBIN=":"
45163   else
45164     case $cross_compiling:$ac_tool_warned in
45165 yes:)
45166 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
45167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45168 ac_tool_warned=yes ;;
45169 esac
45170     DUMPBIN=$ac_ct_DUMPBIN
45171   fi
45172 fi
45173
45174
45175   if test "$DUMPBIN" != ":"; then
45176     NM="$DUMPBIN"
45177   fi
45178 fi
45179 test -z "$NM" && NM=nm
45180
45181
45182
45183
45184
45185
45186 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
45187 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
45188 if test "${lt_cv_nm_interface+set}" = set; then
45189   $as_echo_n "(cached) " >&6
45190 else
45191   lt_cv_nm_interface="BSD nm"
45192   echo "int some_variable = 0;" > conftest.$ac_ext
45193   (eval echo "\"\$as_me:45193: $ac_compile\"" >&5)
45194   (eval "$ac_compile" 2>conftest.err)
45195   cat conftest.err >&5
45196   (eval echo "\"\$as_me:45196: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
45197   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
45198   cat conftest.err >&5
45199   (eval echo "\"\$as_me:45199: output\"" >&5)
45200   cat conftest.out >&5
45201   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
45202     lt_cv_nm_interface="MS dumpbin"
45203   fi
45204   rm -f conftest*
45205 fi
45206 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
45207 $as_echo "$lt_cv_nm_interface" >&6; }
45208
45209 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
45210 $as_echo_n "checking whether ln -s works... " >&6; }
45211 LN_S=$as_ln_s
45212 if test "$LN_S" = "ln -s"; then
45213   { $as_echo "$as_me:$LINENO: result: yes" >&5
45214 $as_echo "yes" >&6; }
45215 else
45216   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45217 $as_echo "no, using $LN_S" >&6; }
45218 fi
45219
45220 # find the maximum length of command line arguments
45221 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
45222 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
45223 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
45224   $as_echo_n "(cached) " >&6
45225 else
45226     i=0
45227   teststring="ABCD"
45228
45229   case $build_os in
45230   msdosdjgpp*)
45231     # On DJGPP, this test can blow up pretty badly due to problems in libc
45232     # (any single argument exceeding 2000 bytes causes a buffer overrun
45233     # during glob expansion).  Even if it were fixed, the result of this
45234     # check would be larger than it should be.
45235     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
45236     ;;
45237
45238   gnu*)
45239     # Under GNU Hurd, this test is not required because there is
45240     # no limit to the length of command line arguments.
45241     # Libtool will interpret -1 as no limit whatsoever
45242     lt_cv_sys_max_cmd_len=-1;
45243     ;;
45244
45245   cygwin* | mingw*)
45246     # On Win9x/ME, this test blows up -- it succeeds, but takes
45247     # about 5 minutes as the teststring grows exponentially.
45248     # Worse, since 9x/ME are not pre-emptively multitasking,
45249     # you end up with a "frozen" computer, even though with patience
45250     # the test eventually succeeds (with a max line length of 256k).
45251     # Instead, let's just punt: use the minimum linelength reported by
45252     # all of the supported platforms: 8192 (on NT/2K/XP).
45253     lt_cv_sys_max_cmd_len=8192;
45254     ;;
45255
45256   amigaos*)
45257     # On AmigaOS with pdksh, this test takes hours, literally.
45258     # So we just punt and use a minimum line length of 8192.
45259     lt_cv_sys_max_cmd_len=8192;
45260     ;;
45261
45262   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
45263     # This has been around since 386BSD, at least.  Likely further.
45264     if test -x /sbin/sysctl; then
45265       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
45266     elif test -x /usr/sbin/sysctl; then
45267       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
45268     else
45269       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
45270     fi
45271     # And add a safety zone
45272     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
45273     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
45274     ;;
45275
45276   interix*)
45277     # We know the value 262144 and hardcode it with a safety zone (like BSD)
45278     lt_cv_sys_max_cmd_len=196608
45279     ;;
45280
45281   osf*)
45282     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
45283     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
45284     # nice to cause kernel panics so lets avoid the loop below.
45285     # First set a reasonable default.
45286     lt_cv_sys_max_cmd_len=16384
45287     #
45288     if test -x /sbin/sysconfig; then
45289       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
45290         *1*) lt_cv_sys_max_cmd_len=-1 ;;
45291       esac
45292     fi
45293     ;;
45294   sco3.2v5*)
45295     lt_cv_sys_max_cmd_len=102400
45296     ;;
45297   sysv5* | sco5v6* | sysv4.2uw2*)
45298     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
45299     if test -n "$kargmax"; then
45300       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
45301     else
45302       lt_cv_sys_max_cmd_len=32768
45303     fi
45304     ;;
45305   *)
45306     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
45307     if test -n "$lt_cv_sys_max_cmd_len"; then
45308       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
45309       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
45310     else
45311       # Make teststring a little bigger before we do anything with it.
45312       # a 1K string should be a reasonable start.
45313       for i in 1 2 3 4 5 6 7 8 ; do
45314         teststring=$teststring$teststring
45315       done
45316       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
45317       # If test is not a shell built-in, we'll probably end up computing a
45318       # maximum length that is only half of the actual maximum length, but
45319       # we can't tell.
45320       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
45321                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
45322               test $i != 17 # 1/2 MB should be enough
45323       do
45324         i=`expr $i + 1`
45325         teststring=$teststring$teststring
45326       done
45327       # Only check the string length outside the loop.
45328       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
45329       teststring=
45330       # Add a significant safety factor because C++ compilers can tack on
45331       # massive amounts of additional arguments before passing them to the
45332       # linker.  It appears as though 1/2 is a usable value.
45333       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
45334     fi
45335     ;;
45336   esac
45337
45338 fi
45339
45340 if test -n $lt_cv_sys_max_cmd_len ; then
45341   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
45342 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
45343 else
45344   { $as_echo "$as_me:$LINENO: result: none" >&5
45345 $as_echo "none" >&6; }
45346 fi
45347 max_cmd_len=$lt_cv_sys_max_cmd_len
45348
45349
45350
45351
45352
45353
45354 : ${CP="cp -f"}
45355 : ${MV="mv -f"}
45356 : ${RM="rm -f"}
45357
45358 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
45359 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
45360 # Try some XSI features
45361 xsi_shell=no
45362 ( _lt_dummy="a/b/c"
45363   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
45364       = c,a/b,, \
45365     && eval 'test $(( 1 + 1 )) -eq 2 \
45366     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
45367   && xsi_shell=yes
45368 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
45369 $as_echo "$xsi_shell" >&6; }
45370
45371
45372 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
45373 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
45374 lt_shell_append=no
45375 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
45376     >/dev/null 2>&1 \
45377   && lt_shell_append=yes
45378 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
45379 $as_echo "$lt_shell_append" >&6; }
45380
45381
45382 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
45383   lt_unset=unset
45384 else
45385   lt_unset=false
45386 fi
45387
45388
45389
45390
45391
45392 # test EBCDIC or ASCII
45393 case `echo X|tr X '\101'` in
45394  A) # ASCII based system
45395     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
45396   lt_SP2NL='tr \040 \012'
45397   lt_NL2SP='tr \015\012 \040\040'
45398   ;;
45399  *) # EBCDIC based system
45400   lt_SP2NL='tr \100 \n'
45401   lt_NL2SP='tr \r\n \100\100'
45402   ;;
45403 esac
45404
45405
45406
45407
45408
45409
45410
45411
45412
45413 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
45414 $as_echo_n "checking for $LD option to reload object files... " >&6; }
45415 if test "${lt_cv_ld_reload_flag+set}" = set; then
45416   $as_echo_n "(cached) " >&6
45417 else
45418   lt_cv_ld_reload_flag='-r'
45419 fi
45420 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
45421 $as_echo "$lt_cv_ld_reload_flag" >&6; }
45422 reload_flag=$lt_cv_ld_reload_flag
45423 case $reload_flag in
45424 "" | " "*) ;;
45425 *) reload_flag=" $reload_flag" ;;
45426 esac
45427 reload_cmds='$LD$reload_flag -o $output$reload_objs'
45428 case $host_os in
45429   darwin*)
45430     if test "$GCC" = yes; then
45431       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
45432     else
45433       reload_cmds='$LD$reload_flag -o $output$reload_objs'
45434     fi
45435     ;;
45436 esac
45437
45438
45439
45440
45441
45442
45443
45444
45445
45446
45447 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
45448 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
45449 if test "${lt_cv_deplibs_check_method+set}" = set; then
45450   $as_echo_n "(cached) " >&6
45451 else
45452   lt_cv_file_magic_cmd='$MAGIC_CMD'
45453 lt_cv_file_magic_test_file=
45454 lt_cv_deplibs_check_method='unknown'
45455 # Need to set the preceding variable on all platforms that support
45456 # interlibrary dependencies.
45457 # 'none' -- dependencies not supported.
45458 # `unknown' -- same as none, but documents that we really don't know.
45459 # 'pass_all' -- all dependencies passed with no checks.
45460 # 'test_compile' -- check by making test program.
45461 # 'file_magic [[regex]]' -- check by looking for files in library path
45462 # which responds to the $file_magic_cmd with a given extended regex.
45463 # If you have `file' or equivalent on your system and you're not sure
45464 # whether `pass_all' will *always* work, you probably want this one.
45465
45466 case $host_os in
45467 aix[4-9]*)
45468   lt_cv_deplibs_check_method=pass_all
45469   ;;
45470
45471 beos*)
45472   lt_cv_deplibs_check_method=pass_all
45473   ;;
45474
45475 bsdi[45]*)
45476   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
45477   lt_cv_file_magic_cmd='/usr/bin/file -L'
45478   lt_cv_file_magic_test_file=/shlib/libc.so
45479   ;;
45480
45481 cygwin*)
45482   # func_win32_libid is a shell function defined in ltmain.sh
45483   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
45484   lt_cv_file_magic_cmd='func_win32_libid'
45485   ;;
45486
45487 mingw* | pw32*)
45488   # Base MSYS/MinGW do not provide the 'file' command needed by
45489   # func_win32_libid shell function, so use a weaker test based on 'objdump',
45490   # unless we find 'file', for example because we are cross-compiling.
45491   if ( file / ) >/dev/null 2>&1; then
45492     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
45493     lt_cv_file_magic_cmd='func_win32_libid'
45494   else
45495     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
45496     lt_cv_file_magic_cmd='$OBJDUMP -f'
45497   fi
45498   ;;
45499
45500 darwin* | rhapsody*)
45501   lt_cv_deplibs_check_method=pass_all
45502   ;;
45503
45504 freebsd* | dragonfly*)
45505   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
45506     case $host_cpu in
45507     i*86 )
45508       # Not sure whether the presence of OpenBSD here was a mistake.
45509       # Let's accept both of them until this is cleared up.
45510       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
45511       lt_cv_file_magic_cmd=/usr/bin/file
45512       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
45513       ;;
45514     esac
45515   else
45516     lt_cv_deplibs_check_method=pass_all
45517   fi
45518   ;;
45519
45520 gnu*)
45521   lt_cv_deplibs_check_method=pass_all
45522   ;;
45523
45524 hpux10.20* | hpux11*)
45525   lt_cv_file_magic_cmd=/usr/bin/file
45526   case $host_cpu in
45527   ia64*)
45528     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
45529     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
45530     ;;
45531   hppa*64*)
45532     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]'
45533     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
45534     ;;
45535   *)
45536     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
45537     lt_cv_file_magic_test_file=/usr/lib/libc.sl
45538     ;;
45539   esac
45540   ;;
45541
45542 interix[3-9]*)
45543   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
45544   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
45545   ;;
45546
45547 irix5* | irix6* | nonstopux*)
45548   case $LD in
45549   *-32|*"-32 ") libmagic=32-bit;;
45550   *-n32|*"-n32 ") libmagic=N32;;
45551   *-64|*"-64 ") libmagic=64-bit;;
45552   *) libmagic=never-match;;
45553   esac
45554   lt_cv_deplibs_check_method=pass_all
45555   ;;
45556
45557 # This must be Linux ELF.
45558 linux* | k*bsd*-gnu)
45559   lt_cv_deplibs_check_method=pass_all
45560   ;;
45561
45562 netbsd*)
45563   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
45564     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
45565   else
45566     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
45567   fi
45568   ;;
45569
45570 newos6*)
45571   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
45572   lt_cv_file_magic_cmd=/usr/bin/file
45573   lt_cv_file_magic_test_file=/usr/lib/libnls.so
45574   ;;
45575
45576 *nto* | *qnx*)
45577   lt_cv_deplibs_check_method=pass_all
45578   ;;
45579
45580 openbsd*)
45581   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45582     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
45583   else
45584     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
45585   fi
45586   ;;
45587
45588 osf3* | osf4* | osf5*)
45589   lt_cv_deplibs_check_method=pass_all
45590   ;;
45591
45592 rdos*)
45593   lt_cv_deplibs_check_method=pass_all
45594   ;;
45595
45596 solaris*)
45597   lt_cv_deplibs_check_method=pass_all
45598   ;;
45599
45600 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
45601   lt_cv_deplibs_check_method=pass_all
45602   ;;
45603
45604 sysv4 | sysv4.3*)
45605   case $host_vendor in
45606   motorola)
45607     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]'
45608     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
45609     ;;
45610   ncr)
45611     lt_cv_deplibs_check_method=pass_all
45612     ;;
45613   sequent)
45614     lt_cv_file_magic_cmd='/bin/file'
45615     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
45616     ;;
45617   sni)
45618     lt_cv_file_magic_cmd='/bin/file'
45619     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
45620     lt_cv_file_magic_test_file=/lib/libc.so
45621     ;;
45622   siemens)
45623     lt_cv_deplibs_check_method=pass_all
45624     ;;
45625   pc)
45626     lt_cv_deplibs_check_method=pass_all
45627     ;;
45628   esac
45629   ;;
45630
45631 tpf*)
45632   lt_cv_deplibs_check_method=pass_all
45633   ;;
45634 esac
45635
45636 fi
45637 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
45638 $as_echo "$lt_cv_deplibs_check_method" >&6; }
45639 file_magic_cmd=$lt_cv_file_magic_cmd
45640 deplibs_check_method=$lt_cv_deplibs_check_method
45641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654 if test -n "$ac_tool_prefix"; then
45655   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45656 set dummy ${ac_tool_prefix}ar; ac_word=$2
45657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45658 $as_echo_n "checking for $ac_word... " >&6; }
45659 if test "${ac_cv_prog_AR+set}" = set; then
45660   $as_echo_n "(cached) " >&6
45661 else
45662   if test -n "$AR"; then
45663   ac_cv_prog_AR="$AR" # Let the user override the test.
45664 else
45665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45666 for as_dir in $PATH
45667 do
45668   IFS=$as_save_IFS
45669   test -z "$as_dir" && as_dir=.
45670   for ac_exec_ext in '' $ac_executable_extensions; do
45671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45672     ac_cv_prog_AR="${ac_tool_prefix}ar"
45673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45674     break 2
45675   fi
45676 done
45677 done
45678 IFS=$as_save_IFS
45679
45680 fi
45681 fi
45682 AR=$ac_cv_prog_AR
45683 if test -n "$AR"; then
45684   { $as_echo "$as_me:$LINENO: result: $AR" >&5
45685 $as_echo "$AR" >&6; }
45686 else
45687   { $as_echo "$as_me:$LINENO: result: no" >&5
45688 $as_echo "no" >&6; }
45689 fi
45690
45691
45692 fi
45693 if test -z "$ac_cv_prog_AR"; then
45694   ac_ct_AR=$AR
45695   # Extract the first word of "ar", so it can be a program name with args.
45696 set dummy ar; ac_word=$2
45697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45698 $as_echo_n "checking for $ac_word... " >&6; }
45699 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45700   $as_echo_n "(cached) " >&6
45701 else
45702   if test -n "$ac_ct_AR"; then
45703   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45704 else
45705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45706 for as_dir in $PATH
45707 do
45708   IFS=$as_save_IFS
45709   test -z "$as_dir" && as_dir=.
45710   for ac_exec_ext in '' $ac_executable_extensions; do
45711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45712     ac_cv_prog_ac_ct_AR="ar"
45713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45714     break 2
45715   fi
45716 done
45717 done
45718 IFS=$as_save_IFS
45719
45720 fi
45721 fi
45722 ac_ct_AR=$ac_cv_prog_ac_ct_AR
45723 if test -n "$ac_ct_AR"; then
45724   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45725 $as_echo "$ac_ct_AR" >&6; }
45726 else
45727   { $as_echo "$as_me:$LINENO: result: no" >&5
45728 $as_echo "no" >&6; }
45729 fi
45730
45731   if test "x$ac_ct_AR" = x; then
45732     AR="false"
45733   else
45734     case $cross_compiling:$ac_tool_warned in
45735 yes:)
45736 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
45737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45738 ac_tool_warned=yes ;;
45739 esac
45740     AR=$ac_ct_AR
45741   fi
45742 else
45743   AR="$ac_cv_prog_AR"
45744 fi
45745
45746 test -z "$AR" && AR=ar
45747 test -z "$AR_FLAGS" && AR_FLAGS=cru
45748
45749
45750
45751
45752
45753
45754
45755
45756
45757
45758
45759 if test -n "$ac_tool_prefix"; then
45760   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45761 set dummy ${ac_tool_prefix}strip; ac_word=$2
45762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45763 $as_echo_n "checking for $ac_word... " >&6; }
45764 if test "${ac_cv_prog_STRIP+set}" = set; then
45765   $as_echo_n "(cached) " >&6
45766 else
45767   if test -n "$STRIP"; then
45768   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45769 else
45770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45771 for as_dir in $PATH
45772 do
45773   IFS=$as_save_IFS
45774   test -z "$as_dir" && as_dir=.
45775   for ac_exec_ext in '' $ac_executable_extensions; do
45776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45777     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45779     break 2
45780   fi
45781 done
45782 done
45783 IFS=$as_save_IFS
45784
45785 fi
45786 fi
45787 STRIP=$ac_cv_prog_STRIP
45788 if test -n "$STRIP"; then
45789   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
45790 $as_echo "$STRIP" >&6; }
45791 else
45792   { $as_echo "$as_me:$LINENO: result: no" >&5
45793 $as_echo "no" >&6; }
45794 fi
45795
45796
45797 fi
45798 if test -z "$ac_cv_prog_STRIP"; then
45799   ac_ct_STRIP=$STRIP
45800   # Extract the first word of "strip", so it can be a program name with args.
45801 set dummy strip; ac_word=$2
45802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45803 $as_echo_n "checking for $ac_word... " >&6; }
45804 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45805   $as_echo_n "(cached) " >&6
45806 else
45807   if test -n "$ac_ct_STRIP"; then
45808   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45809 else
45810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45811 for as_dir in $PATH
45812 do
45813   IFS=$as_save_IFS
45814   test -z "$as_dir" && as_dir=.
45815   for ac_exec_ext in '' $ac_executable_extensions; do
45816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45817     ac_cv_prog_ac_ct_STRIP="strip"
45818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45819     break 2
45820   fi
45821 done
45822 done
45823 IFS=$as_save_IFS
45824
45825 fi
45826 fi
45827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45828 if test -n "$ac_ct_STRIP"; then
45829   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45830 $as_echo "$ac_ct_STRIP" >&6; }
45831 else
45832   { $as_echo "$as_me:$LINENO: result: no" >&5
45833 $as_echo "no" >&6; }
45834 fi
45835
45836   if test "x$ac_ct_STRIP" = x; then
45837     STRIP=":"
45838   else
45839     case $cross_compiling:$ac_tool_warned in
45840 yes:)
45841 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
45842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45843 ac_tool_warned=yes ;;
45844 esac
45845     STRIP=$ac_ct_STRIP
45846   fi
45847 else
45848   STRIP="$ac_cv_prog_STRIP"
45849 fi
45850
45851 test -z "$STRIP" && STRIP=:
45852
45853
45854
45855
45856
45857
45858 if test -n "$ac_tool_prefix"; then
45859   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45862 $as_echo_n "checking for $ac_word... " >&6; }
45863 if test "${ac_cv_prog_RANLIB+set}" = set; then
45864   $as_echo_n "(cached) " >&6
45865 else
45866   if test -n "$RANLIB"; then
45867   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45868 else
45869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45870 for as_dir in $PATH
45871 do
45872   IFS=$as_save_IFS
45873   test -z "$as_dir" && as_dir=.
45874   for ac_exec_ext in '' $ac_executable_extensions; do
45875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45876     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45877     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45878     break 2
45879   fi
45880 done
45881 done
45882 IFS=$as_save_IFS
45883
45884 fi
45885 fi
45886 RANLIB=$ac_cv_prog_RANLIB
45887 if test -n "$RANLIB"; then
45888   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
45889 $as_echo "$RANLIB" >&6; }
45890 else
45891   { $as_echo "$as_me:$LINENO: result: no" >&5
45892 $as_echo "no" >&6; }
45893 fi
45894
45895
45896 fi
45897 if test -z "$ac_cv_prog_RANLIB"; then
45898   ac_ct_RANLIB=$RANLIB
45899   # Extract the first word of "ranlib", so it can be a program name with args.
45900 set dummy ranlib; ac_word=$2
45901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45902 $as_echo_n "checking for $ac_word... " >&6; }
45903 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45904   $as_echo_n "(cached) " >&6
45905 else
45906   if test -n "$ac_ct_RANLIB"; then
45907   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45908 else
45909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45910 for as_dir in $PATH
45911 do
45912   IFS=$as_save_IFS
45913   test -z "$as_dir" && as_dir=.
45914   for ac_exec_ext in '' $ac_executable_extensions; do
45915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45916     ac_cv_prog_ac_ct_RANLIB="ranlib"
45917     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45918     break 2
45919   fi
45920 done
45921 done
45922 IFS=$as_save_IFS
45923
45924 fi
45925 fi
45926 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45927 if test -n "$ac_ct_RANLIB"; then
45928   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45929 $as_echo "$ac_ct_RANLIB" >&6; }
45930 else
45931   { $as_echo "$as_me:$LINENO: result: no" >&5
45932 $as_echo "no" >&6; }
45933 fi
45934
45935   if test "x$ac_ct_RANLIB" = x; then
45936     RANLIB=":"
45937   else
45938     case $cross_compiling:$ac_tool_warned in
45939 yes:)
45940 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
45941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45942 ac_tool_warned=yes ;;
45943 esac
45944     RANLIB=$ac_ct_RANLIB
45945   fi
45946 else
45947   RANLIB="$ac_cv_prog_RANLIB"
45948 fi
45949
45950 test -z "$RANLIB" && RANLIB=:
45951
45952
45953
45954
45955
45956
45957 # Determine commands to create old-style static archives.
45958 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
45959 old_postinstall_cmds='chmod 644 $oldlib'
45960 old_postuninstall_cmds=
45961
45962 if test -n "$RANLIB"; then
45963   case $host_os in
45964   openbsd*)
45965     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
45966     ;;
45967   *)
45968     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
45969     ;;
45970   esac
45971   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
45972 fi
45973
45974
45975
45976
45977
45978
45979
45980
45981
45982
45983
45984
45985
45986
45987
45988
45989
45990
45991
45992
45993
45994
45995
45996
45997
45998
45999
46000
46001
46002
46003
46004
46005
46006
46007 # If no C compiler was specified, use CC.
46008 LTCC=${LTCC-"$CC"}
46009
46010 # If no C compiler flags were specified, use CFLAGS.
46011 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
46012
46013 # Allow CC to be a program name with arguments.
46014 compiler=$CC
46015
46016
46017 # Check for command to grab the raw symbol name followed by C symbol from nm.
46018 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
46019 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
46020 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
46021   $as_echo_n "(cached) " >&6
46022 else
46023
46024 # These are sane defaults that work on at least a few old systems.
46025 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
46026
46027 # Character class describing NM global symbol codes.
46028 symcode='[BCDEGRST]'
46029
46030 # Regexp to match symbols that can be accessed directly from C.
46031 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
46032
46033 # Define system-specific variables.
46034 case $host_os in
46035 aix*)
46036   symcode='[BCDT]'
46037   ;;
46038 cygwin* | mingw* | pw32*)
46039   symcode='[ABCDGISTW]'
46040   ;;
46041 hpux*)
46042   if test "$host_cpu" = ia64; then
46043     symcode='[ABCDEGRST]'
46044   fi
46045   ;;
46046 irix* | nonstopux*)
46047   symcode='[BCDEGRST]'
46048   ;;
46049 osf*)
46050   symcode='[BCDEGQRST]'
46051   ;;
46052 solaris*)
46053   symcode='[BDRT]'
46054   ;;
46055 sco3.2v5*)
46056   symcode='[DT]'
46057   ;;
46058 sysv4.2uw2*)
46059   symcode='[DT]'
46060   ;;
46061 sysv5* | sco5v6* | unixware* | OpenUNIX*)
46062   symcode='[ABDT]'
46063   ;;
46064 sysv4)
46065   symcode='[DFNSTU]'
46066   ;;
46067 esac
46068
46069 # If we're using GNU nm, then use its standard symbol codes.
46070 case `$NM -V 2>&1` in
46071 *GNU* | *'with BFD'*)
46072   symcode='[ABCDGIRSTW]' ;;
46073 esac
46074
46075 # Transform an extracted symbol line into a proper C declaration.
46076 # Some systems (esp. on ia64) link data and code symbols differently,
46077 # so use this general approach.
46078 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
46079
46080 # Transform an extracted symbol line into symbol name and symbol address
46081 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
46082 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'"
46083
46084 # Handle CRLF in mingw tool chain
46085 opt_cr=
46086 case $build_os in
46087 mingw*)
46088   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
46089   ;;
46090 esac
46091
46092 # Try without a prefix underscore, then with it.
46093 for ac_symprfx in "" "_"; do
46094
46095   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
46096   symxfrm="\\1 $ac_symprfx\\2 \\2"
46097
46098   # Write the raw and C identifiers.
46099   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
46100     # Fake it for dumpbin and say T for any non-static function
46101     # and D for any global variable.
46102     # Also find C++ and __fastcall symbols from MSVC++,
46103     # which start with @ or ?.
46104     lt_cv_sys_global_symbol_pipe="$AWK '"\
46105 "     {last_section=section; section=\$ 3};"\
46106 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
46107 "     \$ 0!~/External *\|/{next};"\
46108 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
46109 "     {if(hide[section]) next};"\
46110 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
46111 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
46112 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
46113 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
46114 "     ' prfx=^$ac_symprfx"
46115   else
46116     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
46117   fi
46118
46119   # Check to see that the pipe works correctly.
46120   pipe_works=no
46121
46122   rm -f conftest*
46123   cat > conftest.$ac_ext <<_LT_EOF
46124 #ifdef __cplusplus
46125 extern "C" {
46126 #endif
46127 char nm_test_var;
46128 void nm_test_func(void);
46129 void nm_test_func(void){}
46130 #ifdef __cplusplus
46131 }
46132 #endif
46133 int main(){nm_test_var='a';nm_test_func();return(0);}
46134 _LT_EOF
46135
46136   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46137   (eval $ac_compile) 2>&5
46138   ac_status=$?
46139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46140   (exit $ac_status); }; then
46141     # Now try to grab the symbols.
46142     nlist=conftest.nm
46143     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
46144   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
46145   ac_status=$?
46146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46147   (exit $ac_status); } && test -s "$nlist"; then
46148       # Try sorting and uniquifying the output.
46149       if sort "$nlist" | uniq > "$nlist"T; then
46150         mv -f "$nlist"T "$nlist"
46151       else
46152         rm -f "$nlist"T
46153       fi
46154
46155       # Make sure that we snagged all the symbols we need.
46156       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
46157         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
46158           cat <<_LT_EOF > conftest.$ac_ext
46159 #ifdef __cplusplus
46160 extern "C" {
46161 #endif
46162
46163 _LT_EOF
46164           # Now generate the symbol file.
46165           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
46166
46167           cat <<_LT_EOF >> conftest.$ac_ext
46168
46169 /* The mapping between symbol names and symbols.  */
46170 const struct {
46171   const char *name;
46172   void       *address;
46173 }
46174 lt__PROGRAM__LTX_preloaded_symbols[] =
46175 {
46176   { "@PROGRAM@", (void *) 0 },
46177 _LT_EOF
46178           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
46179           cat <<\_LT_EOF >> conftest.$ac_ext
46180   {0, (void *) 0}
46181 };
46182
46183 /* This works around a problem in FreeBSD linker */
46184 #ifdef FREEBSD_WORKAROUND
46185 static const void *lt_preloaded_setup() {
46186   return lt__PROGRAM__LTX_preloaded_symbols;
46187 }
46188 #endif
46189
46190 #ifdef __cplusplus
46191 }
46192 #endif
46193 _LT_EOF
46194           # Now try linking the two files.
46195           mv conftest.$ac_objext conftstm.$ac_objext
46196           lt_save_LIBS="$LIBS"
46197           lt_save_CFLAGS="$CFLAGS"
46198           LIBS="conftstm.$ac_objext"
46199           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
46200           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46201   (eval $ac_link) 2>&5
46202   ac_status=$?
46203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46204   (exit $ac_status); } && test -s conftest${ac_exeext}; then
46205             pipe_works=yes
46206           fi
46207           LIBS="$lt_save_LIBS"
46208           CFLAGS="$lt_save_CFLAGS"
46209         else
46210           echo "cannot find nm_test_func in $nlist" >&5
46211         fi
46212       else
46213         echo "cannot find nm_test_var in $nlist" >&5
46214       fi
46215     else
46216       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
46217     fi
46218   else
46219     echo "$progname: failed program was:" >&5
46220     cat conftest.$ac_ext >&5
46221   fi
46222   rm -rf conftest* conftst*
46223
46224   # Do not use the global_symbol_pipe unless it works.
46225   if test "$pipe_works" = yes; then
46226     break
46227   else
46228     lt_cv_sys_global_symbol_pipe=
46229   fi
46230 done
46231
46232 fi
46233
46234 if test -z "$lt_cv_sys_global_symbol_pipe"; then
46235   lt_cv_sys_global_symbol_to_cdecl=
46236 fi
46237 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
46238   { $as_echo "$as_me:$LINENO: result: failed" >&5
46239 $as_echo "failed" >&6; }
46240 else
46241   { $as_echo "$as_me:$LINENO: result: ok" >&5
46242 $as_echo "ok" >&6; }
46243 fi
46244
46245
46246
46247
46248
46249
46250
46251
46252
46253
46254
46255
46256
46257
46258
46259
46260
46261
46262
46263
46264
46265
46266 # Check whether --enable-libtool-lock was given.
46267 if test "${enable_libtool_lock+set}" = set; then
46268   enableval=$enable_libtool_lock;
46269 fi
46270
46271 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
46272
46273 # Some flags need to be propagated to the compiler or linker for good
46274 # libtool support.
46275 case $host in
46276 ia64-*-hpux*)
46277   # Find out which ABI we are using.
46278   echo 'int i;' > conftest.$ac_ext
46279   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46280   (eval $ac_compile) 2>&5
46281   ac_status=$?
46282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46283   (exit $ac_status); }; then
46284     case `/usr/bin/file conftest.$ac_objext` in
46285       *ELF-32*)
46286         HPUX_IA64_MODE="32"
46287         ;;
46288       *ELF-64*)
46289         HPUX_IA64_MODE="64"
46290         ;;
46291     esac
46292   fi
46293   rm -rf conftest*
46294   ;;
46295 *-*-irix6*)
46296   # Find out which ABI we are using.
46297   echo '#line 46297 "configure"' > conftest.$ac_ext
46298   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46299   (eval $ac_compile) 2>&5
46300   ac_status=$?
46301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46302   (exit $ac_status); }; then
46303     if test "$lt_cv_prog_gnu_ld" = yes; then
46304       case `/usr/bin/file conftest.$ac_objext` in
46305         *32-bit*)
46306           LD="${LD-ld} -melf32bsmip"
46307           ;;
46308         *N32*)
46309           LD="${LD-ld} -melf32bmipn32"
46310           ;;
46311         *64-bit*)
46312           LD="${LD-ld} -melf64bmip"
46313         ;;
46314       esac
46315     else
46316       case `/usr/bin/file conftest.$ac_objext` in
46317         *32-bit*)
46318           LD="${LD-ld} -32"
46319           ;;
46320         *N32*)
46321           LD="${LD-ld} -n32"
46322           ;;
46323         *64-bit*)
46324           LD="${LD-ld} -64"
46325           ;;
46326       esac
46327     fi
46328   fi
46329   rm -rf conftest*
46330   ;;
46331
46332 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
46333 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
46334   # Find out which ABI we are using.
46335   echo 'int i;' > conftest.$ac_ext
46336   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46337   (eval $ac_compile) 2>&5
46338   ac_status=$?
46339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); }; then
46341     case `/usr/bin/file conftest.o` in
46342       *32-bit*)
46343         case $host in
46344           x86_64-*kfreebsd*-gnu)
46345             LD="${LD-ld} -m elf_i386_fbsd"
46346             ;;
46347           x86_64-*linux*)
46348             LD="${LD-ld} -m elf_i386"
46349             ;;
46350           ppc64-*linux*|powerpc64-*linux*)
46351             LD="${LD-ld} -m elf32ppclinux"
46352             ;;
46353           s390x-*linux*)
46354             LD="${LD-ld} -m elf_s390"
46355             ;;
46356           sparc64-*linux*)
46357             LD="${LD-ld} -m elf32_sparc"
46358             ;;
46359         esac
46360         ;;
46361       *64-bit*)
46362         case $host in
46363           x86_64-*kfreebsd*-gnu)
46364             LD="${LD-ld} -m elf_x86_64_fbsd"
46365             ;;
46366           x86_64-*linux*)
46367             LD="${LD-ld} -m elf_x86_64"
46368             ;;
46369           ppc*-*linux*|powerpc*-*linux*)
46370             LD="${LD-ld} -m elf64ppc"
46371             ;;
46372           s390*-*linux*|s390*-*tpf*)
46373             LD="${LD-ld} -m elf64_s390"
46374             ;;
46375           sparc*-*linux*)
46376             LD="${LD-ld} -m elf64_sparc"
46377             ;;
46378         esac
46379         ;;
46380     esac
46381   fi
46382   rm -rf conftest*
46383   ;;
46384
46385 *-*-sco3.2v5*)
46386   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
46387   SAVE_CFLAGS="$CFLAGS"
46388   CFLAGS="$CFLAGS -belf"
46389   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
46390 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
46391 if test "${lt_cv_cc_needs_belf+set}" = set; then
46392   $as_echo_n "(cached) " >&6
46393 else
46394   ac_ext=c
46395 ac_cpp='$CPP $CPPFLAGS'
46396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46399
46400      cat >conftest.$ac_ext <<_ACEOF
46401 /* confdefs.h.  */
46402 _ACEOF
46403 cat confdefs.h >>conftest.$ac_ext
46404 cat >>conftest.$ac_ext <<_ACEOF
46405 /* end confdefs.h.  */
46406
46407 int
46408 main ()
46409 {
46410
46411   ;
46412   return 0;
46413 }
46414 _ACEOF
46415 rm -f conftest.$ac_objext conftest$ac_exeext
46416 if { (ac_try="$ac_link"
46417 case "(($ac_try" in
46418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46419   *) ac_try_echo=$ac_try;;
46420 esac
46421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46422 $as_echo "$ac_try_echo") >&5
46423   (eval "$ac_link") 2>conftest.er1
46424   ac_status=$?
46425   grep -v '^ *+' conftest.er1 >conftest.err
46426   rm -f conftest.er1
46427   cat conftest.err >&5
46428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46429   (exit $ac_status); } && {
46430          test -z "$ac_c_werror_flag" ||
46431          test ! -s conftest.err
46432        } && test -s conftest$ac_exeext && {
46433          test "$cross_compiling" = yes ||
46434          $as_test_x conftest$ac_exeext
46435        }; then
46436   lt_cv_cc_needs_belf=yes
46437 else
46438   $as_echo "$as_me: failed program was:" >&5
46439 sed 's/^/| /' conftest.$ac_ext >&5
46440
46441         lt_cv_cc_needs_belf=no
46442 fi
46443
46444 rm -rf conftest.dSYM
46445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46446       conftest$ac_exeext conftest.$ac_ext
46447      ac_ext=c
46448 ac_cpp='$CPP $CPPFLAGS'
46449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46452
46453 fi
46454 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
46455 $as_echo "$lt_cv_cc_needs_belf" >&6; }
46456   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
46457     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
46458     CFLAGS="$SAVE_CFLAGS"
46459   fi
46460   ;;
46461 sparc*-*solaris*)
46462   # Find out which ABI we are using.
46463   echo 'int i;' > conftest.$ac_ext
46464   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46465   (eval $ac_compile) 2>&5
46466   ac_status=$?
46467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46468   (exit $ac_status); }; then
46469     case `/usr/bin/file conftest.o` in
46470     *64-bit*)
46471       case $lt_cv_prog_gnu_ld in
46472       yes*) LD="${LD-ld} -m elf64_sparc" ;;
46473       *)
46474         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
46475           LD="${LD-ld} -64"
46476         fi
46477         ;;
46478       esac
46479       ;;
46480     esac
46481   fi
46482   rm -rf conftest*
46483   ;;
46484 esac
46485
46486 need_locks="$enable_libtool_lock"
46487
46488
46489   case $host_os in
46490     rhapsody* | darwin*)
46491     if test -n "$ac_tool_prefix"; then
46492   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
46493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
46494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46495 $as_echo_n "checking for $ac_word... " >&6; }
46496 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
46497   $as_echo_n "(cached) " >&6
46498 else
46499   if test -n "$DSYMUTIL"; then
46500   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
46501 else
46502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46503 for as_dir in $PATH
46504 do
46505   IFS=$as_save_IFS
46506   test -z "$as_dir" && as_dir=.
46507   for ac_exec_ext in '' $ac_executable_extensions; do
46508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46509     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
46510     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46511     break 2
46512   fi
46513 done
46514 done
46515 IFS=$as_save_IFS
46516
46517 fi
46518 fi
46519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
46520 if test -n "$DSYMUTIL"; then
46521   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
46522 $as_echo "$DSYMUTIL" >&6; }
46523 else
46524   { $as_echo "$as_me:$LINENO: result: no" >&5
46525 $as_echo "no" >&6; }
46526 fi
46527
46528
46529 fi
46530 if test -z "$ac_cv_prog_DSYMUTIL"; then
46531   ac_ct_DSYMUTIL=$DSYMUTIL
46532   # Extract the first word of "dsymutil", so it can be a program name with args.
46533 set dummy dsymutil; ac_word=$2
46534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46535 $as_echo_n "checking for $ac_word... " >&6; }
46536 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
46537   $as_echo_n "(cached) " >&6
46538 else
46539   if test -n "$ac_ct_DSYMUTIL"; then
46540   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
46541 else
46542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46543 for as_dir in $PATH
46544 do
46545   IFS=$as_save_IFS
46546   test -z "$as_dir" && as_dir=.
46547   for ac_exec_ext in '' $ac_executable_extensions; do
46548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46549     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
46550     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46551     break 2
46552   fi
46553 done
46554 done
46555 IFS=$as_save_IFS
46556
46557 fi
46558 fi
46559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
46560 if test -n "$ac_ct_DSYMUTIL"; then
46561   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
46562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
46563 else
46564   { $as_echo "$as_me:$LINENO: result: no" >&5
46565 $as_echo "no" >&6; }
46566 fi
46567
46568   if test "x$ac_ct_DSYMUTIL" = x; then
46569     DSYMUTIL=":"
46570   else
46571     case $cross_compiling:$ac_tool_warned in
46572 yes:)
46573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46575 ac_tool_warned=yes ;;
46576 esac
46577     DSYMUTIL=$ac_ct_DSYMUTIL
46578   fi
46579 else
46580   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
46581 fi
46582
46583     if test -n "$ac_tool_prefix"; then
46584   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
46585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
46586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46587 $as_echo_n "checking for $ac_word... " >&6; }
46588 if test "${ac_cv_prog_NMEDIT+set}" = set; then
46589   $as_echo_n "(cached) " >&6
46590 else
46591   if test -n "$NMEDIT"; then
46592   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
46593 else
46594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46595 for as_dir in $PATH
46596 do
46597   IFS=$as_save_IFS
46598   test -z "$as_dir" && as_dir=.
46599   for ac_exec_ext in '' $ac_executable_extensions; do
46600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46601     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
46602     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46603     break 2
46604   fi
46605 done
46606 done
46607 IFS=$as_save_IFS
46608
46609 fi
46610 fi
46611 NMEDIT=$ac_cv_prog_NMEDIT
46612 if test -n "$NMEDIT"; then
46613   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
46614 $as_echo "$NMEDIT" >&6; }
46615 else
46616   { $as_echo "$as_me:$LINENO: result: no" >&5
46617 $as_echo "no" >&6; }
46618 fi
46619
46620
46621 fi
46622 if test -z "$ac_cv_prog_NMEDIT"; then
46623   ac_ct_NMEDIT=$NMEDIT
46624   # Extract the first word of "nmedit", so it can be a program name with args.
46625 set dummy nmedit; ac_word=$2
46626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46627 $as_echo_n "checking for $ac_word... " >&6; }
46628 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
46629   $as_echo_n "(cached) " >&6
46630 else
46631   if test -n "$ac_ct_NMEDIT"; then
46632   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
46633 else
46634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46635 for as_dir in $PATH
46636 do
46637   IFS=$as_save_IFS
46638   test -z "$as_dir" && as_dir=.
46639   for ac_exec_ext in '' $ac_executable_extensions; do
46640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46641     ac_cv_prog_ac_ct_NMEDIT="nmedit"
46642     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46643     break 2
46644   fi
46645 done
46646 done
46647 IFS=$as_save_IFS
46648
46649 fi
46650 fi
46651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
46652 if test -n "$ac_ct_NMEDIT"; then
46653   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
46654 $as_echo "$ac_ct_NMEDIT" >&6; }
46655 else
46656   { $as_echo "$as_me:$LINENO: result: no" >&5
46657 $as_echo "no" >&6; }
46658 fi
46659
46660   if test "x$ac_ct_NMEDIT" = x; then
46661     NMEDIT=":"
46662   else
46663     case $cross_compiling:$ac_tool_warned in
46664 yes:)
46665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46667 ac_tool_warned=yes ;;
46668 esac
46669     NMEDIT=$ac_ct_NMEDIT
46670   fi
46671 else
46672   NMEDIT="$ac_cv_prog_NMEDIT"
46673 fi
46674
46675     if test -n "$ac_tool_prefix"; then
46676   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
46677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
46678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46679 $as_echo_n "checking for $ac_word... " >&6; }
46680 if test "${ac_cv_prog_LIPO+set}" = set; then
46681   $as_echo_n "(cached) " >&6
46682 else
46683   if test -n "$LIPO"; then
46684   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
46685 else
46686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46687 for as_dir in $PATH
46688 do
46689   IFS=$as_save_IFS
46690   test -z "$as_dir" && as_dir=.
46691   for ac_exec_ext in '' $ac_executable_extensions; do
46692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46693     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
46694     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46695     break 2
46696   fi
46697 done
46698 done
46699 IFS=$as_save_IFS
46700
46701 fi
46702 fi
46703 LIPO=$ac_cv_prog_LIPO
46704 if test -n "$LIPO"; then
46705   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
46706 $as_echo "$LIPO" >&6; }
46707 else
46708   { $as_echo "$as_me:$LINENO: result: no" >&5
46709 $as_echo "no" >&6; }
46710 fi
46711
46712
46713 fi
46714 if test -z "$ac_cv_prog_LIPO"; then
46715   ac_ct_LIPO=$LIPO
46716   # Extract the first word of "lipo", so it can be a program name with args.
46717 set dummy lipo; ac_word=$2
46718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46719 $as_echo_n "checking for $ac_word... " >&6; }
46720 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
46721   $as_echo_n "(cached) " >&6
46722 else
46723   if test -n "$ac_ct_LIPO"; then
46724   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
46725 else
46726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46727 for as_dir in $PATH
46728 do
46729   IFS=$as_save_IFS
46730   test -z "$as_dir" && as_dir=.
46731   for ac_exec_ext in '' $ac_executable_extensions; do
46732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46733     ac_cv_prog_ac_ct_LIPO="lipo"
46734     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46735     break 2
46736   fi
46737 done
46738 done
46739 IFS=$as_save_IFS
46740
46741 fi
46742 fi
46743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
46744 if test -n "$ac_ct_LIPO"; then
46745   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
46746 $as_echo "$ac_ct_LIPO" >&6; }
46747 else
46748   { $as_echo "$as_me:$LINENO: result: no" >&5
46749 $as_echo "no" >&6; }
46750 fi
46751
46752   if test "x$ac_ct_LIPO" = x; then
46753     LIPO=":"
46754   else
46755     case $cross_compiling:$ac_tool_warned in
46756 yes:)
46757 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46759 ac_tool_warned=yes ;;
46760 esac
46761     LIPO=$ac_ct_LIPO
46762   fi
46763 else
46764   LIPO="$ac_cv_prog_LIPO"
46765 fi
46766
46767     if test -n "$ac_tool_prefix"; then
46768   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
46769 set dummy ${ac_tool_prefix}otool; ac_word=$2
46770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46771 $as_echo_n "checking for $ac_word... " >&6; }
46772 if test "${ac_cv_prog_OTOOL+set}" = set; then
46773   $as_echo_n "(cached) " >&6
46774 else
46775   if test -n "$OTOOL"; then
46776   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
46777 else
46778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46779 for as_dir in $PATH
46780 do
46781   IFS=$as_save_IFS
46782   test -z "$as_dir" && as_dir=.
46783   for ac_exec_ext in '' $ac_executable_extensions; do
46784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46785     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
46786     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46787     break 2
46788   fi
46789 done
46790 done
46791 IFS=$as_save_IFS
46792
46793 fi
46794 fi
46795 OTOOL=$ac_cv_prog_OTOOL
46796 if test -n "$OTOOL"; then
46797   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
46798 $as_echo "$OTOOL" >&6; }
46799 else
46800   { $as_echo "$as_me:$LINENO: result: no" >&5
46801 $as_echo "no" >&6; }
46802 fi
46803
46804
46805 fi
46806 if test -z "$ac_cv_prog_OTOOL"; then
46807   ac_ct_OTOOL=$OTOOL
46808   # Extract the first word of "otool", so it can be a program name with args.
46809 set dummy otool; ac_word=$2
46810 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46811 $as_echo_n "checking for $ac_word... " >&6; }
46812 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
46813   $as_echo_n "(cached) " >&6
46814 else
46815   if test -n "$ac_ct_OTOOL"; then
46816   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
46817 else
46818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46819 for as_dir in $PATH
46820 do
46821   IFS=$as_save_IFS
46822   test -z "$as_dir" && as_dir=.
46823   for ac_exec_ext in '' $ac_executable_extensions; do
46824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46825     ac_cv_prog_ac_ct_OTOOL="otool"
46826     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46827     break 2
46828   fi
46829 done
46830 done
46831 IFS=$as_save_IFS
46832
46833 fi
46834 fi
46835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
46836 if test -n "$ac_ct_OTOOL"; then
46837   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
46838 $as_echo "$ac_ct_OTOOL" >&6; }
46839 else
46840   { $as_echo "$as_me:$LINENO: result: no" >&5
46841 $as_echo "no" >&6; }
46842 fi
46843
46844   if test "x$ac_ct_OTOOL" = x; then
46845     OTOOL=":"
46846   else
46847     case $cross_compiling:$ac_tool_warned in
46848 yes:)
46849 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46851 ac_tool_warned=yes ;;
46852 esac
46853     OTOOL=$ac_ct_OTOOL
46854   fi
46855 else
46856   OTOOL="$ac_cv_prog_OTOOL"
46857 fi
46858
46859     if test -n "$ac_tool_prefix"; then
46860   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
46861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
46862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46863 $as_echo_n "checking for $ac_word... " >&6; }
46864 if test "${ac_cv_prog_OTOOL64+set}" = set; then
46865   $as_echo_n "(cached) " >&6
46866 else
46867   if test -n "$OTOOL64"; then
46868   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
46869 else
46870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46871 for as_dir in $PATH
46872 do
46873   IFS=$as_save_IFS
46874   test -z "$as_dir" && as_dir=.
46875   for ac_exec_ext in '' $ac_executable_extensions; do
46876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46877     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
46878     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46879     break 2
46880   fi
46881 done
46882 done
46883 IFS=$as_save_IFS
46884
46885 fi
46886 fi
46887 OTOOL64=$ac_cv_prog_OTOOL64
46888 if test -n "$OTOOL64"; then
46889   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
46890 $as_echo "$OTOOL64" >&6; }
46891 else
46892   { $as_echo "$as_me:$LINENO: result: no" >&5
46893 $as_echo "no" >&6; }
46894 fi
46895
46896
46897 fi
46898 if test -z "$ac_cv_prog_OTOOL64"; then
46899   ac_ct_OTOOL64=$OTOOL64
46900   # Extract the first word of "otool64", so it can be a program name with args.
46901 set dummy otool64; ac_word=$2
46902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46903 $as_echo_n "checking for $ac_word... " >&6; }
46904 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
46905   $as_echo_n "(cached) " >&6
46906 else
46907   if test -n "$ac_ct_OTOOL64"; then
46908   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
46909 else
46910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46911 for as_dir in $PATH
46912 do
46913   IFS=$as_save_IFS
46914   test -z "$as_dir" && as_dir=.
46915   for ac_exec_ext in '' $ac_executable_extensions; do
46916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46917     ac_cv_prog_ac_ct_OTOOL64="otool64"
46918     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46919     break 2
46920   fi
46921 done
46922 done
46923 IFS=$as_save_IFS
46924
46925 fi
46926 fi
46927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
46928 if test -n "$ac_ct_OTOOL64"; then
46929   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
46930 $as_echo "$ac_ct_OTOOL64" >&6; }
46931 else
46932   { $as_echo "$as_me:$LINENO: result: no" >&5
46933 $as_echo "no" >&6; }
46934 fi
46935
46936   if test "x$ac_ct_OTOOL64" = x; then
46937     OTOOL64=":"
46938   else
46939     case $cross_compiling:$ac_tool_warned in
46940 yes:)
46941 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46943 ac_tool_warned=yes ;;
46944 esac
46945     OTOOL64=$ac_ct_OTOOL64
46946   fi
46947 else
46948   OTOOL64="$ac_cv_prog_OTOOL64"
46949 fi
46950
46951
46952
46953
46954
46955
46956
46957
46958
46959
46960
46961
46962
46963
46964
46965
46966
46967
46968
46969
46970
46971
46972
46973
46974
46975
46976
46977     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
46978 $as_echo_n "checking for -single_module linker flag... " >&6; }
46979 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
46980   $as_echo_n "(cached) " >&6
46981 else
46982   lt_cv_apple_cc_single_mod=no
46983       if test -z "${LT_MULTI_MODULE}"; then
46984         # By default we will add the -single_module flag. You can override
46985         # by either setting the environment variable LT_MULTI_MODULE
46986         # non-empty at configure time, or by adding -multi_module to the
46987         # link flags.
46988         rm -rf libconftest.dylib*
46989         echo "int foo(void){return 1;}" > conftest.c
46990         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
46991 -dynamiclib -Wl,-single_module conftest.c" >&5
46992         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
46993           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
46994         _lt_result=$?
46995         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
46996           lt_cv_apple_cc_single_mod=yes
46997         else
46998           cat conftest.err >&5
46999         fi
47000         rm -rf libconftest.dylib*
47001         rm -f conftest.*
47002       fi
47003 fi
47004 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
47005 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
47006     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
47007 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
47008 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
47009   $as_echo_n "(cached) " >&6
47010 else
47011   lt_cv_ld_exported_symbols_list=no
47012       save_LDFLAGS=$LDFLAGS
47013       echo "_main" > conftest.sym
47014       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
47015       cat >conftest.$ac_ext <<_ACEOF
47016 /* confdefs.h.  */
47017 _ACEOF
47018 cat confdefs.h >>conftest.$ac_ext
47019 cat >>conftest.$ac_ext <<_ACEOF
47020 /* end confdefs.h.  */
47021
47022 int
47023 main ()
47024 {
47025
47026   ;
47027   return 0;
47028 }
47029 _ACEOF
47030 rm -f conftest.$ac_objext conftest$ac_exeext
47031 if { (ac_try="$ac_link"
47032 case "(($ac_try" in
47033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47034   *) ac_try_echo=$ac_try;;
47035 esac
47036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47037 $as_echo "$ac_try_echo") >&5
47038   (eval "$ac_link") 2>conftest.er1
47039   ac_status=$?
47040   grep -v '^ *+' conftest.er1 >conftest.err
47041   rm -f conftest.er1
47042   cat conftest.err >&5
47043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47044   (exit $ac_status); } && {
47045          test -z "$ac_c_werror_flag" ||
47046          test ! -s conftest.err
47047        } && test -s conftest$ac_exeext && {
47048          test "$cross_compiling" = yes ||
47049          $as_test_x conftest$ac_exeext
47050        }; then
47051   lt_cv_ld_exported_symbols_list=yes
47052 else
47053   $as_echo "$as_me: failed program was:" >&5
47054 sed 's/^/| /' conftest.$ac_ext >&5
47055
47056         lt_cv_ld_exported_symbols_list=no
47057 fi
47058
47059 rm -rf conftest.dSYM
47060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47061       conftest$ac_exeext conftest.$ac_ext
47062         LDFLAGS="$save_LDFLAGS"
47063
47064 fi
47065 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
47066 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
47067     case $host_os in
47068     rhapsody* | darwin1.[012])
47069       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
47070     darwin1.*)
47071       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
47072     darwin*) # darwin 5.x on
47073       # if running on 10.5 or later, the deployment target defaults
47074       # to the OS version, if on x86, and 10.4, the deployment
47075       # target defaults to 10.4. Don't you love it?
47076       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
47077         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
47078           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
47079         10.[012]*)
47080           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
47081         10.*)
47082           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
47083       esac
47084     ;;
47085   esac
47086     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
47087       _lt_dar_single_mod='$single_module'
47088     fi
47089     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
47090       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
47091     else
47092       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
47093     fi
47094     if test "$DSYMUTIL" != ":"; then
47095       _lt_dsymutil='~$DSYMUTIL $lib || :'
47096     else
47097       _lt_dsymutil=
47098     fi
47099     ;;
47100   esac
47101
47102
47103 for ac_header in dlfcn.h
47104 do
47105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47106 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47107 $as_echo_n "checking for $ac_header... " >&6; }
47108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47109   $as_echo_n "(cached) " >&6
47110 else
47111   cat >conftest.$ac_ext <<_ACEOF
47112 /* confdefs.h.  */
47113 _ACEOF
47114 cat confdefs.h >>conftest.$ac_ext
47115 cat >>conftest.$ac_ext <<_ACEOF
47116 /* end confdefs.h.  */
47117 $ac_includes_default
47118
47119 #include <$ac_header>
47120 _ACEOF
47121 rm -f conftest.$ac_objext
47122 if { (ac_try="$ac_compile"
47123 case "(($ac_try" in
47124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47125   *) ac_try_echo=$ac_try;;
47126 esac
47127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47128 $as_echo "$ac_try_echo") >&5
47129   (eval "$ac_compile") 2>conftest.er1
47130   ac_status=$?
47131   grep -v '^ *+' conftest.er1 >conftest.err
47132   rm -f conftest.er1
47133   cat conftest.err >&5
47134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47135   (exit $ac_status); } && {
47136          test -z "$ac_c_werror_flag" ||
47137          test ! -s conftest.err
47138        } && test -s conftest.$ac_objext; then
47139   eval "$as_ac_Header=yes"
47140 else
47141   $as_echo "$as_me: failed program was:" >&5
47142 sed 's/^/| /' conftest.$ac_ext >&5
47143
47144         eval "$as_ac_Header=no"
47145 fi
47146
47147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47148 fi
47149 ac_res=`eval 'as_val=${'$as_ac_Header'}
47150                  $as_echo "$as_val"'`
47151                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47152 $as_echo "$ac_res" >&6; }
47153 as_val=`eval 'as_val=${'$as_ac_Header'}
47154                  $as_echo "$as_val"'`
47155    if test "x$as_val" = x""yes; then
47156   cat >>confdefs.h <<_ACEOF
47157 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47158 _ACEOF
47159
47160 fi
47161
47162 done
47163
47164
47165
47166 # Set options
47167
47168
47169
47170         enable_dlopen=no
47171
47172
47173   enable_win32_dll=no
47174
47175
47176             # Check whether --enable-shared was given.
47177 if test "${enable_shared+set}" = set; then
47178   enableval=$enable_shared; p=${PACKAGE-default}
47179     case $enableval in
47180     yes) enable_shared=yes ;;
47181     no) enable_shared=no ;;
47182     *)
47183       enable_shared=no
47184       # Look at the argument we got.  We use all the common list separators.
47185       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
47186       for pkg in $enableval; do
47187         IFS="$lt_save_ifs"
47188         if test "X$pkg" = "X$p"; then
47189           enable_shared=yes
47190         fi
47191       done
47192       IFS="$lt_save_ifs"
47193       ;;
47194     esac
47195 else
47196   enable_shared=yes
47197 fi
47198
47199
47200
47201
47202
47203
47204
47205
47206
47207   # Check whether --enable-static was given.
47208 if test "${enable_static+set}" = set; then
47209   enableval=$enable_static; p=${PACKAGE-default}
47210     case $enableval in
47211     yes) enable_static=yes ;;
47212     no) enable_static=no ;;
47213     *)
47214      enable_static=no
47215       # Look at the argument we got.  We use all the common list separators.
47216       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
47217       for pkg in $enableval; do
47218         IFS="$lt_save_ifs"
47219         if test "X$pkg" = "X$p"; then
47220           enable_static=yes
47221         fi
47222       done
47223       IFS="$lt_save_ifs"
47224       ;;
47225     esac
47226 else
47227   enable_static=yes
47228 fi
47229
47230
47231
47232
47233
47234
47235
47236
47237
47238
47239 # Check whether --with-pic was given.
47240 if test "${with_pic+set}" = set; then
47241   withval=$with_pic; pic_mode="$withval"
47242 else
47243   pic_mode=default
47244 fi
47245
47246
47247 test -z "$pic_mode" && pic_mode=default
47248
47249
47250
47251
47252
47253
47254
47255   # Check whether --enable-fast-install was given.
47256 if test "${enable_fast_install+set}" = set; then
47257   enableval=$enable_fast_install; p=${PACKAGE-default}
47258     case $enableval in
47259     yes) enable_fast_install=yes ;;
47260     no) enable_fast_install=no ;;
47261     *)
47262       enable_fast_install=no
47263       # Look at the argument we got.  We use all the common list separators.
47264       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
47265       for pkg in $enableval; do
47266         IFS="$lt_save_ifs"
47267         if test "X$pkg" = "X$p"; then
47268           enable_fast_install=yes
47269         fi
47270       done
47271       IFS="$lt_save_ifs"
47272       ;;
47273     esac
47274 else
47275   enable_fast_install=yes
47276 fi
47277
47278
47279
47280
47281
47282
47283
47284
47285
47286
47287
47288 # This can be used to rebuild libtool when needed
47289 LIBTOOL_DEPS="$ltmain"
47290
47291 # Always use our own libtool.
47292 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
47293
47294
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308
47309
47310
47311
47312
47313
47314
47315
47316
47317
47318 test -z "$LN_S" && LN_S="ln -s"
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328
47329
47330
47331
47332
47333 if test -n "${ZSH_VERSION+set}" ; then
47334    setopt NO_GLOB_SUBST
47335 fi
47336
47337 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
47338 $as_echo_n "checking for objdir... " >&6; }
47339 if test "${lt_cv_objdir+set}" = set; then
47340   $as_echo_n "(cached) " >&6
47341 else
47342   rm -f .libs 2>/dev/null
47343 mkdir .libs 2>/dev/null
47344 if test -d .libs; then
47345   lt_cv_objdir=.libs
47346 else
47347   # MS-DOS does not allow filenames that begin with a dot.
47348   lt_cv_objdir=_libs
47349 fi
47350 rmdir .libs 2>/dev/null
47351 fi
47352 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
47353 $as_echo "$lt_cv_objdir" >&6; }
47354 objdir=$lt_cv_objdir
47355
47356
47357
47358
47359
47360 cat >>confdefs.h <<_ACEOF
47361 #define LT_OBJDIR "$lt_cv_objdir/"
47362 _ACEOF
47363
47364
47365
47366
47367
47368
47369
47370
47371
47372
47373
47374
47375
47376
47377
47378
47379
47380 case $host_os in
47381 aix3*)
47382   # AIX sometimes has problems with the GCC collect2 program.  For some
47383   # reason, if we set the COLLECT_NAMES environment variable, the problems
47384   # vanish in a puff of smoke.
47385   if test "X${COLLECT_NAMES+set}" != Xset; then
47386     COLLECT_NAMES=
47387     export COLLECT_NAMES
47388   fi
47389   ;;
47390 esac
47391
47392 # Sed substitution that helps us do robust quoting.  It backslashifies
47393 # metacharacters that are still active within double-quoted strings.
47394 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
47395
47396 # Same as above, but do not quote variable references.
47397 double_quote_subst='s/\(["`\\]\)/\\\1/g'
47398
47399 # Sed substitution to delay expansion of an escaped shell variable in a
47400 # double_quote_subst'ed string.
47401 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
47402
47403 # Sed substitution to delay expansion of an escaped single quote.
47404 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
47405
47406 # Sed substitution to avoid accidental globbing in evaled expressions
47407 no_glob_subst='s/\*/\\\*/g'
47408
47409 # Global variables:
47410 ofile=libtool
47411 can_build_shared=yes
47412
47413 # All known linkers require a `.a' archive for static linking (except MSVC,
47414 # which needs '.lib').
47415 libext=a
47416
47417 with_gnu_ld="$lt_cv_prog_gnu_ld"
47418
47419 old_CC="$CC"
47420 old_CFLAGS="$CFLAGS"
47421
47422 # Set sane defaults for various variables
47423 test -z "$CC" && CC=cc
47424 test -z "$LTCC" && LTCC=$CC
47425 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
47426 test -z "$LD" && LD=ld
47427 test -z "$ac_objext" && ac_objext=o
47428
47429 for cc_temp in $compiler""; do
47430   case $cc_temp in
47431     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47432     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47433     \-*) ;;
47434     *) break;;
47435   esac
47436 done
47437 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47438
47439
47440 # Only perform the check for file, if the check method requires it
47441 test -z "$MAGIC_CMD" && MAGIC_CMD=file
47442 case $deplibs_check_method in
47443 file_magic*)
47444   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
47445     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
47446 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
47447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
47448   $as_echo_n "(cached) " >&6
47449 else
47450   case $MAGIC_CMD in
47451 [\\/*] |  ?:[\\/]*)
47452   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
47453   ;;
47454 *)
47455   lt_save_MAGIC_CMD="$MAGIC_CMD"
47456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
47457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
47458   for ac_dir in $ac_dummy; do
47459     IFS="$lt_save_ifs"
47460     test -z "$ac_dir" && ac_dir=.
47461     if test -f $ac_dir/${ac_tool_prefix}file; then
47462       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
47463       if test -n "$file_magic_test_file"; then
47464         case $deplibs_check_method in
47465         "file_magic "*)
47466           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
47467           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
47468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
47469             $EGREP "$file_magic_regex" > /dev/null; then
47470             :
47471           else
47472             cat <<_LT_EOF 1>&2
47473
47474 *** Warning: the command libtool uses to detect shared libraries,
47475 *** $file_magic_cmd, produces output that libtool cannot recognize.
47476 *** The result is that libtool may fail to recognize shared libraries
47477 *** as such.  This will affect the creation of libtool libraries that
47478 *** depend on shared libraries, but programs linked with such libtool
47479 *** libraries will work regardless of this problem.  Nevertheless, you
47480 *** may want to report the problem to your system manager and/or to
47481 *** bug-libtool@gnu.org
47482
47483 _LT_EOF
47484           fi ;;
47485         esac
47486       fi
47487       break
47488     fi
47489   done
47490   IFS="$lt_save_ifs"
47491   MAGIC_CMD="$lt_save_MAGIC_CMD"
47492   ;;
47493 esac
47494 fi
47495
47496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
47497 if test -n "$MAGIC_CMD"; then
47498   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
47499 $as_echo "$MAGIC_CMD" >&6; }
47500 else
47501   { $as_echo "$as_me:$LINENO: result: no" >&5
47502 $as_echo "no" >&6; }
47503 fi
47504
47505
47506
47507
47508
47509 if test -z "$lt_cv_path_MAGIC_CMD"; then
47510   if test -n "$ac_tool_prefix"; then
47511     { $as_echo "$as_me:$LINENO: checking for file" >&5
47512 $as_echo_n "checking for file... " >&6; }
47513 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
47514   $as_echo_n "(cached) " >&6
47515 else
47516   case $MAGIC_CMD in
47517 [\\/*] |  ?:[\\/]*)
47518   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
47519   ;;
47520 *)
47521   lt_save_MAGIC_CMD="$MAGIC_CMD"
47522   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
47523   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
47524   for ac_dir in $ac_dummy; do
47525     IFS="$lt_save_ifs"
47526     test -z "$ac_dir" && ac_dir=.
47527     if test -f $ac_dir/file; then
47528       lt_cv_path_MAGIC_CMD="$ac_dir/file"
47529       if test -n "$file_magic_test_file"; then
47530         case $deplibs_check_method in
47531         "file_magic "*)
47532           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
47533           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
47534           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
47535             $EGREP "$file_magic_regex" > /dev/null; then
47536             :
47537           else
47538             cat <<_LT_EOF 1>&2
47539
47540 *** Warning: the command libtool uses to detect shared libraries,
47541 *** $file_magic_cmd, produces output that libtool cannot recognize.
47542 *** The result is that libtool may fail to recognize shared libraries
47543 *** as such.  This will affect the creation of libtool libraries that
47544 *** depend on shared libraries, but programs linked with such libtool
47545 *** libraries will work regardless of this problem.  Nevertheless, you
47546 *** may want to report the problem to your system manager and/or to
47547 *** bug-libtool@gnu.org
47548
47549 _LT_EOF
47550           fi ;;
47551         esac
47552       fi
47553       break
47554     fi
47555   done
47556   IFS="$lt_save_ifs"
47557   MAGIC_CMD="$lt_save_MAGIC_CMD"
47558   ;;
47559 esac
47560 fi
47561
47562 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
47563 if test -n "$MAGIC_CMD"; then
47564   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
47565 $as_echo "$MAGIC_CMD" >&6; }
47566 else
47567   { $as_echo "$as_me:$LINENO: result: no" >&5
47568 $as_echo "no" >&6; }
47569 fi
47570
47571
47572   else
47573     MAGIC_CMD=:
47574   fi
47575 fi
47576
47577   fi
47578   ;;
47579 esac
47580
47581 # Use C for the default configuration in the libtool script
47582
47583 lt_save_CC="$CC"
47584 ac_ext=c
47585 ac_cpp='$CPP $CPPFLAGS'
47586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47589
47590
47591 # Source file extension for C test sources.
47592 ac_ext=c
47593
47594 # Object file extension for compiled C test sources.
47595 objext=o
47596 objext=$objext
47597
47598 # Code to be used in simple compile tests
47599 lt_simple_compile_test_code="int some_variable = 0;"
47600
47601 # Code to be used in simple link tests
47602 lt_simple_link_test_code='int main(){return(0);}'
47603
47604
47605
47606
47607
47608
47609
47610 # If no C compiler was specified, use CC.
47611 LTCC=${LTCC-"$CC"}
47612
47613 # If no C compiler flags were specified, use CFLAGS.
47614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
47615
47616 # Allow CC to be a program name with arguments.
47617 compiler=$CC
47618
47619 # Save the default compiler, since it gets overwritten when the other
47620 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
47621 compiler_DEFAULT=$CC
47622
47623 # save warnings/boilerplate of simple test code
47624 ac_outfile=conftest.$ac_objext
47625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
47626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
47627 _lt_compiler_boilerplate=`cat conftest.err`
47628 $RM conftest*
47629
47630 ac_outfile=conftest.$ac_objext
47631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
47632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
47633 _lt_linker_boilerplate=`cat conftest.err`
47634 $RM -r conftest*
47635
47636
47637 ## CAVEAT EMPTOR:
47638 ## There is no encapsulation within the following macros, do not change
47639 ## the running order or otherwise move them around unless you know exactly
47640 ## what you are doing...
47641 if test -n "$compiler"; then
47642
47643 lt_prog_compiler_no_builtin_flag=
47644
47645 if test "$GCC" = yes; then
47646   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
47647
47648   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
47649 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
47650 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
47651   $as_echo_n "(cached) " >&6
47652 else
47653   lt_cv_prog_compiler_rtti_exceptions=no
47654    ac_outfile=conftest.$ac_objext
47655    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47656    lt_compiler_flag="-fno-rtti -fno-exceptions"
47657    # Insert the option either (1) after the last *FLAGS variable, or
47658    # (2) before a word containing "conftest.", or (3) at the end.
47659    # Note that $ac_compile itself does not contain backslashes and begins
47660    # with a dollar sign (not a hyphen), so the echo should work correctly.
47661    # The option is referenced via a variable to avoid confusing sed.
47662    lt_compile=`echo "$ac_compile" | $SED \
47663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47665    -e 's:$: $lt_compiler_flag:'`
47666    (eval echo "\"\$as_me:47666: $lt_compile\"" >&5)
47667    (eval "$lt_compile" 2>conftest.err)
47668    ac_status=$?
47669    cat conftest.err >&5
47670    echo "$as_me:47670: \$? = $ac_status" >&5
47671    if (exit $ac_status) && test -s "$ac_outfile"; then
47672      # The compiler can only warn and ignore the option if not recognized
47673      # So say no if there are warnings other than the usual output.
47674      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
47675      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
47676      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
47677        lt_cv_prog_compiler_rtti_exceptions=yes
47678      fi
47679    fi
47680    $RM conftest*
47681
47682 fi
47683 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
47684 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
47685
47686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
47687     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
47688 else
47689     :
47690 fi
47691
47692 fi
47693
47694
47695
47696
47697
47698
47699   lt_prog_compiler_wl=
47700 lt_prog_compiler_pic=
47701 lt_prog_compiler_static=
47702
47703 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
47704 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
47705
47706   if test "$GCC" = yes; then
47707     lt_prog_compiler_wl='-Wl,'
47708     lt_prog_compiler_static='-static'
47709
47710     case $host_os in
47711       aix*)
47712       # All AIX code is PIC.
47713       if test "$host_cpu" = ia64; then
47714         # AIX 5 now supports IA64 processor
47715         lt_prog_compiler_static='-Bstatic'
47716       fi
47717       ;;
47718
47719     amigaos*)
47720       case $host_cpu in
47721       powerpc)
47722             # see comment about AmigaOS4 .so support
47723             lt_prog_compiler_pic='-fPIC'
47724         ;;
47725       m68k)
47726             # FIXME: we need at least 68020 code to build shared libraries, but
47727             # adding the `-m68020' flag to GCC prevents building anything better,
47728             # like `-m68040'.
47729             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
47730         ;;
47731       esac
47732       ;;
47733
47734     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
47735       # PIC is the default for these OSes.
47736       ;;
47737
47738     mingw* | cygwin* | pw32* | os2*)
47739       # This hack is so that the source file can tell whether it is being
47740       # built for inclusion in a dll (and should export symbols for example).
47741       # Although the cygwin gcc ignores -fPIC, still need this for old-style
47742       # (--disable-auto-import) libraries
47743       lt_prog_compiler_pic='-DDLL_EXPORT'
47744       ;;
47745
47746     darwin* | rhapsody*)
47747       # PIC is the default on this platform
47748       # Common symbols not allowed in MH_DYLIB files
47749       lt_prog_compiler_pic='-fno-common'
47750       ;;
47751
47752     hpux*)
47753       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47754       # not for PA HP-UX.
47755       case $host_cpu in
47756       hppa*64*|ia64*)
47757         # +Z the default
47758         ;;
47759       *)
47760         lt_prog_compiler_pic='-fPIC'
47761         ;;
47762       esac
47763       ;;
47764
47765     interix[3-9]*)
47766       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
47767       # Instead, we relocate shared libraries at runtime.
47768       ;;
47769
47770     msdosdjgpp*)
47771       # Just because we use GCC doesn't mean we suddenly get shared libraries
47772       # on systems that don't support them.
47773       lt_prog_compiler_can_build_shared=no
47774       enable_shared=no
47775       ;;
47776
47777     *nto* | *qnx*)
47778       # QNX uses GNU C++, but need to define -shared option too, otherwise
47779       # it will coredump.
47780       lt_prog_compiler_pic='-fPIC -shared'
47781       ;;
47782
47783     sysv4*MP*)
47784       if test -d /usr/nec; then
47785         lt_prog_compiler_pic=-Kconform_pic
47786       fi
47787       ;;
47788
47789     *)
47790       lt_prog_compiler_pic='-fPIC'
47791       ;;
47792     esac
47793   else
47794     # PORTME Check for flag to pass linker flags through the system compiler.
47795     case $host_os in
47796     aix*)
47797       lt_prog_compiler_wl='-Wl,'
47798       if test "$host_cpu" = ia64; then
47799         # AIX 5 now supports IA64 processor
47800         lt_prog_compiler_static='-Bstatic'
47801       else
47802         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
47803       fi
47804       ;;
47805
47806     mingw* | cygwin* | pw32* | os2*)
47807       # This hack is so that the source file can tell whether it is being
47808       # built for inclusion in a dll (and should export symbols for example).
47809       lt_prog_compiler_pic='-DDLL_EXPORT'
47810       ;;
47811
47812     hpux9* | hpux10* | hpux11*)
47813       lt_prog_compiler_wl='-Wl,'
47814       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
47815       # not for PA HP-UX.
47816       case $host_cpu in
47817       hppa*64*|ia64*)
47818         # +Z the default
47819         ;;
47820       *)
47821         lt_prog_compiler_pic='+Z'
47822         ;;
47823       esac
47824       # Is there a better lt_prog_compiler_static that works with the bundled CC?
47825       lt_prog_compiler_static='${wl}-a ${wl}archive'
47826       ;;
47827
47828     irix5* | irix6* | nonstopux*)
47829       lt_prog_compiler_wl='-Wl,'
47830       # PIC (with -KPIC) is the default.
47831       lt_prog_compiler_static='-non_shared'
47832       ;;
47833
47834     linux* | k*bsd*-gnu)
47835       case $cc_basename in
47836       icc* | ecc* | ifort*)
47837         lt_prog_compiler_wl='-Wl,'
47838         lt_prog_compiler_pic='-KPIC'
47839         lt_prog_compiler_static='-static'
47840         ;;
47841       pgcc* | pgf77* | pgf90* | pgf95*)
47842         # Portland Group compilers (*not* the Pentium gcc compiler,
47843         # which looks to be a dead project)
47844         lt_prog_compiler_wl='-Wl,'
47845         lt_prog_compiler_pic='-fpic'
47846         lt_prog_compiler_static='-Bstatic'
47847         ;;
47848       ccc*)
47849         lt_prog_compiler_wl='-Wl,'
47850         # All Alpha code is PIC.
47851         lt_prog_compiler_static='-non_shared'
47852         ;;
47853       xl*)
47854         # IBM XL C 8.0/Fortran 10.1 on PPC
47855         lt_prog_compiler_wl='-Wl,'
47856         lt_prog_compiler_pic='-qpic'
47857         lt_prog_compiler_static='-qstaticlink'
47858         ;;
47859       *)
47860         case `$CC -V 2>&1 | sed 5q` in
47861         *Sun\ C*)
47862           # Sun C 5.9
47863           lt_prog_compiler_pic='-KPIC'
47864           lt_prog_compiler_static='-Bstatic'
47865           lt_prog_compiler_wl='-Wl,'
47866           ;;
47867         *Sun\ F*)
47868           # Sun Fortran 8.3 passes all unrecognized flags to the linker
47869           lt_prog_compiler_pic='-KPIC'
47870           lt_prog_compiler_static='-Bstatic'
47871           lt_prog_compiler_wl=''
47872           ;;
47873         esac
47874         ;;
47875       esac
47876       ;;
47877
47878     newsos6)
47879       lt_prog_compiler_pic='-KPIC'
47880       lt_prog_compiler_static='-Bstatic'
47881       ;;
47882
47883     *nto* | *qnx*)
47884       # QNX uses GNU C++, but need to define -shared option too, otherwise
47885       # it will coredump.
47886       lt_prog_compiler_pic='-fPIC -shared'
47887       ;;
47888
47889     osf3* | osf4* | osf5*)
47890       lt_prog_compiler_wl='-Wl,'
47891       # All OSF/1 code is PIC.
47892       lt_prog_compiler_static='-non_shared'
47893       ;;
47894
47895     rdos*)
47896       lt_prog_compiler_static='-non_shared'
47897       ;;
47898
47899     solaris*)
47900       lt_prog_compiler_pic='-KPIC'
47901       lt_prog_compiler_static='-Bstatic'
47902       case $cc_basename in
47903       f77* | f90* | f95*)
47904         lt_prog_compiler_wl='-Qoption ld ';;
47905       *)
47906         lt_prog_compiler_wl='-Wl,';;
47907       esac
47908       ;;
47909
47910     sunos4*)
47911       lt_prog_compiler_wl='-Qoption ld '
47912       lt_prog_compiler_pic='-PIC'
47913       lt_prog_compiler_static='-Bstatic'
47914       ;;
47915
47916     sysv4 | sysv4.2uw2* | sysv4.3*)
47917       lt_prog_compiler_wl='-Wl,'
47918       lt_prog_compiler_pic='-KPIC'
47919       lt_prog_compiler_static='-Bstatic'
47920       ;;
47921
47922     sysv4*MP*)
47923       if test -d /usr/nec ;then
47924         lt_prog_compiler_pic='-Kconform_pic'
47925         lt_prog_compiler_static='-Bstatic'
47926       fi
47927       ;;
47928
47929     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
47930       lt_prog_compiler_wl='-Wl,'
47931       lt_prog_compiler_pic='-KPIC'
47932       lt_prog_compiler_static='-Bstatic'
47933       ;;
47934
47935     unicos*)
47936       lt_prog_compiler_wl='-Wl,'
47937       lt_prog_compiler_can_build_shared=no
47938       ;;
47939
47940     uts4*)
47941       lt_prog_compiler_pic='-pic'
47942       lt_prog_compiler_static='-Bstatic'
47943       ;;
47944
47945     *)
47946       lt_prog_compiler_can_build_shared=no
47947       ;;
47948     esac
47949   fi
47950
47951 case $host_os in
47952   # For platforms which do not support PIC, -DPIC is meaningless:
47953   *djgpp*)
47954     lt_prog_compiler_pic=
47955     ;;
47956   *)
47957     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
47958     ;;
47959 esac
47960 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
47961 $as_echo "$lt_prog_compiler_pic" >&6; }
47962
47963
47964
47965
47966
47967
47968 #
47969 # Check to make sure the PIC flag actually works.
47970 #
47971 if test -n "$lt_prog_compiler_pic"; then
47972   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
47973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
47974 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
47975   $as_echo_n "(cached) " >&6
47976 else
47977   lt_cv_prog_compiler_pic_works=no
47978    ac_outfile=conftest.$ac_objext
47979    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47980    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
47981    # Insert the option either (1) after the last *FLAGS variable, or
47982    # (2) before a word containing "conftest.", or (3) at the end.
47983    # Note that $ac_compile itself does not contain backslashes and begins
47984    # with a dollar sign (not a hyphen), so the echo should work correctly.
47985    # The option is referenced via a variable to avoid confusing sed.
47986    lt_compile=`echo "$ac_compile" | $SED \
47987    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
47988    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
47989    -e 's:$: $lt_compiler_flag:'`
47990    (eval echo "\"\$as_me:47990: $lt_compile\"" >&5)
47991    (eval "$lt_compile" 2>conftest.err)
47992    ac_status=$?
47993    cat conftest.err >&5
47994    echo "$as_me:47994: \$? = $ac_status" >&5
47995    if (exit $ac_status) && test -s "$ac_outfile"; then
47996      # The compiler can only warn and ignore the option if not recognized
47997      # So say no if there are warnings other than the usual output.
47998      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
47999      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
48000      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
48001        lt_cv_prog_compiler_pic_works=yes
48002      fi
48003    fi
48004    $RM conftest*
48005
48006 fi
48007 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
48008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
48009
48010 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
48011     case $lt_prog_compiler_pic in
48012      "" | " "*) ;;
48013      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
48014      esac
48015 else
48016     lt_prog_compiler_pic=
48017      lt_prog_compiler_can_build_shared=no
48018 fi
48019
48020 fi
48021
48022
48023
48024
48025
48026
48027 #
48028 # Check to make sure the static flag actually works.
48029 #
48030 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
48031 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
48032 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
48033 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
48034   $as_echo_n "(cached) " >&6
48035 else
48036   lt_cv_prog_compiler_static_works=no
48037    save_LDFLAGS="$LDFLAGS"
48038    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
48039    echo "$lt_simple_link_test_code" > conftest.$ac_ext
48040    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
48041      # The linker can only warn and ignore the option if not recognized
48042      # So say no if there are warnings
48043      if test -s conftest.err; then
48044        # Append any errors to the config.log.
48045        cat conftest.err 1>&5
48046        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
48047        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
48048        if diff conftest.exp conftest.er2 >/dev/null; then
48049          lt_cv_prog_compiler_static_works=yes
48050        fi
48051      else
48052        lt_cv_prog_compiler_static_works=yes
48053      fi
48054    fi
48055    $RM -r conftest*
48056    LDFLAGS="$save_LDFLAGS"
48057
48058 fi
48059 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
48060 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
48061
48062 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
48063     :
48064 else
48065     lt_prog_compiler_static=
48066 fi
48067
48068
48069
48070
48071
48072
48073
48074   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
48075 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
48076 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
48077   $as_echo_n "(cached) " >&6
48078 else
48079   lt_cv_prog_compiler_c_o=no
48080    $RM -r conftest 2>/dev/null
48081    mkdir conftest
48082    cd conftest
48083    mkdir out
48084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
48085
48086    lt_compiler_flag="-o out/conftest2.$ac_objext"
48087    # Insert the option either (1) after the last *FLAGS variable, or
48088    # (2) before a word containing "conftest.", or (3) at the end.
48089    # Note that $ac_compile itself does not contain backslashes and begins
48090    # with a dollar sign (not a hyphen), so the echo should work correctly.
48091    lt_compile=`echo "$ac_compile" | $SED \
48092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
48093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
48094    -e 's:$: $lt_compiler_flag:'`
48095    (eval echo "\"\$as_me:48095: $lt_compile\"" >&5)
48096    (eval "$lt_compile" 2>out/conftest.err)
48097    ac_status=$?
48098    cat out/conftest.err >&5
48099    echo "$as_me:48099: \$? = $ac_status" >&5
48100    if (exit $ac_status) && test -s out/conftest2.$ac_objext
48101    then
48102      # The compiler can only warn and ignore the option if not recognized
48103      # So say no if there are warnings
48104      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
48105      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
48106      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
48107        lt_cv_prog_compiler_c_o=yes
48108      fi
48109    fi
48110    chmod u+w . 2>&5
48111    $RM conftest*
48112    # SGI C++ compiler will create directory out/ii_files/ for
48113    # template instantiation
48114    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
48115    $RM out/* && rmdir out
48116    cd ..
48117    $RM -r conftest
48118    $RM conftest*
48119
48120 fi
48121 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
48122 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
48123
48124
48125
48126
48127
48128
48129   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
48130 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
48131 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
48132   $as_echo_n "(cached) " >&6
48133 else
48134   lt_cv_prog_compiler_c_o=no
48135    $RM -r conftest 2>/dev/null
48136    mkdir conftest
48137    cd conftest
48138    mkdir out
48139    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
48140
48141    lt_compiler_flag="-o out/conftest2.$ac_objext"
48142    # Insert the option either (1) after the last *FLAGS variable, or
48143    # (2) before a word containing "conftest.", or (3) at the end.
48144    # Note that $ac_compile itself does not contain backslashes and begins
48145    # with a dollar sign (not a hyphen), so the echo should work correctly.
48146    lt_compile=`echo "$ac_compile" | $SED \
48147    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
48148    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
48149    -e 's:$: $lt_compiler_flag:'`
48150    (eval echo "\"\$as_me:48150: $lt_compile\"" >&5)
48151    (eval "$lt_compile" 2>out/conftest.err)
48152    ac_status=$?
48153    cat out/conftest.err >&5
48154    echo "$as_me:48154: \$? = $ac_status" >&5
48155    if (exit $ac_status) && test -s out/conftest2.$ac_objext
48156    then
48157      # The compiler can only warn and ignore the option if not recognized
48158      # So say no if there are warnings
48159      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
48160      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
48161      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
48162        lt_cv_prog_compiler_c_o=yes
48163      fi
48164    fi
48165    chmod u+w . 2>&5
48166    $RM conftest*
48167    # SGI C++ compiler will create directory out/ii_files/ for
48168    # template instantiation
48169    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
48170    $RM out/* && rmdir out
48171    cd ..
48172    $RM -r conftest
48173    $RM conftest*
48174
48175 fi
48176 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
48177 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
48178
48179
48180
48181
48182 hard_links="nottested"
48183 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
48184   # do not overwrite the value of need_locks provided by the user
48185   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
48186 $as_echo_n "checking if we can lock with hard links... " >&6; }
48187   hard_links=yes
48188   $RM conftest*
48189   ln conftest.a conftest.b 2>/dev/null && hard_links=no
48190   touch conftest.a
48191   ln conftest.a conftest.b 2>&5 || hard_links=no
48192   ln conftest.a conftest.b 2>/dev/null && hard_links=no
48193   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
48194 $as_echo "$hard_links" >&6; }
48195   if test "$hard_links" = no; then
48196     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
48197 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
48198     need_locks=warn
48199   fi
48200 else
48201   need_locks=no
48202 fi
48203
48204
48205
48206
48207
48208
48209   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
48210 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
48211
48212   runpath_var=
48213   allow_undefined_flag=
48214   always_export_symbols=no
48215   archive_cmds=
48216   archive_expsym_cmds=
48217   compiler_needs_object=no
48218   enable_shared_with_static_runtimes=no
48219   export_dynamic_flag_spec=
48220   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
48221   hardcode_automatic=no
48222   hardcode_direct=no
48223   hardcode_direct_absolute=no
48224   hardcode_libdir_flag_spec=
48225   hardcode_libdir_flag_spec_ld=
48226   hardcode_libdir_separator=
48227   hardcode_minus_L=no
48228   hardcode_shlibpath_var=unsupported
48229   inherit_rpath=no
48230   link_all_deplibs=unknown
48231   module_cmds=
48232   module_expsym_cmds=
48233   old_archive_from_new_cmds=
48234   old_archive_from_expsyms_cmds=
48235   thread_safe_flag_spec=
48236   whole_archive_flag_spec=
48237   # include_expsyms should be a list of space-separated symbols to be *always*
48238   # included in the symbol list
48239   include_expsyms=
48240   # exclude_expsyms can be an extended regexp of symbols to exclude
48241   # it will be wrapped by ` (' and `)$', so one must not match beginning or
48242   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
48243   # as well as any symbol that contains `d'.
48244   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
48245   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
48246   # platforms (ab)use it in PIC code, but their linkers get confused if
48247   # the symbol is explicitly referenced.  Since portable code cannot
48248   # rely on this symbol name, it's probably fine to never include it in
48249   # preloaded symbol tables.
48250   # Exclude shared library initialization/finalization symbols.
48251   extract_expsyms_cmds=
48252
48253   case $host_os in
48254   cygwin* | mingw* | pw32*)
48255     # FIXME: the MSVC++ port hasn't been tested in a loooong time
48256     # When not using gcc, we currently assume that we are using
48257     # Microsoft Visual C++.
48258     if test "$GCC" != yes; then
48259       with_gnu_ld=no
48260     fi
48261     ;;
48262   interix*)
48263     # we just hope/assume this is gcc and not c89 (= MSVC++)
48264     with_gnu_ld=yes
48265     ;;
48266   openbsd*)
48267     with_gnu_ld=no
48268     ;;
48269   esac
48270
48271   ld_shlibs=yes
48272   if test "$with_gnu_ld" = yes; then
48273     # If archive_cmds runs LD, not CC, wlarc should be empty
48274     wlarc='${wl}'
48275
48276     # Set some defaults for GNU ld with shared library support. These
48277     # are reset later if shared libraries are not supported. Putting them
48278     # here allows them to be overridden if necessary.
48279     runpath_var=LD_RUN_PATH
48280     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
48281     export_dynamic_flag_spec='${wl}--export-dynamic'
48282     # ancient GNU ld didn't support --whole-archive et. al.
48283     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
48284       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
48285     else
48286       whole_archive_flag_spec=
48287     fi
48288     supports_anon_versioning=no
48289     case `$LD -v 2>&1` in
48290       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
48291       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
48292       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
48293       *\ 2.11.*) ;; # other 2.11 versions
48294       *) supports_anon_versioning=yes ;;
48295     esac
48296
48297     # See if GNU ld supports shared libraries.
48298     case $host_os in
48299     aix[3-9]*)
48300       # On AIX/PPC, the GNU linker is very broken
48301       if test "$host_cpu" != ia64; then
48302         ld_shlibs=no
48303         cat <<_LT_EOF 1>&2
48304
48305 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
48306 *** to be unable to reliably create shared libraries on AIX.
48307 *** Therefore, libtool is disabling shared libraries support.  If you
48308 *** really care for shared libraries, you may want to modify your PATH
48309 *** so that a non-GNU linker is found, and then restart.
48310
48311 _LT_EOF
48312       fi
48313       ;;
48314
48315     amigaos*)
48316       case $host_cpu in
48317       powerpc)
48318             # see comment about AmigaOS4 .so support
48319             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48320             archive_expsym_cmds=''
48321         ;;
48322       m68k)
48323             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)'
48324             hardcode_libdir_flag_spec='-L$libdir'
48325             hardcode_minus_L=yes
48326         ;;
48327       esac
48328       ;;
48329
48330     beos*)
48331       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
48332         allow_undefined_flag=unsupported
48333         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
48334         # support --undefined.  This deserves some investigation.  FIXME
48335         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48336       else
48337         ld_shlibs=no
48338       fi
48339       ;;
48340
48341     cygwin* | mingw* | pw32*)
48342       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
48343       # as there is no search path for DLLs.
48344       hardcode_libdir_flag_spec='-L$libdir'
48345       allow_undefined_flag=unsupported
48346       always_export_symbols=no
48347       enable_shared_with_static_runtimes=yes
48348       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
48349
48350       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
48351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
48352         # If the export-symbols file already is a .def file (1st line
48353         # is EXPORTS), use it as is; otherwise, prepend...
48354         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
48355           cp $export_symbols $output_objdir/$soname.def;
48356         else
48357           echo EXPORTS > $output_objdir/$soname.def;
48358           cat $export_symbols >> $output_objdir/$soname.def;
48359         fi~
48360         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
48361       else
48362         ld_shlibs=no
48363       fi
48364       ;;
48365
48366     interix[3-9]*)
48367       hardcode_direct=no
48368       hardcode_shlibpath_var=no
48369       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
48370       export_dynamic_flag_spec='${wl}-E'
48371       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
48372       # Instead, shared libraries are loaded at an image base (0x10000000 by
48373       # default) and relocated if they conflict, which is a slow very memory
48374       # consuming and fragmenting process.  To avoid this, we pick a random,
48375       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
48376       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
48377       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
48378       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'
48379       ;;
48380
48381     gnu* | linux* | tpf* | k*bsd*-gnu)
48382       tmp_diet=no
48383       if test "$host_os" = linux-dietlibc; then
48384         case $cc_basename in
48385           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
48386         esac
48387       fi
48388       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
48389          && test "$tmp_diet" = no
48390       then
48391         tmp_addflag=
48392         tmp_sharedflag='-shared'
48393         case $cc_basename,$host_cpu in
48394         pgcc*)                          # Portland Group C compiler
48395           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'
48396           tmp_addflag=' $pic_flag'
48397           ;;
48398         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
48399           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'
48400           tmp_addflag=' $pic_flag -Mnomain' ;;
48401         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
48402           tmp_addflag=' -i_dynamic' ;;
48403         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
48404           tmp_addflag=' -i_dynamic -nofor_main' ;;
48405         ifc* | ifort*)                  # Intel Fortran compiler
48406           tmp_addflag=' -nofor_main' ;;
48407         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
48408           tmp_sharedflag='-qmkshrobj'
48409           tmp_addflag= ;;
48410         esac
48411         case `$CC -V 2>&1 | sed 5q` in
48412         *Sun\ C*)                       # Sun C 5.9
48413           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'
48414           compiler_needs_object=yes
48415           tmp_sharedflag='-G' ;;
48416         *Sun\ F*)                       # Sun Fortran 8.3
48417           tmp_sharedflag='-G' ;;
48418         esac
48419         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48420
48421         if test "x$supports_anon_versioning" = xyes; then
48422           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
48423             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
48424             echo "local: *; };" >> $output_objdir/$libname.ver~
48425             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
48426         fi
48427
48428         case $cc_basename in
48429         xlf*)
48430           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48431           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
48432           hardcode_libdir_flag_spec=
48433           hardcode_libdir_flag_spec_ld='-rpath $libdir'
48434           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
48435           if test "x$supports_anon_versioning" = xyes; then
48436             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
48437               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
48438               echo "local: *; };" >> $output_objdir/$libname.ver~
48439               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48440           fi
48441           ;;
48442         esac
48443       else
48444         ld_shlibs=no
48445       fi
48446       ;;
48447
48448     netbsd*)
48449       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
48450         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48451         wlarc=
48452       else
48453         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48454         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
48455       fi
48456       ;;
48457
48458     solaris*)
48459       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
48460         ld_shlibs=no
48461         cat <<_LT_EOF 1>&2
48462
48463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
48464 *** create shared libraries on Solaris systems.  Therefore, libtool
48465 *** is disabling shared libraries support.  We urge you to upgrade GNU
48466 *** binutils to release 2.9.1 or newer.  Another option is to modify
48467 *** your PATH or compiler configuration so that the native linker is
48468 *** used, and then restart.
48469
48470 _LT_EOF
48471       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
48472         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48473         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
48474       else
48475         ld_shlibs=no
48476       fi
48477       ;;
48478
48479     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
48480       case `$LD -v 2>&1` in
48481         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
48482         ld_shlibs=no
48483         cat <<_LT_EOF 1>&2
48484
48485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
48486 *** reliably create shared libraries on SCO systems.  Therefore, libtool
48487 *** is disabling shared libraries support.  We urge you to upgrade GNU
48488 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
48489 *** your PATH or compiler configuration so that the native linker is
48490 *** used, and then restart.
48491
48492 _LT_EOF
48493         ;;
48494         *)
48495           # For security reasons, it is highly recommended that you always
48496           # use absolute paths for naming shared libraries, and exclude the
48497           # DT_RUNPATH tag from executables and libraries.  But doing so
48498           # requires that you compile everything twice, which is a pain.
48499           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
48500             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
48501             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48502             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
48503           else
48504             ld_shlibs=no
48505           fi
48506         ;;
48507       esac
48508       ;;
48509
48510     sunos4*)
48511       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48512       wlarc=
48513       hardcode_direct=yes
48514       hardcode_shlibpath_var=no
48515       ;;
48516
48517     *)
48518       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
48519         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48520         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
48521       else
48522         ld_shlibs=no
48523       fi
48524       ;;
48525     esac
48526
48527     if test "$ld_shlibs" = no; then
48528       runpath_var=
48529       hardcode_libdir_flag_spec=
48530       export_dynamic_flag_spec=
48531       whole_archive_flag_spec=
48532     fi
48533   else
48534     # PORTME fill in a description of your system's linker (not GNU ld)
48535     case $host_os in
48536     aix3*)
48537       allow_undefined_flag=unsupported
48538       always_export_symbols=yes
48539       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'
48540       # Note: this linker hardcodes the directories in LIBPATH if there
48541       # are no directories specified by -L.
48542       hardcode_minus_L=yes
48543       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
48544         # Neither direct hardcoding nor static linking is supported with a
48545         # broken collect2.
48546         hardcode_direct=unsupported
48547       fi
48548       ;;
48549
48550     aix[4-9]*)
48551       if test "$host_cpu" = ia64; then
48552         # On IA64, the linker does run time linking by default, so we don't
48553         # have to do anything special.
48554         aix_use_runtimelinking=no
48555         exp_sym_flag='-Bexport'
48556         no_entry_flag=""
48557       else
48558         # If we're using GNU nm, then we don't want the "-C" option.
48559         # -C means demangle to AIX nm, but means don't demangle with GNU nm
48560         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
48561           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'
48562         else
48563           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'
48564         fi
48565         aix_use_runtimelinking=no
48566
48567         # Test if we are trying to use run time linking or normal
48568         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
48569         # need to do runtime linking.
48570         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
48571           for ld_flag in $LDFLAGS; do
48572           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
48573             aix_use_runtimelinking=yes
48574             break
48575           fi
48576           done
48577           ;;
48578         esac
48579
48580         exp_sym_flag='-bexport'
48581         no_entry_flag='-bnoentry'
48582       fi
48583
48584       # When large executables or shared objects are built, AIX ld can
48585       # have problems creating the table of contents.  If linking a library
48586       # or program results in "error TOC overflow" add -mminimal-toc to
48587       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
48588       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
48589
48590       archive_cmds=''
48591       hardcode_direct=yes
48592       hardcode_direct_absolute=yes
48593       hardcode_libdir_separator=':'
48594       link_all_deplibs=yes
48595       file_list_spec='${wl}-f,'
48596
48597       if test "$GCC" = yes; then
48598         case $host_os in aix4.[012]|aix4.[012].*)
48599         # We only want to do this on AIX 4.2 and lower, the check
48600         # below for broken collect2 doesn't work under 4.3+
48601           collect2name=`${CC} -print-prog-name=collect2`
48602           if test -f "$collect2name" &&
48603            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
48604           then
48605           # We have reworked collect2
48606           :
48607           else
48608           # We have old collect2
48609           hardcode_direct=unsupported
48610           # It fails to find uninstalled libraries when the uninstalled
48611           # path is not listed in the libpath.  Setting hardcode_minus_L
48612           # to unsupported forces relinking
48613           hardcode_minus_L=yes
48614           hardcode_libdir_flag_spec='-L$libdir'
48615           hardcode_libdir_separator=
48616           fi
48617           ;;
48618         esac
48619         shared_flag='-shared'
48620         if test "$aix_use_runtimelinking" = yes; then
48621           shared_flag="$shared_flag "'${wl}-G'
48622         fi
48623       else
48624         # not using gcc
48625         if test "$host_cpu" = ia64; then
48626         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
48627         # chokes on -Wl,-G. The following line is correct:
48628           shared_flag='-G'
48629         else
48630           if test "$aix_use_runtimelinking" = yes; then
48631             shared_flag='${wl}-G'
48632           else
48633             shared_flag='${wl}-bM:SRE'
48634           fi
48635         fi
48636       fi
48637
48638       # It seems that -bexpall does not export symbols beginning with
48639       # underscore (_), so it is better to generate a list of symbols to export.
48640       always_export_symbols=yes
48641       if test "$aix_use_runtimelinking" = yes; then
48642         # Warning - without using the other runtime loading flags (-brtl),
48643         # -berok will link without error, but may produce a broken library.
48644         allow_undefined_flag='-berok'
48645         # Determine the default libpath from the value encoded in an
48646         # empty executable.
48647         cat >conftest.$ac_ext <<_ACEOF
48648 /* confdefs.h.  */
48649 _ACEOF
48650 cat confdefs.h >>conftest.$ac_ext
48651 cat >>conftest.$ac_ext <<_ACEOF
48652 /* end confdefs.h.  */
48653
48654 int
48655 main ()
48656 {
48657
48658   ;
48659   return 0;
48660 }
48661 _ACEOF
48662 rm -f conftest.$ac_objext conftest$ac_exeext
48663 if { (ac_try="$ac_link"
48664 case "(($ac_try" in
48665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48666   *) ac_try_echo=$ac_try;;
48667 esac
48668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48669 $as_echo "$ac_try_echo") >&5
48670   (eval "$ac_link") 2>conftest.er1
48671   ac_status=$?
48672   grep -v '^ *+' conftest.er1 >conftest.err
48673   rm -f conftest.er1
48674   cat conftest.err >&5
48675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48676   (exit $ac_status); } && {
48677          test -z "$ac_c_werror_flag" ||
48678          test ! -s conftest.err
48679        } && test -s conftest$ac_exeext && {
48680          test "$cross_compiling" = yes ||
48681          $as_test_x conftest$ac_exeext
48682        }; then
48683
48684 lt_aix_libpath_sed='
48685     /Import File Strings/,/^$/ {
48686         /^0/ {
48687             s/^0  *\(.*\)$/\1/
48688             p
48689         }
48690     }'
48691 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
48692 # Check for a 64-bit object if we didn't find anything.
48693 if test -z "$aix_libpath"; then
48694   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
48695 fi
48696 else
48697   $as_echo "$as_me: failed program was:" >&5
48698 sed 's/^/| /' conftest.$ac_ext >&5
48699
48700
48701 fi
48702
48703 rm -rf conftest.dSYM
48704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48705       conftest$ac_exeext conftest.$ac_ext
48706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
48707
48708         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
48709         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"
48710       else
48711         if test "$host_cpu" = ia64; then
48712           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
48713           allow_undefined_flag="-z nodefs"
48714           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"
48715         else
48716          # Determine the default libpath from the value encoded in an
48717          # empty executable.
48718          cat >conftest.$ac_ext <<_ACEOF
48719 /* confdefs.h.  */
48720 _ACEOF
48721 cat confdefs.h >>conftest.$ac_ext
48722 cat >>conftest.$ac_ext <<_ACEOF
48723 /* end confdefs.h.  */
48724
48725 int
48726 main ()
48727 {
48728
48729   ;
48730   return 0;
48731 }
48732 _ACEOF
48733 rm -f conftest.$ac_objext conftest$ac_exeext
48734 if { (ac_try="$ac_link"
48735 case "(($ac_try" in
48736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48737   *) ac_try_echo=$ac_try;;
48738 esac
48739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48740 $as_echo "$ac_try_echo") >&5
48741   (eval "$ac_link") 2>conftest.er1
48742   ac_status=$?
48743   grep -v '^ *+' conftest.er1 >conftest.err
48744   rm -f conftest.er1
48745   cat conftest.err >&5
48746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48747   (exit $ac_status); } && {
48748          test -z "$ac_c_werror_flag" ||
48749          test ! -s conftest.err
48750        } && test -s conftest$ac_exeext && {
48751          test "$cross_compiling" = yes ||
48752          $as_test_x conftest$ac_exeext
48753        }; then
48754
48755 lt_aix_libpath_sed='
48756     /Import File Strings/,/^$/ {
48757         /^0/ {
48758             s/^0  *\(.*\)$/\1/
48759             p
48760         }
48761     }'
48762 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
48763 # Check for a 64-bit object if we didn't find anything.
48764 if test -z "$aix_libpath"; then
48765   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
48766 fi
48767 else
48768   $as_echo "$as_me: failed program was:" >&5
48769 sed 's/^/| /' conftest.$ac_ext >&5
48770
48771
48772 fi
48773
48774 rm -rf conftest.dSYM
48775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48776       conftest$ac_exeext conftest.$ac_ext
48777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
48778
48779          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
48780           # Warning - without using the other run time loading flags,
48781           # -berok will link without error, but may produce a broken library.
48782           no_undefined_flag=' ${wl}-bernotok'
48783           allow_undefined_flag=' ${wl}-berok'
48784           # Exported symbols can be pulled into shared objects from archives
48785           whole_archive_flag_spec='$convenience'
48786           archive_cmds_need_lc=yes
48787           # This is similar to how AIX traditionally builds its shared libraries.
48788           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'
48789         fi
48790       fi
48791       ;;
48792
48793     amigaos*)
48794       case $host_cpu in
48795       powerpc)
48796             # see comment about AmigaOS4 .so support
48797             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
48798             archive_expsym_cmds=''
48799         ;;
48800       m68k)
48801             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)'
48802             hardcode_libdir_flag_spec='-L$libdir'
48803             hardcode_minus_L=yes
48804         ;;
48805       esac
48806       ;;
48807
48808     bsdi[45]*)
48809       export_dynamic_flag_spec=-rdynamic
48810       ;;
48811
48812     cygwin* | mingw* | pw32*)
48813       # When not using gcc, we currently assume that we are using
48814       # Microsoft Visual C++.
48815       # hardcode_libdir_flag_spec is actually meaningless, as there is
48816       # no search path for DLLs.
48817       hardcode_libdir_flag_spec=' '
48818       allow_undefined_flag=unsupported
48819       # Tell ltmain to make .lib files, not .a files.
48820       libext=lib
48821       # Tell ltmain to make .dll files, not .so files.
48822       shrext_cmds=".dll"
48823       # FIXME: Setting linknames here is a bad hack.
48824       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
48825       # The linker will automatically build a .lib file if we build a DLL.
48826       old_archive_from_new_cmds='true'
48827       # FIXME: Should let the user specify the lib program.
48828       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
48829       fix_srcfile_path='`cygpath -w "$srcfile"`'
48830       enable_shared_with_static_runtimes=yes
48831       ;;
48832
48833     darwin* | rhapsody*)
48834
48835
48836   archive_cmds_need_lc=no
48837   hardcode_direct=no
48838   hardcode_automatic=yes
48839   hardcode_shlibpath_var=unsupported
48840   whole_archive_flag_spec=''
48841   link_all_deplibs=yes
48842   allow_undefined_flag="$_lt_dar_allow_undefined"
48843   if test "$GCC" = "yes"; then
48844     output_verbose_link_cmd=echo
48845     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
48846     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
48847     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}"
48848     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}"
48849
48850   else
48851   ld_shlibs=no
48852   fi
48853
48854       ;;
48855
48856     dgux*)
48857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48858       hardcode_libdir_flag_spec='-L$libdir'
48859       hardcode_shlibpath_var=no
48860       ;;
48861
48862     freebsd1*)
48863       ld_shlibs=no
48864       ;;
48865
48866     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
48867     # support.  Future versions do this automatically, but an explicit c++rt0.o
48868     # does not break anything, and helps significantly (at the cost of a little
48869     # extra space).
48870     freebsd2.2*)
48871       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
48872       hardcode_libdir_flag_spec='-R$libdir'
48873       hardcode_direct=yes
48874       hardcode_shlibpath_var=no
48875       ;;
48876
48877     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
48878     freebsd2*)
48879       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48880       hardcode_direct=yes
48881       hardcode_minus_L=yes
48882       hardcode_shlibpath_var=no
48883       ;;
48884
48885     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48886     freebsd* | dragonfly*)
48887       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
48888       hardcode_libdir_flag_spec='-R$libdir'
48889       hardcode_direct=yes
48890       hardcode_shlibpath_var=no
48891       ;;
48892
48893     hpux9*)
48894       if test "$GCC" = yes; then
48895         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'
48896       else
48897         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'
48898       fi
48899       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
48900       hardcode_libdir_separator=:
48901       hardcode_direct=yes
48902
48903       # hardcode_minus_L: Not really in the search PATH,
48904       # but as the default location of the library.
48905       hardcode_minus_L=yes
48906       export_dynamic_flag_spec='${wl}-E'
48907       ;;
48908
48909     hpux10*)
48910       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
48911         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48912       else
48913         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48914       fi
48915       if test "$with_gnu_ld" = no; then
48916         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
48917         hardcode_libdir_flag_spec_ld='+b $libdir'
48918         hardcode_libdir_separator=:
48919         hardcode_direct=yes
48920         hardcode_direct_absolute=yes
48921         export_dynamic_flag_spec='${wl}-E'
48922         # hardcode_minus_L: Not really in the search PATH,
48923         # but as the default location of the library.
48924         hardcode_minus_L=yes
48925       fi
48926       ;;
48927
48928     hpux11*)
48929       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
48930         case $host_cpu in
48931         hppa*64*)
48932           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48933           ;;
48934         ia64*)
48935           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48936           ;;
48937         *)
48938           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48939           ;;
48940         esac
48941       else
48942         case $host_cpu in
48943         hppa*64*)
48944           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48945           ;;
48946         ia64*)
48947           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48948           ;;
48949         *)
48950           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48951           ;;
48952         esac
48953       fi
48954       if test "$with_gnu_ld" = no; then
48955         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
48956         hardcode_libdir_separator=:
48957
48958         case $host_cpu in
48959         hppa*64*|ia64*)
48960           hardcode_direct=no
48961           hardcode_shlibpath_var=no
48962           ;;
48963         *)
48964           hardcode_direct=yes
48965           hardcode_direct_absolute=yes
48966           export_dynamic_flag_spec='${wl}-E'
48967
48968           # hardcode_minus_L: Not really in the search PATH,
48969           # but as the default location of the library.
48970           hardcode_minus_L=yes
48971           ;;
48972         esac
48973       fi
48974       ;;
48975
48976     irix5* | irix6* | nonstopux*)
48977       if test "$GCC" = yes; then
48978         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'
48979         # Try to use the -exported_symbol ld option, if it does not
48980         # work, assume that -exports_file does not work either and
48981         # implicitly export all symbols.
48982         save_LDFLAGS="$LDFLAGS"
48983         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
48984         cat >conftest.$ac_ext <<_ACEOF
48985 int foo(void) {}
48986 _ACEOF
48987 rm -f conftest.$ac_objext conftest$ac_exeext
48988 if { (ac_try="$ac_link"
48989 case "(($ac_try" in
48990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48991   *) ac_try_echo=$ac_try;;
48992 esac
48993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48994 $as_echo "$ac_try_echo") >&5
48995   (eval "$ac_link") 2>conftest.er1
48996   ac_status=$?
48997   grep -v '^ *+' conftest.er1 >conftest.err
48998   rm -f conftest.er1
48999   cat conftest.err >&5
49000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001   (exit $ac_status); } && {
49002          test -z "$ac_c_werror_flag" ||
49003          test ! -s conftest.err
49004        } && test -s conftest$ac_exeext && {
49005          test "$cross_compiling" = yes ||
49006          $as_test_x conftest$ac_exeext
49007        }; then
49008   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'
49009
49010 else
49011   $as_echo "$as_me: failed program was:" >&5
49012 sed 's/^/| /' conftest.$ac_ext >&5
49013
49014
49015 fi
49016
49017 rm -rf conftest.dSYM
49018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49019       conftest$ac_exeext conftest.$ac_ext
49020         LDFLAGS="$save_LDFLAGS"
49021       else
49022         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'
49023         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'
49024       fi
49025       archive_cmds_need_lc='no'
49026       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49027       hardcode_libdir_separator=:
49028       inherit_rpath=yes
49029       link_all_deplibs=yes
49030       ;;
49031
49032     netbsd*)
49033       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
49034         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
49035       else
49036         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
49037       fi
49038       hardcode_libdir_flag_spec='-R$libdir'
49039       hardcode_direct=yes
49040       hardcode_shlibpath_var=no
49041       ;;
49042
49043     newsos6)
49044       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49045       hardcode_direct=yes
49046       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49047       hardcode_libdir_separator=:
49048       hardcode_shlibpath_var=no
49049       ;;
49050
49051     *nto* | *qnx*)
49052       ;;
49053
49054     openbsd*)
49055       if test -f /usr/libexec/ld.so; then
49056         hardcode_direct=yes
49057         hardcode_shlibpath_var=no
49058         hardcode_direct_absolute=yes
49059         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
49060           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
49061           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
49062           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
49063           export_dynamic_flag_spec='${wl}-E'
49064         else
49065           case $host_os in
49066            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
49067              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
49068              hardcode_libdir_flag_spec='-R$libdir'
49069              ;;
49070            *)
49071              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
49072              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
49073              ;;
49074           esac
49075         fi
49076       else
49077         ld_shlibs=no
49078       fi
49079       ;;
49080
49081     os2*)
49082       hardcode_libdir_flag_spec='-L$libdir'
49083       hardcode_minus_L=yes
49084       allow_undefined_flag=unsupported
49085       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'
49086       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
49087       ;;
49088
49089     osf3*)
49090       if test "$GCC" = yes; then
49091         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
49092         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'
49093       else
49094         allow_undefined_flag=' -expect_unresolved \*'
49095         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'
49096       fi
49097       archive_cmds_need_lc='no'
49098       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49099       hardcode_libdir_separator=:
49100       ;;
49101
49102     osf4* | osf5*)      # as osf3* with the addition of -msym flag
49103       if test "$GCC" = yes; then
49104         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
49105         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'
49106         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49107       else
49108         allow_undefined_flag=' -expect_unresolved \*'
49109         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'
49110         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~
49111         $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'
49112
49113         # Both c and cxx compiler support -rpath directly
49114         hardcode_libdir_flag_spec='-rpath $libdir'
49115       fi
49116       archive_cmds_need_lc='no'
49117       hardcode_libdir_separator=:
49118       ;;
49119
49120     solaris*)
49121       no_undefined_flag=' -z defs'
49122       if test "$GCC" = yes; then
49123         wlarc='${wl}'
49124         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
49125         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
49126           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
49127       else
49128         case `$CC -V 2>&1` in
49129         *"Compilers 5.0"*)
49130           wlarc=''
49131           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
49132           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
49133           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
49134           ;;
49135         *)
49136           wlarc='${wl}'
49137           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
49138           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
49139           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
49140           ;;
49141         esac
49142       fi
49143       hardcode_libdir_flag_spec='-R$libdir'
49144       hardcode_shlibpath_var=no
49145       case $host_os in
49146       solaris2.[0-5] | solaris2.[0-5].*) ;;
49147       *)
49148         # The compiler driver will combine and reorder linker options,
49149         # but understands `-z linker_flag'.  GCC discards it without `$wl',
49150         # but is careful enough not to reorder.
49151         # Supported since Solaris 2.6 (maybe 2.5.1?)
49152         if test "$GCC" = yes; then
49153           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
49154         else
49155           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
49156         fi
49157         ;;
49158       esac
49159       link_all_deplibs=yes
49160       ;;
49161
49162     sunos4*)
49163       if test "x$host_vendor" = xsequent; then
49164         # Use $CC to link under sequent, because it throws in some extra .o
49165         # files that make .init and .fini sections work.
49166         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
49167       else
49168         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
49169       fi
49170       hardcode_libdir_flag_spec='-L$libdir'
49171       hardcode_direct=yes
49172       hardcode_minus_L=yes
49173       hardcode_shlibpath_var=no
49174       ;;
49175
49176     sysv4)
49177       case $host_vendor in
49178         sni)
49179           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49180           hardcode_direct=yes # is this really true???
49181         ;;
49182         siemens)
49183           ## LD is ld it makes a PLAMLIB
49184           ## CC just makes a GrossModule.
49185           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
49186           reload_cmds='$CC -r -o $output$reload_objs'
49187           hardcode_direct=no
49188         ;;
49189         motorola)
49190           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49191           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
49192         ;;
49193       esac
49194       runpath_var='LD_RUN_PATH'
49195       hardcode_shlibpath_var=no
49196       ;;
49197
49198     sysv4.3*)
49199       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49200       hardcode_shlibpath_var=no
49201       export_dynamic_flag_spec='-Bexport'
49202       ;;
49203
49204     sysv4*MP*)
49205       if test -d /usr/nec; then
49206         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49207         hardcode_shlibpath_var=no
49208         runpath_var=LD_RUN_PATH
49209         hardcode_runpath_var=yes
49210         ld_shlibs=yes
49211       fi
49212       ;;
49213
49214     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
49215       no_undefined_flag='${wl}-z,text'
49216       archive_cmds_need_lc=no
49217       hardcode_shlibpath_var=no
49218       runpath_var='LD_RUN_PATH'
49219
49220       if test "$GCC" = yes; then
49221         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49222         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49223       else
49224         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49225         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49226       fi
49227       ;;
49228
49229     sysv5* | sco3.2v5* | sco5v6*)
49230       # Note: We can NOT use -z defs as we might desire, because we do not
49231       # link with -lc, and that would cause any symbols used from libc to
49232       # always be unresolved, which means just about no library would
49233       # ever link correctly.  If we're not using GNU ld we use -z text
49234       # though, which does catch some bad symbols but isn't as heavy-handed
49235       # as -z defs.
49236       no_undefined_flag='${wl}-z,text'
49237       allow_undefined_flag='${wl}-z,nodefs'
49238       archive_cmds_need_lc=no
49239       hardcode_shlibpath_var=no
49240       hardcode_libdir_flag_spec='${wl}-R,$libdir'
49241       hardcode_libdir_separator=':'
49242       link_all_deplibs=yes
49243       export_dynamic_flag_spec='${wl}-Bexport'
49244       runpath_var='LD_RUN_PATH'
49245
49246       if test "$GCC" = yes; then
49247         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49248         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49249       else
49250         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49251         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
49252       fi
49253       ;;
49254
49255     uts4*)
49256       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49257       hardcode_libdir_flag_spec='-L$libdir'
49258       hardcode_shlibpath_var=no
49259       ;;
49260
49261     *)
49262       ld_shlibs=no
49263       ;;
49264     esac
49265
49266     if test x$host_vendor = xsni; then
49267       case $host in
49268       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
49269         export_dynamic_flag_spec='${wl}-Blargedynsym'
49270         ;;
49271       esac
49272     fi
49273   fi
49274
49275 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
49276 $as_echo "$ld_shlibs" >&6; }
49277 test "$ld_shlibs" = no && can_build_shared=no
49278
49279 with_gnu_ld=$with_gnu_ld
49280
49281
49282
49283
49284
49285
49286
49287
49288
49289
49290
49291
49292
49293
49294
49295 #
49296 # Do we need to explicitly link libc?
49297 #
49298 case "x$archive_cmds_need_lc" in
49299 x|xyes)
49300   # Assume -lc should be added
49301   archive_cmds_need_lc=yes
49302
49303   if test "$enable_shared" = yes && test "$GCC" = yes; then
49304     case $archive_cmds in
49305     *'~'*)
49306       # FIXME: we may have to deal with multi-command sequences.
49307       ;;
49308     '$CC '*)
49309       # Test whether the compiler implicitly links with -lc since on some
49310       # systems, -lgcc has to come before -lc. If gcc already passes -lc
49311       # to ld, don't add -lc before -lgcc.
49312       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
49313 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
49314       $RM conftest*
49315       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49316
49317       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49318   (eval $ac_compile) 2>&5
49319   ac_status=$?
49320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49321   (exit $ac_status); } 2>conftest.err; then
49322         soname=conftest
49323         lib=conftest
49324         libobjs=conftest.$ac_objext
49325         deplibs=
49326         wl=$lt_prog_compiler_wl
49327         pic_flag=$lt_prog_compiler_pic
49328         compiler_flags=-v
49329         linker_flags=-v
49330         verstring=
49331         output_objdir=.
49332         libname=conftest
49333         lt_save_allow_undefined_flag=$allow_undefined_flag
49334         allow_undefined_flag=
49335         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
49336   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
49337   ac_status=$?
49338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49339   (exit $ac_status); }
49340         then
49341           archive_cmds_need_lc=no
49342         else
49343           archive_cmds_need_lc=yes
49344         fi
49345         allow_undefined_flag=$lt_save_allow_undefined_flag
49346       else
49347         cat conftest.err 1>&5
49348       fi
49349       $RM conftest*
49350       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
49351 $as_echo "$archive_cmds_need_lc" >&6; }
49352       ;;
49353     esac
49354   fi
49355   ;;
49356 esac
49357
49358
49359
49360
49361
49362
49363
49364
49365
49366
49367
49368
49369
49370
49371
49372
49373
49374
49375
49376
49377
49378
49379
49380
49381
49382
49383
49384
49385
49386
49387
49388
49389
49390
49391
49392
49393
49394
49395
49396
49397
49398
49399
49400
49401
49402
49403
49404
49405
49406
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416
49417
49418
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428
49429
49430
49431
49432
49433
49434
49435
49436
49437
49438
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448
49449
49450
49451
49452
49453
49454
49455
49456
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468
49469
49470
49471
49472
49473
49474
49475
49476
49477
49478
49479
49480
49481
49482
49483
49484
49485
49486
49487
49488
49489
49490
49491
49492
49493
49494
49495
49496
49497
49498
49499
49500
49501
49502
49503
49504
49505
49506
49507
49508
49509
49510
49511
49512
49513
49514   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
49515 $as_echo_n "checking dynamic linker characteristics... " >&6; }
49516
49517 if test "$GCC" = yes; then
49518   case $host_os in
49519     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
49520     *) lt_awk_arg="/^libraries:/" ;;
49521   esac
49522   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
49523   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
49524     # if the path contains ";" then we assume it to be the separator
49525     # otherwise default to the standard path separator (i.e. ":") - it is
49526     # assumed that no part of a normal pathname contains ";" but that should
49527     # okay in the real world where ";" in dirpaths is itself problematic.
49528     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
49529   else
49530     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
49531   fi
49532   # Ok, now we have the path, separated by spaces, we can step through it
49533   # and add multilib dir if necessary.
49534   lt_tmp_lt_search_path_spec=
49535   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
49536   for lt_sys_path in $lt_search_path_spec; do
49537     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
49538       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
49539     else
49540       test -d "$lt_sys_path" && \
49541         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
49542     fi
49543   done
49544   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
49545 BEGIN {RS=" "; FS="/|\n";} {
49546   lt_foo="";
49547   lt_count=0;
49548   for (lt_i = NF; lt_i > 0; lt_i--) {
49549     if ($lt_i != "" && $lt_i != ".") {
49550       if ($lt_i == "..") {
49551         lt_count++;
49552       } else {
49553         if (lt_count == 0) {
49554           lt_foo="/" $lt_i lt_foo;
49555         } else {
49556           lt_count--;
49557         }
49558       }
49559     }
49560   }
49561   if (lt_foo != "") { lt_freq[lt_foo]++; }
49562   if (lt_freq[lt_foo] == 1) { print lt_foo; }
49563 }'`
49564   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
49565 else
49566   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
49567 fi
49568 library_names_spec=
49569 libname_spec='lib$name'
49570 soname_spec=
49571 shrext_cmds=".so"
49572 postinstall_cmds=
49573 postuninstall_cmds=
49574 finish_cmds=
49575 finish_eval=
49576 shlibpath_var=
49577 shlibpath_overrides_runpath=unknown
49578 version_type=none
49579 dynamic_linker="$host_os ld.so"
49580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
49581 need_lib_prefix=unknown
49582 hardcode_into_libs=no
49583
49584 # when you set need_version to no, make sure it does not cause -set_version
49585 # flags to be left without arguments
49586 need_version=unknown
49587
49588 case $host_os in
49589 aix3*)
49590   version_type=linux
49591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
49592   shlibpath_var=LIBPATH
49593
49594   # AIX 3 has no versioning support, so we append a major version to the name.
49595   soname_spec='${libname}${release}${shared_ext}$major'
49596   ;;
49597
49598 aix[4-9]*)
49599   version_type=linux
49600   need_lib_prefix=no
49601   need_version=no
49602   hardcode_into_libs=yes
49603   if test "$host_cpu" = ia64; then
49604     # AIX 5 supports IA64
49605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
49606     shlibpath_var=LD_LIBRARY_PATH
49607   else
49608     # With GCC up to 2.95.x, collect2 would create an import file
49609     # for dependence libraries.  The import file would start with
49610     # the line `#! .'.  This would cause the generated library to
49611     # depend on `.', always an invalid library.  This was fixed in
49612     # development snapshots of GCC prior to 3.0.
49613     case $host_os in
49614       aix4 | aix4.[01] | aix4.[01].*)
49615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
49616            echo ' yes '
49617            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
49618         :
49619       else
49620         can_build_shared=no
49621       fi
49622       ;;
49623     esac
49624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
49625     # soname into executable. Probably we can add versioning support to
49626     # collect2, so additional links can be useful in future.
49627     if test "$aix_use_runtimelinking" = yes; then
49628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
49629       # instead of lib<name>.a to let people know that these are not
49630       # typical AIX shared libraries.
49631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49632     else
49633       # We preserve .a as extension for shared libraries through AIX4.2
49634       # and later when we are not doing run time linking.
49635       library_names_spec='${libname}${release}.a $libname.a'
49636       soname_spec='${libname}${release}${shared_ext}$major'
49637     fi
49638     shlibpath_var=LIBPATH
49639   fi
49640   ;;
49641
49642 amigaos*)
49643   case $host_cpu in
49644   powerpc)
49645     # Since July 2007 AmigaOS4 officially supports .so libraries.
49646     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
49647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49648     ;;
49649   m68k)
49650     library_names_spec='$libname.ixlibrary $libname.a'
49651     # Create ${libname}_ixlibrary.a entries in /sys/libs.
49652     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'
49653     ;;
49654   esac
49655   ;;
49656
49657 beos*)
49658   library_names_spec='${libname}${shared_ext}'
49659   dynamic_linker="$host_os ld.so"
49660   shlibpath_var=LIBRARY_PATH
49661   ;;
49662
49663 bsdi[45]*)
49664   version_type=linux
49665   need_version=no
49666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49667   soname_spec='${libname}${release}${shared_ext}$major'
49668   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
49669   shlibpath_var=LD_LIBRARY_PATH
49670   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
49671   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
49672   # the default ld.so.conf also contains /usr/contrib/lib and
49673   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
49674   # libtool to hard-code these into programs
49675   ;;
49676
49677 cygwin* | mingw* | pw32*)
49678   version_type=windows
49679   shrext_cmds=".dll"
49680   need_version=no
49681   need_lib_prefix=no
49682
49683   case $GCC,$host_os in
49684   yes,cygwin* | yes,mingw* | yes,pw32*)
49685     library_names_spec='$libname.dll.a'
49686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
49687     postinstall_cmds='base_file=`basename \${file}`~
49688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
49689       dldir=$destdir/`dirname \$dlpath`~
49690       test -d \$dldir || mkdir -p \$dldir~
49691       $install_prog $dir/$dlname \$dldir/$dlname~
49692       chmod a+x \$dldir/$dlname~
49693       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
49694         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
49695       fi'
49696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
49697       dlpath=$dir/\$dldll~
49698        $RM \$dlpath'
49699     shlibpath_overrides_runpath=yes
49700
49701     case $host_os in
49702     cygwin*)
49703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
49704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
49705       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
49706       ;;
49707     mingw*)
49708       # MinGW DLLs use traditional 'lib' prefix
49709       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
49710       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
49711       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
49712         # It is most probably a Windows format PATH printed by
49713         # mingw gcc, but we are running on Cygwin. Gcc prints its search
49714         # path with ; separators, and with drive letters. We can handle the
49715         # drive letters (cygwin fileutils understands them), so leave them,
49716         # especially as we might pass files found there to a mingw objdump,
49717         # which wouldn't understand a cygwinified path. Ahh.
49718         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
49719       else
49720         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
49721       fi
49722       ;;
49723     pw32*)
49724       # pw32 DLLs use 'pw' prefix rather than 'lib'
49725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
49726       ;;
49727     esac
49728     ;;
49729
49730   *)
49731     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
49732     ;;
49733   esac
49734   dynamic_linker='Win32 ld.exe'
49735   # FIXME: first we should search . and the directory the executable is in
49736   shlibpath_var=PATH
49737   ;;
49738
49739 darwin* | rhapsody*)
49740   dynamic_linker="$host_os dyld"
49741   version_type=darwin
49742   need_lib_prefix=no
49743   need_version=no
49744   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
49745   soname_spec='${libname}${release}${major}$shared_ext'
49746   shlibpath_overrides_runpath=yes
49747   shlibpath_var=DYLD_LIBRARY_PATH
49748   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
49749
49750   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
49751   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
49752   ;;
49753
49754 dgux*)
49755   version_type=linux
49756   need_lib_prefix=no
49757   need_version=no
49758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
49759   soname_spec='${libname}${release}${shared_ext}$major'
49760   shlibpath_var=LD_LIBRARY_PATH
49761   ;;
49762
49763 freebsd1*)
49764   dynamic_linker=no
49765   ;;
49766
49767 freebsd* | dragonfly*)
49768   # DragonFly does not have aout.  When/if they implement a new
49769   # versioning mechanism, adjust this.
49770   if test -x /usr/bin/objformat; then
49771     objformat=`/usr/bin/objformat`
49772   else
49773     case $host_os in
49774     freebsd[123]*) objformat=aout ;;
49775     *) objformat=elf ;;
49776     esac
49777   fi
49778   # Handle Gentoo/FreeBSD as it was Linux
49779   case $host_vendor in
49780     gentoo)
49781       version_type=linux ;;
49782     *)
49783       version_type=freebsd-$objformat ;;
49784   esac
49785
49786   case $version_type in
49787     freebsd-elf*)
49788       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
49789       need_version=no
49790       need_lib_prefix=no
49791       ;;
49792     freebsd-*)
49793       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
49794       need_version=yes
49795       ;;
49796     linux)
49797       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
49798       soname_spec='${libname}${release}${shared_ext}$major'
49799       need_lib_prefix=no
49800       need_version=no
49801       ;;
49802   esac
49803   shlibpath_var=LD_LIBRARY_PATH
49804   case $host_os in
49805   freebsd2*)
49806     shlibpath_overrides_runpath=yes
49807     ;;
49808   freebsd3.[01]* | freebsdelf3.[01]*)
49809     shlibpath_overrides_runpath=yes
49810     hardcode_into_libs=yes
49811     ;;
49812   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
49813   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
49814     shlibpath_overrides_runpath=no
49815     hardcode_into_libs=yes
49816     ;;
49817   *) # from 4.6 on, and DragonFly
49818     shlibpath_overrides_runpath=yes
49819     hardcode_into_libs=yes
49820     ;;
49821   esac
49822   ;;
49823
49824 gnu*)
49825   version_type=linux
49826   need_lib_prefix=no
49827   need_version=no
49828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
49829   soname_spec='${libname}${release}${shared_ext}$major'
49830   shlibpath_var=LD_LIBRARY_PATH
49831   hardcode_into_libs=yes
49832   ;;
49833
49834 hpux9* | hpux10* | hpux11*)
49835   # Give a soname corresponding to the major version so that dld.sl refuses to
49836   # link against other versions.
49837   version_type=sunos
49838   need_lib_prefix=no
49839   need_version=no
49840   case $host_cpu in
49841   ia64*)
49842     shrext_cmds='.so'
49843     hardcode_into_libs=yes
49844     dynamic_linker="$host_os dld.so"
49845     shlibpath_var=LD_LIBRARY_PATH
49846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
49847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49848     soname_spec='${libname}${release}${shared_ext}$major'
49849     if test "X$HPUX_IA64_MODE" = X32; then
49850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
49851     else
49852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
49853     fi
49854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
49855     ;;
49856   hppa*64*)
49857     shrext_cmds='.sl'
49858     hardcode_into_libs=yes
49859     dynamic_linker="$host_os dld.sl"
49860     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
49861     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
49862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49863     soname_spec='${libname}${release}${shared_ext}$major'
49864     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
49865     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
49866     ;;
49867   *)
49868     shrext_cmds='.sl'
49869     dynamic_linker="$host_os dld.sl"
49870     shlibpath_var=SHLIB_PATH
49871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
49872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49873     soname_spec='${libname}${release}${shared_ext}$major'
49874     ;;
49875   esac
49876   # HP-UX runs *really* slowly unless shared libraries are mode 555.
49877   postinstall_cmds='chmod 555 $lib'
49878   ;;
49879
49880 interix[3-9]*)
49881   version_type=linux
49882   need_lib_prefix=no
49883   need_version=no
49884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
49885   soname_spec='${libname}${release}${shared_ext}$major'
49886   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
49887   shlibpath_var=LD_LIBRARY_PATH
49888   shlibpath_overrides_runpath=no
49889   hardcode_into_libs=yes
49890   ;;
49891
49892 irix5* | irix6* | nonstopux*)
49893   case $host_os in
49894     nonstopux*) version_type=nonstopux ;;
49895     *)
49896         if test "$lt_cv_prog_gnu_ld" = yes; then
49897                 version_type=linux
49898         else
49899                 version_type=irix
49900         fi ;;
49901   esac
49902   need_lib_prefix=no
49903   need_version=no
49904   soname_spec='${libname}${release}${shared_ext}$major'
49905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
49906   case $host_os in
49907   irix5* | nonstopux*)
49908     libsuff= shlibsuff=
49909     ;;
49910   *)
49911     case $LD in # libtool.m4 will add one of these switches to LD
49912     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
49913       libsuff= shlibsuff= libmagic=32-bit;;
49914     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
49915       libsuff=32 shlibsuff=N32 libmagic=N32;;
49916     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
49917       libsuff=64 shlibsuff=64 libmagic=64-bit;;
49918     *) libsuff= shlibsuff= libmagic=never-match;;
49919     esac
49920     ;;
49921   esac
49922   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
49923   shlibpath_overrides_runpath=no
49924   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
49925   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
49926   hardcode_into_libs=yes
49927   ;;
49928
49929 # No shared lib support for Linux oldld, aout, or coff.
49930 linux*oldld* | linux*aout* | linux*coff*)
49931   dynamic_linker=no
49932   ;;
49933
49934 # This must be Linux ELF.
49935 linux* | k*bsd*-gnu)
49936   version_type=linux
49937   need_lib_prefix=no
49938   need_version=no
49939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
49940   soname_spec='${libname}${release}${shared_ext}$major'
49941   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
49942   shlibpath_var=LD_LIBRARY_PATH
49943   shlibpath_overrides_runpath=no
49944   # Some binutils ld are patched to set DT_RUNPATH
49945   save_LDFLAGS=$LDFLAGS
49946   save_libdir=$libdir
49947   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
49948        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
49949   cat >conftest.$ac_ext <<_ACEOF
49950 /* confdefs.h.  */
49951 _ACEOF
49952 cat confdefs.h >>conftest.$ac_ext
49953 cat >>conftest.$ac_ext <<_ACEOF
49954 /* end confdefs.h.  */
49955
49956 int
49957 main ()
49958 {
49959
49960   ;
49961   return 0;
49962 }
49963 _ACEOF
49964 rm -f conftest.$ac_objext conftest$ac_exeext
49965 if { (ac_try="$ac_link"
49966 case "(($ac_try" in
49967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49968   *) ac_try_echo=$ac_try;;
49969 esac
49970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49971 $as_echo "$ac_try_echo") >&5
49972   (eval "$ac_link") 2>conftest.er1
49973   ac_status=$?
49974   grep -v '^ *+' conftest.er1 >conftest.err
49975   rm -f conftest.er1
49976   cat conftest.err >&5
49977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49978   (exit $ac_status); } && {
49979          test -z "$ac_c_werror_flag" ||
49980          test ! -s conftest.err
49981        } && test -s conftest$ac_exeext && {
49982          test "$cross_compiling" = yes ||
49983          $as_test_x conftest$ac_exeext
49984        }; then
49985   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
49986   shlibpath_overrides_runpath=yes
49987 fi
49988
49989 else
49990   $as_echo "$as_me: failed program was:" >&5
49991 sed 's/^/| /' conftest.$ac_ext >&5
49992
49993
49994 fi
49995
49996 rm -rf conftest.dSYM
49997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49998       conftest$ac_exeext conftest.$ac_ext
49999   LDFLAGS=$save_LDFLAGS
50000   libdir=$save_libdir
50001
50002   # This implies no fast_install, which is unacceptable.
50003   # Some rework will be needed to allow for fast_install
50004   # before this can be enabled.
50005   hardcode_into_libs=yes
50006
50007   # Append ld.so.conf contents to the search path
50008   if test -f /etc/ld.so.conf; then
50009     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' ' '`
50010     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
50011   fi
50012
50013   # We used to test for /lib/ld.so.1 and disable shared libraries on
50014   # powerpc, because MkLinux only supported shared libraries with the
50015   # GNU dynamic linker.  Since this was broken with cross compilers,
50016   # most powerpc-linux boxes support dynamic linking these days and
50017   # people can always --disable-shared, the test was removed, and we
50018   # assume the GNU/Linux dynamic linker is in use.
50019   dynamic_linker='GNU/Linux ld.so'
50020   ;;
50021
50022 netbsd*)
50023   version_type=sunos
50024   need_lib_prefix=no
50025   need_version=no
50026   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
50027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
50028     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
50029     dynamic_linker='NetBSD (a.out) ld.so'
50030   else
50031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
50032     soname_spec='${libname}${release}${shared_ext}$major'
50033     dynamic_linker='NetBSD ld.elf_so'
50034   fi
50035   shlibpath_var=LD_LIBRARY_PATH
50036   shlibpath_overrides_runpath=yes
50037   hardcode_into_libs=yes
50038   ;;
50039
50040 newsos6)
50041   version_type=linux
50042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50043   shlibpath_var=LD_LIBRARY_PATH
50044   shlibpath_overrides_runpath=yes
50045   ;;
50046
50047 *nto* | *qnx*)
50048   version_type=qnx
50049   need_lib_prefix=no
50050   need_version=no
50051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50052   soname_spec='${libname}${release}${shared_ext}$major'
50053   shlibpath_var=LD_LIBRARY_PATH
50054   shlibpath_overrides_runpath=no
50055   hardcode_into_libs=yes
50056   dynamic_linker='ldqnx.so'
50057   ;;
50058
50059 openbsd*)
50060   version_type=sunos
50061   sys_lib_dlsearch_path_spec="/usr/lib"
50062   need_lib_prefix=no
50063   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
50064   case $host_os in
50065     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
50066     *)                          need_version=no  ;;
50067   esac
50068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
50069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
50070   shlibpath_var=LD_LIBRARY_PATH
50071   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
50072     case $host_os in
50073       openbsd2.[89] | openbsd2.[89].*)
50074         shlibpath_overrides_runpath=no
50075         ;;
50076       *)
50077         shlibpath_overrides_runpath=yes
50078         ;;
50079       esac
50080   else
50081     shlibpath_overrides_runpath=yes
50082   fi
50083   ;;
50084
50085 os2*)
50086   libname_spec='$name'
50087   shrext_cmds=".dll"
50088   need_lib_prefix=no
50089   library_names_spec='$libname${shared_ext} $libname.a'
50090   dynamic_linker='OS/2 ld.exe'
50091   shlibpath_var=LIBPATH
50092   ;;
50093
50094 osf3* | osf4* | osf5*)
50095   version_type=osf
50096   need_lib_prefix=no
50097   need_version=no
50098   soname_spec='${libname}${release}${shared_ext}$major'
50099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50100   shlibpath_var=LD_LIBRARY_PATH
50101   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
50102   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
50103   ;;
50104
50105 rdos*)
50106   dynamic_linker=no
50107   ;;
50108
50109 solaris*)
50110   version_type=linux
50111   need_lib_prefix=no
50112   need_version=no
50113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50114   soname_spec='${libname}${release}${shared_ext}$major'
50115   shlibpath_var=LD_LIBRARY_PATH
50116   shlibpath_overrides_runpath=yes
50117   hardcode_into_libs=yes
50118   # ldd complains unless libraries are executable
50119   postinstall_cmds='chmod +x $lib'
50120   ;;
50121
50122 sunos4*)
50123   version_type=sunos
50124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
50125   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
50126   shlibpath_var=LD_LIBRARY_PATH
50127   shlibpath_overrides_runpath=yes
50128   if test "$with_gnu_ld" = yes; then
50129     need_lib_prefix=no
50130   fi
50131   need_version=yes
50132   ;;
50133
50134 sysv4 | sysv4.3*)
50135   version_type=linux
50136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50137   soname_spec='${libname}${release}${shared_ext}$major'
50138   shlibpath_var=LD_LIBRARY_PATH
50139   case $host_vendor in
50140     sni)
50141       shlibpath_overrides_runpath=no
50142       need_lib_prefix=no
50143       runpath_var=LD_RUN_PATH
50144       ;;
50145     siemens)
50146       need_lib_prefix=no
50147       ;;
50148     motorola)
50149       need_lib_prefix=no
50150       need_version=no
50151       shlibpath_overrides_runpath=no
50152       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
50153       ;;
50154   esac
50155   ;;
50156
50157 sysv4*MP*)
50158   if test -d /usr/nec ;then
50159     version_type=linux
50160     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
50161     soname_spec='$libname${shared_ext}.$major'
50162     shlibpath_var=LD_LIBRARY_PATH
50163   fi
50164   ;;
50165
50166 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
50167   version_type=freebsd-elf
50168   need_lib_prefix=no
50169   need_version=no
50170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
50171   soname_spec='${libname}${release}${shared_ext}$major'
50172   shlibpath_var=LD_LIBRARY_PATH
50173   shlibpath_overrides_runpath=yes
50174   hardcode_into_libs=yes
50175   if test "$with_gnu_ld" = yes; then
50176     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
50177   else
50178     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
50179     case $host_os in
50180       sco3.2v5*)
50181         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
50182         ;;
50183     esac
50184   fi
50185   sys_lib_dlsearch_path_spec='/usr/lib'
50186   ;;
50187
50188 tpf*)
50189   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
50190   version_type=linux
50191   need_lib_prefix=no
50192   need_version=no
50193   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50194   shlibpath_var=LD_LIBRARY_PATH
50195   shlibpath_overrides_runpath=no
50196   hardcode_into_libs=yes
50197   ;;
50198
50199 uts4*)
50200   version_type=linux
50201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
50202   soname_spec='${libname}${release}${shared_ext}$major'
50203   shlibpath_var=LD_LIBRARY_PATH
50204   ;;
50205
50206 *)
50207   dynamic_linker=no
50208   ;;
50209 esac
50210 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
50211 $as_echo "$dynamic_linker" >&6; }
50212 test "$dynamic_linker" = no && can_build_shared=no
50213
50214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
50215 if test "$GCC" = yes; then
50216   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
50217 fi
50218
50219 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
50220   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
50221 fi
50222 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
50223   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
50224 fi
50225
50226
50227
50228
50229
50230
50231
50232
50233
50234
50235
50236
50237
50238
50239
50240
50241
50242
50243
50244
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254
50255
50256
50257
50258
50259
50260
50261
50262
50263
50264
50265
50266
50267
50268
50269
50270
50271
50272
50273
50274
50275
50276
50277
50278
50279
50280
50281
50282
50283
50284
50285
50286
50287
50288
50289
50290
50291
50292
50293
50294
50295
50296
50297
50298
50299
50300
50301
50302
50303
50304
50305
50306
50307
50308
50309
50310
50311
50312   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
50313 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
50314 hardcode_action=
50315 if test -n "$hardcode_libdir_flag_spec" ||
50316    test -n "$runpath_var" ||
50317    test "X$hardcode_automatic" = "Xyes" ; then
50318
50319   # We can hardcode non-existent directories.
50320   if test "$hardcode_direct" != no &&
50321      # If the only mechanism to avoid hardcoding is shlibpath_var, we
50322      # have to relink, otherwise we might link with an installed library
50323      # when we should be linking with a yet-to-be-installed one
50324      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
50325      test "$hardcode_minus_L" != no; then
50326     # Linking always hardcodes the temporary library directory.
50327     hardcode_action=relink
50328   else
50329     # We can link without hardcoding, and we can hardcode nonexisting dirs.
50330     hardcode_action=immediate
50331   fi
50332 else
50333   # We cannot hardcode anything, or else we can only hardcode existing
50334   # directories.
50335   hardcode_action=unsupported
50336 fi
50337 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
50338 $as_echo "$hardcode_action" >&6; }
50339
50340 if test "$hardcode_action" = relink ||
50341    test "$inherit_rpath" = yes; then
50342   # Fast installation is not supported
50343   enable_fast_install=no
50344 elif test "$shlibpath_overrides_runpath" = yes ||
50345      test "$enable_shared" = no; then
50346   # Fast installation is not necessary
50347   enable_fast_install=needless
50348 fi
50349
50350
50351
50352
50353
50354
50355   if test "x$enable_dlopen" != xyes; then
50356   enable_dlopen=unknown
50357   enable_dlopen_self=unknown
50358   enable_dlopen_self_static=unknown
50359 else
50360   lt_cv_dlopen=no
50361   lt_cv_dlopen_libs=
50362
50363   case $host_os in
50364   beos*)
50365     lt_cv_dlopen="load_add_on"
50366     lt_cv_dlopen_libs=
50367     lt_cv_dlopen_self=yes
50368     ;;
50369
50370   mingw* | pw32*)
50371     lt_cv_dlopen="LoadLibrary"
50372     lt_cv_dlopen_libs=
50373     ;;
50374
50375   cygwin*)
50376     lt_cv_dlopen="dlopen"
50377     lt_cv_dlopen_libs=
50378     ;;
50379
50380   darwin*)
50381   # if libdl is installed we need to link against it
50382     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
50383 $as_echo_n "checking for dlopen in -ldl... " >&6; }
50384 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
50385   $as_echo_n "(cached) " >&6
50386 else
50387   ac_check_lib_save_LIBS=$LIBS
50388 LIBS="-ldl  $LIBS"
50389 cat >conftest.$ac_ext <<_ACEOF
50390 /* confdefs.h.  */
50391 _ACEOF
50392 cat confdefs.h >>conftest.$ac_ext
50393 cat >>conftest.$ac_ext <<_ACEOF
50394 /* end confdefs.h.  */
50395
50396 /* Override any GCC internal prototype to avoid an error.
50397    Use char because int might match the return type of a GCC
50398    builtin and then its argument prototype would still apply.  */
50399 #ifdef __cplusplus
50400 extern "C"
50401 #endif
50402 char dlopen ();
50403 int
50404 main ()
50405 {
50406 return dlopen ();
50407   ;
50408   return 0;
50409 }
50410 _ACEOF
50411 rm -f conftest.$ac_objext conftest$ac_exeext
50412 if { (ac_try="$ac_link"
50413 case "(($ac_try" in
50414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50415   *) ac_try_echo=$ac_try;;
50416 esac
50417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50418 $as_echo "$ac_try_echo") >&5
50419   (eval "$ac_link") 2>conftest.er1
50420   ac_status=$?
50421   grep -v '^ *+' conftest.er1 >conftest.err
50422   rm -f conftest.er1
50423   cat conftest.err >&5
50424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50425   (exit $ac_status); } && {
50426          test -z "$ac_c_werror_flag" ||
50427          test ! -s conftest.err
50428        } && test -s conftest$ac_exeext && {
50429          test "$cross_compiling" = yes ||
50430          $as_test_x conftest$ac_exeext
50431        }; then
50432   ac_cv_lib_dl_dlopen=yes
50433 else
50434   $as_echo "$as_me: failed program was:" >&5
50435 sed 's/^/| /' conftest.$ac_ext >&5
50436
50437         ac_cv_lib_dl_dlopen=no
50438 fi
50439
50440 rm -rf conftest.dSYM
50441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50442       conftest$ac_exeext conftest.$ac_ext
50443 LIBS=$ac_check_lib_save_LIBS
50444 fi
50445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
50446 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
50447 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
50448   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
50449 else
50450
50451     lt_cv_dlopen="dyld"
50452     lt_cv_dlopen_libs=
50453     lt_cv_dlopen_self=yes
50454
50455 fi
50456
50457     ;;
50458
50459   *)
50460     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
50461 $as_echo_n "checking for shl_load... " >&6; }
50462 if test "${ac_cv_func_shl_load+set}" = set; then
50463   $as_echo_n "(cached) " >&6
50464 else
50465   cat >conftest.$ac_ext <<_ACEOF
50466 /* confdefs.h.  */
50467 _ACEOF
50468 cat confdefs.h >>conftest.$ac_ext
50469 cat >>conftest.$ac_ext <<_ACEOF
50470 /* end confdefs.h.  */
50471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
50472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50473 #define shl_load innocuous_shl_load
50474
50475 /* System header to define __stub macros and hopefully few prototypes,
50476     which can conflict with char shl_load (); below.
50477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50478     <limits.h> exists even on freestanding compilers.  */
50479
50480 #ifdef __STDC__
50481 # include <limits.h>
50482 #else
50483 # include <assert.h>
50484 #endif
50485
50486 #undef shl_load
50487
50488 /* Override any GCC internal prototype to avoid an error.
50489    Use char because int might match the return type of a GCC
50490    builtin and then its argument prototype would still apply.  */
50491 #ifdef __cplusplus
50492 extern "C"
50493 #endif
50494 char shl_load ();
50495 /* The GNU C library defines this for functions which it implements
50496     to always fail with ENOSYS.  Some functions are actually named
50497     something starting with __ and the normal name is an alias.  */
50498 #if defined __stub_shl_load || defined __stub___shl_load
50499 choke me
50500 #endif
50501
50502 int
50503 main ()
50504 {
50505 return shl_load ();
50506   ;
50507   return 0;
50508 }
50509 _ACEOF
50510 rm -f conftest.$ac_objext conftest$ac_exeext
50511 if { (ac_try="$ac_link"
50512 case "(($ac_try" in
50513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50514   *) ac_try_echo=$ac_try;;
50515 esac
50516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50517 $as_echo "$ac_try_echo") >&5
50518   (eval "$ac_link") 2>conftest.er1
50519   ac_status=$?
50520   grep -v '^ *+' conftest.er1 >conftest.err
50521   rm -f conftest.er1
50522   cat conftest.err >&5
50523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50524   (exit $ac_status); } && {
50525          test -z "$ac_c_werror_flag" ||
50526          test ! -s conftest.err
50527        } && test -s conftest$ac_exeext && {
50528          test "$cross_compiling" = yes ||
50529          $as_test_x conftest$ac_exeext
50530        }; then
50531   ac_cv_func_shl_load=yes
50532 else
50533   $as_echo "$as_me: failed program was:" >&5
50534 sed 's/^/| /' conftest.$ac_ext >&5
50535
50536         ac_cv_func_shl_load=no
50537 fi
50538
50539 rm -rf conftest.dSYM
50540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50541       conftest$ac_exeext conftest.$ac_ext
50542 fi
50543 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
50544 $as_echo "$ac_cv_func_shl_load" >&6; }
50545 if test "x$ac_cv_func_shl_load" = x""yes; then
50546   lt_cv_dlopen="shl_load"
50547 else
50548   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
50549 $as_echo_n "checking for shl_load in -ldld... " >&6; }
50550 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
50551   $as_echo_n "(cached) " >&6
50552 else
50553   ac_check_lib_save_LIBS=$LIBS
50554 LIBS="-ldld  $LIBS"
50555 cat >conftest.$ac_ext <<_ACEOF
50556 /* confdefs.h.  */
50557 _ACEOF
50558 cat confdefs.h >>conftest.$ac_ext
50559 cat >>conftest.$ac_ext <<_ACEOF
50560 /* end confdefs.h.  */
50561
50562 /* Override any GCC internal prototype to avoid an error.
50563    Use char because int might match the return type of a GCC
50564    builtin and then its argument prototype would still apply.  */
50565 #ifdef __cplusplus
50566 extern "C"
50567 #endif
50568 char shl_load ();
50569 int
50570 main ()
50571 {
50572 return shl_load ();
50573   ;
50574   return 0;
50575 }
50576 _ACEOF
50577 rm -f conftest.$ac_objext conftest$ac_exeext
50578 if { (ac_try="$ac_link"
50579 case "(($ac_try" in
50580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50581   *) ac_try_echo=$ac_try;;
50582 esac
50583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50584 $as_echo "$ac_try_echo") >&5
50585   (eval "$ac_link") 2>conftest.er1
50586   ac_status=$?
50587   grep -v '^ *+' conftest.er1 >conftest.err
50588   rm -f conftest.er1
50589   cat conftest.err >&5
50590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50591   (exit $ac_status); } && {
50592          test -z "$ac_c_werror_flag" ||
50593          test ! -s conftest.err
50594        } && test -s conftest$ac_exeext && {
50595          test "$cross_compiling" = yes ||
50596          $as_test_x conftest$ac_exeext
50597        }; then
50598   ac_cv_lib_dld_shl_load=yes
50599 else
50600   $as_echo "$as_me: failed program was:" >&5
50601 sed 's/^/| /' conftest.$ac_ext >&5
50602
50603         ac_cv_lib_dld_shl_load=no
50604 fi
50605
50606 rm -rf conftest.dSYM
50607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50608       conftest$ac_exeext conftest.$ac_ext
50609 LIBS=$ac_check_lib_save_LIBS
50610 fi
50611 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
50612 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
50613 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
50614   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
50615 else
50616   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
50617 $as_echo_n "checking for dlopen... " >&6; }
50618 if test "${ac_cv_func_dlopen+set}" = set; then
50619   $as_echo_n "(cached) " >&6
50620 else
50621   cat >conftest.$ac_ext <<_ACEOF
50622 /* confdefs.h.  */
50623 _ACEOF
50624 cat confdefs.h >>conftest.$ac_ext
50625 cat >>conftest.$ac_ext <<_ACEOF
50626 /* end confdefs.h.  */
50627 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
50628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50629 #define dlopen innocuous_dlopen
50630
50631 /* System header to define __stub macros and hopefully few prototypes,
50632     which can conflict with char dlopen (); below.
50633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50634     <limits.h> exists even on freestanding compilers.  */
50635
50636 #ifdef __STDC__
50637 # include <limits.h>
50638 #else
50639 # include <assert.h>
50640 #endif
50641
50642 #undef dlopen
50643
50644 /* Override any GCC internal prototype to avoid an error.
50645    Use char because int might match the return type of a GCC
50646    builtin and then its argument prototype would still apply.  */
50647 #ifdef __cplusplus
50648 extern "C"
50649 #endif
50650 char dlopen ();
50651 /* The GNU C library defines this for functions which it implements
50652     to always fail with ENOSYS.  Some functions are actually named
50653     something starting with __ and the normal name is an alias.  */
50654 #if defined __stub_dlopen || defined __stub___dlopen
50655 choke me
50656 #endif
50657
50658 int
50659 main ()
50660 {
50661 return dlopen ();
50662   ;
50663   return 0;
50664 }
50665 _ACEOF
50666 rm -f conftest.$ac_objext conftest$ac_exeext
50667 if { (ac_try="$ac_link"
50668 case "(($ac_try" in
50669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50670   *) ac_try_echo=$ac_try;;
50671 esac
50672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50673 $as_echo "$ac_try_echo") >&5
50674   (eval "$ac_link") 2>conftest.er1
50675   ac_status=$?
50676   grep -v '^ *+' conftest.er1 >conftest.err
50677   rm -f conftest.er1
50678   cat conftest.err >&5
50679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50680   (exit $ac_status); } && {
50681          test -z "$ac_c_werror_flag" ||
50682          test ! -s conftest.err
50683        } && test -s conftest$ac_exeext && {
50684          test "$cross_compiling" = yes ||
50685          $as_test_x conftest$ac_exeext
50686        }; then
50687   ac_cv_func_dlopen=yes
50688 else
50689   $as_echo "$as_me: failed program was:" >&5
50690 sed 's/^/| /' conftest.$ac_ext >&5
50691
50692         ac_cv_func_dlopen=no
50693 fi
50694
50695 rm -rf conftest.dSYM
50696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50697       conftest$ac_exeext conftest.$ac_ext
50698 fi
50699 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
50700 $as_echo "$ac_cv_func_dlopen" >&6; }
50701 if test "x$ac_cv_func_dlopen" = x""yes; then
50702   lt_cv_dlopen="dlopen"
50703 else
50704   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
50705 $as_echo_n "checking for dlopen in -ldl... " >&6; }
50706 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
50707   $as_echo_n "(cached) " >&6
50708 else
50709   ac_check_lib_save_LIBS=$LIBS
50710 LIBS="-ldl  $LIBS"
50711 cat >conftest.$ac_ext <<_ACEOF
50712 /* confdefs.h.  */
50713 _ACEOF
50714 cat confdefs.h >>conftest.$ac_ext
50715 cat >>conftest.$ac_ext <<_ACEOF
50716 /* end confdefs.h.  */
50717
50718 /* Override any GCC internal prototype to avoid an error.
50719    Use char because int might match the return type of a GCC
50720    builtin and then its argument prototype would still apply.  */
50721 #ifdef __cplusplus
50722 extern "C"
50723 #endif
50724 char dlopen ();
50725 int
50726 main ()
50727 {
50728 return dlopen ();
50729   ;
50730   return 0;
50731 }
50732 _ACEOF
50733 rm -f conftest.$ac_objext conftest$ac_exeext
50734 if { (ac_try="$ac_link"
50735 case "(($ac_try" in
50736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50737   *) ac_try_echo=$ac_try;;
50738 esac
50739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50740 $as_echo "$ac_try_echo") >&5
50741   (eval "$ac_link") 2>conftest.er1
50742   ac_status=$?
50743   grep -v '^ *+' conftest.er1 >conftest.err
50744   rm -f conftest.er1
50745   cat conftest.err >&5
50746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50747   (exit $ac_status); } && {
50748          test -z "$ac_c_werror_flag" ||
50749          test ! -s conftest.err
50750        } && test -s conftest$ac_exeext && {
50751          test "$cross_compiling" = yes ||
50752          $as_test_x conftest$ac_exeext
50753        }; then
50754   ac_cv_lib_dl_dlopen=yes
50755 else
50756   $as_echo "$as_me: failed program was:" >&5
50757 sed 's/^/| /' conftest.$ac_ext >&5
50758
50759         ac_cv_lib_dl_dlopen=no
50760 fi
50761
50762 rm -rf conftest.dSYM
50763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50764       conftest$ac_exeext conftest.$ac_ext
50765 LIBS=$ac_check_lib_save_LIBS
50766 fi
50767 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
50768 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
50769 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
50770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
50771 else
50772   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
50773 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
50774 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
50775   $as_echo_n "(cached) " >&6
50776 else
50777   ac_check_lib_save_LIBS=$LIBS
50778 LIBS="-lsvld  $LIBS"
50779 cat >conftest.$ac_ext <<_ACEOF
50780 /* confdefs.h.  */
50781 _ACEOF
50782 cat confdefs.h >>conftest.$ac_ext
50783 cat >>conftest.$ac_ext <<_ACEOF
50784 /* end confdefs.h.  */
50785
50786 /* Override any GCC internal prototype to avoid an error.
50787    Use char because int might match the return type of a GCC
50788    builtin and then its argument prototype would still apply.  */
50789 #ifdef __cplusplus
50790 extern "C"
50791 #endif
50792 char dlopen ();
50793 int
50794 main ()
50795 {
50796 return dlopen ();
50797   ;
50798   return 0;
50799 }
50800 _ACEOF
50801 rm -f conftest.$ac_objext conftest$ac_exeext
50802 if { (ac_try="$ac_link"
50803 case "(($ac_try" in
50804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50805   *) ac_try_echo=$ac_try;;
50806 esac
50807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50808 $as_echo "$ac_try_echo") >&5
50809   (eval "$ac_link") 2>conftest.er1
50810   ac_status=$?
50811   grep -v '^ *+' conftest.er1 >conftest.err
50812   rm -f conftest.er1
50813   cat conftest.err >&5
50814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50815   (exit $ac_status); } && {
50816          test -z "$ac_c_werror_flag" ||
50817          test ! -s conftest.err
50818        } && test -s conftest$ac_exeext && {
50819          test "$cross_compiling" = yes ||
50820          $as_test_x conftest$ac_exeext
50821        }; then
50822   ac_cv_lib_svld_dlopen=yes
50823 else
50824   $as_echo "$as_me: failed program was:" >&5
50825 sed 's/^/| /' conftest.$ac_ext >&5
50826
50827         ac_cv_lib_svld_dlopen=no
50828 fi
50829
50830 rm -rf conftest.dSYM
50831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50832       conftest$ac_exeext conftest.$ac_ext
50833 LIBS=$ac_check_lib_save_LIBS
50834 fi
50835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
50836 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
50837 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
50838   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
50839 else
50840   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
50841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
50842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
50843   $as_echo_n "(cached) " >&6
50844 else
50845   ac_check_lib_save_LIBS=$LIBS
50846 LIBS="-ldld  $LIBS"
50847 cat >conftest.$ac_ext <<_ACEOF
50848 /* confdefs.h.  */
50849 _ACEOF
50850 cat confdefs.h >>conftest.$ac_ext
50851 cat >>conftest.$ac_ext <<_ACEOF
50852 /* end confdefs.h.  */
50853
50854 /* Override any GCC internal prototype to avoid an error.
50855    Use char because int might match the return type of a GCC
50856    builtin and then its argument prototype would still apply.  */
50857 #ifdef __cplusplus
50858 extern "C"
50859 #endif
50860 char dld_link ();
50861 int
50862 main ()
50863 {
50864 return dld_link ();
50865   ;
50866   return 0;
50867 }
50868 _ACEOF
50869 rm -f conftest.$ac_objext conftest$ac_exeext
50870 if { (ac_try="$ac_link"
50871 case "(($ac_try" in
50872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50873   *) ac_try_echo=$ac_try;;
50874 esac
50875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50876 $as_echo "$ac_try_echo") >&5
50877   (eval "$ac_link") 2>conftest.er1
50878   ac_status=$?
50879   grep -v '^ *+' conftest.er1 >conftest.err
50880   rm -f conftest.er1
50881   cat conftest.err >&5
50882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50883   (exit $ac_status); } && {
50884          test -z "$ac_c_werror_flag" ||
50885          test ! -s conftest.err
50886        } && test -s conftest$ac_exeext && {
50887          test "$cross_compiling" = yes ||
50888          $as_test_x conftest$ac_exeext
50889        }; then
50890   ac_cv_lib_dld_dld_link=yes
50891 else
50892   $as_echo "$as_me: failed program was:" >&5
50893 sed 's/^/| /' conftest.$ac_ext >&5
50894
50895         ac_cv_lib_dld_dld_link=no
50896 fi
50897
50898 rm -rf conftest.dSYM
50899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50900       conftest$ac_exeext conftest.$ac_ext
50901 LIBS=$ac_check_lib_save_LIBS
50902 fi
50903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
50904 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
50905 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
50906   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
50907 fi
50908
50909
50910 fi
50911
50912
50913 fi
50914
50915
50916 fi
50917
50918
50919 fi
50920
50921
50922 fi
50923
50924     ;;
50925   esac
50926
50927   if test "x$lt_cv_dlopen" != xno; then
50928     enable_dlopen=yes
50929   else
50930     enable_dlopen=no
50931   fi
50932
50933   case $lt_cv_dlopen in
50934   dlopen)
50935     save_CPPFLAGS="$CPPFLAGS"
50936     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
50937
50938     save_LDFLAGS="$LDFLAGS"
50939     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
50940
50941     save_LIBS="$LIBS"
50942     LIBS="$lt_cv_dlopen_libs $LIBS"
50943
50944     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
50945 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
50946 if test "${lt_cv_dlopen_self+set}" = set; then
50947   $as_echo_n "(cached) " >&6
50948 else
50949           if test "$cross_compiling" = yes; then :
50950   lt_cv_dlopen_self=cross
50951 else
50952   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
50953   lt_status=$lt_dlunknown
50954   cat > conftest.$ac_ext <<_LT_EOF
50955 #line 50955 "configure"
50956 #include "confdefs.h"
50957
50958 #if HAVE_DLFCN_H
50959 #include <dlfcn.h>
50960 #endif
50961
50962 #include <stdio.h>
50963
50964 #ifdef RTLD_GLOBAL
50965 #  define LT_DLGLOBAL           RTLD_GLOBAL
50966 #else
50967 #  ifdef DL_GLOBAL
50968 #    define LT_DLGLOBAL         DL_GLOBAL
50969 #  else
50970 #    define LT_DLGLOBAL         0
50971 #  endif
50972 #endif
50973
50974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
50975    find out it does not work in some platform. */
50976 #ifndef LT_DLLAZY_OR_NOW
50977 #  ifdef RTLD_LAZY
50978 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
50979 #  else
50980 #    ifdef DL_LAZY
50981 #      define LT_DLLAZY_OR_NOW          DL_LAZY
50982 #    else
50983 #      ifdef RTLD_NOW
50984 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
50985 #      else
50986 #        ifdef DL_NOW
50987 #          define LT_DLLAZY_OR_NOW      DL_NOW
50988 #        else
50989 #          define LT_DLLAZY_OR_NOW      0
50990 #        endif
50991 #      endif
50992 #    endif
50993 #  endif
50994 #endif
50995
50996 #ifdef __cplusplus
50997 extern "C" void exit (int);
50998 #endif
50999
51000 void fnord() { int i=42;}
51001 int main ()
51002 {
51003   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
51004   int status = $lt_dlunknown;
51005
51006   if (self)
51007     {
51008       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
51009       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
51010       /* dlclose (self); */
51011     }
51012   else
51013     puts (dlerror ());
51014
51015     exit (status);
51016 }
51017 _LT_EOF
51018   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51019   (eval $ac_link) 2>&5
51020   ac_status=$?
51021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51022   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
51023     (./conftest; exit; ) >&5 2>/dev/null
51024     lt_status=$?
51025     case x$lt_status in
51026       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
51027       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
51028       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
51029     esac
51030   else :
51031     # compilation failed
51032     lt_cv_dlopen_self=no
51033   fi
51034 fi
51035 rm -fr conftest*
51036
51037
51038 fi
51039 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
51040 $as_echo "$lt_cv_dlopen_self" >&6; }
51041
51042     if test "x$lt_cv_dlopen_self" = xyes; then
51043       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
51044       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
51045 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
51046 if test "${lt_cv_dlopen_self_static+set}" = set; then
51047   $as_echo_n "(cached) " >&6
51048 else
51049           if test "$cross_compiling" = yes; then :
51050   lt_cv_dlopen_self_static=cross
51051 else
51052   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
51053   lt_status=$lt_dlunknown
51054   cat > conftest.$ac_ext <<_LT_EOF
51055 #line 51055 "configure"
51056 #include "confdefs.h"
51057
51058 #if HAVE_DLFCN_H
51059 #include <dlfcn.h>
51060 #endif
51061
51062 #include <stdio.h>
51063
51064 #ifdef RTLD_GLOBAL
51065 #  define LT_DLGLOBAL           RTLD_GLOBAL
51066 #else
51067 #  ifdef DL_GLOBAL
51068 #    define LT_DLGLOBAL         DL_GLOBAL
51069 #  else
51070 #    define LT_DLGLOBAL         0
51071 #  endif
51072 #endif
51073
51074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
51075    find out it does not work in some platform. */
51076 #ifndef LT_DLLAZY_OR_NOW
51077 #  ifdef RTLD_LAZY
51078 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
51079 #  else
51080 #    ifdef DL_LAZY
51081 #      define LT_DLLAZY_OR_NOW          DL_LAZY
51082 #    else
51083 #      ifdef RTLD_NOW
51084 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
51085 #      else
51086 #        ifdef DL_NOW
51087 #          define LT_DLLAZY_OR_NOW      DL_NOW
51088 #        else
51089 #          define LT_DLLAZY_OR_NOW      0
51090 #        endif
51091 #      endif
51092 #    endif
51093 #  endif
51094 #endif
51095
51096 #ifdef __cplusplus
51097 extern "C" void exit (int);
51098 #endif
51099
51100 void fnord() { int i=42;}
51101 int main ()
51102 {
51103   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
51104   int status = $lt_dlunknown;
51105
51106   if (self)
51107     {
51108       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
51109       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
51110       /* dlclose (self); */
51111     }
51112   else
51113     puts (dlerror ());
51114
51115     exit (status);
51116 }
51117 _LT_EOF
51118   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51119   (eval $ac_link) 2>&5
51120   ac_status=$?
51121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51122   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
51123     (./conftest; exit; ) >&5 2>/dev/null
51124     lt_status=$?
51125     case x$lt_status in
51126       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
51127       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
51128       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
51129     esac
51130   else :
51131     # compilation failed
51132     lt_cv_dlopen_self_static=no
51133   fi
51134 fi
51135 rm -fr conftest*
51136
51137
51138 fi
51139 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
51140 $as_echo "$lt_cv_dlopen_self_static" >&6; }
51141     fi
51142
51143     CPPFLAGS="$save_CPPFLAGS"
51144     LDFLAGS="$save_LDFLAGS"
51145     LIBS="$save_LIBS"
51146     ;;
51147   esac
51148
51149   case $lt_cv_dlopen_self in
51150   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
51151   *) enable_dlopen_self=unknown ;;
51152   esac
51153
51154   case $lt_cv_dlopen_self_static in
51155   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
51156   *) enable_dlopen_self_static=unknown ;;
51157   esac
51158 fi
51159
51160
51161
51162
51163
51164
51165
51166
51167
51168
51169
51170
51171
51172
51173
51174
51175
51176 striplib=
51177 old_striplib=
51178 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
51179 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
51180 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
51181   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
51182   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
51183   { $as_echo "$as_me:$LINENO: result: yes" >&5
51184 $as_echo "yes" >&6; }
51185 else
51186 # FIXME - insert some real tests, host_os isn't really good enough
51187   case $host_os in
51188   darwin*)
51189     if test -n "$STRIP" ; then
51190       striplib="$STRIP -x"
51191       old_striplib="$STRIP -S"
51192       { $as_echo "$as_me:$LINENO: result: yes" >&5
51193 $as_echo "yes" >&6; }
51194     else
51195       { $as_echo "$as_me:$LINENO: result: no" >&5
51196 $as_echo "no" >&6; }
51197     fi
51198     ;;
51199   *)
51200     { $as_echo "$as_me:$LINENO: result: no" >&5
51201 $as_echo "no" >&6; }
51202     ;;
51203   esac
51204 fi
51205
51206
51207
51208
51209
51210
51211
51212
51213
51214
51215
51216
51217   # Report which library types will actually be built
51218   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
51219 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
51220   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
51221 $as_echo "$can_build_shared" >&6; }
51222
51223   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
51224 $as_echo_n "checking whether to build shared libraries... " >&6; }
51225   test "$can_build_shared" = "no" && enable_shared=no
51226
51227   # On AIX, shared libraries and static libraries use the same namespace, and
51228   # are all built from PIC.
51229   case $host_os in
51230   aix3*)
51231     test "$enable_shared" = yes && enable_static=no
51232     if test -n "$RANLIB"; then
51233       archive_cmds="$archive_cmds~\$RANLIB \$lib"
51234       postinstall_cmds='$RANLIB $lib'
51235     fi
51236     ;;
51237
51238   aix[4-9]*)
51239     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
51240       test "$enable_shared" = yes && enable_static=no
51241     fi
51242     ;;
51243   esac
51244   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
51245 $as_echo "$enable_shared" >&6; }
51246
51247   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
51248 $as_echo_n "checking whether to build static libraries... " >&6; }
51249   # Make sure either enable_shared or enable_static is yes.
51250   test "$enable_shared" = yes || enable_static=yes
51251   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
51252 $as_echo "$enable_static" >&6; }
51253
51254
51255
51256
51257 fi
51258 ac_ext=c
51259 ac_cpp='$CPP $CPPFLAGS'
51260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51263
51264 CC="$lt_save_CC"
51265
51266
51267
51268
51269
51270
51271
51272
51273
51274
51275
51276
51277
51278         ac_config_commands="$ac_config_commands libtool"
51279
51280
51281
51282
51283 # Only expand once:
51284
51285
51286
51287
51288     # Check whether --enable-static-binary was given.
51289 if test "${enable_static_binary+set}" = set; then
51290   enableval=$enable_static_binary;
51291             case "$enableval" in
51292             "" | y | ye | yes)
51293                 AMANDA_STATIC_LDFLAGS=-static
51294                 if test x"$enable_static" = x"no"; then
51295                         { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
51296 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
51297    { (exit 1); exit 1; }; }
51298                 fi
51299                 ;;
51300             *n | no)
51301                 AMANDA_STATIC_LDFLAGS=
51302                 ;;
51303             esac
51304
51305 fi
51306
51307
51308
51309
51310 #
51311 # headers
51312 #
51313
51314
51315
51316
51317
51318 ac_header_dirent=no
51319 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
51320   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
51321 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
51322 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
51323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51324   $as_echo_n "(cached) " >&6
51325 else
51326   cat >conftest.$ac_ext <<_ACEOF
51327 /* confdefs.h.  */
51328 _ACEOF
51329 cat confdefs.h >>conftest.$ac_ext
51330 cat >>conftest.$ac_ext <<_ACEOF
51331 /* end confdefs.h.  */
51332 #include <sys/types.h>
51333 #include <$ac_hdr>
51334
51335 int
51336 main ()
51337 {
51338 if ((DIR *) 0)
51339 return 0;
51340   ;
51341   return 0;
51342 }
51343 _ACEOF
51344 rm -f conftest.$ac_objext
51345 if { (ac_try="$ac_compile"
51346 case "(($ac_try" in
51347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51348   *) ac_try_echo=$ac_try;;
51349 esac
51350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51351 $as_echo "$ac_try_echo") >&5
51352   (eval "$ac_compile") 2>conftest.er1
51353   ac_status=$?
51354   grep -v '^ *+' conftest.er1 >conftest.err
51355   rm -f conftest.er1
51356   cat conftest.err >&5
51357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51358   (exit $ac_status); } && {
51359          test -z "$ac_c_werror_flag" ||
51360          test ! -s conftest.err
51361        } && test -s conftest.$ac_objext; then
51362   eval "$as_ac_Header=yes"
51363 else
51364   $as_echo "$as_me: failed program was:" >&5
51365 sed 's/^/| /' conftest.$ac_ext >&5
51366
51367         eval "$as_ac_Header=no"
51368 fi
51369
51370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51371 fi
51372 ac_res=`eval 'as_val=${'$as_ac_Header'}
51373                  $as_echo "$as_val"'`
51374                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51375 $as_echo "$ac_res" >&6; }
51376 as_val=`eval 'as_val=${'$as_ac_Header'}
51377                  $as_echo "$as_val"'`
51378    if test "x$as_val" = x""yes; then
51379   cat >>confdefs.h <<_ACEOF
51380 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
51381 _ACEOF
51382
51383 ac_header_dirent=$ac_hdr; break
51384 fi
51385
51386 done
51387 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
51388 if test $ac_header_dirent = dirent.h; then
51389   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51390 $as_echo_n "checking for library containing opendir... " >&6; }
51391 if test "${ac_cv_search_opendir+set}" = set; then
51392   $as_echo_n "(cached) " >&6
51393 else
51394   ac_func_search_save_LIBS=$LIBS
51395 cat >conftest.$ac_ext <<_ACEOF
51396 /* confdefs.h.  */
51397 _ACEOF
51398 cat confdefs.h >>conftest.$ac_ext
51399 cat >>conftest.$ac_ext <<_ACEOF
51400 /* end confdefs.h.  */
51401
51402 /* Override any GCC internal prototype to avoid an error.
51403    Use char because int might match the return type of a GCC
51404    builtin and then its argument prototype would still apply.  */
51405 #ifdef __cplusplus
51406 extern "C"
51407 #endif
51408 char opendir ();
51409 int
51410 main ()
51411 {
51412 return opendir ();
51413   ;
51414   return 0;
51415 }
51416 _ACEOF
51417 for ac_lib in '' dir; do
51418   if test -z "$ac_lib"; then
51419     ac_res="none required"
51420   else
51421     ac_res=-l$ac_lib
51422     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51423   fi
51424   rm -f conftest.$ac_objext conftest$ac_exeext
51425 if { (ac_try="$ac_link"
51426 case "(($ac_try" in
51427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51428   *) ac_try_echo=$ac_try;;
51429 esac
51430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51431 $as_echo "$ac_try_echo") >&5
51432   (eval "$ac_link") 2>conftest.er1
51433   ac_status=$?
51434   grep -v '^ *+' conftest.er1 >conftest.err
51435   rm -f conftest.er1
51436   cat conftest.err >&5
51437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51438   (exit $ac_status); } && {
51439          test -z "$ac_c_werror_flag" ||
51440          test ! -s conftest.err
51441        } && test -s conftest$ac_exeext && {
51442          test "$cross_compiling" = yes ||
51443          $as_test_x conftest$ac_exeext
51444        }; then
51445   ac_cv_search_opendir=$ac_res
51446 else
51447   $as_echo "$as_me: failed program was:" >&5
51448 sed 's/^/| /' conftest.$ac_ext >&5
51449
51450
51451 fi
51452
51453 rm -rf conftest.dSYM
51454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51455       conftest$ac_exeext
51456   if test "${ac_cv_search_opendir+set}" = set; then
51457   break
51458 fi
51459 done
51460 if test "${ac_cv_search_opendir+set}" = set; then
51461   :
51462 else
51463   ac_cv_search_opendir=no
51464 fi
51465 rm conftest.$ac_ext
51466 LIBS=$ac_func_search_save_LIBS
51467 fi
51468 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51469 $as_echo "$ac_cv_search_opendir" >&6; }
51470 ac_res=$ac_cv_search_opendir
51471 if test "$ac_res" != no; then
51472   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51473
51474 fi
51475
51476 else
51477   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
51478 $as_echo_n "checking for library containing opendir... " >&6; }
51479 if test "${ac_cv_search_opendir+set}" = set; then
51480   $as_echo_n "(cached) " >&6
51481 else
51482   ac_func_search_save_LIBS=$LIBS
51483 cat >conftest.$ac_ext <<_ACEOF
51484 /* confdefs.h.  */
51485 _ACEOF
51486 cat confdefs.h >>conftest.$ac_ext
51487 cat >>conftest.$ac_ext <<_ACEOF
51488 /* end confdefs.h.  */
51489
51490 /* Override any GCC internal prototype to avoid an error.
51491    Use char because int might match the return type of a GCC
51492    builtin and then its argument prototype would still apply.  */
51493 #ifdef __cplusplus
51494 extern "C"
51495 #endif
51496 char opendir ();
51497 int
51498 main ()
51499 {
51500 return opendir ();
51501   ;
51502   return 0;
51503 }
51504 _ACEOF
51505 for ac_lib in '' x; do
51506   if test -z "$ac_lib"; then
51507     ac_res="none required"
51508   else
51509     ac_res=-l$ac_lib
51510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51511   fi
51512   rm -f conftest.$ac_objext conftest$ac_exeext
51513 if { (ac_try="$ac_link"
51514 case "(($ac_try" in
51515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51516   *) ac_try_echo=$ac_try;;
51517 esac
51518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51519 $as_echo "$ac_try_echo") >&5
51520   (eval "$ac_link") 2>conftest.er1
51521   ac_status=$?
51522   grep -v '^ *+' conftest.er1 >conftest.err
51523   rm -f conftest.er1
51524   cat conftest.err >&5
51525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51526   (exit $ac_status); } && {
51527          test -z "$ac_c_werror_flag" ||
51528          test ! -s conftest.err
51529        } && test -s conftest$ac_exeext && {
51530          test "$cross_compiling" = yes ||
51531          $as_test_x conftest$ac_exeext
51532        }; then
51533   ac_cv_search_opendir=$ac_res
51534 else
51535   $as_echo "$as_me: failed program was:" >&5
51536 sed 's/^/| /' conftest.$ac_ext >&5
51537
51538
51539 fi
51540
51541 rm -rf conftest.dSYM
51542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51543       conftest$ac_exeext
51544   if test "${ac_cv_search_opendir+set}" = set; then
51545   break
51546 fi
51547 done
51548 if test "${ac_cv_search_opendir+set}" = set; then
51549   :
51550 else
51551   ac_cv_search_opendir=no
51552 fi
51553 rm conftest.$ac_ext
51554 LIBS=$ac_func_search_save_LIBS
51555 fi
51556 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
51557 $as_echo "$ac_cv_search_opendir" >&6; }
51558 ac_res=$ac_cv_search_opendir
51559 if test "$ac_res" != no; then
51560   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51561
51562 fi
51563
51564 fi
51565
51566 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
51567 $as_echo_n "checking for ANSI C header files... " >&6; }
51568 if test "${ac_cv_header_stdc+set}" = set; then
51569   $as_echo_n "(cached) " >&6
51570 else
51571   cat >conftest.$ac_ext <<_ACEOF
51572 /* confdefs.h.  */
51573 _ACEOF
51574 cat confdefs.h >>conftest.$ac_ext
51575 cat >>conftest.$ac_ext <<_ACEOF
51576 /* end confdefs.h.  */
51577 #include <stdlib.h>
51578 #include <stdarg.h>
51579 #include <string.h>
51580 #include <float.h>
51581
51582 int
51583 main ()
51584 {
51585
51586   ;
51587   return 0;
51588 }
51589 _ACEOF
51590 rm -f conftest.$ac_objext
51591 if { (ac_try="$ac_compile"
51592 case "(($ac_try" in
51593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51594   *) ac_try_echo=$ac_try;;
51595 esac
51596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51597 $as_echo "$ac_try_echo") >&5
51598   (eval "$ac_compile") 2>conftest.er1
51599   ac_status=$?
51600   grep -v '^ *+' conftest.er1 >conftest.err
51601   rm -f conftest.er1
51602   cat conftest.err >&5
51603   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51604   (exit $ac_status); } && {
51605          test -z "$ac_c_werror_flag" ||
51606          test ! -s conftest.err
51607        } && test -s conftest.$ac_objext; then
51608   ac_cv_header_stdc=yes
51609 else
51610   $as_echo "$as_me: failed program was:" >&5
51611 sed 's/^/| /' conftest.$ac_ext >&5
51612
51613         ac_cv_header_stdc=no
51614 fi
51615
51616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51617
51618 if test $ac_cv_header_stdc = yes; then
51619   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
51620   cat >conftest.$ac_ext <<_ACEOF
51621 /* confdefs.h.  */
51622 _ACEOF
51623 cat confdefs.h >>conftest.$ac_ext
51624 cat >>conftest.$ac_ext <<_ACEOF
51625 /* end confdefs.h.  */
51626 #include <string.h>
51627
51628 _ACEOF
51629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51630   $EGREP "memchr" >/dev/null 2>&1; then
51631   :
51632 else
51633   ac_cv_header_stdc=no
51634 fi
51635 rm -f conftest*
51636
51637 fi
51638
51639 if test $ac_cv_header_stdc = yes; then
51640   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
51641   cat >conftest.$ac_ext <<_ACEOF
51642 /* confdefs.h.  */
51643 _ACEOF
51644 cat confdefs.h >>conftest.$ac_ext
51645 cat >>conftest.$ac_ext <<_ACEOF
51646 /* end confdefs.h.  */
51647 #include <stdlib.h>
51648
51649 _ACEOF
51650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51651   $EGREP "free" >/dev/null 2>&1; then
51652   :
51653 else
51654   ac_cv_header_stdc=no
51655 fi
51656 rm -f conftest*
51657
51658 fi
51659
51660 if test $ac_cv_header_stdc = yes; then
51661   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
51662   if test "$cross_compiling" = yes; then
51663   :
51664 else
51665   cat >conftest.$ac_ext <<_ACEOF
51666 /* confdefs.h.  */
51667 _ACEOF
51668 cat confdefs.h >>conftest.$ac_ext
51669 cat >>conftest.$ac_ext <<_ACEOF
51670 /* end confdefs.h.  */
51671 #include <ctype.h>
51672 #include <stdlib.h>
51673 #if ((' ' & 0x0FF) == 0x020)
51674 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
51675 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
51676 #else
51677 # define ISLOWER(c) \
51678                    (('a' <= (c) && (c) <= 'i') \
51679                      || ('j' <= (c) && (c) <= 'r') \
51680                      || ('s' <= (c) && (c) <= 'z'))
51681 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
51682 #endif
51683
51684 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
51685 int
51686 main ()
51687 {
51688   int i;
51689   for (i = 0; i < 256; i++)
51690     if (XOR (islower (i), ISLOWER (i))
51691         || toupper (i) != TOUPPER (i))
51692       return 2;
51693   return 0;
51694 }
51695 _ACEOF
51696 rm -f conftest$ac_exeext
51697 if { (ac_try="$ac_link"
51698 case "(($ac_try" in
51699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51700   *) ac_try_echo=$ac_try;;
51701 esac
51702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51703 $as_echo "$ac_try_echo") >&5
51704   (eval "$ac_link") 2>&5
51705   ac_status=$?
51706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51707   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51708   { (case "(($ac_try" in
51709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51710   *) ac_try_echo=$ac_try;;
51711 esac
51712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51713 $as_echo "$ac_try_echo") >&5
51714   (eval "$ac_try") 2>&5
51715   ac_status=$?
51716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51717   (exit $ac_status); }; }; then
51718   :
51719 else
51720   $as_echo "$as_me: program exited with status $ac_status" >&5
51721 $as_echo "$as_me: failed program was:" >&5
51722 sed 's/^/| /' conftest.$ac_ext >&5
51723
51724 ( exit $ac_status )
51725 ac_cv_header_stdc=no
51726 fi
51727 rm -rf conftest.dSYM
51728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51729 fi
51730
51731
51732 fi
51733 fi
51734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
51735 $as_echo "$ac_cv_header_stdc" >&6; }
51736 if test $ac_cv_header_stdc = yes; then
51737
51738 cat >>confdefs.h <<\_ACEOF
51739 #define STDC_HEADERS 1
51740 _ACEOF
51741
51742 fi
51743
51744 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51745 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51746 if test "${ac_cv_header_time+set}" = set; then
51747   $as_echo_n "(cached) " >&6
51748 else
51749   cat >conftest.$ac_ext <<_ACEOF
51750 /* confdefs.h.  */
51751 _ACEOF
51752 cat confdefs.h >>conftest.$ac_ext
51753 cat >>conftest.$ac_ext <<_ACEOF
51754 /* end confdefs.h.  */
51755 #include <sys/types.h>
51756 #include <sys/time.h>
51757 #include <time.h>
51758
51759 int
51760 main ()
51761 {
51762 if ((struct tm *) 0)
51763 return 0;
51764   ;
51765   return 0;
51766 }
51767 _ACEOF
51768 rm -f conftest.$ac_objext
51769 if { (ac_try="$ac_compile"
51770 case "(($ac_try" in
51771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51772   *) ac_try_echo=$ac_try;;
51773 esac
51774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51775 $as_echo "$ac_try_echo") >&5
51776   (eval "$ac_compile") 2>conftest.er1
51777   ac_status=$?
51778   grep -v '^ *+' conftest.er1 >conftest.err
51779   rm -f conftest.er1
51780   cat conftest.err >&5
51781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51782   (exit $ac_status); } && {
51783          test -z "$ac_c_werror_flag" ||
51784          test ! -s conftest.err
51785        } && test -s conftest.$ac_objext; then
51786   ac_cv_header_time=yes
51787 else
51788   $as_echo "$as_me: failed program was:" >&5
51789 sed 's/^/| /' conftest.$ac_ext >&5
51790
51791         ac_cv_header_time=no
51792 fi
51793
51794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51795 fi
51796 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51797 $as_echo "$ac_cv_header_time" >&6; }
51798 if test $ac_cv_header_time = yes; then
51799
51800 cat >>confdefs.h <<\_ACEOF
51801 #define TIME_WITH_SYS_TIME 1
51802 _ACEOF
51803
51804 fi
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831 for ac_header in grp.h \
51832         libc.h \
51833         libgen.h \
51834         limits.h \
51835         math.h \
51836         netinet/in.h \
51837         regex.h \
51838         stdarg.h \
51839         stdlib.h \
51840         strings.h \
51841         rpc/rpc.h \
51842         sys/file.h \
51843         sys/ioctl.h \
51844         sys/ipc.h \
51845         sys/mntent.h \
51846         sys/param.h \
51847         sys/select.h \
51848         sys/stat.h \
51849         sys/shm.h \
51850         sys/time.h \
51851         sys/types.h \
51852         sys/uio.h \
51853         syslog.h \
51854         time.h \
51855         unistd.h \
51856
51857 do
51858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51860   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51861 $as_echo_n "checking for $ac_header... " >&6; }
51862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51863   $as_echo_n "(cached) " >&6
51864 fi
51865 ac_res=`eval 'as_val=${'$as_ac_Header'}
51866                  $as_echo "$as_val"'`
51867                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51868 $as_echo "$ac_res" >&6; }
51869 else
51870   # Is the header compilable?
51871 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51872 $as_echo_n "checking $ac_header usability... " >&6; }
51873 cat >conftest.$ac_ext <<_ACEOF
51874 /* confdefs.h.  */
51875 _ACEOF
51876 cat confdefs.h >>conftest.$ac_ext
51877 cat >>conftest.$ac_ext <<_ACEOF
51878 /* end confdefs.h.  */
51879 $ac_includes_default
51880 #include <$ac_header>
51881 _ACEOF
51882 rm -f conftest.$ac_objext
51883 if { (ac_try="$ac_compile"
51884 case "(($ac_try" in
51885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51886   *) ac_try_echo=$ac_try;;
51887 esac
51888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51889 $as_echo "$ac_try_echo") >&5
51890   (eval "$ac_compile") 2>conftest.er1
51891   ac_status=$?
51892   grep -v '^ *+' conftest.er1 >conftest.err
51893   rm -f conftest.er1
51894   cat conftest.err >&5
51895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51896   (exit $ac_status); } && {
51897          test -z "$ac_c_werror_flag" ||
51898          test ! -s conftest.err
51899        } && test -s conftest.$ac_objext; then
51900   ac_header_compiler=yes
51901 else
51902   $as_echo "$as_me: failed program was:" >&5
51903 sed 's/^/| /' conftest.$ac_ext >&5
51904
51905         ac_header_compiler=no
51906 fi
51907
51908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51910 $as_echo "$ac_header_compiler" >&6; }
51911
51912 # Is the header present?
51913 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51914 $as_echo_n "checking $ac_header presence... " >&6; }
51915 cat >conftest.$ac_ext <<_ACEOF
51916 /* confdefs.h.  */
51917 _ACEOF
51918 cat confdefs.h >>conftest.$ac_ext
51919 cat >>conftest.$ac_ext <<_ACEOF
51920 /* end confdefs.h.  */
51921 #include <$ac_header>
51922 _ACEOF
51923 if { (ac_try="$ac_cpp conftest.$ac_ext"
51924 case "(($ac_try" in
51925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51926   *) ac_try_echo=$ac_try;;
51927 esac
51928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51929 $as_echo "$ac_try_echo") >&5
51930   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51931   ac_status=$?
51932   grep -v '^ *+' conftest.er1 >conftest.err
51933   rm -f conftest.er1
51934   cat conftest.err >&5
51935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51936   (exit $ac_status); } >/dev/null && {
51937          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51938          test ! -s conftest.err
51939        }; then
51940   ac_header_preproc=yes
51941 else
51942   $as_echo "$as_me: failed program was:" >&5
51943 sed 's/^/| /' conftest.$ac_ext >&5
51944
51945   ac_header_preproc=no
51946 fi
51947
51948 rm -f conftest.err conftest.$ac_ext
51949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51950 $as_echo "$ac_header_preproc" >&6; }
51951
51952 # So?  What about this header?
51953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51954   yes:no: )
51955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51956 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51958 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51959     ac_header_preproc=yes
51960     ;;
51961   no:yes:* )
51962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51963 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51965 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51966     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51967 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51969 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51971 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51973 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51974
51975     ;;
51976 esac
51977 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51978 $as_echo_n "checking for $ac_header... " >&6; }
51979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51980   $as_echo_n "(cached) " >&6
51981 else
51982   eval "$as_ac_Header=\$ac_header_preproc"
51983 fi
51984 ac_res=`eval 'as_val=${'$as_ac_Header'}
51985                  $as_echo "$as_val"'`
51986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51987 $as_echo "$ac_res" >&6; }
51988
51989 fi
51990 as_val=`eval 'as_val=${'$as_ac_Header'}
51991                  $as_echo "$as_val"'`
51992    if test "x$as_val" = x""yes; then
51993   cat >>confdefs.h <<_ACEOF
51994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51995 _ACEOF
51996
51997 fi
51998
51999 done
52000
52001
52002 cat >>confdefs.h <<\_ACEOF
52003 #define HAVE_AMANDA_H 1
52004 _ACEOF
52005
52006
52007 cat >>confdefs.h <<\_ACEOF
52008 #define HAVE_UTIL_H 1
52009 _ACEOF
52010
52011
52012
52013 cat >>confdefs.h <<\_ACEOF
52014 #define USE_GETTEXT 1
52015 _ACEOF
52016
52017
52018 #
52019 # Types
52020 #
52021 # The cast to long int works around a bug in the HP C Compiler
52022 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52023 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52024 # This bug is HP SR number 8606223364.
52025 { $as_echo "$as_me:$LINENO: checking size of int" >&5
52026 $as_echo_n "checking size of int... " >&6; }
52027 if test "${ac_cv_sizeof_int+set}" = set; then
52028   $as_echo_n "(cached) " >&6
52029 else
52030   if test "$cross_compiling" = yes; then
52031   # Depending upon the size, compute the lo and hi bounds.
52032 cat >conftest.$ac_ext <<_ACEOF
52033 /* confdefs.h.  */
52034 _ACEOF
52035 cat confdefs.h >>conftest.$ac_ext
52036 cat >>conftest.$ac_ext <<_ACEOF
52037 /* end confdefs.h.  */
52038 $ac_includes_default
52039 int
52040 main ()
52041 {
52042 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
52043 test_array [0] = 0
52044
52045   ;
52046   return 0;
52047 }
52048 _ACEOF
52049 rm -f conftest.$ac_objext
52050 if { (ac_try="$ac_compile"
52051 case "(($ac_try" in
52052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52053   *) ac_try_echo=$ac_try;;
52054 esac
52055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52056 $as_echo "$ac_try_echo") >&5
52057   (eval "$ac_compile") 2>conftest.er1
52058   ac_status=$?
52059   grep -v '^ *+' conftest.er1 >conftest.err
52060   rm -f conftest.er1
52061   cat conftest.err >&5
52062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52063   (exit $ac_status); } && {
52064          test -z "$ac_c_werror_flag" ||
52065          test ! -s conftest.err
52066        } && test -s conftest.$ac_objext; then
52067   ac_lo=0 ac_mid=0
52068   while :; do
52069     cat >conftest.$ac_ext <<_ACEOF
52070 /* confdefs.h.  */
52071 _ACEOF
52072 cat confdefs.h >>conftest.$ac_ext
52073 cat >>conftest.$ac_ext <<_ACEOF
52074 /* end confdefs.h.  */
52075 $ac_includes_default
52076 int
52077 main ()
52078 {
52079 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
52080 test_array [0] = 0
52081
52082   ;
52083   return 0;
52084 }
52085 _ACEOF
52086 rm -f conftest.$ac_objext
52087 if { (ac_try="$ac_compile"
52088 case "(($ac_try" in
52089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52090   *) ac_try_echo=$ac_try;;
52091 esac
52092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52093 $as_echo "$ac_try_echo") >&5
52094   (eval "$ac_compile") 2>conftest.er1
52095   ac_status=$?
52096   grep -v '^ *+' conftest.er1 >conftest.err
52097   rm -f conftest.er1
52098   cat conftest.err >&5
52099   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52100   (exit $ac_status); } && {
52101          test -z "$ac_c_werror_flag" ||
52102          test ! -s conftest.err
52103        } && test -s conftest.$ac_objext; then
52104   ac_hi=$ac_mid; break
52105 else
52106   $as_echo "$as_me: failed program was:" >&5
52107 sed 's/^/| /' conftest.$ac_ext >&5
52108
52109         ac_lo=`expr $ac_mid + 1`
52110                         if test $ac_lo -le $ac_mid; then
52111                           ac_lo= ac_hi=
52112                           break
52113                         fi
52114                         ac_mid=`expr 2 '*' $ac_mid + 1`
52115 fi
52116
52117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52118   done
52119 else
52120   $as_echo "$as_me: failed program was:" >&5
52121 sed 's/^/| /' conftest.$ac_ext >&5
52122
52123         cat >conftest.$ac_ext <<_ACEOF
52124 /* confdefs.h.  */
52125 _ACEOF
52126 cat confdefs.h >>conftest.$ac_ext
52127 cat >>conftest.$ac_ext <<_ACEOF
52128 /* end confdefs.h.  */
52129 $ac_includes_default
52130 int
52131 main ()
52132 {
52133 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
52134 test_array [0] = 0
52135
52136   ;
52137   return 0;
52138 }
52139 _ACEOF
52140 rm -f conftest.$ac_objext
52141 if { (ac_try="$ac_compile"
52142 case "(($ac_try" in
52143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52144   *) ac_try_echo=$ac_try;;
52145 esac
52146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52147 $as_echo "$ac_try_echo") >&5
52148   (eval "$ac_compile") 2>conftest.er1
52149   ac_status=$?
52150   grep -v '^ *+' conftest.er1 >conftest.err
52151   rm -f conftest.er1
52152   cat conftest.err >&5
52153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52154   (exit $ac_status); } && {
52155          test -z "$ac_c_werror_flag" ||
52156          test ! -s conftest.err
52157        } && test -s conftest.$ac_objext; then
52158   ac_hi=-1 ac_mid=-1
52159   while :; do
52160     cat >conftest.$ac_ext <<_ACEOF
52161 /* confdefs.h.  */
52162 _ACEOF
52163 cat confdefs.h >>conftest.$ac_ext
52164 cat >>conftest.$ac_ext <<_ACEOF
52165 /* end confdefs.h.  */
52166 $ac_includes_default
52167 int
52168 main ()
52169 {
52170 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
52171 test_array [0] = 0
52172
52173   ;
52174   return 0;
52175 }
52176 _ACEOF
52177 rm -f conftest.$ac_objext
52178 if { (ac_try="$ac_compile"
52179 case "(($ac_try" in
52180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52181   *) ac_try_echo=$ac_try;;
52182 esac
52183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52184 $as_echo "$ac_try_echo") >&5
52185   (eval "$ac_compile") 2>conftest.er1
52186   ac_status=$?
52187   grep -v '^ *+' conftest.er1 >conftest.err
52188   rm -f conftest.er1
52189   cat conftest.err >&5
52190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52191   (exit $ac_status); } && {
52192          test -z "$ac_c_werror_flag" ||
52193          test ! -s conftest.err
52194        } && test -s conftest.$ac_objext; then
52195   ac_lo=$ac_mid; break
52196 else
52197   $as_echo "$as_me: failed program was:" >&5
52198 sed 's/^/| /' conftest.$ac_ext >&5
52199
52200         ac_hi=`expr '(' $ac_mid ')' - 1`
52201                         if test $ac_mid -le $ac_hi; then
52202                           ac_lo= ac_hi=
52203                           break
52204                         fi
52205                         ac_mid=`expr 2 '*' $ac_mid`
52206 fi
52207
52208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52209   done
52210 else
52211   $as_echo "$as_me: failed program was:" >&5
52212 sed 's/^/| /' conftest.$ac_ext >&5
52213
52214         ac_lo= ac_hi=
52215 fi
52216
52217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52218 fi
52219
52220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52221 # Binary search between lo and hi bounds.
52222 while test "x$ac_lo" != "x$ac_hi"; do
52223   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52224   cat >conftest.$ac_ext <<_ACEOF
52225 /* confdefs.h.  */
52226 _ACEOF
52227 cat confdefs.h >>conftest.$ac_ext
52228 cat >>conftest.$ac_ext <<_ACEOF
52229 /* end confdefs.h.  */
52230 $ac_includes_default
52231 int
52232 main ()
52233 {
52234 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
52235 test_array [0] = 0
52236
52237   ;
52238   return 0;
52239 }
52240 _ACEOF
52241 rm -f conftest.$ac_objext
52242 if { (ac_try="$ac_compile"
52243 case "(($ac_try" in
52244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52245   *) ac_try_echo=$ac_try;;
52246 esac
52247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52248 $as_echo "$ac_try_echo") >&5
52249   (eval "$ac_compile") 2>conftest.er1
52250   ac_status=$?
52251   grep -v '^ *+' conftest.er1 >conftest.err
52252   rm -f conftest.er1
52253   cat conftest.err >&5
52254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52255   (exit $ac_status); } && {
52256          test -z "$ac_c_werror_flag" ||
52257          test ! -s conftest.err
52258        } && test -s conftest.$ac_objext; then
52259   ac_hi=$ac_mid
52260 else
52261   $as_echo "$as_me: failed program was:" >&5
52262 sed 's/^/| /' conftest.$ac_ext >&5
52263
52264         ac_lo=`expr '(' $ac_mid ')' + 1`
52265 fi
52266
52267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52268 done
52269 case $ac_lo in
52270 ?*) ac_cv_sizeof_int=$ac_lo;;
52271 '') if test "$ac_cv_type_int" = yes; then
52272      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52274 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
52275 See \`config.log' for more details." >&5
52276 $as_echo "$as_me: error: cannot compute sizeof (int)
52277 See \`config.log' for more details." >&2;}
52278    { (exit 77); exit 77; }; }; }
52279    else
52280      ac_cv_sizeof_int=0
52281    fi ;;
52282 esac
52283 else
52284   cat >conftest.$ac_ext <<_ACEOF
52285 /* confdefs.h.  */
52286 _ACEOF
52287 cat confdefs.h >>conftest.$ac_ext
52288 cat >>conftest.$ac_ext <<_ACEOF
52289 /* end confdefs.h.  */
52290 $ac_includes_default
52291 static long int longval () { return (long int) (sizeof (int)); }
52292 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
52293 #include <stdio.h>
52294 #include <stdlib.h>
52295 int
52296 main ()
52297 {
52298
52299   FILE *f = fopen ("conftest.val", "w");
52300   if (! f)
52301     return 1;
52302   if (((long int) (sizeof (int))) < 0)
52303     {
52304       long int i = longval ();
52305       if (i != ((long int) (sizeof (int))))
52306         return 1;
52307       fprintf (f, "%ld", i);
52308     }
52309   else
52310     {
52311       unsigned long int i = ulongval ();
52312       if (i != ((long int) (sizeof (int))))
52313         return 1;
52314       fprintf (f, "%lu", i);
52315     }
52316   /* Do not output a trailing newline, as this causes \r\n confusion
52317      on some platforms.  */
52318   return ferror (f) || fclose (f) != 0;
52319
52320   ;
52321   return 0;
52322 }
52323 _ACEOF
52324 rm -f conftest$ac_exeext
52325 if { (ac_try="$ac_link"
52326 case "(($ac_try" in
52327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52328   *) ac_try_echo=$ac_try;;
52329 esac
52330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52331 $as_echo "$ac_try_echo") >&5
52332   (eval "$ac_link") 2>&5
52333   ac_status=$?
52334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52335   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52336   { (case "(($ac_try" in
52337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52338   *) ac_try_echo=$ac_try;;
52339 esac
52340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52341 $as_echo "$ac_try_echo") >&5
52342   (eval "$ac_try") 2>&5
52343   ac_status=$?
52344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52345   (exit $ac_status); }; }; then
52346   ac_cv_sizeof_int=`cat conftest.val`
52347 else
52348   $as_echo "$as_me: program exited with status $ac_status" >&5
52349 $as_echo "$as_me: failed program was:" >&5
52350 sed 's/^/| /' conftest.$ac_ext >&5
52351
52352 ( exit $ac_status )
52353 if test "$ac_cv_type_int" = yes; then
52354      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52356 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
52357 See \`config.log' for more details." >&5
52358 $as_echo "$as_me: error: cannot compute sizeof (int)
52359 See \`config.log' for more details." >&2;}
52360    { (exit 77); exit 77; }; }; }
52361    else
52362      ac_cv_sizeof_int=0
52363    fi
52364 fi
52365 rm -rf conftest.dSYM
52366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52367 fi
52368 rm -f conftest.val
52369 fi
52370 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
52371 $as_echo "$ac_cv_sizeof_int" >&6; }
52372
52373
52374
52375 cat >>confdefs.h <<_ACEOF
52376 #define SIZEOF_INT $ac_cv_sizeof_int
52377 _ACEOF
52378
52379
52380 # The cast to long int works around a bug in the HP C Compiler
52381 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52382 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52383 # This bug is HP SR number 8606223364.
52384 { $as_echo "$as_me:$LINENO: checking size of long" >&5
52385 $as_echo_n "checking size of long... " >&6; }
52386 if test "${ac_cv_sizeof_long+set}" = set; then
52387   $as_echo_n "(cached) " >&6
52388 else
52389   if test "$cross_compiling" = yes; then
52390   # Depending upon the size, compute the lo and hi bounds.
52391 cat >conftest.$ac_ext <<_ACEOF
52392 /* confdefs.h.  */
52393 _ACEOF
52394 cat confdefs.h >>conftest.$ac_ext
52395 cat >>conftest.$ac_ext <<_ACEOF
52396 /* end confdefs.h.  */
52397 $ac_includes_default
52398 int
52399 main ()
52400 {
52401 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
52402 test_array [0] = 0
52403
52404   ;
52405   return 0;
52406 }
52407 _ACEOF
52408 rm -f conftest.$ac_objext
52409 if { (ac_try="$ac_compile"
52410 case "(($ac_try" in
52411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52412   *) ac_try_echo=$ac_try;;
52413 esac
52414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52415 $as_echo "$ac_try_echo") >&5
52416   (eval "$ac_compile") 2>conftest.er1
52417   ac_status=$?
52418   grep -v '^ *+' conftest.er1 >conftest.err
52419   rm -f conftest.er1
52420   cat conftest.err >&5
52421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52422   (exit $ac_status); } && {
52423          test -z "$ac_c_werror_flag" ||
52424          test ! -s conftest.err
52425        } && test -s conftest.$ac_objext; then
52426   ac_lo=0 ac_mid=0
52427   while :; do
52428     cat >conftest.$ac_ext <<_ACEOF
52429 /* confdefs.h.  */
52430 _ACEOF
52431 cat confdefs.h >>conftest.$ac_ext
52432 cat >>conftest.$ac_ext <<_ACEOF
52433 /* end confdefs.h.  */
52434 $ac_includes_default
52435 int
52436 main ()
52437 {
52438 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52439 test_array [0] = 0
52440
52441   ;
52442   return 0;
52443 }
52444 _ACEOF
52445 rm -f conftest.$ac_objext
52446 if { (ac_try="$ac_compile"
52447 case "(($ac_try" in
52448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52449   *) ac_try_echo=$ac_try;;
52450 esac
52451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52452 $as_echo "$ac_try_echo") >&5
52453   (eval "$ac_compile") 2>conftest.er1
52454   ac_status=$?
52455   grep -v '^ *+' conftest.er1 >conftest.err
52456   rm -f conftest.er1
52457   cat conftest.err >&5
52458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52459   (exit $ac_status); } && {
52460          test -z "$ac_c_werror_flag" ||
52461          test ! -s conftest.err
52462        } && test -s conftest.$ac_objext; then
52463   ac_hi=$ac_mid; break
52464 else
52465   $as_echo "$as_me: failed program was:" >&5
52466 sed 's/^/| /' conftest.$ac_ext >&5
52467
52468         ac_lo=`expr $ac_mid + 1`
52469                         if test $ac_lo -le $ac_mid; then
52470                           ac_lo= ac_hi=
52471                           break
52472                         fi
52473                         ac_mid=`expr 2 '*' $ac_mid + 1`
52474 fi
52475
52476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52477   done
52478 else
52479   $as_echo "$as_me: failed program was:" >&5
52480 sed 's/^/| /' conftest.$ac_ext >&5
52481
52482         cat >conftest.$ac_ext <<_ACEOF
52483 /* confdefs.h.  */
52484 _ACEOF
52485 cat confdefs.h >>conftest.$ac_ext
52486 cat >>conftest.$ac_ext <<_ACEOF
52487 /* end confdefs.h.  */
52488 $ac_includes_default
52489 int
52490 main ()
52491 {
52492 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
52493 test_array [0] = 0
52494
52495   ;
52496   return 0;
52497 }
52498 _ACEOF
52499 rm -f conftest.$ac_objext
52500 if { (ac_try="$ac_compile"
52501 case "(($ac_try" in
52502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52503   *) ac_try_echo=$ac_try;;
52504 esac
52505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52506 $as_echo "$ac_try_echo") >&5
52507   (eval "$ac_compile") 2>conftest.er1
52508   ac_status=$?
52509   grep -v '^ *+' conftest.er1 >conftest.err
52510   rm -f conftest.er1
52511   cat conftest.err >&5
52512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52513   (exit $ac_status); } && {
52514          test -z "$ac_c_werror_flag" ||
52515          test ! -s conftest.err
52516        } && test -s conftest.$ac_objext; then
52517   ac_hi=-1 ac_mid=-1
52518   while :; do
52519     cat >conftest.$ac_ext <<_ACEOF
52520 /* confdefs.h.  */
52521 _ACEOF
52522 cat confdefs.h >>conftest.$ac_ext
52523 cat >>conftest.$ac_ext <<_ACEOF
52524 /* end confdefs.h.  */
52525 $ac_includes_default
52526 int
52527 main ()
52528 {
52529 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
52530 test_array [0] = 0
52531
52532   ;
52533   return 0;
52534 }
52535 _ACEOF
52536 rm -f conftest.$ac_objext
52537 if { (ac_try="$ac_compile"
52538 case "(($ac_try" in
52539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52540   *) ac_try_echo=$ac_try;;
52541 esac
52542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52543 $as_echo "$ac_try_echo") >&5
52544   (eval "$ac_compile") 2>conftest.er1
52545   ac_status=$?
52546   grep -v '^ *+' conftest.er1 >conftest.err
52547   rm -f conftest.er1
52548   cat conftest.err >&5
52549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52550   (exit $ac_status); } && {
52551          test -z "$ac_c_werror_flag" ||
52552          test ! -s conftest.err
52553        } && test -s conftest.$ac_objext; then
52554   ac_lo=$ac_mid; break
52555 else
52556   $as_echo "$as_me: failed program was:" >&5
52557 sed 's/^/| /' conftest.$ac_ext >&5
52558
52559         ac_hi=`expr '(' $ac_mid ')' - 1`
52560                         if test $ac_mid -le $ac_hi; then
52561                           ac_lo= ac_hi=
52562                           break
52563                         fi
52564                         ac_mid=`expr 2 '*' $ac_mid`
52565 fi
52566
52567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52568   done
52569 else
52570   $as_echo "$as_me: failed program was:" >&5
52571 sed 's/^/| /' conftest.$ac_ext >&5
52572
52573         ac_lo= ac_hi=
52574 fi
52575
52576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52577 fi
52578
52579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52580 # Binary search between lo and hi bounds.
52581 while test "x$ac_lo" != "x$ac_hi"; do
52582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52583   cat >conftest.$ac_ext <<_ACEOF
52584 /* confdefs.h.  */
52585 _ACEOF
52586 cat confdefs.h >>conftest.$ac_ext
52587 cat >>conftest.$ac_ext <<_ACEOF
52588 /* end confdefs.h.  */
52589 $ac_includes_default
52590 int
52591 main ()
52592 {
52593 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
52594 test_array [0] = 0
52595
52596   ;
52597   return 0;
52598 }
52599 _ACEOF
52600 rm -f conftest.$ac_objext
52601 if { (ac_try="$ac_compile"
52602 case "(($ac_try" in
52603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52604   *) ac_try_echo=$ac_try;;
52605 esac
52606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52607 $as_echo "$ac_try_echo") >&5
52608   (eval "$ac_compile") 2>conftest.er1
52609   ac_status=$?
52610   grep -v '^ *+' conftest.er1 >conftest.err
52611   rm -f conftest.er1
52612   cat conftest.err >&5
52613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52614   (exit $ac_status); } && {
52615          test -z "$ac_c_werror_flag" ||
52616          test ! -s conftest.err
52617        } && test -s conftest.$ac_objext; then
52618   ac_hi=$ac_mid
52619 else
52620   $as_echo "$as_me: failed program was:" >&5
52621 sed 's/^/| /' conftest.$ac_ext >&5
52622
52623         ac_lo=`expr '(' $ac_mid ')' + 1`
52624 fi
52625
52626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52627 done
52628 case $ac_lo in
52629 ?*) ac_cv_sizeof_long=$ac_lo;;
52630 '') if test "$ac_cv_type_long" = yes; then
52631      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52633 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52634 See \`config.log' for more details." >&5
52635 $as_echo "$as_me: error: cannot compute sizeof (long)
52636 See \`config.log' for more details." >&2;}
52637    { (exit 77); exit 77; }; }; }
52638    else
52639      ac_cv_sizeof_long=0
52640    fi ;;
52641 esac
52642 else
52643   cat >conftest.$ac_ext <<_ACEOF
52644 /* confdefs.h.  */
52645 _ACEOF
52646 cat confdefs.h >>conftest.$ac_ext
52647 cat >>conftest.$ac_ext <<_ACEOF
52648 /* end confdefs.h.  */
52649 $ac_includes_default
52650 static long int longval () { return (long int) (sizeof (long)); }
52651 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
52652 #include <stdio.h>
52653 #include <stdlib.h>
52654 int
52655 main ()
52656 {
52657
52658   FILE *f = fopen ("conftest.val", "w");
52659   if (! f)
52660     return 1;
52661   if (((long int) (sizeof (long))) < 0)
52662     {
52663       long int i = longval ();
52664       if (i != ((long int) (sizeof (long))))
52665         return 1;
52666       fprintf (f, "%ld", i);
52667     }
52668   else
52669     {
52670       unsigned long int i = ulongval ();
52671       if (i != ((long int) (sizeof (long))))
52672         return 1;
52673       fprintf (f, "%lu", i);
52674     }
52675   /* Do not output a trailing newline, as this causes \r\n confusion
52676      on some platforms.  */
52677   return ferror (f) || fclose (f) != 0;
52678
52679   ;
52680   return 0;
52681 }
52682 _ACEOF
52683 rm -f conftest$ac_exeext
52684 if { (ac_try="$ac_link"
52685 case "(($ac_try" in
52686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52687   *) ac_try_echo=$ac_try;;
52688 esac
52689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52690 $as_echo "$ac_try_echo") >&5
52691   (eval "$ac_link") 2>&5
52692   ac_status=$?
52693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52695   { (case "(($ac_try" in
52696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52697   *) ac_try_echo=$ac_try;;
52698 esac
52699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52700 $as_echo "$ac_try_echo") >&5
52701   (eval "$ac_try") 2>&5
52702   ac_status=$?
52703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52704   (exit $ac_status); }; }; then
52705   ac_cv_sizeof_long=`cat conftest.val`
52706 else
52707   $as_echo "$as_me: program exited with status $ac_status" >&5
52708 $as_echo "$as_me: failed program was:" >&5
52709 sed 's/^/| /' conftest.$ac_ext >&5
52710
52711 ( exit $ac_status )
52712 if test "$ac_cv_type_long" = yes; then
52713      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52715 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
52716 See \`config.log' for more details." >&5
52717 $as_echo "$as_me: error: cannot compute sizeof (long)
52718 See \`config.log' for more details." >&2;}
52719    { (exit 77); exit 77; }; }; }
52720    else
52721      ac_cv_sizeof_long=0
52722    fi
52723 fi
52724 rm -rf conftest.dSYM
52725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52726 fi
52727 rm -f conftest.val
52728 fi
52729 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
52730 $as_echo "$ac_cv_sizeof_long" >&6; }
52731
52732
52733
52734 cat >>confdefs.h <<_ACEOF
52735 #define SIZEOF_LONG $ac_cv_sizeof_long
52736 _ACEOF
52737
52738
52739 # The cast to long int works around a bug in the HP C Compiler
52740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
52741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
52742 # This bug is HP SR number 8606223364.
52743 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
52744 $as_echo_n "checking size of long long... " >&6; }
52745 if test "${ac_cv_sizeof_long_long+set}" = set; then
52746   $as_echo_n "(cached) " >&6
52747 else
52748   if test "$cross_compiling" = yes; then
52749   # Depending upon the size, compute the lo and hi bounds.
52750 cat >conftest.$ac_ext <<_ACEOF
52751 /* confdefs.h.  */
52752 _ACEOF
52753 cat confdefs.h >>conftest.$ac_ext
52754 cat >>conftest.$ac_ext <<_ACEOF
52755 /* end confdefs.h.  */
52756 $ac_includes_default
52757 int
52758 main ()
52759 {
52760 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
52761 test_array [0] = 0
52762
52763   ;
52764   return 0;
52765 }
52766 _ACEOF
52767 rm -f conftest.$ac_objext
52768 if { (ac_try="$ac_compile"
52769 case "(($ac_try" in
52770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52771   *) ac_try_echo=$ac_try;;
52772 esac
52773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52774 $as_echo "$ac_try_echo") >&5
52775   (eval "$ac_compile") 2>conftest.er1
52776   ac_status=$?
52777   grep -v '^ *+' conftest.er1 >conftest.err
52778   rm -f conftest.er1
52779   cat conftest.err >&5
52780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52781   (exit $ac_status); } && {
52782          test -z "$ac_c_werror_flag" ||
52783          test ! -s conftest.err
52784        } && test -s conftest.$ac_objext; then
52785   ac_lo=0 ac_mid=0
52786   while :; do
52787     cat >conftest.$ac_ext <<_ACEOF
52788 /* confdefs.h.  */
52789 _ACEOF
52790 cat confdefs.h >>conftest.$ac_ext
52791 cat >>conftest.$ac_ext <<_ACEOF
52792 /* end confdefs.h.  */
52793 $ac_includes_default
52794 int
52795 main ()
52796 {
52797 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52798 test_array [0] = 0
52799
52800   ;
52801   return 0;
52802 }
52803 _ACEOF
52804 rm -f conftest.$ac_objext
52805 if { (ac_try="$ac_compile"
52806 case "(($ac_try" in
52807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52808   *) ac_try_echo=$ac_try;;
52809 esac
52810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52811 $as_echo "$ac_try_echo") >&5
52812   (eval "$ac_compile") 2>conftest.er1
52813   ac_status=$?
52814   grep -v '^ *+' conftest.er1 >conftest.err
52815   rm -f conftest.er1
52816   cat conftest.err >&5
52817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52818   (exit $ac_status); } && {
52819          test -z "$ac_c_werror_flag" ||
52820          test ! -s conftest.err
52821        } && test -s conftest.$ac_objext; then
52822   ac_hi=$ac_mid; break
52823 else
52824   $as_echo "$as_me: failed program was:" >&5
52825 sed 's/^/| /' conftest.$ac_ext >&5
52826
52827         ac_lo=`expr $ac_mid + 1`
52828                         if test $ac_lo -le $ac_mid; then
52829                           ac_lo= ac_hi=
52830                           break
52831                         fi
52832                         ac_mid=`expr 2 '*' $ac_mid + 1`
52833 fi
52834
52835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52836   done
52837 else
52838   $as_echo "$as_me: failed program was:" >&5
52839 sed 's/^/| /' conftest.$ac_ext >&5
52840
52841         cat >conftest.$ac_ext <<_ACEOF
52842 /* confdefs.h.  */
52843 _ACEOF
52844 cat confdefs.h >>conftest.$ac_ext
52845 cat >>conftest.$ac_ext <<_ACEOF
52846 /* end confdefs.h.  */
52847 $ac_includes_default
52848 int
52849 main ()
52850 {
52851 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
52852 test_array [0] = 0
52853
52854   ;
52855   return 0;
52856 }
52857 _ACEOF
52858 rm -f conftest.$ac_objext
52859 if { (ac_try="$ac_compile"
52860 case "(($ac_try" in
52861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52862   *) ac_try_echo=$ac_try;;
52863 esac
52864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52865 $as_echo "$ac_try_echo") >&5
52866   (eval "$ac_compile") 2>conftest.er1
52867   ac_status=$?
52868   grep -v '^ *+' conftest.er1 >conftest.err
52869   rm -f conftest.er1
52870   cat conftest.err >&5
52871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52872   (exit $ac_status); } && {
52873          test -z "$ac_c_werror_flag" ||
52874          test ! -s conftest.err
52875        } && test -s conftest.$ac_objext; then
52876   ac_hi=-1 ac_mid=-1
52877   while :; do
52878     cat >conftest.$ac_ext <<_ACEOF
52879 /* confdefs.h.  */
52880 _ACEOF
52881 cat confdefs.h >>conftest.$ac_ext
52882 cat >>conftest.$ac_ext <<_ACEOF
52883 /* end confdefs.h.  */
52884 $ac_includes_default
52885 int
52886 main ()
52887 {
52888 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
52889 test_array [0] = 0
52890
52891   ;
52892   return 0;
52893 }
52894 _ACEOF
52895 rm -f conftest.$ac_objext
52896 if { (ac_try="$ac_compile"
52897 case "(($ac_try" in
52898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52899   *) ac_try_echo=$ac_try;;
52900 esac
52901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52902 $as_echo "$ac_try_echo") >&5
52903   (eval "$ac_compile") 2>conftest.er1
52904   ac_status=$?
52905   grep -v '^ *+' conftest.er1 >conftest.err
52906   rm -f conftest.er1
52907   cat conftest.err >&5
52908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52909   (exit $ac_status); } && {
52910          test -z "$ac_c_werror_flag" ||
52911          test ! -s conftest.err
52912        } && test -s conftest.$ac_objext; then
52913   ac_lo=$ac_mid; break
52914 else
52915   $as_echo "$as_me: failed program was:" >&5
52916 sed 's/^/| /' conftest.$ac_ext >&5
52917
52918         ac_hi=`expr '(' $ac_mid ')' - 1`
52919                         if test $ac_mid -le $ac_hi; then
52920                           ac_lo= ac_hi=
52921                           break
52922                         fi
52923                         ac_mid=`expr 2 '*' $ac_mid`
52924 fi
52925
52926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52927   done
52928 else
52929   $as_echo "$as_me: failed program was:" >&5
52930 sed 's/^/| /' conftest.$ac_ext >&5
52931
52932         ac_lo= ac_hi=
52933 fi
52934
52935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52936 fi
52937
52938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52939 # Binary search between lo and hi bounds.
52940 while test "x$ac_lo" != "x$ac_hi"; do
52941   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52942   cat >conftest.$ac_ext <<_ACEOF
52943 /* confdefs.h.  */
52944 _ACEOF
52945 cat confdefs.h >>conftest.$ac_ext
52946 cat >>conftest.$ac_ext <<_ACEOF
52947 /* end confdefs.h.  */
52948 $ac_includes_default
52949 int
52950 main ()
52951 {
52952 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
52953 test_array [0] = 0
52954
52955   ;
52956   return 0;
52957 }
52958 _ACEOF
52959 rm -f conftest.$ac_objext
52960 if { (ac_try="$ac_compile"
52961 case "(($ac_try" in
52962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52963   *) ac_try_echo=$ac_try;;
52964 esac
52965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52966 $as_echo "$ac_try_echo") >&5
52967   (eval "$ac_compile") 2>conftest.er1
52968   ac_status=$?
52969   grep -v '^ *+' conftest.er1 >conftest.err
52970   rm -f conftest.er1
52971   cat conftest.err >&5
52972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52973   (exit $ac_status); } && {
52974          test -z "$ac_c_werror_flag" ||
52975          test ! -s conftest.err
52976        } && test -s conftest.$ac_objext; then
52977   ac_hi=$ac_mid
52978 else
52979   $as_echo "$as_me: failed program was:" >&5
52980 sed 's/^/| /' conftest.$ac_ext >&5
52981
52982         ac_lo=`expr '(' $ac_mid ')' + 1`
52983 fi
52984
52985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52986 done
52987 case $ac_lo in
52988 ?*) ac_cv_sizeof_long_long=$ac_lo;;
52989 '') if test "$ac_cv_type_long_long" = yes; then
52990      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
52991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
52992 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
52993 See \`config.log' for more details." >&5
52994 $as_echo "$as_me: error: cannot compute sizeof (long long)
52995 See \`config.log' for more details." >&2;}
52996    { (exit 77); exit 77; }; }; }
52997    else
52998      ac_cv_sizeof_long_long=0
52999    fi ;;
53000 esac
53001 else
53002   cat >conftest.$ac_ext <<_ACEOF
53003 /* confdefs.h.  */
53004 _ACEOF
53005 cat confdefs.h >>conftest.$ac_ext
53006 cat >>conftest.$ac_ext <<_ACEOF
53007 /* end confdefs.h.  */
53008 $ac_includes_default
53009 static long int longval () { return (long int) (sizeof (long long)); }
53010 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
53011 #include <stdio.h>
53012 #include <stdlib.h>
53013 int
53014 main ()
53015 {
53016
53017   FILE *f = fopen ("conftest.val", "w");
53018   if (! f)
53019     return 1;
53020   if (((long int) (sizeof (long long))) < 0)
53021     {
53022       long int i = longval ();
53023       if (i != ((long int) (sizeof (long long))))
53024         return 1;
53025       fprintf (f, "%ld", i);
53026     }
53027   else
53028     {
53029       unsigned long int i = ulongval ();
53030       if (i != ((long int) (sizeof (long long))))
53031         return 1;
53032       fprintf (f, "%lu", i);
53033     }
53034   /* Do not output a trailing newline, as this causes \r\n confusion
53035      on some platforms.  */
53036   return ferror (f) || fclose (f) != 0;
53037
53038   ;
53039   return 0;
53040 }
53041 _ACEOF
53042 rm -f conftest$ac_exeext
53043 if { (ac_try="$ac_link"
53044 case "(($ac_try" in
53045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53046   *) ac_try_echo=$ac_try;;
53047 esac
53048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53049 $as_echo "$ac_try_echo") >&5
53050   (eval "$ac_link") 2>&5
53051   ac_status=$?
53052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53054   { (case "(($ac_try" in
53055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53056   *) ac_try_echo=$ac_try;;
53057 esac
53058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53059 $as_echo "$ac_try_echo") >&5
53060   (eval "$ac_try") 2>&5
53061   ac_status=$?
53062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53063   (exit $ac_status); }; }; then
53064   ac_cv_sizeof_long_long=`cat conftest.val`
53065 else
53066   $as_echo "$as_me: program exited with status $ac_status" >&5
53067 $as_echo "$as_me: failed program was:" >&5
53068 sed 's/^/| /' conftest.$ac_ext >&5
53069
53070 ( exit $ac_status )
53071 if test "$ac_cv_type_long_long" = yes; then
53072      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53074 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
53075 See \`config.log' for more details." >&5
53076 $as_echo "$as_me: error: cannot compute sizeof (long long)
53077 See \`config.log' for more details." >&2;}
53078    { (exit 77); exit 77; }; }; }
53079    else
53080      ac_cv_sizeof_long_long=0
53081    fi
53082 fi
53083 rm -rf conftest.dSYM
53084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53085 fi
53086 rm -f conftest.val
53087 fi
53088 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
53089 $as_echo "$ac_cv_sizeof_long_long" >&6; }
53090
53091
53092
53093 cat >>confdefs.h <<_ACEOF
53094 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
53095 _ACEOF
53096
53097
53098 # The cast to long int works around a bug in the HP C Compiler
53099 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53100 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53101 # This bug is HP SR number 8606223364.
53102 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
53103 $as_echo_n "checking size of intmax_t... " >&6; }
53104 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
53105   $as_echo_n "(cached) " >&6
53106 else
53107   if test "$cross_compiling" = yes; then
53108   # Depending upon the size, compute the lo and hi bounds.
53109 cat >conftest.$ac_ext <<_ACEOF
53110 /* confdefs.h.  */
53111 _ACEOF
53112 cat confdefs.h >>conftest.$ac_ext
53113 cat >>conftest.$ac_ext <<_ACEOF
53114 /* end confdefs.h.  */
53115 $ac_includes_default
53116 int
53117 main ()
53118 {
53119 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
53120 test_array [0] = 0
53121
53122   ;
53123   return 0;
53124 }
53125 _ACEOF
53126 rm -f conftest.$ac_objext
53127 if { (ac_try="$ac_compile"
53128 case "(($ac_try" in
53129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53130   *) ac_try_echo=$ac_try;;
53131 esac
53132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53133 $as_echo "$ac_try_echo") >&5
53134   (eval "$ac_compile") 2>conftest.er1
53135   ac_status=$?
53136   grep -v '^ *+' conftest.er1 >conftest.err
53137   rm -f conftest.er1
53138   cat conftest.err >&5
53139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53140   (exit $ac_status); } && {
53141          test -z "$ac_c_werror_flag" ||
53142          test ! -s conftest.err
53143        } && test -s conftest.$ac_objext; then
53144   ac_lo=0 ac_mid=0
53145   while :; do
53146     cat >conftest.$ac_ext <<_ACEOF
53147 /* confdefs.h.  */
53148 _ACEOF
53149 cat confdefs.h >>conftest.$ac_ext
53150 cat >>conftest.$ac_ext <<_ACEOF
53151 /* end confdefs.h.  */
53152 $ac_includes_default
53153 int
53154 main ()
53155 {
53156 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
53157 test_array [0] = 0
53158
53159   ;
53160   return 0;
53161 }
53162 _ACEOF
53163 rm -f conftest.$ac_objext
53164 if { (ac_try="$ac_compile"
53165 case "(($ac_try" in
53166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53167   *) ac_try_echo=$ac_try;;
53168 esac
53169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53170 $as_echo "$ac_try_echo") >&5
53171   (eval "$ac_compile") 2>conftest.er1
53172   ac_status=$?
53173   grep -v '^ *+' conftest.er1 >conftest.err
53174   rm -f conftest.er1
53175   cat conftest.err >&5
53176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53177   (exit $ac_status); } && {
53178          test -z "$ac_c_werror_flag" ||
53179          test ! -s conftest.err
53180        } && test -s conftest.$ac_objext; then
53181   ac_hi=$ac_mid; break
53182 else
53183   $as_echo "$as_me: failed program was:" >&5
53184 sed 's/^/| /' conftest.$ac_ext >&5
53185
53186         ac_lo=`expr $ac_mid + 1`
53187                         if test $ac_lo -le $ac_mid; then
53188                           ac_lo= ac_hi=
53189                           break
53190                         fi
53191                         ac_mid=`expr 2 '*' $ac_mid + 1`
53192 fi
53193
53194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53195   done
53196 else
53197   $as_echo "$as_me: failed program was:" >&5
53198 sed 's/^/| /' conftest.$ac_ext >&5
53199
53200         cat >conftest.$ac_ext <<_ACEOF
53201 /* confdefs.h.  */
53202 _ACEOF
53203 cat confdefs.h >>conftest.$ac_ext
53204 cat >>conftest.$ac_ext <<_ACEOF
53205 /* end confdefs.h.  */
53206 $ac_includes_default
53207 int
53208 main ()
53209 {
53210 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
53211 test_array [0] = 0
53212
53213   ;
53214   return 0;
53215 }
53216 _ACEOF
53217 rm -f conftest.$ac_objext
53218 if { (ac_try="$ac_compile"
53219 case "(($ac_try" in
53220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53221   *) ac_try_echo=$ac_try;;
53222 esac
53223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53224 $as_echo "$ac_try_echo") >&5
53225   (eval "$ac_compile") 2>conftest.er1
53226   ac_status=$?
53227   grep -v '^ *+' conftest.er1 >conftest.err
53228   rm -f conftest.er1
53229   cat conftest.err >&5
53230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53231   (exit $ac_status); } && {
53232          test -z "$ac_c_werror_flag" ||
53233          test ! -s conftest.err
53234        } && test -s conftest.$ac_objext; then
53235   ac_hi=-1 ac_mid=-1
53236   while :; do
53237     cat >conftest.$ac_ext <<_ACEOF
53238 /* confdefs.h.  */
53239 _ACEOF
53240 cat confdefs.h >>conftest.$ac_ext
53241 cat >>conftest.$ac_ext <<_ACEOF
53242 /* end confdefs.h.  */
53243 $ac_includes_default
53244 int
53245 main ()
53246 {
53247 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
53248 test_array [0] = 0
53249
53250   ;
53251   return 0;
53252 }
53253 _ACEOF
53254 rm -f conftest.$ac_objext
53255 if { (ac_try="$ac_compile"
53256 case "(($ac_try" in
53257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53258   *) ac_try_echo=$ac_try;;
53259 esac
53260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53261 $as_echo "$ac_try_echo") >&5
53262   (eval "$ac_compile") 2>conftest.er1
53263   ac_status=$?
53264   grep -v '^ *+' conftest.er1 >conftest.err
53265   rm -f conftest.er1
53266   cat conftest.err >&5
53267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53268   (exit $ac_status); } && {
53269          test -z "$ac_c_werror_flag" ||
53270          test ! -s conftest.err
53271        } && test -s conftest.$ac_objext; then
53272   ac_lo=$ac_mid; break
53273 else
53274   $as_echo "$as_me: failed program was:" >&5
53275 sed 's/^/| /' conftest.$ac_ext >&5
53276
53277         ac_hi=`expr '(' $ac_mid ')' - 1`
53278                         if test $ac_mid -le $ac_hi; then
53279                           ac_lo= ac_hi=
53280                           break
53281                         fi
53282                         ac_mid=`expr 2 '*' $ac_mid`
53283 fi
53284
53285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53286   done
53287 else
53288   $as_echo "$as_me: failed program was:" >&5
53289 sed 's/^/| /' conftest.$ac_ext >&5
53290
53291         ac_lo= ac_hi=
53292 fi
53293
53294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53295 fi
53296
53297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53298 # Binary search between lo and hi bounds.
53299 while test "x$ac_lo" != "x$ac_hi"; do
53300   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53301   cat >conftest.$ac_ext <<_ACEOF
53302 /* confdefs.h.  */
53303 _ACEOF
53304 cat confdefs.h >>conftest.$ac_ext
53305 cat >>conftest.$ac_ext <<_ACEOF
53306 /* end confdefs.h.  */
53307 $ac_includes_default
53308 int
53309 main ()
53310 {
53311 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
53312 test_array [0] = 0
53313
53314   ;
53315   return 0;
53316 }
53317 _ACEOF
53318 rm -f conftest.$ac_objext
53319 if { (ac_try="$ac_compile"
53320 case "(($ac_try" in
53321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53322   *) ac_try_echo=$ac_try;;
53323 esac
53324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53325 $as_echo "$ac_try_echo") >&5
53326   (eval "$ac_compile") 2>conftest.er1
53327   ac_status=$?
53328   grep -v '^ *+' conftest.er1 >conftest.err
53329   rm -f conftest.er1
53330   cat conftest.err >&5
53331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53332   (exit $ac_status); } && {
53333          test -z "$ac_c_werror_flag" ||
53334          test ! -s conftest.err
53335        } && test -s conftest.$ac_objext; then
53336   ac_hi=$ac_mid
53337 else
53338   $as_echo "$as_me: failed program was:" >&5
53339 sed 's/^/| /' conftest.$ac_ext >&5
53340
53341         ac_lo=`expr '(' $ac_mid ')' + 1`
53342 fi
53343
53344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53345 done
53346 case $ac_lo in
53347 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
53348 '') if test "$ac_cv_type_intmax_t" = yes; then
53349      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53351 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
53352 See \`config.log' for more details." >&5
53353 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
53354 See \`config.log' for more details." >&2;}
53355    { (exit 77); exit 77; }; }; }
53356    else
53357      ac_cv_sizeof_intmax_t=0
53358    fi ;;
53359 esac
53360 else
53361   cat >conftest.$ac_ext <<_ACEOF
53362 /* confdefs.h.  */
53363 _ACEOF
53364 cat confdefs.h >>conftest.$ac_ext
53365 cat >>conftest.$ac_ext <<_ACEOF
53366 /* end confdefs.h.  */
53367 $ac_includes_default
53368 static long int longval () { return (long int) (sizeof (intmax_t)); }
53369 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
53370 #include <stdio.h>
53371 #include <stdlib.h>
53372 int
53373 main ()
53374 {
53375
53376   FILE *f = fopen ("conftest.val", "w");
53377   if (! f)
53378     return 1;
53379   if (((long int) (sizeof (intmax_t))) < 0)
53380     {
53381       long int i = longval ();
53382       if (i != ((long int) (sizeof (intmax_t))))
53383         return 1;
53384       fprintf (f, "%ld", i);
53385     }
53386   else
53387     {
53388       unsigned long int i = ulongval ();
53389       if (i != ((long int) (sizeof (intmax_t))))
53390         return 1;
53391       fprintf (f, "%lu", i);
53392     }
53393   /* Do not output a trailing newline, as this causes \r\n confusion
53394      on some platforms.  */
53395   return ferror (f) || fclose (f) != 0;
53396
53397   ;
53398   return 0;
53399 }
53400 _ACEOF
53401 rm -f conftest$ac_exeext
53402 if { (ac_try="$ac_link"
53403 case "(($ac_try" in
53404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53405   *) ac_try_echo=$ac_try;;
53406 esac
53407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53408 $as_echo "$ac_try_echo") >&5
53409   (eval "$ac_link") 2>&5
53410   ac_status=$?
53411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53413   { (case "(($ac_try" in
53414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53415   *) ac_try_echo=$ac_try;;
53416 esac
53417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53418 $as_echo "$ac_try_echo") >&5
53419   (eval "$ac_try") 2>&5
53420   ac_status=$?
53421   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53422   (exit $ac_status); }; }; then
53423   ac_cv_sizeof_intmax_t=`cat conftest.val`
53424 else
53425   $as_echo "$as_me: program exited with status $ac_status" >&5
53426 $as_echo "$as_me: failed program was:" >&5
53427 sed 's/^/| /' conftest.$ac_ext >&5
53428
53429 ( exit $ac_status )
53430 if test "$ac_cv_type_intmax_t" = yes; then
53431      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53433 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
53434 See \`config.log' for more details." >&5
53435 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
53436 See \`config.log' for more details." >&2;}
53437    { (exit 77); exit 77; }; }; }
53438    else
53439      ac_cv_sizeof_intmax_t=0
53440    fi
53441 fi
53442 rm -rf conftest.dSYM
53443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53444 fi
53445 rm -f conftest.val
53446 fi
53447 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
53448 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
53449
53450
53451
53452 cat >>confdefs.h <<_ACEOF
53453 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
53454 _ACEOF
53455
53456
53457 # The cast to long int works around a bug in the HP C Compiler
53458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53460 # This bug is HP SR number 8606223364.
53461 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
53462 $as_echo_n "checking size of off_t... " >&6; }
53463 if test "${ac_cv_sizeof_off_t+set}" = set; then
53464   $as_echo_n "(cached) " >&6
53465 else
53466   if test "$cross_compiling" = yes; then
53467   # Depending upon the size, compute the lo and hi bounds.
53468 cat >conftest.$ac_ext <<_ACEOF
53469 /* confdefs.h.  */
53470 _ACEOF
53471 cat confdefs.h >>conftest.$ac_ext
53472 cat >>conftest.$ac_ext <<_ACEOF
53473 /* end confdefs.h.  */
53474 $ac_includes_default
53475 int
53476 main ()
53477 {
53478 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
53479 test_array [0] = 0
53480
53481   ;
53482   return 0;
53483 }
53484 _ACEOF
53485 rm -f conftest.$ac_objext
53486 if { (ac_try="$ac_compile"
53487 case "(($ac_try" in
53488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53489   *) ac_try_echo=$ac_try;;
53490 esac
53491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53492 $as_echo "$ac_try_echo") >&5
53493   (eval "$ac_compile") 2>conftest.er1
53494   ac_status=$?
53495   grep -v '^ *+' conftest.er1 >conftest.err
53496   rm -f conftest.er1
53497   cat conftest.err >&5
53498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53499   (exit $ac_status); } && {
53500          test -z "$ac_c_werror_flag" ||
53501          test ! -s conftest.err
53502        } && test -s conftest.$ac_objext; then
53503   ac_lo=0 ac_mid=0
53504   while :; do
53505     cat >conftest.$ac_ext <<_ACEOF
53506 /* confdefs.h.  */
53507 _ACEOF
53508 cat confdefs.h >>conftest.$ac_ext
53509 cat >>conftest.$ac_ext <<_ACEOF
53510 /* end confdefs.h.  */
53511 $ac_includes_default
53512 int
53513 main ()
53514 {
53515 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53516 test_array [0] = 0
53517
53518   ;
53519   return 0;
53520 }
53521 _ACEOF
53522 rm -f conftest.$ac_objext
53523 if { (ac_try="$ac_compile"
53524 case "(($ac_try" in
53525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53526   *) ac_try_echo=$ac_try;;
53527 esac
53528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53529 $as_echo "$ac_try_echo") >&5
53530   (eval "$ac_compile") 2>conftest.er1
53531   ac_status=$?
53532   grep -v '^ *+' conftest.er1 >conftest.err
53533   rm -f conftest.er1
53534   cat conftest.err >&5
53535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53536   (exit $ac_status); } && {
53537          test -z "$ac_c_werror_flag" ||
53538          test ! -s conftest.err
53539        } && test -s conftest.$ac_objext; then
53540   ac_hi=$ac_mid; break
53541 else
53542   $as_echo "$as_me: failed program was:" >&5
53543 sed 's/^/| /' conftest.$ac_ext >&5
53544
53545         ac_lo=`expr $ac_mid + 1`
53546                         if test $ac_lo -le $ac_mid; then
53547                           ac_lo= ac_hi=
53548                           break
53549                         fi
53550                         ac_mid=`expr 2 '*' $ac_mid + 1`
53551 fi
53552
53553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53554   done
53555 else
53556   $as_echo "$as_me: failed program was:" >&5
53557 sed 's/^/| /' conftest.$ac_ext >&5
53558
53559         cat >conftest.$ac_ext <<_ACEOF
53560 /* confdefs.h.  */
53561 _ACEOF
53562 cat confdefs.h >>conftest.$ac_ext
53563 cat >>conftest.$ac_ext <<_ACEOF
53564 /* end confdefs.h.  */
53565 $ac_includes_default
53566 int
53567 main ()
53568 {
53569 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
53570 test_array [0] = 0
53571
53572   ;
53573   return 0;
53574 }
53575 _ACEOF
53576 rm -f conftest.$ac_objext
53577 if { (ac_try="$ac_compile"
53578 case "(($ac_try" in
53579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53580   *) ac_try_echo=$ac_try;;
53581 esac
53582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53583 $as_echo "$ac_try_echo") >&5
53584   (eval "$ac_compile") 2>conftest.er1
53585   ac_status=$?
53586   grep -v '^ *+' conftest.er1 >conftest.err
53587   rm -f conftest.er1
53588   cat conftest.err >&5
53589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53590   (exit $ac_status); } && {
53591          test -z "$ac_c_werror_flag" ||
53592          test ! -s conftest.err
53593        } && test -s conftest.$ac_objext; then
53594   ac_hi=-1 ac_mid=-1
53595   while :; do
53596     cat >conftest.$ac_ext <<_ACEOF
53597 /* confdefs.h.  */
53598 _ACEOF
53599 cat confdefs.h >>conftest.$ac_ext
53600 cat >>conftest.$ac_ext <<_ACEOF
53601 /* end confdefs.h.  */
53602 $ac_includes_default
53603 int
53604 main ()
53605 {
53606 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
53607 test_array [0] = 0
53608
53609   ;
53610   return 0;
53611 }
53612 _ACEOF
53613 rm -f conftest.$ac_objext
53614 if { (ac_try="$ac_compile"
53615 case "(($ac_try" in
53616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53617   *) ac_try_echo=$ac_try;;
53618 esac
53619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53620 $as_echo "$ac_try_echo") >&5
53621   (eval "$ac_compile") 2>conftest.er1
53622   ac_status=$?
53623   grep -v '^ *+' conftest.er1 >conftest.err
53624   rm -f conftest.er1
53625   cat conftest.err >&5
53626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53627   (exit $ac_status); } && {
53628          test -z "$ac_c_werror_flag" ||
53629          test ! -s conftest.err
53630        } && test -s conftest.$ac_objext; then
53631   ac_lo=$ac_mid; break
53632 else
53633   $as_echo "$as_me: failed program was:" >&5
53634 sed 's/^/| /' conftest.$ac_ext >&5
53635
53636         ac_hi=`expr '(' $ac_mid ')' - 1`
53637                         if test $ac_mid -le $ac_hi; then
53638                           ac_lo= ac_hi=
53639                           break
53640                         fi
53641                         ac_mid=`expr 2 '*' $ac_mid`
53642 fi
53643
53644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53645   done
53646 else
53647   $as_echo "$as_me: failed program was:" >&5
53648 sed 's/^/| /' conftest.$ac_ext >&5
53649
53650         ac_lo= ac_hi=
53651 fi
53652
53653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53654 fi
53655
53656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53657 # Binary search between lo and hi bounds.
53658 while test "x$ac_lo" != "x$ac_hi"; do
53659   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53660   cat >conftest.$ac_ext <<_ACEOF
53661 /* confdefs.h.  */
53662 _ACEOF
53663 cat confdefs.h >>conftest.$ac_ext
53664 cat >>conftest.$ac_ext <<_ACEOF
53665 /* end confdefs.h.  */
53666 $ac_includes_default
53667 int
53668 main ()
53669 {
53670 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
53671 test_array [0] = 0
53672
53673   ;
53674   return 0;
53675 }
53676 _ACEOF
53677 rm -f conftest.$ac_objext
53678 if { (ac_try="$ac_compile"
53679 case "(($ac_try" in
53680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53681   *) ac_try_echo=$ac_try;;
53682 esac
53683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53684 $as_echo "$ac_try_echo") >&5
53685   (eval "$ac_compile") 2>conftest.er1
53686   ac_status=$?
53687   grep -v '^ *+' conftest.er1 >conftest.err
53688   rm -f conftest.er1
53689   cat conftest.err >&5
53690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53691   (exit $ac_status); } && {
53692          test -z "$ac_c_werror_flag" ||
53693          test ! -s conftest.err
53694        } && test -s conftest.$ac_objext; then
53695   ac_hi=$ac_mid
53696 else
53697   $as_echo "$as_me: failed program was:" >&5
53698 sed 's/^/| /' conftest.$ac_ext >&5
53699
53700         ac_lo=`expr '(' $ac_mid ')' + 1`
53701 fi
53702
53703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53704 done
53705 case $ac_lo in
53706 ?*) ac_cv_sizeof_off_t=$ac_lo;;
53707 '') if test "$ac_cv_type_off_t" = yes; then
53708      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53710 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53711 See \`config.log' for more details." >&5
53712 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53713 See \`config.log' for more details." >&2;}
53714    { (exit 77); exit 77; }; }; }
53715    else
53716      ac_cv_sizeof_off_t=0
53717    fi ;;
53718 esac
53719 else
53720   cat >conftest.$ac_ext <<_ACEOF
53721 /* confdefs.h.  */
53722 _ACEOF
53723 cat confdefs.h >>conftest.$ac_ext
53724 cat >>conftest.$ac_ext <<_ACEOF
53725 /* end confdefs.h.  */
53726 $ac_includes_default
53727 static long int longval () { return (long int) (sizeof (off_t)); }
53728 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
53729 #include <stdio.h>
53730 #include <stdlib.h>
53731 int
53732 main ()
53733 {
53734
53735   FILE *f = fopen ("conftest.val", "w");
53736   if (! f)
53737     return 1;
53738   if (((long int) (sizeof (off_t))) < 0)
53739     {
53740       long int i = longval ();
53741       if (i != ((long int) (sizeof (off_t))))
53742         return 1;
53743       fprintf (f, "%ld", i);
53744     }
53745   else
53746     {
53747       unsigned long int i = ulongval ();
53748       if (i != ((long int) (sizeof (off_t))))
53749         return 1;
53750       fprintf (f, "%lu", i);
53751     }
53752   /* Do not output a trailing newline, as this causes \r\n confusion
53753      on some platforms.  */
53754   return ferror (f) || fclose (f) != 0;
53755
53756   ;
53757   return 0;
53758 }
53759 _ACEOF
53760 rm -f conftest$ac_exeext
53761 if { (ac_try="$ac_link"
53762 case "(($ac_try" in
53763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53764   *) ac_try_echo=$ac_try;;
53765 esac
53766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53767 $as_echo "$ac_try_echo") >&5
53768   (eval "$ac_link") 2>&5
53769   ac_status=$?
53770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53772   { (case "(($ac_try" in
53773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53774   *) ac_try_echo=$ac_try;;
53775 esac
53776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53777 $as_echo "$ac_try_echo") >&5
53778   (eval "$ac_try") 2>&5
53779   ac_status=$?
53780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53781   (exit $ac_status); }; }; then
53782   ac_cv_sizeof_off_t=`cat conftest.val`
53783 else
53784   $as_echo "$as_me: program exited with status $ac_status" >&5
53785 $as_echo "$as_me: failed program was:" >&5
53786 sed 's/^/| /' conftest.$ac_ext >&5
53787
53788 ( exit $ac_status )
53789 if test "$ac_cv_type_off_t" = yes; then
53790      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53792 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
53793 See \`config.log' for more details." >&5
53794 $as_echo "$as_me: error: cannot compute sizeof (off_t)
53795 See \`config.log' for more details." >&2;}
53796    { (exit 77); exit 77; }; }; }
53797    else
53798      ac_cv_sizeof_off_t=0
53799    fi
53800 fi
53801 rm -rf conftest.dSYM
53802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53803 fi
53804 rm -f conftest.val
53805 fi
53806 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
53807 $as_echo "$ac_cv_sizeof_off_t" >&6; }
53808
53809
53810
53811 cat >>confdefs.h <<_ACEOF
53812 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
53813 _ACEOF
53814
53815
53816 # The cast to long int works around a bug in the HP C Compiler
53817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53819 # This bug is HP SR number 8606223364.
53820 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
53821 $as_echo_n "checking size of size_t... " >&6; }
53822 if test "${ac_cv_sizeof_size_t+set}" = set; then
53823   $as_echo_n "(cached) " >&6
53824 else
53825   if test "$cross_compiling" = yes; then
53826   # Depending upon the size, compute the lo and hi bounds.
53827 cat >conftest.$ac_ext <<_ACEOF
53828 /* confdefs.h.  */
53829 _ACEOF
53830 cat confdefs.h >>conftest.$ac_ext
53831 cat >>conftest.$ac_ext <<_ACEOF
53832 /* end confdefs.h.  */
53833 $ac_includes_default
53834 int
53835 main ()
53836 {
53837 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
53838 test_array [0] = 0
53839
53840   ;
53841   return 0;
53842 }
53843 _ACEOF
53844 rm -f conftest.$ac_objext
53845 if { (ac_try="$ac_compile"
53846 case "(($ac_try" in
53847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53848   *) ac_try_echo=$ac_try;;
53849 esac
53850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53851 $as_echo "$ac_try_echo") >&5
53852   (eval "$ac_compile") 2>conftest.er1
53853   ac_status=$?
53854   grep -v '^ *+' conftest.er1 >conftest.err
53855   rm -f conftest.er1
53856   cat conftest.err >&5
53857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53858   (exit $ac_status); } && {
53859          test -z "$ac_c_werror_flag" ||
53860          test ! -s conftest.err
53861        } && test -s conftest.$ac_objext; then
53862   ac_lo=0 ac_mid=0
53863   while :; do
53864     cat >conftest.$ac_ext <<_ACEOF
53865 /* confdefs.h.  */
53866 _ACEOF
53867 cat confdefs.h >>conftest.$ac_ext
53868 cat >>conftest.$ac_ext <<_ACEOF
53869 /* end confdefs.h.  */
53870 $ac_includes_default
53871 int
53872 main ()
53873 {
53874 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
53875 test_array [0] = 0
53876
53877   ;
53878   return 0;
53879 }
53880 _ACEOF
53881 rm -f conftest.$ac_objext
53882 if { (ac_try="$ac_compile"
53883 case "(($ac_try" in
53884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53885   *) ac_try_echo=$ac_try;;
53886 esac
53887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53888 $as_echo "$ac_try_echo") >&5
53889   (eval "$ac_compile") 2>conftest.er1
53890   ac_status=$?
53891   grep -v '^ *+' conftest.er1 >conftest.err
53892   rm -f conftest.er1
53893   cat conftest.err >&5
53894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53895   (exit $ac_status); } && {
53896          test -z "$ac_c_werror_flag" ||
53897          test ! -s conftest.err
53898        } && test -s conftest.$ac_objext; then
53899   ac_hi=$ac_mid; break
53900 else
53901   $as_echo "$as_me: failed program was:" >&5
53902 sed 's/^/| /' conftest.$ac_ext >&5
53903
53904         ac_lo=`expr $ac_mid + 1`
53905                         if test $ac_lo -le $ac_mid; then
53906                           ac_lo= ac_hi=
53907                           break
53908                         fi
53909                         ac_mid=`expr 2 '*' $ac_mid + 1`
53910 fi
53911
53912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53913   done
53914 else
53915   $as_echo "$as_me: failed program was:" >&5
53916 sed 's/^/| /' conftest.$ac_ext >&5
53917
53918         cat >conftest.$ac_ext <<_ACEOF
53919 /* confdefs.h.  */
53920 _ACEOF
53921 cat confdefs.h >>conftest.$ac_ext
53922 cat >>conftest.$ac_ext <<_ACEOF
53923 /* end confdefs.h.  */
53924 $ac_includes_default
53925 int
53926 main ()
53927 {
53928 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
53929 test_array [0] = 0
53930
53931   ;
53932   return 0;
53933 }
53934 _ACEOF
53935 rm -f conftest.$ac_objext
53936 if { (ac_try="$ac_compile"
53937 case "(($ac_try" in
53938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53939   *) ac_try_echo=$ac_try;;
53940 esac
53941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53942 $as_echo "$ac_try_echo") >&5
53943   (eval "$ac_compile") 2>conftest.er1
53944   ac_status=$?
53945   grep -v '^ *+' conftest.er1 >conftest.err
53946   rm -f conftest.er1
53947   cat conftest.err >&5
53948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53949   (exit $ac_status); } && {
53950          test -z "$ac_c_werror_flag" ||
53951          test ! -s conftest.err
53952        } && test -s conftest.$ac_objext; then
53953   ac_hi=-1 ac_mid=-1
53954   while :; do
53955     cat >conftest.$ac_ext <<_ACEOF
53956 /* confdefs.h.  */
53957 _ACEOF
53958 cat confdefs.h >>conftest.$ac_ext
53959 cat >>conftest.$ac_ext <<_ACEOF
53960 /* end confdefs.h.  */
53961 $ac_includes_default
53962 int
53963 main ()
53964 {
53965 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
53966 test_array [0] = 0
53967
53968   ;
53969   return 0;
53970 }
53971 _ACEOF
53972 rm -f conftest.$ac_objext
53973 if { (ac_try="$ac_compile"
53974 case "(($ac_try" in
53975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53976   *) ac_try_echo=$ac_try;;
53977 esac
53978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53979 $as_echo "$ac_try_echo") >&5
53980   (eval "$ac_compile") 2>conftest.er1
53981   ac_status=$?
53982   grep -v '^ *+' conftest.er1 >conftest.err
53983   rm -f conftest.er1
53984   cat conftest.err >&5
53985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53986   (exit $ac_status); } && {
53987          test -z "$ac_c_werror_flag" ||
53988          test ! -s conftest.err
53989        } && test -s conftest.$ac_objext; then
53990   ac_lo=$ac_mid; break
53991 else
53992   $as_echo "$as_me: failed program was:" >&5
53993 sed 's/^/| /' conftest.$ac_ext >&5
53994
53995         ac_hi=`expr '(' $ac_mid ')' - 1`
53996                         if test $ac_mid -le $ac_hi; then
53997                           ac_lo= ac_hi=
53998                           break
53999                         fi
54000                         ac_mid=`expr 2 '*' $ac_mid`
54001 fi
54002
54003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54004   done
54005 else
54006   $as_echo "$as_me: failed program was:" >&5
54007 sed 's/^/| /' conftest.$ac_ext >&5
54008
54009         ac_lo= ac_hi=
54010 fi
54011
54012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54013 fi
54014
54015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54016 # Binary search between lo and hi bounds.
54017 while test "x$ac_lo" != "x$ac_hi"; do
54018   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54019   cat >conftest.$ac_ext <<_ACEOF
54020 /* confdefs.h.  */
54021 _ACEOF
54022 cat confdefs.h >>conftest.$ac_ext
54023 cat >>conftest.$ac_ext <<_ACEOF
54024 /* end confdefs.h.  */
54025 $ac_includes_default
54026 int
54027 main ()
54028 {
54029 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
54030 test_array [0] = 0
54031
54032   ;
54033   return 0;
54034 }
54035 _ACEOF
54036 rm -f conftest.$ac_objext
54037 if { (ac_try="$ac_compile"
54038 case "(($ac_try" in
54039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54040   *) ac_try_echo=$ac_try;;
54041 esac
54042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54043 $as_echo "$ac_try_echo") >&5
54044   (eval "$ac_compile") 2>conftest.er1
54045   ac_status=$?
54046   grep -v '^ *+' conftest.er1 >conftest.err
54047   rm -f conftest.er1
54048   cat conftest.err >&5
54049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54050   (exit $ac_status); } && {
54051          test -z "$ac_c_werror_flag" ||
54052          test ! -s conftest.err
54053        } && test -s conftest.$ac_objext; then
54054   ac_hi=$ac_mid
54055 else
54056   $as_echo "$as_me: failed program was:" >&5
54057 sed 's/^/| /' conftest.$ac_ext >&5
54058
54059         ac_lo=`expr '(' $ac_mid ')' + 1`
54060 fi
54061
54062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54063 done
54064 case $ac_lo in
54065 ?*) ac_cv_sizeof_size_t=$ac_lo;;
54066 '') if test "$ac_cv_type_size_t" = yes; then
54067      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54069 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
54070 See \`config.log' for more details." >&5
54071 $as_echo "$as_me: error: cannot compute sizeof (size_t)
54072 See \`config.log' for more details." >&2;}
54073    { (exit 77); exit 77; }; }; }
54074    else
54075      ac_cv_sizeof_size_t=0
54076    fi ;;
54077 esac
54078 else
54079   cat >conftest.$ac_ext <<_ACEOF
54080 /* confdefs.h.  */
54081 _ACEOF
54082 cat confdefs.h >>conftest.$ac_ext
54083 cat >>conftest.$ac_ext <<_ACEOF
54084 /* end confdefs.h.  */
54085 $ac_includes_default
54086 static long int longval () { return (long int) (sizeof (size_t)); }
54087 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
54088 #include <stdio.h>
54089 #include <stdlib.h>
54090 int
54091 main ()
54092 {
54093
54094   FILE *f = fopen ("conftest.val", "w");
54095   if (! f)
54096     return 1;
54097   if (((long int) (sizeof (size_t))) < 0)
54098     {
54099       long int i = longval ();
54100       if (i != ((long int) (sizeof (size_t))))
54101         return 1;
54102       fprintf (f, "%ld", i);
54103     }
54104   else
54105     {
54106       unsigned long int i = ulongval ();
54107       if (i != ((long int) (sizeof (size_t))))
54108         return 1;
54109       fprintf (f, "%lu", i);
54110     }
54111   /* Do not output a trailing newline, as this causes \r\n confusion
54112      on some platforms.  */
54113   return ferror (f) || fclose (f) != 0;
54114
54115   ;
54116   return 0;
54117 }
54118 _ACEOF
54119 rm -f conftest$ac_exeext
54120 if { (ac_try="$ac_link"
54121 case "(($ac_try" in
54122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54123   *) ac_try_echo=$ac_try;;
54124 esac
54125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54126 $as_echo "$ac_try_echo") >&5
54127   (eval "$ac_link") 2>&5
54128   ac_status=$?
54129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54131   { (case "(($ac_try" in
54132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54133   *) ac_try_echo=$ac_try;;
54134 esac
54135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54136 $as_echo "$ac_try_echo") >&5
54137   (eval "$ac_try") 2>&5
54138   ac_status=$?
54139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54140   (exit $ac_status); }; }; then
54141   ac_cv_sizeof_size_t=`cat conftest.val`
54142 else
54143   $as_echo "$as_me: program exited with status $ac_status" >&5
54144 $as_echo "$as_me: failed program was:" >&5
54145 sed 's/^/| /' conftest.$ac_ext >&5
54146
54147 ( exit $ac_status )
54148 if test "$ac_cv_type_size_t" = yes; then
54149      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54151 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
54152 See \`config.log' for more details." >&5
54153 $as_echo "$as_me: error: cannot compute sizeof (size_t)
54154 See \`config.log' for more details." >&2;}
54155    { (exit 77); exit 77; }; }; }
54156    else
54157      ac_cv_sizeof_size_t=0
54158    fi
54159 fi
54160 rm -rf conftest.dSYM
54161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54162 fi
54163 rm -f conftest.val
54164 fi
54165 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
54166 $as_echo "$ac_cv_sizeof_size_t" >&6; }
54167
54168
54169
54170 cat >>confdefs.h <<_ACEOF
54171 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
54172 _ACEOF
54173
54174
54175 # The cast to long int works around a bug in the HP C Compiler
54176 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54177 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54178 # This bug is HP SR number 8606223364.
54179 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
54180 $as_echo_n "checking size of ssize_t... " >&6; }
54181 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
54182   $as_echo_n "(cached) " >&6
54183 else
54184   if test "$cross_compiling" = yes; then
54185   # Depending upon the size, compute the lo and hi bounds.
54186 cat >conftest.$ac_ext <<_ACEOF
54187 /* confdefs.h.  */
54188 _ACEOF
54189 cat confdefs.h >>conftest.$ac_ext
54190 cat >>conftest.$ac_ext <<_ACEOF
54191 /* end confdefs.h.  */
54192 $ac_includes_default
54193 int
54194 main ()
54195 {
54196 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
54197 test_array [0] = 0
54198
54199   ;
54200   return 0;
54201 }
54202 _ACEOF
54203 rm -f conftest.$ac_objext
54204 if { (ac_try="$ac_compile"
54205 case "(($ac_try" in
54206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54207   *) ac_try_echo=$ac_try;;
54208 esac
54209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54210 $as_echo "$ac_try_echo") >&5
54211   (eval "$ac_compile") 2>conftest.er1
54212   ac_status=$?
54213   grep -v '^ *+' conftest.er1 >conftest.err
54214   rm -f conftest.er1
54215   cat conftest.err >&5
54216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54217   (exit $ac_status); } && {
54218          test -z "$ac_c_werror_flag" ||
54219          test ! -s conftest.err
54220        } && test -s conftest.$ac_objext; then
54221   ac_lo=0 ac_mid=0
54222   while :; do
54223     cat >conftest.$ac_ext <<_ACEOF
54224 /* confdefs.h.  */
54225 _ACEOF
54226 cat confdefs.h >>conftest.$ac_ext
54227 cat >>conftest.$ac_ext <<_ACEOF
54228 /* end confdefs.h.  */
54229 $ac_includes_default
54230 int
54231 main ()
54232 {
54233 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
54234 test_array [0] = 0
54235
54236   ;
54237   return 0;
54238 }
54239 _ACEOF
54240 rm -f conftest.$ac_objext
54241 if { (ac_try="$ac_compile"
54242 case "(($ac_try" in
54243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54244   *) ac_try_echo=$ac_try;;
54245 esac
54246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54247 $as_echo "$ac_try_echo") >&5
54248   (eval "$ac_compile") 2>conftest.er1
54249   ac_status=$?
54250   grep -v '^ *+' conftest.er1 >conftest.err
54251   rm -f conftest.er1
54252   cat conftest.err >&5
54253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54254   (exit $ac_status); } && {
54255          test -z "$ac_c_werror_flag" ||
54256          test ! -s conftest.err
54257        } && test -s conftest.$ac_objext; then
54258   ac_hi=$ac_mid; break
54259 else
54260   $as_echo "$as_me: failed program was:" >&5
54261 sed 's/^/| /' conftest.$ac_ext >&5
54262
54263         ac_lo=`expr $ac_mid + 1`
54264                         if test $ac_lo -le $ac_mid; then
54265                           ac_lo= ac_hi=
54266                           break
54267                         fi
54268                         ac_mid=`expr 2 '*' $ac_mid + 1`
54269 fi
54270
54271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54272   done
54273 else
54274   $as_echo "$as_me: failed program was:" >&5
54275 sed 's/^/| /' conftest.$ac_ext >&5
54276
54277         cat >conftest.$ac_ext <<_ACEOF
54278 /* confdefs.h.  */
54279 _ACEOF
54280 cat confdefs.h >>conftest.$ac_ext
54281 cat >>conftest.$ac_ext <<_ACEOF
54282 /* end confdefs.h.  */
54283 $ac_includes_default
54284 int
54285 main ()
54286 {
54287 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
54288 test_array [0] = 0
54289
54290   ;
54291   return 0;
54292 }
54293 _ACEOF
54294 rm -f conftest.$ac_objext
54295 if { (ac_try="$ac_compile"
54296 case "(($ac_try" in
54297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54298   *) ac_try_echo=$ac_try;;
54299 esac
54300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54301 $as_echo "$ac_try_echo") >&5
54302   (eval "$ac_compile") 2>conftest.er1
54303   ac_status=$?
54304   grep -v '^ *+' conftest.er1 >conftest.err
54305   rm -f conftest.er1
54306   cat conftest.err >&5
54307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54308   (exit $ac_status); } && {
54309          test -z "$ac_c_werror_flag" ||
54310          test ! -s conftest.err
54311        } && test -s conftest.$ac_objext; then
54312   ac_hi=-1 ac_mid=-1
54313   while :; do
54314     cat >conftest.$ac_ext <<_ACEOF
54315 /* confdefs.h.  */
54316 _ACEOF
54317 cat confdefs.h >>conftest.$ac_ext
54318 cat >>conftest.$ac_ext <<_ACEOF
54319 /* end confdefs.h.  */
54320 $ac_includes_default
54321 int
54322 main ()
54323 {
54324 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
54325 test_array [0] = 0
54326
54327   ;
54328   return 0;
54329 }
54330 _ACEOF
54331 rm -f conftest.$ac_objext
54332 if { (ac_try="$ac_compile"
54333 case "(($ac_try" in
54334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54335   *) ac_try_echo=$ac_try;;
54336 esac
54337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54338 $as_echo "$ac_try_echo") >&5
54339   (eval "$ac_compile") 2>conftest.er1
54340   ac_status=$?
54341   grep -v '^ *+' conftest.er1 >conftest.err
54342   rm -f conftest.er1
54343   cat conftest.err >&5
54344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54345   (exit $ac_status); } && {
54346          test -z "$ac_c_werror_flag" ||
54347          test ! -s conftest.err
54348        } && test -s conftest.$ac_objext; then
54349   ac_lo=$ac_mid; break
54350 else
54351   $as_echo "$as_me: failed program was:" >&5
54352 sed 's/^/| /' conftest.$ac_ext >&5
54353
54354         ac_hi=`expr '(' $ac_mid ')' - 1`
54355                         if test $ac_mid -le $ac_hi; then
54356                           ac_lo= ac_hi=
54357                           break
54358                         fi
54359                         ac_mid=`expr 2 '*' $ac_mid`
54360 fi
54361
54362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54363   done
54364 else
54365   $as_echo "$as_me: failed program was:" >&5
54366 sed 's/^/| /' conftest.$ac_ext >&5
54367
54368         ac_lo= ac_hi=
54369 fi
54370
54371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54372 fi
54373
54374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54375 # Binary search between lo and hi bounds.
54376 while test "x$ac_lo" != "x$ac_hi"; do
54377   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54378   cat >conftest.$ac_ext <<_ACEOF
54379 /* confdefs.h.  */
54380 _ACEOF
54381 cat confdefs.h >>conftest.$ac_ext
54382 cat >>conftest.$ac_ext <<_ACEOF
54383 /* end confdefs.h.  */
54384 $ac_includes_default
54385 int
54386 main ()
54387 {
54388 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
54389 test_array [0] = 0
54390
54391   ;
54392   return 0;
54393 }
54394 _ACEOF
54395 rm -f conftest.$ac_objext
54396 if { (ac_try="$ac_compile"
54397 case "(($ac_try" in
54398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54399   *) ac_try_echo=$ac_try;;
54400 esac
54401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54402 $as_echo "$ac_try_echo") >&5
54403   (eval "$ac_compile") 2>conftest.er1
54404   ac_status=$?
54405   grep -v '^ *+' conftest.er1 >conftest.err
54406   rm -f conftest.er1
54407   cat conftest.err >&5
54408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54409   (exit $ac_status); } && {
54410          test -z "$ac_c_werror_flag" ||
54411          test ! -s conftest.err
54412        } && test -s conftest.$ac_objext; then
54413   ac_hi=$ac_mid
54414 else
54415   $as_echo "$as_me: failed program was:" >&5
54416 sed 's/^/| /' conftest.$ac_ext >&5
54417
54418         ac_lo=`expr '(' $ac_mid ')' + 1`
54419 fi
54420
54421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54422 done
54423 case $ac_lo in
54424 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
54425 '') if test "$ac_cv_type_ssize_t" = yes; then
54426      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54428 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54429 See \`config.log' for more details." >&5
54430 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54431 See \`config.log' for more details." >&2;}
54432    { (exit 77); exit 77; }; }; }
54433    else
54434      ac_cv_sizeof_ssize_t=0
54435    fi ;;
54436 esac
54437 else
54438   cat >conftest.$ac_ext <<_ACEOF
54439 /* confdefs.h.  */
54440 _ACEOF
54441 cat confdefs.h >>conftest.$ac_ext
54442 cat >>conftest.$ac_ext <<_ACEOF
54443 /* end confdefs.h.  */
54444 $ac_includes_default
54445 static long int longval () { return (long int) (sizeof (ssize_t)); }
54446 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
54447 #include <stdio.h>
54448 #include <stdlib.h>
54449 int
54450 main ()
54451 {
54452
54453   FILE *f = fopen ("conftest.val", "w");
54454   if (! f)
54455     return 1;
54456   if (((long int) (sizeof (ssize_t))) < 0)
54457     {
54458       long int i = longval ();
54459       if (i != ((long int) (sizeof (ssize_t))))
54460         return 1;
54461       fprintf (f, "%ld", i);
54462     }
54463   else
54464     {
54465       unsigned long int i = ulongval ();
54466       if (i != ((long int) (sizeof (ssize_t))))
54467         return 1;
54468       fprintf (f, "%lu", i);
54469     }
54470   /* Do not output a trailing newline, as this causes \r\n confusion
54471      on some platforms.  */
54472   return ferror (f) || fclose (f) != 0;
54473
54474   ;
54475   return 0;
54476 }
54477 _ACEOF
54478 rm -f conftest$ac_exeext
54479 if { (ac_try="$ac_link"
54480 case "(($ac_try" in
54481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54482   *) ac_try_echo=$ac_try;;
54483 esac
54484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54485 $as_echo "$ac_try_echo") >&5
54486   (eval "$ac_link") 2>&5
54487   ac_status=$?
54488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54490   { (case "(($ac_try" in
54491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54492   *) ac_try_echo=$ac_try;;
54493 esac
54494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54495 $as_echo "$ac_try_echo") >&5
54496   (eval "$ac_try") 2>&5
54497   ac_status=$?
54498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54499   (exit $ac_status); }; }; then
54500   ac_cv_sizeof_ssize_t=`cat conftest.val`
54501 else
54502   $as_echo "$as_me: program exited with status $ac_status" >&5
54503 $as_echo "$as_me: failed program was:" >&5
54504 sed 's/^/| /' conftest.$ac_ext >&5
54505
54506 ( exit $ac_status )
54507 if test "$ac_cv_type_ssize_t" = yes; then
54508      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54510 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
54511 See \`config.log' for more details." >&5
54512 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
54513 See \`config.log' for more details." >&2;}
54514    { (exit 77); exit 77; }; }; }
54515    else
54516      ac_cv_sizeof_ssize_t=0
54517    fi
54518 fi
54519 rm -rf conftest.dSYM
54520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54521 fi
54522 rm -f conftest.val
54523 fi
54524 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
54525 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
54526
54527
54528
54529 cat >>confdefs.h <<_ACEOF
54530 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
54531 _ACEOF
54532
54533
54534 # The cast to long int works around a bug in the HP C Compiler
54535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54537 # This bug is HP SR number 8606223364.
54538 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
54539 $as_echo_n "checking size of time_t... " >&6; }
54540 if test "${ac_cv_sizeof_time_t+set}" = set; then
54541   $as_echo_n "(cached) " >&6
54542 else
54543   if test "$cross_compiling" = yes; then
54544   # Depending upon the size, compute the lo and hi bounds.
54545 cat >conftest.$ac_ext <<_ACEOF
54546 /* confdefs.h.  */
54547 _ACEOF
54548 cat confdefs.h >>conftest.$ac_ext
54549 cat >>conftest.$ac_ext <<_ACEOF
54550 /* end confdefs.h.  */
54551 $ac_includes_default
54552 int
54553 main ()
54554 {
54555 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
54556 test_array [0] = 0
54557
54558   ;
54559   return 0;
54560 }
54561 _ACEOF
54562 rm -f conftest.$ac_objext
54563 if { (ac_try="$ac_compile"
54564 case "(($ac_try" in
54565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54566   *) ac_try_echo=$ac_try;;
54567 esac
54568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54569 $as_echo "$ac_try_echo") >&5
54570   (eval "$ac_compile") 2>conftest.er1
54571   ac_status=$?
54572   grep -v '^ *+' conftest.er1 >conftest.err
54573   rm -f conftest.er1
54574   cat conftest.err >&5
54575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54576   (exit $ac_status); } && {
54577          test -z "$ac_c_werror_flag" ||
54578          test ! -s conftest.err
54579        } && test -s conftest.$ac_objext; then
54580   ac_lo=0 ac_mid=0
54581   while :; do
54582     cat >conftest.$ac_ext <<_ACEOF
54583 /* confdefs.h.  */
54584 _ACEOF
54585 cat confdefs.h >>conftest.$ac_ext
54586 cat >>conftest.$ac_ext <<_ACEOF
54587 /* end confdefs.h.  */
54588 $ac_includes_default
54589 int
54590 main ()
54591 {
54592 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54593 test_array [0] = 0
54594
54595   ;
54596   return 0;
54597 }
54598 _ACEOF
54599 rm -f conftest.$ac_objext
54600 if { (ac_try="$ac_compile"
54601 case "(($ac_try" in
54602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54603   *) ac_try_echo=$ac_try;;
54604 esac
54605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54606 $as_echo "$ac_try_echo") >&5
54607   (eval "$ac_compile") 2>conftest.er1
54608   ac_status=$?
54609   grep -v '^ *+' conftest.er1 >conftest.err
54610   rm -f conftest.er1
54611   cat conftest.err >&5
54612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54613   (exit $ac_status); } && {
54614          test -z "$ac_c_werror_flag" ||
54615          test ! -s conftest.err
54616        } && test -s conftest.$ac_objext; then
54617   ac_hi=$ac_mid; break
54618 else
54619   $as_echo "$as_me: failed program was:" >&5
54620 sed 's/^/| /' conftest.$ac_ext >&5
54621
54622         ac_lo=`expr $ac_mid + 1`
54623                         if test $ac_lo -le $ac_mid; then
54624                           ac_lo= ac_hi=
54625                           break
54626                         fi
54627                         ac_mid=`expr 2 '*' $ac_mid + 1`
54628 fi
54629
54630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54631   done
54632 else
54633   $as_echo "$as_me: failed program was:" >&5
54634 sed 's/^/| /' conftest.$ac_ext >&5
54635
54636         cat >conftest.$ac_ext <<_ACEOF
54637 /* confdefs.h.  */
54638 _ACEOF
54639 cat confdefs.h >>conftest.$ac_ext
54640 cat >>conftest.$ac_ext <<_ACEOF
54641 /* end confdefs.h.  */
54642 $ac_includes_default
54643 int
54644 main ()
54645 {
54646 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
54647 test_array [0] = 0
54648
54649   ;
54650   return 0;
54651 }
54652 _ACEOF
54653 rm -f conftest.$ac_objext
54654 if { (ac_try="$ac_compile"
54655 case "(($ac_try" in
54656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54657   *) ac_try_echo=$ac_try;;
54658 esac
54659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54660 $as_echo "$ac_try_echo") >&5
54661   (eval "$ac_compile") 2>conftest.er1
54662   ac_status=$?
54663   grep -v '^ *+' conftest.er1 >conftest.err
54664   rm -f conftest.er1
54665   cat conftest.err >&5
54666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54667   (exit $ac_status); } && {
54668          test -z "$ac_c_werror_flag" ||
54669          test ! -s conftest.err
54670        } && test -s conftest.$ac_objext; then
54671   ac_hi=-1 ac_mid=-1
54672   while :; do
54673     cat >conftest.$ac_ext <<_ACEOF
54674 /* confdefs.h.  */
54675 _ACEOF
54676 cat confdefs.h >>conftest.$ac_ext
54677 cat >>conftest.$ac_ext <<_ACEOF
54678 /* end confdefs.h.  */
54679 $ac_includes_default
54680 int
54681 main ()
54682 {
54683 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
54684 test_array [0] = 0
54685
54686   ;
54687   return 0;
54688 }
54689 _ACEOF
54690 rm -f conftest.$ac_objext
54691 if { (ac_try="$ac_compile"
54692 case "(($ac_try" in
54693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54694   *) ac_try_echo=$ac_try;;
54695 esac
54696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54697 $as_echo "$ac_try_echo") >&5
54698   (eval "$ac_compile") 2>conftest.er1
54699   ac_status=$?
54700   grep -v '^ *+' conftest.er1 >conftest.err
54701   rm -f conftest.er1
54702   cat conftest.err >&5
54703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54704   (exit $ac_status); } && {
54705          test -z "$ac_c_werror_flag" ||
54706          test ! -s conftest.err
54707        } && test -s conftest.$ac_objext; then
54708   ac_lo=$ac_mid; break
54709 else
54710   $as_echo "$as_me: failed program was:" >&5
54711 sed 's/^/| /' conftest.$ac_ext >&5
54712
54713         ac_hi=`expr '(' $ac_mid ')' - 1`
54714                         if test $ac_mid -le $ac_hi; then
54715                           ac_lo= ac_hi=
54716                           break
54717                         fi
54718                         ac_mid=`expr 2 '*' $ac_mid`
54719 fi
54720
54721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54722   done
54723 else
54724   $as_echo "$as_me: failed program was:" >&5
54725 sed 's/^/| /' conftest.$ac_ext >&5
54726
54727         ac_lo= ac_hi=
54728 fi
54729
54730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54731 fi
54732
54733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54734 # Binary search between lo and hi bounds.
54735 while test "x$ac_lo" != "x$ac_hi"; do
54736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54737   cat >conftest.$ac_ext <<_ACEOF
54738 /* confdefs.h.  */
54739 _ACEOF
54740 cat confdefs.h >>conftest.$ac_ext
54741 cat >>conftest.$ac_ext <<_ACEOF
54742 /* end confdefs.h.  */
54743 $ac_includes_default
54744 int
54745 main ()
54746 {
54747 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
54748 test_array [0] = 0
54749
54750   ;
54751   return 0;
54752 }
54753 _ACEOF
54754 rm -f conftest.$ac_objext
54755 if { (ac_try="$ac_compile"
54756 case "(($ac_try" in
54757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54758   *) ac_try_echo=$ac_try;;
54759 esac
54760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54761 $as_echo "$ac_try_echo") >&5
54762   (eval "$ac_compile") 2>conftest.er1
54763   ac_status=$?
54764   grep -v '^ *+' conftest.er1 >conftest.err
54765   rm -f conftest.er1
54766   cat conftest.err >&5
54767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54768   (exit $ac_status); } && {
54769          test -z "$ac_c_werror_flag" ||
54770          test ! -s conftest.err
54771        } && test -s conftest.$ac_objext; then
54772   ac_hi=$ac_mid
54773 else
54774   $as_echo "$as_me: failed program was:" >&5
54775 sed 's/^/| /' conftest.$ac_ext >&5
54776
54777         ac_lo=`expr '(' $ac_mid ')' + 1`
54778 fi
54779
54780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54781 done
54782 case $ac_lo in
54783 ?*) ac_cv_sizeof_time_t=$ac_lo;;
54784 '') if test "$ac_cv_type_time_t" = yes; then
54785      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54787 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54788 See \`config.log' for more details." >&5
54789 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54790 See \`config.log' for more details." >&2;}
54791    { (exit 77); exit 77; }; }; }
54792    else
54793      ac_cv_sizeof_time_t=0
54794    fi ;;
54795 esac
54796 else
54797   cat >conftest.$ac_ext <<_ACEOF
54798 /* confdefs.h.  */
54799 _ACEOF
54800 cat confdefs.h >>conftest.$ac_ext
54801 cat >>conftest.$ac_ext <<_ACEOF
54802 /* end confdefs.h.  */
54803 $ac_includes_default
54804 static long int longval () { return (long int) (sizeof (time_t)); }
54805 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
54806 #include <stdio.h>
54807 #include <stdlib.h>
54808 int
54809 main ()
54810 {
54811
54812   FILE *f = fopen ("conftest.val", "w");
54813   if (! f)
54814     return 1;
54815   if (((long int) (sizeof (time_t))) < 0)
54816     {
54817       long int i = longval ();
54818       if (i != ((long int) (sizeof (time_t))))
54819         return 1;
54820       fprintf (f, "%ld", i);
54821     }
54822   else
54823     {
54824       unsigned long int i = ulongval ();
54825       if (i != ((long int) (sizeof (time_t))))
54826         return 1;
54827       fprintf (f, "%lu", i);
54828     }
54829   /* Do not output a trailing newline, as this causes \r\n confusion
54830      on some platforms.  */
54831   return ferror (f) || fclose (f) != 0;
54832
54833   ;
54834   return 0;
54835 }
54836 _ACEOF
54837 rm -f conftest$ac_exeext
54838 if { (ac_try="$ac_link"
54839 case "(($ac_try" in
54840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54841   *) ac_try_echo=$ac_try;;
54842 esac
54843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54844 $as_echo "$ac_try_echo") >&5
54845   (eval "$ac_link") 2>&5
54846   ac_status=$?
54847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54849   { (case "(($ac_try" in
54850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54851   *) ac_try_echo=$ac_try;;
54852 esac
54853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54854 $as_echo "$ac_try_echo") >&5
54855   (eval "$ac_try") 2>&5
54856   ac_status=$?
54857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54858   (exit $ac_status); }; }; then
54859   ac_cv_sizeof_time_t=`cat conftest.val`
54860 else
54861   $as_echo "$as_me: program exited with status $ac_status" >&5
54862 $as_echo "$as_me: failed program was:" >&5
54863 sed 's/^/| /' conftest.$ac_ext >&5
54864
54865 ( exit $ac_status )
54866 if test "$ac_cv_type_time_t" = yes; then
54867      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54869 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
54870 See \`config.log' for more details." >&5
54871 $as_echo "$as_me: error: cannot compute sizeof (time_t)
54872 See \`config.log' for more details." >&2;}
54873    { (exit 77); exit 77; }; }; }
54874    else
54875      ac_cv_sizeof_time_t=0
54876    fi
54877 fi
54878 rm -rf conftest.dSYM
54879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54880 fi
54881 rm -f conftest.val
54882 fi
54883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
54884 $as_echo "$ac_cv_sizeof_time_t" >&6; }
54885
54886
54887
54888 cat >>confdefs.h <<_ACEOF
54889 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
54890 _ACEOF
54891
54892
54893 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
54894 $as_echo_n "checking for off_t... " >&6; }
54895 if test "${ac_cv_type_off_t+set}" = set; then
54896   $as_echo_n "(cached) " >&6
54897 else
54898   ac_cv_type_off_t=no
54899 cat >conftest.$ac_ext <<_ACEOF
54900 /* confdefs.h.  */
54901 _ACEOF
54902 cat confdefs.h >>conftest.$ac_ext
54903 cat >>conftest.$ac_ext <<_ACEOF
54904 /* end confdefs.h.  */
54905 $ac_includes_default
54906 int
54907 main ()
54908 {
54909 if (sizeof (off_t))
54910        return 0;
54911   ;
54912   return 0;
54913 }
54914 _ACEOF
54915 rm -f conftest.$ac_objext
54916 if { (ac_try="$ac_compile"
54917 case "(($ac_try" in
54918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54919   *) ac_try_echo=$ac_try;;
54920 esac
54921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54922 $as_echo "$ac_try_echo") >&5
54923   (eval "$ac_compile") 2>conftest.er1
54924   ac_status=$?
54925   grep -v '^ *+' conftest.er1 >conftest.err
54926   rm -f conftest.er1
54927   cat conftest.err >&5
54928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54929   (exit $ac_status); } && {
54930          test -z "$ac_c_werror_flag" ||
54931          test ! -s conftest.err
54932        } && test -s conftest.$ac_objext; then
54933   cat >conftest.$ac_ext <<_ACEOF
54934 /* confdefs.h.  */
54935 _ACEOF
54936 cat confdefs.h >>conftest.$ac_ext
54937 cat >>conftest.$ac_ext <<_ACEOF
54938 /* end confdefs.h.  */
54939 $ac_includes_default
54940 int
54941 main ()
54942 {
54943 if (sizeof ((off_t)))
54944           return 0;
54945   ;
54946   return 0;
54947 }
54948 _ACEOF
54949 rm -f conftest.$ac_objext
54950 if { (ac_try="$ac_compile"
54951 case "(($ac_try" in
54952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54953   *) ac_try_echo=$ac_try;;
54954 esac
54955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54956 $as_echo "$ac_try_echo") >&5
54957   (eval "$ac_compile") 2>conftest.er1
54958   ac_status=$?
54959   grep -v '^ *+' conftest.er1 >conftest.err
54960   rm -f conftest.er1
54961   cat conftest.err >&5
54962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54963   (exit $ac_status); } && {
54964          test -z "$ac_c_werror_flag" ||
54965          test ! -s conftest.err
54966        } && test -s conftest.$ac_objext; then
54967   :
54968 else
54969   $as_echo "$as_me: failed program was:" >&5
54970 sed 's/^/| /' conftest.$ac_ext >&5
54971
54972         ac_cv_type_off_t=yes
54973 fi
54974
54975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54976 else
54977   $as_echo "$as_me: failed program was:" >&5
54978 sed 's/^/| /' conftest.$ac_ext >&5
54979
54980
54981 fi
54982
54983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54984 fi
54985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
54986 $as_echo "$ac_cv_type_off_t" >&6; }
54987 if test "x$ac_cv_type_off_t" = x""yes; then
54988   :
54989 else
54990
54991 cat >>confdefs.h <<_ACEOF
54992 #define off_t long int
54993 _ACEOF
54994
54995 fi
54996
54997 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
54998 $as_echo_n "checking for pid_t... " >&6; }
54999 if test "${ac_cv_type_pid_t+set}" = set; then
55000   $as_echo_n "(cached) " >&6
55001 else
55002   ac_cv_type_pid_t=no
55003 cat >conftest.$ac_ext <<_ACEOF
55004 /* confdefs.h.  */
55005 _ACEOF
55006 cat confdefs.h >>conftest.$ac_ext
55007 cat >>conftest.$ac_ext <<_ACEOF
55008 /* end confdefs.h.  */
55009 $ac_includes_default
55010 int
55011 main ()
55012 {
55013 if (sizeof (pid_t))
55014        return 0;
55015   ;
55016   return 0;
55017 }
55018 _ACEOF
55019 rm -f conftest.$ac_objext
55020 if { (ac_try="$ac_compile"
55021 case "(($ac_try" in
55022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55023   *) ac_try_echo=$ac_try;;
55024 esac
55025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55026 $as_echo "$ac_try_echo") >&5
55027   (eval "$ac_compile") 2>conftest.er1
55028   ac_status=$?
55029   grep -v '^ *+' conftest.er1 >conftest.err
55030   rm -f conftest.er1
55031   cat conftest.err >&5
55032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55033   (exit $ac_status); } && {
55034          test -z "$ac_c_werror_flag" ||
55035          test ! -s conftest.err
55036        } && test -s conftest.$ac_objext; then
55037   cat >conftest.$ac_ext <<_ACEOF
55038 /* confdefs.h.  */
55039 _ACEOF
55040 cat confdefs.h >>conftest.$ac_ext
55041 cat >>conftest.$ac_ext <<_ACEOF
55042 /* end confdefs.h.  */
55043 $ac_includes_default
55044 int
55045 main ()
55046 {
55047 if (sizeof ((pid_t)))
55048           return 0;
55049   ;
55050   return 0;
55051 }
55052 _ACEOF
55053 rm -f conftest.$ac_objext
55054 if { (ac_try="$ac_compile"
55055 case "(($ac_try" in
55056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55057   *) ac_try_echo=$ac_try;;
55058 esac
55059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55060 $as_echo "$ac_try_echo") >&5
55061   (eval "$ac_compile") 2>conftest.er1
55062   ac_status=$?
55063   grep -v '^ *+' conftest.er1 >conftest.err
55064   rm -f conftest.er1
55065   cat conftest.err >&5
55066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55067   (exit $ac_status); } && {
55068          test -z "$ac_c_werror_flag" ||
55069          test ! -s conftest.err
55070        } && test -s conftest.$ac_objext; then
55071   :
55072 else
55073   $as_echo "$as_me: failed program was:" >&5
55074 sed 's/^/| /' conftest.$ac_ext >&5
55075
55076         ac_cv_type_pid_t=yes
55077 fi
55078
55079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55080 else
55081   $as_echo "$as_me: failed program was:" >&5
55082 sed 's/^/| /' conftest.$ac_ext >&5
55083
55084
55085 fi
55086
55087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55088 fi
55089 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
55090 $as_echo "$ac_cv_type_pid_t" >&6; }
55091 if test "x$ac_cv_type_pid_t" = x""yes; then
55092   :
55093 else
55094
55095 cat >>confdefs.h <<_ACEOF
55096 #define pid_t int
55097 _ACEOF
55098
55099 fi
55100
55101 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
55102 $as_echo_n "checking for size_t... " >&6; }
55103 if test "${ac_cv_type_size_t+set}" = set; then
55104   $as_echo_n "(cached) " >&6
55105 else
55106   ac_cv_type_size_t=no
55107 cat >conftest.$ac_ext <<_ACEOF
55108 /* confdefs.h.  */
55109 _ACEOF
55110 cat confdefs.h >>conftest.$ac_ext
55111 cat >>conftest.$ac_ext <<_ACEOF
55112 /* end confdefs.h.  */
55113 $ac_includes_default
55114 int
55115 main ()
55116 {
55117 if (sizeof (size_t))
55118        return 0;
55119   ;
55120   return 0;
55121 }
55122 _ACEOF
55123 rm -f conftest.$ac_objext
55124 if { (ac_try="$ac_compile"
55125 case "(($ac_try" in
55126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55127   *) ac_try_echo=$ac_try;;
55128 esac
55129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55130 $as_echo "$ac_try_echo") >&5
55131   (eval "$ac_compile") 2>conftest.er1
55132   ac_status=$?
55133   grep -v '^ *+' conftest.er1 >conftest.err
55134   rm -f conftest.er1
55135   cat conftest.err >&5
55136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55137   (exit $ac_status); } && {
55138          test -z "$ac_c_werror_flag" ||
55139          test ! -s conftest.err
55140        } && test -s conftest.$ac_objext; then
55141   cat >conftest.$ac_ext <<_ACEOF
55142 /* confdefs.h.  */
55143 _ACEOF
55144 cat confdefs.h >>conftest.$ac_ext
55145 cat >>conftest.$ac_ext <<_ACEOF
55146 /* end confdefs.h.  */
55147 $ac_includes_default
55148 int
55149 main ()
55150 {
55151 if (sizeof ((size_t)))
55152           return 0;
55153   ;
55154   return 0;
55155 }
55156 _ACEOF
55157 rm -f conftest.$ac_objext
55158 if { (ac_try="$ac_compile"
55159 case "(($ac_try" in
55160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55161   *) ac_try_echo=$ac_try;;
55162 esac
55163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55164 $as_echo "$ac_try_echo") >&5
55165   (eval "$ac_compile") 2>conftest.er1
55166   ac_status=$?
55167   grep -v '^ *+' conftest.er1 >conftest.err
55168   rm -f conftest.er1
55169   cat conftest.err >&5
55170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55171   (exit $ac_status); } && {
55172          test -z "$ac_c_werror_flag" ||
55173          test ! -s conftest.err
55174        } && test -s conftest.$ac_objext; then
55175   :
55176 else
55177   $as_echo "$as_me: failed program was:" >&5
55178 sed 's/^/| /' conftest.$ac_ext >&5
55179
55180         ac_cv_type_size_t=yes
55181 fi
55182
55183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55184 else
55185   $as_echo "$as_me: failed program was:" >&5
55186 sed 's/^/| /' conftest.$ac_ext >&5
55187
55188
55189 fi
55190
55191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55192 fi
55193 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
55194 $as_echo "$ac_cv_type_size_t" >&6; }
55195 if test "x$ac_cv_type_size_t" = x""yes; then
55196   :
55197 else
55198
55199 cat >>confdefs.h <<_ACEOF
55200 #define size_t unsigned int
55201 _ACEOF
55202
55203 fi
55204
55205 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
55206 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
55207 if test "${ac_cv_type_uid_t+set}" = set; then
55208   $as_echo_n "(cached) " >&6
55209 else
55210   cat >conftest.$ac_ext <<_ACEOF
55211 /* confdefs.h.  */
55212 _ACEOF
55213 cat confdefs.h >>conftest.$ac_ext
55214 cat >>conftest.$ac_ext <<_ACEOF
55215 /* end confdefs.h.  */
55216 #include <sys/types.h>
55217
55218 _ACEOF
55219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55220   $EGREP "uid_t" >/dev/null 2>&1; then
55221   ac_cv_type_uid_t=yes
55222 else
55223   ac_cv_type_uid_t=no
55224 fi
55225 rm -f conftest*
55226
55227 fi
55228 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
55229 $as_echo "$ac_cv_type_uid_t" >&6; }
55230 if test $ac_cv_type_uid_t = no; then
55231
55232 cat >>confdefs.h <<\_ACEOF
55233 #define uid_t int
55234 _ACEOF
55235
55236
55237 cat >>confdefs.h <<\_ACEOF
55238 #define gid_t int
55239 _ACEOF
55240
55241 fi
55242
55243 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
55244 $as_echo_n "checking return type of signal handlers... " >&6; }
55245 if test "${ac_cv_type_signal+set}" = set; then
55246   $as_echo_n "(cached) " >&6
55247 else
55248   cat >conftest.$ac_ext <<_ACEOF
55249 /* confdefs.h.  */
55250 _ACEOF
55251 cat confdefs.h >>conftest.$ac_ext
55252 cat >>conftest.$ac_ext <<_ACEOF
55253 /* end confdefs.h.  */
55254 #include <sys/types.h>
55255 #include <signal.h>
55256
55257 int
55258 main ()
55259 {
55260 return *(signal (0, 0)) (0) == 1;
55261   ;
55262   return 0;
55263 }
55264 _ACEOF
55265 rm -f conftest.$ac_objext
55266 if { (ac_try="$ac_compile"
55267 case "(($ac_try" in
55268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55269   *) ac_try_echo=$ac_try;;
55270 esac
55271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55272 $as_echo "$ac_try_echo") >&5
55273   (eval "$ac_compile") 2>conftest.er1
55274   ac_status=$?
55275   grep -v '^ *+' conftest.er1 >conftest.err
55276   rm -f conftest.er1
55277   cat conftest.err >&5
55278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55279   (exit $ac_status); } && {
55280          test -z "$ac_c_werror_flag" ||
55281          test ! -s conftest.err
55282        } && test -s conftest.$ac_objext; then
55283   ac_cv_type_signal=int
55284 else
55285   $as_echo "$as_me: failed program was:" >&5
55286 sed 's/^/| /' conftest.$ac_ext >&5
55287
55288         ac_cv_type_signal=void
55289 fi
55290
55291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55292 fi
55293 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
55294 $as_echo "$ac_cv_type_signal" >&6; }
55295
55296 cat >>confdefs.h <<_ACEOF
55297 #define RETSIGTYPE $ac_cv_type_signal
55298 _ACEOF
55299
55300
55301 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
55302 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
55303 if test "${ac_cv_struct_tm+set}" = set; then
55304   $as_echo_n "(cached) " >&6
55305 else
55306   cat >conftest.$ac_ext <<_ACEOF
55307 /* confdefs.h.  */
55308 _ACEOF
55309 cat confdefs.h >>conftest.$ac_ext
55310 cat >>conftest.$ac_ext <<_ACEOF
55311 /* end confdefs.h.  */
55312 #include <sys/types.h>
55313 #include <time.h>
55314
55315 int
55316 main ()
55317 {
55318 struct tm tm;
55319                                      int *p = &tm.tm_sec;
55320                                      return !p;
55321   ;
55322   return 0;
55323 }
55324 _ACEOF
55325 rm -f conftest.$ac_objext
55326 if { (ac_try="$ac_compile"
55327 case "(($ac_try" in
55328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55329   *) ac_try_echo=$ac_try;;
55330 esac
55331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55332 $as_echo "$ac_try_echo") >&5
55333   (eval "$ac_compile") 2>conftest.er1
55334   ac_status=$?
55335   grep -v '^ *+' conftest.er1 >conftest.err
55336   rm -f conftest.er1
55337   cat conftest.err >&5
55338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55339   (exit $ac_status); } && {
55340          test -z "$ac_c_werror_flag" ||
55341          test ! -s conftest.err
55342        } && test -s conftest.$ac_objext; then
55343   ac_cv_struct_tm=time.h
55344 else
55345   $as_echo "$as_me: failed program was:" >&5
55346 sed 's/^/| /' conftest.$ac_ext >&5
55347
55348         ac_cv_struct_tm=sys/time.h
55349 fi
55350
55351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55352 fi
55353 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
55354 $as_echo "$ac_cv_struct_tm" >&6; }
55355 if test $ac_cv_struct_tm = sys/time.h; then
55356
55357 cat >>confdefs.h <<\_ACEOF
55358 #define TM_IN_SYS_TIME 1
55359 _ACEOF
55360
55361 fi
55362
55363
55364       ## lifted from config/gnulib/socklen.m4
55365             { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
55366 $as_echo_n "checking for socklen_t equivalent... " >&6; }
55367       if test "${gl_cv_socklen_t_equiv+set}" = set; then
55368   $as_echo_n "(cached) " >&6
55369 else
55370   # Systems have either "struct sockaddr *" or
55371          # "void *" as the second argument to getpeername
55372          gl_cv_socklen_t_equiv=
55373          for arg2 in "struct sockaddr" void; do
55374            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
55375              cat >conftest.$ac_ext <<_ACEOF
55376 /* confdefs.h.  */
55377 _ACEOF
55378 cat confdefs.h >>conftest.$ac_ext
55379 cat >>conftest.$ac_ext <<_ACEOF
55380 /* end confdefs.h.  */
55381 #include <sys/types.h>
55382                 #include <sys/socket.h>
55383
55384                 int getpeername (int, $arg2 *, $t *);
55385 int
55386 main ()
55387 {
55388 $t len;
55389                 getpeername (0, 0, &len);
55390   ;
55391   return 0;
55392 }
55393 _ACEOF
55394 rm -f conftest.$ac_objext
55395 if { (ac_try="$ac_compile"
55396 case "(($ac_try" in
55397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55398   *) ac_try_echo=$ac_try;;
55399 esac
55400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55401 $as_echo "$ac_try_echo") >&5
55402   (eval "$ac_compile") 2>conftest.er1
55403   ac_status=$?
55404   grep -v '^ *+' conftest.er1 >conftest.err
55405   rm -f conftest.er1
55406   cat conftest.err >&5
55407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55408   (exit $ac_status); } && {
55409          test -z "$ac_c_werror_flag" ||
55410          test ! -s conftest.err
55411        } && test -s conftest.$ac_objext; then
55412   gl_cv_socklen_t_equiv="$t"
55413 else
55414   $as_echo "$as_me: failed program was:" >&5
55415 sed 's/^/| /' conftest.$ac_ext >&5
55416
55417
55418 fi
55419
55420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55421              test "$gl_cv_socklen_t_equiv" != "" && break
55422            done
55423            test "$gl_cv_socklen_t_equiv" != "" && break
55424          done
55425
55426 fi
55427
55428       ## end lifting from config/gnulib/socklen.m4
55429       # fallback if the check fails
55430       if test "$gl_cv_socklen_t_equiv" = ""; then
55431         gl_cv_socklen_t_equiv=socklen_t
55432       fi
55433       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
55434 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
55435
55436
55437 cat >>confdefs.h <<_ACEOF
55438 #define socklen_t_equiv $gl_cv_socklen_t_equiv
55439 _ACEOF
55440
55441
55442
55443
55444     { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
55445 $as_echo_n "checking for sa_family_t... " >&6; }
55446 if test "${ac_cv_type_sa_family_t+set}" = set; then
55447   $as_echo_n "(cached) " >&6
55448 else
55449   ac_cv_type_sa_family_t=no
55450 cat >conftest.$ac_ext <<_ACEOF
55451 /* confdefs.h.  */
55452 _ACEOF
55453 cat confdefs.h >>conftest.$ac_ext
55454 cat >>conftest.$ac_ext <<_ACEOF
55455 /* end confdefs.h.  */
55456
55457 #ifdef HAVE_SYS_TYPES_H
55458 #include <sys/types.h>
55459 #endif
55460 #ifdef STDC_HEADERS
55461 #include <stdlib.h>
55462 #include <stddef.h>
55463 #endif
55464 #include <sys/socket.h>
55465
55466
55467
55468 int
55469 main ()
55470 {
55471 if (sizeof (sa_family_t))
55472        return 0;
55473   ;
55474   return 0;
55475 }
55476 _ACEOF
55477 rm -f conftest.$ac_objext
55478 if { (ac_try="$ac_compile"
55479 case "(($ac_try" in
55480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55481   *) ac_try_echo=$ac_try;;
55482 esac
55483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55484 $as_echo "$ac_try_echo") >&5
55485   (eval "$ac_compile") 2>conftest.er1
55486   ac_status=$?
55487   grep -v '^ *+' conftest.er1 >conftest.err
55488   rm -f conftest.er1
55489   cat conftest.err >&5
55490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55491   (exit $ac_status); } && {
55492          test -z "$ac_c_werror_flag" ||
55493          test ! -s conftest.err
55494        } && test -s conftest.$ac_objext; then
55495   cat >conftest.$ac_ext <<_ACEOF
55496 /* confdefs.h.  */
55497 _ACEOF
55498 cat confdefs.h >>conftest.$ac_ext
55499 cat >>conftest.$ac_ext <<_ACEOF
55500 /* end confdefs.h.  */
55501
55502 #ifdef HAVE_SYS_TYPES_H
55503 #include <sys/types.h>
55504 #endif
55505 #ifdef STDC_HEADERS
55506 #include <stdlib.h>
55507 #include <stddef.h>
55508 #endif
55509 #include <sys/socket.h>
55510
55511
55512
55513 int
55514 main ()
55515 {
55516 if (sizeof ((sa_family_t)))
55517           return 0;
55518   ;
55519   return 0;
55520 }
55521 _ACEOF
55522 rm -f conftest.$ac_objext
55523 if { (ac_try="$ac_compile"
55524 case "(($ac_try" in
55525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55526   *) ac_try_echo=$ac_try;;
55527 esac
55528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55529 $as_echo "$ac_try_echo") >&5
55530   (eval "$ac_compile") 2>conftest.er1
55531   ac_status=$?
55532   grep -v '^ *+' conftest.er1 >conftest.err
55533   rm -f conftest.er1
55534   cat conftest.err >&5
55535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55536   (exit $ac_status); } && {
55537          test -z "$ac_c_werror_flag" ||
55538          test ! -s conftest.err
55539        } && test -s conftest.$ac_objext; then
55540   :
55541 else
55542   $as_echo "$as_me: failed program was:" >&5
55543 sed 's/^/| /' conftest.$ac_ext >&5
55544
55545         ac_cv_type_sa_family_t=yes
55546 fi
55547
55548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55549 else
55550   $as_echo "$as_me: failed program was:" >&5
55551 sed 's/^/| /' conftest.$ac_ext >&5
55552
55553
55554 fi
55555
55556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55557 fi
55558 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
55559 $as_echo "$ac_cv_type_sa_family_t" >&6; }
55560 if test "x$ac_cv_type_sa_family_t" = x""yes; then
55561   :
55562 else
55563
55564
55565 cat >>confdefs.h <<\_ACEOF
55566 #define sa_family_t unsigned short
55567 _ACEOF
55568
55569
55570 fi
55571
55572
55573
55574
55575     { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
55576 $as_echo_n "checking for in_port_t... " >&6; }
55577 if test "${ac_cv_type_in_port_t+set}" = set; then
55578   $as_echo_n "(cached) " >&6
55579 else
55580   ac_cv_type_in_port_t=no
55581 cat >conftest.$ac_ext <<_ACEOF
55582 /* confdefs.h.  */
55583 _ACEOF
55584 cat confdefs.h >>conftest.$ac_ext
55585 cat >>conftest.$ac_ext <<_ACEOF
55586 /* end confdefs.h.  */
55587
55588 #ifdef HAVE_SYS_TYPES_H
55589 #include <sys/types.h>
55590 #endif
55591 #ifdef STDC_HEADERS
55592 #include <stdlib.h>
55593 #include <stddef.h>
55594 #endif
55595 #include <netinet/in.h>
55596
55597
55598
55599 int
55600 main ()
55601 {
55602 if (sizeof (in_port_t))
55603        return 0;
55604   ;
55605   return 0;
55606 }
55607 _ACEOF
55608 rm -f conftest.$ac_objext
55609 if { (ac_try="$ac_compile"
55610 case "(($ac_try" in
55611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55612   *) ac_try_echo=$ac_try;;
55613 esac
55614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55615 $as_echo "$ac_try_echo") >&5
55616   (eval "$ac_compile") 2>conftest.er1
55617   ac_status=$?
55618   grep -v '^ *+' conftest.er1 >conftest.err
55619   rm -f conftest.er1
55620   cat conftest.err >&5
55621   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55622   (exit $ac_status); } && {
55623          test -z "$ac_c_werror_flag" ||
55624          test ! -s conftest.err
55625        } && test -s conftest.$ac_objext; then
55626   cat >conftest.$ac_ext <<_ACEOF
55627 /* confdefs.h.  */
55628 _ACEOF
55629 cat confdefs.h >>conftest.$ac_ext
55630 cat >>conftest.$ac_ext <<_ACEOF
55631 /* end confdefs.h.  */
55632
55633 #ifdef HAVE_SYS_TYPES_H
55634 #include <sys/types.h>
55635 #endif
55636 #ifdef STDC_HEADERS
55637 #include <stdlib.h>
55638 #include <stddef.h>
55639 #endif
55640 #include <netinet/in.h>
55641
55642
55643
55644 int
55645 main ()
55646 {
55647 if (sizeof ((in_port_t)))
55648           return 0;
55649   ;
55650   return 0;
55651 }
55652 _ACEOF
55653 rm -f conftest.$ac_objext
55654 if { (ac_try="$ac_compile"
55655 case "(($ac_try" in
55656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55657   *) ac_try_echo=$ac_try;;
55658 esac
55659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55660 $as_echo "$ac_try_echo") >&5
55661   (eval "$ac_compile") 2>conftest.er1
55662   ac_status=$?
55663   grep -v '^ *+' conftest.er1 >conftest.err
55664   rm -f conftest.er1
55665   cat conftest.err >&5
55666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55667   (exit $ac_status); } && {
55668          test -z "$ac_c_werror_flag" ||
55669          test ! -s conftest.err
55670        } && test -s conftest.$ac_objext; then
55671   :
55672 else
55673   $as_echo "$as_me: failed program was:" >&5
55674 sed 's/^/| /' conftest.$ac_ext >&5
55675
55676         ac_cv_type_in_port_t=yes
55677 fi
55678
55679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55680 else
55681   $as_echo "$as_me: failed program was:" >&5
55682 sed 's/^/| /' conftest.$ac_ext >&5
55683
55684
55685 fi
55686
55687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55688 fi
55689 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
55690 $as_echo "$ac_cv_type_in_port_t" >&6; }
55691 if test "x$ac_cv_type_in_port_t" = x""yes; then
55692   :
55693 else
55694
55695
55696 cat >>confdefs.h <<\_ACEOF
55697 #define in_port_t unsigned short
55698 _ACEOF
55699
55700
55701 fi
55702
55703
55704
55705
55706
55707
55708 for ac_header in sys/wait.h wait.h
55709 do
55710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55712   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55713 $as_echo_n "checking for $ac_header... " >&6; }
55714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55715   $as_echo_n "(cached) " >&6
55716 fi
55717 ac_res=`eval 'as_val=${'$as_ac_Header'}
55718                  $as_echo "$as_val"'`
55719                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55720 $as_echo "$ac_res" >&6; }
55721 else
55722   # Is the header compilable?
55723 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55724 $as_echo_n "checking $ac_header usability... " >&6; }
55725 cat >conftest.$ac_ext <<_ACEOF
55726 /* confdefs.h.  */
55727 _ACEOF
55728 cat confdefs.h >>conftest.$ac_ext
55729 cat >>conftest.$ac_ext <<_ACEOF
55730 /* end confdefs.h.  */
55731 $ac_includes_default
55732 #include <$ac_header>
55733 _ACEOF
55734 rm -f conftest.$ac_objext
55735 if { (ac_try="$ac_compile"
55736 case "(($ac_try" in
55737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55738   *) ac_try_echo=$ac_try;;
55739 esac
55740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55741 $as_echo "$ac_try_echo") >&5
55742   (eval "$ac_compile") 2>conftest.er1
55743   ac_status=$?
55744   grep -v '^ *+' conftest.er1 >conftest.err
55745   rm -f conftest.er1
55746   cat conftest.err >&5
55747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55748   (exit $ac_status); } && {
55749          test -z "$ac_c_werror_flag" ||
55750          test ! -s conftest.err
55751        } && test -s conftest.$ac_objext; then
55752   ac_header_compiler=yes
55753 else
55754   $as_echo "$as_me: failed program was:" >&5
55755 sed 's/^/| /' conftest.$ac_ext >&5
55756
55757         ac_header_compiler=no
55758 fi
55759
55760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55761 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55762 $as_echo "$ac_header_compiler" >&6; }
55763
55764 # Is the header present?
55765 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55766 $as_echo_n "checking $ac_header presence... " >&6; }
55767 cat >conftest.$ac_ext <<_ACEOF
55768 /* confdefs.h.  */
55769 _ACEOF
55770 cat confdefs.h >>conftest.$ac_ext
55771 cat >>conftest.$ac_ext <<_ACEOF
55772 /* end confdefs.h.  */
55773 #include <$ac_header>
55774 _ACEOF
55775 if { (ac_try="$ac_cpp conftest.$ac_ext"
55776 case "(($ac_try" in
55777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55778   *) ac_try_echo=$ac_try;;
55779 esac
55780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55781 $as_echo "$ac_try_echo") >&5
55782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
55783   ac_status=$?
55784   grep -v '^ *+' conftest.er1 >conftest.err
55785   rm -f conftest.er1
55786   cat conftest.err >&5
55787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55788   (exit $ac_status); } >/dev/null && {
55789          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
55790          test ! -s conftest.err
55791        }; then
55792   ac_header_preproc=yes
55793 else
55794   $as_echo "$as_me: failed program was:" >&5
55795 sed 's/^/| /' conftest.$ac_ext >&5
55796
55797   ac_header_preproc=no
55798 fi
55799
55800 rm -f conftest.err conftest.$ac_ext
55801 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55802 $as_echo "$ac_header_preproc" >&6; }
55803
55804 # So?  What about this header?
55805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55806   yes:no: )
55807     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55808 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55810 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55811     ac_header_preproc=yes
55812     ;;
55813   no:yes:* )
55814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55815 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
55817 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
55818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55819 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
55821 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
55822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55825 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55826
55827     ;;
55828 esac
55829 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55830 $as_echo_n "checking for $ac_header... " >&6; }
55831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55832   $as_echo_n "(cached) " >&6
55833 else
55834   eval "$as_ac_Header=\$ac_header_preproc"
55835 fi
55836 ac_res=`eval 'as_val=${'$as_ac_Header'}
55837                  $as_echo "$as_val"'`
55838                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55839 $as_echo "$ac_res" >&6; }
55840
55841 fi
55842 as_val=`eval 'as_val=${'$as_ac_Header'}
55843                  $as_echo "$as_val"'`
55844    if test "x$as_val" = x""yes; then
55845   cat >>confdefs.h <<_ACEOF
55846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
55847 _ACEOF
55848
55849 fi
55850
55851 done
55852
55853     { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
55854 $as_echo_n "checking whether wait uses union wait... " >&6; }
55855 if test "${cf_cv_arg_union_wait+set}" = set; then
55856   $as_echo_n "(cached) " >&6
55857 else
55858
55859         cat >conftest.$ac_ext <<_ACEOF
55860 /* confdefs.h.  */
55861 _ACEOF
55862 cat confdefs.h >>conftest.$ac_ext
55863 cat >>conftest.$ac_ext <<_ACEOF
55864 /* end confdefs.h.  */
55865
55866 #include <sys/types.h>
55867
55868 #if HAVE_SYS_WAIT_H
55869 # include <sys/wait.h>
55870 #else
55871 # if HAVE_WAIT_H
55872 #  include <wait.h>
55873 # endif
55874 #endif
55875
55876 #ifdef __STDC__
55877 pid_t wait(union wait *);
55878 #endif
55879
55880 int
55881 main ()
55882 {
55883
55884   union wait x; int i;
55885   wait(&x); i = WIFEXITED(x)
55886
55887   ;
55888   return 0;
55889 }
55890 _ACEOF
55891 rm -f conftest.$ac_objext
55892 if { (ac_try="$ac_compile"
55893 case "(($ac_try" in
55894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55895   *) ac_try_echo=$ac_try;;
55896 esac
55897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55898 $as_echo "$ac_try_echo") >&5
55899   (eval "$ac_compile") 2>conftest.er1
55900   ac_status=$?
55901   grep -v '^ *+' conftest.er1 >conftest.err
55902   rm -f conftest.er1
55903   cat conftest.err >&5
55904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55905   (exit $ac_status); } && {
55906          test -z "$ac_c_werror_flag" ||
55907          test ! -s conftest.err
55908        } && test -s conftest.$ac_objext; then
55909   cf_cv_arg_union_wait=yes
55910 else
55911   $as_echo "$as_me: failed program was:" >&5
55912 sed 's/^/| /' conftest.$ac_ext >&5
55913
55914         cf_cv_arg_union_wait=no
55915 fi
55916
55917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55918 fi
55919 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
55920 $as_echo "$cf_cv_arg_union_wait" >&6; }
55921     if test $cf_cv_arg_union_wait = yes; then
55922
55923 cat >>confdefs.h <<\_ACEOF
55924 #define WAIT_USES_UNION 1
55925 _ACEOF
55926
55927     fi
55928
55929
55930
55931
55932
55933 for ac_header in sys/wait.h wait.h
55934 do
55935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
55936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55937   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
55938 $as_echo_n "checking for $ac_header... " >&6; }
55939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
55940   $as_echo_n "(cached) " >&6
55941 fi
55942 ac_res=`eval 'as_val=${'$as_ac_Header'}
55943                  $as_echo "$as_val"'`
55944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55945 $as_echo "$ac_res" >&6; }
55946 else
55947   # Is the header compilable?
55948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
55949 $as_echo_n "checking $ac_header usability... " >&6; }
55950 cat >conftest.$ac_ext <<_ACEOF
55951 /* confdefs.h.  */
55952 _ACEOF
55953 cat confdefs.h >>conftest.$ac_ext
55954 cat >>conftest.$ac_ext <<_ACEOF
55955 /* end confdefs.h.  */
55956 $ac_includes_default
55957 #include <$ac_header>
55958 _ACEOF
55959 rm -f conftest.$ac_objext
55960 if { (ac_try="$ac_compile"
55961 case "(($ac_try" in
55962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55963   *) ac_try_echo=$ac_try;;
55964 esac
55965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55966 $as_echo "$ac_try_echo") >&5
55967   (eval "$ac_compile") 2>conftest.er1
55968   ac_status=$?
55969   grep -v '^ *+' conftest.er1 >conftest.err
55970   rm -f conftest.er1
55971   cat conftest.err >&5
55972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55973   (exit $ac_status); } && {
55974          test -z "$ac_c_werror_flag" ||
55975          test ! -s conftest.err
55976        } && test -s conftest.$ac_objext; then
55977   ac_header_compiler=yes
55978 else
55979   $as_echo "$as_me: failed program was:" >&5
55980 sed 's/^/| /' conftest.$ac_ext >&5
55981
55982         ac_header_compiler=no
55983 fi
55984
55985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55987 $as_echo "$ac_header_compiler" >&6; }
55988
55989 # Is the header present?
55990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
55991 $as_echo_n "checking $ac_header presence... " >&6; }
55992 cat >conftest.$ac_ext <<_ACEOF
55993 /* confdefs.h.  */
55994 _ACEOF
55995 cat confdefs.h >>conftest.$ac_ext
55996 cat >>conftest.$ac_ext <<_ACEOF
55997 /* end confdefs.h.  */
55998 #include <$ac_header>
55999 _ACEOF
56000 if { (ac_try="$ac_cpp conftest.$ac_ext"
56001 case "(($ac_try" in
56002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56003   *) ac_try_echo=$ac_try;;
56004 esac
56005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56006 $as_echo "$ac_try_echo") >&5
56007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
56008   ac_status=$?
56009   grep -v '^ *+' conftest.er1 >conftest.err
56010   rm -f conftest.er1
56011   cat conftest.err >&5
56012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56013   (exit $ac_status); } >/dev/null && {
56014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
56015          test ! -s conftest.err
56016        }; then
56017   ac_header_preproc=yes
56018 else
56019   $as_echo "$as_me: failed program was:" >&5
56020 sed 's/^/| /' conftest.$ac_ext >&5
56021
56022   ac_header_preproc=no
56023 fi
56024
56025 rm -f conftest.err conftest.$ac_ext
56026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56027 $as_echo "$ac_header_preproc" >&6; }
56028
56029 # So?  What about this header?
56030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56031   yes:no: )
56032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56036     ac_header_preproc=yes
56037     ;;
56038   no:yes:* )
56039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56042 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56046 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56051
56052     ;;
56053 esac
56054 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
56055 $as_echo_n "checking for $ac_header... " >&6; }
56056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56057   $as_echo_n "(cached) " >&6
56058 else
56059   eval "$as_ac_Header=\$ac_header_preproc"
56060 fi
56061 ac_res=`eval 'as_val=${'$as_ac_Header'}
56062                  $as_echo "$as_val"'`
56063                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56064 $as_echo "$ac_res" >&6; }
56065
56066 fi
56067 as_val=`eval 'as_val=${'$as_ac_Header'}
56068                  $as_echo "$as_val"'`
56069    if test "x$as_val" = x""yes; then
56070   cat >>confdefs.h <<_ACEOF
56071 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
56072 _ACEOF
56073
56074 fi
56075
56076 done
56077
56078     { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
56079 $as_echo_n "checking whether wait uses int... " >&6; }
56080 if test "${cf_cv_arg_int+set}" = set; then
56081   $as_echo_n "(cached) " >&6
56082 else
56083
56084         cat >conftest.$ac_ext <<_ACEOF
56085 /* confdefs.h.  */
56086 _ACEOF
56087 cat confdefs.h >>conftest.$ac_ext
56088 cat >>conftest.$ac_ext <<_ACEOF
56089 /* end confdefs.h.  */
56090
56091 #include <sys/types.h>
56092
56093 #if HAVE_SYS_WAIT_H
56094 # include <sys/wait.h>
56095 #else
56096 # if HAVE_WAIT_H
56097 #  include <wait.h>
56098 # endif
56099 #endif
56100
56101 #ifdef __STDC__
56102 pid_t wait(int *);
56103 #endif
56104
56105 int
56106 main ()
56107 {
56108
56109   int x; int i;
56110   wait(&x); i = WIFEXITED(x)
56111
56112   ;
56113   return 0;
56114 }
56115 _ACEOF
56116 rm -f conftest.$ac_objext
56117 if { (ac_try="$ac_compile"
56118 case "(($ac_try" in
56119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56120   *) ac_try_echo=$ac_try;;
56121 esac
56122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56123 $as_echo "$ac_try_echo") >&5
56124   (eval "$ac_compile") 2>conftest.er1
56125   ac_status=$?
56126   grep -v '^ *+' conftest.er1 >conftest.err
56127   rm -f conftest.er1
56128   cat conftest.err >&5
56129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56130   (exit $ac_status); } && {
56131          test -z "$ac_c_werror_flag" ||
56132          test ! -s conftest.err
56133        } && test -s conftest.$ac_objext; then
56134   cf_cv_arg_int=yes
56135 else
56136   $as_echo "$as_me: failed program was:" >&5
56137 sed 's/^/| /' conftest.$ac_ext >&5
56138
56139         cf_cv_arg_int=no
56140 fi
56141
56142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56143 fi
56144 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
56145 $as_echo "$cf_cv_arg_int" >&6; }
56146 if test $cf_cv_arg_int = yes; then
56147
56148 cat >>confdefs.h <<\_ACEOF
56149 #define WAIT_USES_INT 1
56150 _ACEOF
56151
56152 fi
56153
56154
56155 #
56156 # Libraries
56157 #
56158 # cur_colr is on some HP's
56159
56160 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
56161 $as_echo_n "checking for main in -lcur_colr... " >&6; }
56162 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
56163   $as_echo_n "(cached) " >&6
56164 else
56165   ac_check_lib_save_LIBS=$LIBS
56166 LIBS="-lcur_colr  $LIBS"
56167 cat >conftest.$ac_ext <<_ACEOF
56168 /* confdefs.h.  */
56169 _ACEOF
56170 cat confdefs.h >>conftest.$ac_ext
56171 cat >>conftest.$ac_ext <<_ACEOF
56172 /* end confdefs.h.  */
56173
56174
56175 int
56176 main ()
56177 {
56178 return main ();
56179   ;
56180   return 0;
56181 }
56182 _ACEOF
56183 rm -f conftest.$ac_objext conftest$ac_exeext
56184 if { (ac_try="$ac_link"
56185 case "(($ac_try" in
56186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56187   *) ac_try_echo=$ac_try;;
56188 esac
56189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56190 $as_echo "$ac_try_echo") >&5
56191   (eval "$ac_link") 2>conftest.er1
56192   ac_status=$?
56193   grep -v '^ *+' conftest.er1 >conftest.err
56194   rm -f conftest.er1
56195   cat conftest.err >&5
56196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56197   (exit $ac_status); } && {
56198          test -z "$ac_c_werror_flag" ||
56199          test ! -s conftest.err
56200        } && test -s conftest$ac_exeext && {
56201          test "$cross_compiling" = yes ||
56202          $as_test_x conftest$ac_exeext
56203        }; then
56204   ac_cv_lib_cur_colr_main=yes
56205 else
56206   $as_echo "$as_me: failed program was:" >&5
56207 sed 's/^/| /' conftest.$ac_ext >&5
56208
56209         ac_cv_lib_cur_colr_main=no
56210 fi
56211
56212 rm -rf conftest.dSYM
56213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56214       conftest$ac_exeext conftest.$ac_ext
56215 LIBS=$ac_check_lib_save_LIBS
56216 fi
56217 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
56218 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
56219 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
56220   cat >>confdefs.h <<_ACEOF
56221 #define HAVE_LIBCUR_COLR 1
56222 _ACEOF
56223
56224   LIBS="-lcur_colr $LIBS"
56225
56226 fi
56227
56228
56229 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
56230 $as_echo_n "checking for main in -lintl... " >&6; }
56231 if test "${ac_cv_lib_intl_main+set}" = set; then
56232   $as_echo_n "(cached) " >&6
56233 else
56234   ac_check_lib_save_LIBS=$LIBS
56235 LIBS="-lintl  $LIBS"
56236 cat >conftest.$ac_ext <<_ACEOF
56237 /* confdefs.h.  */
56238 _ACEOF
56239 cat confdefs.h >>conftest.$ac_ext
56240 cat >>conftest.$ac_ext <<_ACEOF
56241 /* end confdefs.h.  */
56242
56243
56244 int
56245 main ()
56246 {
56247 return main ();
56248   ;
56249   return 0;
56250 }
56251 _ACEOF
56252 rm -f conftest.$ac_objext conftest$ac_exeext
56253 if { (ac_try="$ac_link"
56254 case "(($ac_try" in
56255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56256   *) ac_try_echo=$ac_try;;
56257 esac
56258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56259 $as_echo "$ac_try_echo") >&5
56260   (eval "$ac_link") 2>conftest.er1
56261   ac_status=$?
56262   grep -v '^ *+' conftest.er1 >conftest.err
56263   rm -f conftest.er1
56264   cat conftest.err >&5
56265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56266   (exit $ac_status); } && {
56267          test -z "$ac_c_werror_flag" ||
56268          test ! -s conftest.err
56269        } && test -s conftest$ac_exeext && {
56270          test "$cross_compiling" = yes ||
56271          $as_test_x conftest$ac_exeext
56272        }; then
56273   ac_cv_lib_intl_main=yes
56274 else
56275   $as_echo "$as_me: failed program was:" >&5
56276 sed 's/^/| /' conftest.$ac_ext >&5
56277
56278         ac_cv_lib_intl_main=no
56279 fi
56280
56281 rm -rf conftest.dSYM
56282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56283       conftest$ac_exeext conftest.$ac_ext
56284 LIBS=$ac_check_lib_save_LIBS
56285 fi
56286 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
56287 $as_echo "$ac_cv_lib_intl_main" >&6; }
56288 if test "x$ac_cv_lib_intl_main" = x""yes; then
56289   cat >>confdefs.h <<_ACEOF
56290 #define HAVE_LIBINTL 1
56291 _ACEOF
56292
56293   LIBS="-lintl $LIBS"
56294
56295 fi
56296
56297
56298     # Make sure we don't use -lnsl and -lsun on Irix systems.
56299     case "$host" in
56300         *sgi-irix*)
56301
56302 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
56303 $as_echo_n "checking for main in -lsocket... " >&6; }
56304 if test "${ac_cv_lib_socket_main+set}" = set; then
56305   $as_echo_n "(cached) " >&6
56306 else
56307   ac_check_lib_save_LIBS=$LIBS
56308 LIBS="-lsocket  $LIBS"
56309 cat >conftest.$ac_ext <<_ACEOF
56310 /* confdefs.h.  */
56311 _ACEOF
56312 cat confdefs.h >>conftest.$ac_ext
56313 cat >>conftest.$ac_ext <<_ACEOF
56314 /* end confdefs.h.  */
56315
56316
56317 int
56318 main ()
56319 {
56320 return main ();
56321   ;
56322   return 0;
56323 }
56324 _ACEOF
56325 rm -f conftest.$ac_objext conftest$ac_exeext
56326 if { (ac_try="$ac_link"
56327 case "(($ac_try" in
56328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56329   *) ac_try_echo=$ac_try;;
56330 esac
56331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56332 $as_echo "$ac_try_echo") >&5
56333   (eval "$ac_link") 2>conftest.er1
56334   ac_status=$?
56335   grep -v '^ *+' conftest.er1 >conftest.err
56336   rm -f conftest.er1
56337   cat conftest.err >&5
56338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56339   (exit $ac_status); } && {
56340          test -z "$ac_c_werror_flag" ||
56341          test ! -s conftest.err
56342        } && test -s conftest$ac_exeext && {
56343          test "$cross_compiling" = yes ||
56344          $as_test_x conftest$ac_exeext
56345        }; then
56346   ac_cv_lib_socket_main=yes
56347 else
56348   $as_echo "$as_me: failed program was:" >&5
56349 sed 's/^/| /' conftest.$ac_ext >&5
56350
56351         ac_cv_lib_socket_main=no
56352 fi
56353
56354 rm -rf conftest.dSYM
56355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56356       conftest$ac_exeext conftest.$ac_ext
56357 LIBS=$ac_check_lib_save_LIBS
56358 fi
56359 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56360 $as_echo "$ac_cv_lib_socket_main" >&6; }
56361 if test "x$ac_cv_lib_socket_main" = x""yes; then
56362   cat >>confdefs.h <<_ACEOF
56363 #define HAVE_LIBSOCKET 1
56364 _ACEOF
56365
56366   LIBS="-lsocket $LIBS"
56367
56368 fi
56369
56370                             ;;
56371         *)
56372
56373 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
56374 $as_echo_n "checking for main in -lresolv... " >&6; }
56375 if test "${ac_cv_lib_resolv_main+set}" = set; then
56376   $as_echo_n "(cached) " >&6
56377 else
56378   ac_check_lib_save_LIBS=$LIBS
56379 LIBS="-lresolv  $LIBS"
56380 cat >conftest.$ac_ext <<_ACEOF
56381 /* confdefs.h.  */
56382 _ACEOF
56383 cat confdefs.h >>conftest.$ac_ext
56384 cat >>conftest.$ac_ext <<_ACEOF
56385 /* end confdefs.h.  */
56386
56387
56388 int
56389 main ()
56390 {
56391 return main ();
56392   ;
56393   return 0;
56394 }
56395 _ACEOF
56396 rm -f conftest.$ac_objext conftest$ac_exeext
56397 if { (ac_try="$ac_link"
56398 case "(($ac_try" in
56399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56400   *) ac_try_echo=$ac_try;;
56401 esac
56402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56403 $as_echo "$ac_try_echo") >&5
56404   (eval "$ac_link") 2>conftest.er1
56405   ac_status=$?
56406   grep -v '^ *+' conftest.er1 >conftest.err
56407   rm -f conftest.er1
56408   cat conftest.err >&5
56409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56410   (exit $ac_status); } && {
56411          test -z "$ac_c_werror_flag" ||
56412          test ! -s conftest.err
56413        } && test -s conftest$ac_exeext && {
56414          test "$cross_compiling" = yes ||
56415          $as_test_x conftest$ac_exeext
56416        }; then
56417   ac_cv_lib_resolv_main=yes
56418 else
56419   $as_echo "$as_me: failed program was:" >&5
56420 sed 's/^/| /' conftest.$ac_ext >&5
56421
56422         ac_cv_lib_resolv_main=no
56423 fi
56424
56425 rm -rf conftest.dSYM
56426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56427       conftest$ac_exeext conftest.$ac_ext
56428 LIBS=$ac_check_lib_save_LIBS
56429 fi
56430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
56431 $as_echo "$ac_cv_lib_resolv_main" >&6; }
56432 if test "x$ac_cv_lib_resolv_main" = x""yes; then
56433   cat >>confdefs.h <<_ACEOF
56434 #define HAVE_LIBRESOLV 1
56435 _ACEOF
56436
56437   LIBS="-lresolv $LIBS"
56438
56439 fi
56440
56441
56442 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
56443 $as_echo_n "checking for main in -lnsl... " >&6; }
56444 if test "${ac_cv_lib_nsl_main+set}" = set; then
56445   $as_echo_n "(cached) " >&6
56446 else
56447   ac_check_lib_save_LIBS=$LIBS
56448 LIBS="-lnsl  $LIBS"
56449 cat >conftest.$ac_ext <<_ACEOF
56450 /* confdefs.h.  */
56451 _ACEOF
56452 cat confdefs.h >>conftest.$ac_ext
56453 cat >>conftest.$ac_ext <<_ACEOF
56454 /* end confdefs.h.  */
56455
56456
56457 int
56458 main ()
56459 {
56460 return main ();
56461   ;
56462   return 0;
56463 }
56464 _ACEOF
56465 rm -f conftest.$ac_objext conftest$ac_exeext
56466 if { (ac_try="$ac_link"
56467 case "(($ac_try" in
56468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56469   *) ac_try_echo=$ac_try;;
56470 esac
56471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56472 $as_echo "$ac_try_echo") >&5
56473   (eval "$ac_link") 2>conftest.er1
56474   ac_status=$?
56475   grep -v '^ *+' conftest.er1 >conftest.err
56476   rm -f conftest.er1
56477   cat conftest.err >&5
56478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56479   (exit $ac_status); } && {
56480          test -z "$ac_c_werror_flag" ||
56481          test ! -s conftest.err
56482        } && test -s conftest$ac_exeext && {
56483          test "$cross_compiling" = yes ||
56484          $as_test_x conftest$ac_exeext
56485        }; then
56486   ac_cv_lib_nsl_main=yes
56487 else
56488   $as_echo "$as_me: failed program was:" >&5
56489 sed 's/^/| /' conftest.$ac_ext >&5
56490
56491         ac_cv_lib_nsl_main=no
56492 fi
56493
56494 rm -rf conftest.dSYM
56495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56496       conftest$ac_exeext conftest.$ac_ext
56497 LIBS=$ac_check_lib_save_LIBS
56498 fi
56499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
56500 $as_echo "$ac_cv_lib_nsl_main" >&6; }
56501 if test "x$ac_cv_lib_nsl_main" = x""yes; then
56502   cat >>confdefs.h <<_ACEOF
56503 #define HAVE_LIBNSL 1
56504 _ACEOF
56505
56506   LIBS="-lnsl $LIBS"
56507
56508 fi
56509
56510
56511 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
56512 $as_echo_n "checking for main in -lsocket... " >&6; }
56513 if test "${ac_cv_lib_socket_main+set}" = set; then
56514   $as_echo_n "(cached) " >&6
56515 else
56516   ac_check_lib_save_LIBS=$LIBS
56517 LIBS="-lsocket  $LIBS"
56518 cat >conftest.$ac_ext <<_ACEOF
56519 /* confdefs.h.  */
56520 _ACEOF
56521 cat confdefs.h >>conftest.$ac_ext
56522 cat >>conftest.$ac_ext <<_ACEOF
56523 /* end confdefs.h.  */
56524
56525
56526 int
56527 main ()
56528 {
56529 return main ();
56530   ;
56531   return 0;
56532 }
56533 _ACEOF
56534 rm -f conftest.$ac_objext conftest$ac_exeext
56535 if { (ac_try="$ac_link"
56536 case "(($ac_try" in
56537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56538   *) ac_try_echo=$ac_try;;
56539 esac
56540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56541 $as_echo "$ac_try_echo") >&5
56542   (eval "$ac_link") 2>conftest.er1
56543   ac_status=$?
56544   grep -v '^ *+' conftest.er1 >conftest.err
56545   rm -f conftest.er1
56546   cat conftest.err >&5
56547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56548   (exit $ac_status); } && {
56549          test -z "$ac_c_werror_flag" ||
56550          test ! -s conftest.err
56551        } && test -s conftest$ac_exeext && {
56552          test "$cross_compiling" = yes ||
56553          $as_test_x conftest$ac_exeext
56554        }; then
56555   ac_cv_lib_socket_main=yes
56556 else
56557   $as_echo "$as_me: failed program was:" >&5
56558 sed 's/^/| /' conftest.$ac_ext >&5
56559
56560         ac_cv_lib_socket_main=no
56561 fi
56562
56563 rm -rf conftest.dSYM
56564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56565       conftest$ac_exeext conftest.$ac_ext
56566 LIBS=$ac_check_lib_save_LIBS
56567 fi
56568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
56569 $as_echo "$ac_cv_lib_socket_main" >&6; }
56570 if test "x$ac_cv_lib_socket_main" = x""yes; then
56571   cat >>confdefs.h <<_ACEOF
56572 #define HAVE_LIBSOCKET 1
56573 _ACEOF
56574
56575   LIBS="-lsocket $LIBS"
56576
56577 fi
56578
56579
56580 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
56581 $as_echo_n "checking for main in -lsun... " >&6; }
56582 if test "${ac_cv_lib_sun_main+set}" = set; then
56583   $as_echo_n "(cached) " >&6
56584 else
56585   ac_check_lib_save_LIBS=$LIBS
56586 LIBS="-lsun  $LIBS"
56587 cat >conftest.$ac_ext <<_ACEOF
56588 /* confdefs.h.  */
56589 _ACEOF
56590 cat confdefs.h >>conftest.$ac_ext
56591 cat >>conftest.$ac_ext <<_ACEOF
56592 /* end confdefs.h.  */
56593
56594
56595 int
56596 main ()
56597 {
56598 return main ();
56599   ;
56600   return 0;
56601 }
56602 _ACEOF
56603 rm -f conftest.$ac_objext conftest$ac_exeext
56604 if { (ac_try="$ac_link"
56605 case "(($ac_try" in
56606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56607   *) ac_try_echo=$ac_try;;
56608 esac
56609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56610 $as_echo "$ac_try_echo") >&5
56611   (eval "$ac_link") 2>conftest.er1
56612   ac_status=$?
56613   grep -v '^ *+' conftest.er1 >conftest.err
56614   rm -f conftest.er1
56615   cat conftest.err >&5
56616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56617   (exit $ac_status); } && {
56618          test -z "$ac_c_werror_flag" ||
56619          test ! -s conftest.err
56620        } && test -s conftest$ac_exeext && {
56621          test "$cross_compiling" = yes ||
56622          $as_test_x conftest$ac_exeext
56623        }; then
56624   ac_cv_lib_sun_main=yes
56625 else
56626   $as_echo "$as_me: failed program was:" >&5
56627 sed 's/^/| /' conftest.$ac_ext >&5
56628
56629         ac_cv_lib_sun_main=no
56630 fi
56631
56632 rm -rf conftest.dSYM
56633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56634       conftest$ac_exeext conftest.$ac_ext
56635 LIBS=$ac_check_lib_save_LIBS
56636 fi
56637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
56638 $as_echo "$ac_cv_lib_sun_main" >&6; }
56639 if test "x$ac_cv_lib_sun_main" = x""yes; then
56640   cat >>confdefs.h <<_ACEOF
56641 #define HAVE_LIBSUN 1
56642 _ACEOF
56643
56644   LIBS="-lsun $LIBS"
56645
56646 fi
56647
56648                             ;;
56649     esac
56650
56651
56652
56653
56654
56655
56656
56657
56658     # if any of the precious variables are set, disable the pkg-config run
56659     explicit_glib=no
56660     test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
56661     test x"$GLIB_LIBS" = x"" || explicit_glib=yes
56662     test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
56663     test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
56664     test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
56665
56666     if test x"$explicit_glib" = x"no"; then
56667         # search for pkg-config, which the glib configuration uses, adding a few
56668         # system-specific search paths.
56669         # Extract the first word of "pkg-config", so it can be a program name with args.
56670 set dummy pkg-config; ac_word=$2
56671 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56672 $as_echo_n "checking for $ac_word... " >&6; }
56673 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56674   $as_echo_n "(cached) " >&6
56675 else
56676   case $PKG_CONFIG in
56677   [\\/]* | ?:[\\/]*)
56678   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56679   ;;
56680   *)
56681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56682 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
56683 for as_dir in $as_dummy
56684 do
56685   IFS=$as_save_IFS
56686   test -z "$as_dir" && as_dir=.
56687   for ac_exec_ext in '' $ac_executable_extensions; do
56688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56689     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56690     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56691     break 2
56692   fi
56693 done
56694 done
56695 IFS=$as_save_IFS
56696
56697   ;;
56698 esac
56699 fi
56700 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56701 if test -n "$PKG_CONFIG"; then
56702   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56703 $as_echo "$PKG_CONFIG" >&6; }
56704 else
56705   { $as_echo "$as_me:$LINENO: result: no" >&5
56706 $as_echo "no" >&6; }
56707 fi
56708
56709
56710
56711         case "$host" in
56712             sparc-sun-solaris2.8) # Solaris 8
56713                 # give the linker a runtime search path; pkg-config doesn't supply this.
56714                 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
56715                 # and make.  Adding this support here makes straight './configure; make'
56716                 # "just work" on Solaris 8
56717                 if test -n "$PKG_CONFIG"; then
56718                     glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
56719                     LDFLAGS="$LDFLAGS $glib_R_flag"
56720                 fi
56721                 ;;
56722         esac
56723
56724         # Check whether --enable-glibtest was given.
56725 if test "${enable_glibtest+set}" = set; then
56726   enableval=$enable_glibtest;
56727 else
56728   enable_glibtest=yes
56729 fi
56730
56731
56732   pkg_config_args=glib-2.0
56733   for module in . gmodule gobject gthread
56734   do
56735       case "$module" in
56736          gmodule)
56737              pkg_config_args="$pkg_config_args gmodule-2.0"
56738          ;;
56739          gmodule-no-export)
56740              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
56741          ;;
56742          gobject)
56743              pkg_config_args="$pkg_config_args gobject-2.0"
56744          ;;
56745          gthread)
56746              pkg_config_args="$pkg_config_args gthread-2.0"
56747          ;;
56748          gio*)
56749              pkg_config_args="$pkg_config_args $module-2.0"
56750          ;;
56751       esac
56752   done
56753
56754
56755
56756 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
56757         if test -n "$ac_tool_prefix"; then
56758   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
56759 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
56760 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56761 $as_echo_n "checking for $ac_word... " >&6; }
56762 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
56763   $as_echo_n "(cached) " >&6
56764 else
56765   case $PKG_CONFIG in
56766   [\\/]* | ?:[\\/]*)
56767   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
56768   ;;
56769   *)
56770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56771 for as_dir in $PATH
56772 do
56773   IFS=$as_save_IFS
56774   test -z "$as_dir" && as_dir=.
56775   for ac_exec_ext in '' $ac_executable_extensions; do
56776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56777     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56779     break 2
56780   fi
56781 done
56782 done
56783 IFS=$as_save_IFS
56784
56785   ;;
56786 esac
56787 fi
56788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
56789 if test -n "$PKG_CONFIG"; then
56790   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
56791 $as_echo "$PKG_CONFIG" >&6; }
56792 else
56793   { $as_echo "$as_me:$LINENO: result: no" >&5
56794 $as_echo "no" >&6; }
56795 fi
56796
56797
56798 fi
56799 if test -z "$ac_cv_path_PKG_CONFIG"; then
56800   ac_pt_PKG_CONFIG=$PKG_CONFIG
56801   # Extract the first word of "pkg-config", so it can be a program name with args.
56802 set dummy pkg-config; ac_word=$2
56803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
56804 $as_echo_n "checking for $ac_word... " >&6; }
56805 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
56806   $as_echo_n "(cached) " >&6
56807 else
56808   case $ac_pt_PKG_CONFIG in
56809   [\\/]* | ?:[\\/]*)
56810   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
56811   ;;
56812   *)
56813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56814 for as_dir in $PATH
56815 do
56816   IFS=$as_save_IFS
56817   test -z "$as_dir" && as_dir=.
56818   for ac_exec_ext in '' $ac_executable_extensions; do
56819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
56820     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
56821     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
56822     break 2
56823   fi
56824 done
56825 done
56826 IFS=$as_save_IFS
56827
56828   ;;
56829 esac
56830 fi
56831 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
56832 if test -n "$ac_pt_PKG_CONFIG"; then
56833   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
56834 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
56835 else
56836   { $as_echo "$as_me:$LINENO: result: no" >&5
56837 $as_echo "no" >&6; }
56838 fi
56839
56840   if test "x$ac_pt_PKG_CONFIG" = x; then
56841     PKG_CONFIG=""
56842   else
56843     case $cross_compiling:$ac_tool_warned in
56844 yes:)
56845 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
56846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
56847 ac_tool_warned=yes ;;
56848 esac
56849     PKG_CONFIG=$ac_pt_PKG_CONFIG
56850   fi
56851 else
56852   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
56853 fi
56854
56855 fi
56856 if test -n "$PKG_CONFIG"; then
56857         _pkg_min_version=0.7
56858         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
56859 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
56860         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
56861                 { $as_echo "$as_me:$LINENO: result: yes" >&5
56862 $as_echo "yes" >&6; }
56863         else
56864                 { $as_echo "$as_me:$LINENO: result: no" >&5
56865 $as_echo "no" >&6; }
56866                 PKG_CONFIG=""
56867         fi
56868
56869 fi
56870
56871   no_glib=""
56872
56873   if test "x$PKG_CONFIG" = x ; then
56874     no_glib=yes
56875     PKG_CONFIG=no
56876   fi
56877
56878   min_glib_version=2.2.0
56879   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
56880 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
56881
56882   if test x$PKG_CONFIG != xno ; then
56883     ## don't try to run the test against uninstalled libtool libs
56884     if $PKG_CONFIG --uninstalled $pkg_config_args; then
56885           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
56886           enable_glibtest=no
56887     fi
56888
56889     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
56890           :
56891     else
56892           no_glib=yes
56893     fi
56894   fi
56895
56896   if test x"$no_glib" = x ; then
56897     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
56898     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
56899     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
56900
56901     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
56902     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
56903     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
56904            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
56905     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
56906            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
56907     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
56908            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
56909     if test "x$enable_glibtest" = "xyes" ; then
56910       ac_save_CFLAGS="$CFLAGS"
56911       ac_save_LIBS="$LIBS"
56912       CFLAGS="$CFLAGS $GLIB_CFLAGS"
56913       LIBS="$GLIB_LIBS $LIBS"
56914       rm -f conf.glibtest
56915       if test "$cross_compiling" = yes; then
56916   echo $ac_n "cross compiling; assumed OK... $ac_c"
56917 else
56918   cat >conftest.$ac_ext <<_ACEOF
56919 /* confdefs.h.  */
56920 _ACEOF
56921 cat confdefs.h >>conftest.$ac_ext
56922 cat >>conftest.$ac_ext <<_ACEOF
56923 /* end confdefs.h.  */
56924
56925 #include <glib.h>
56926 #include <stdio.h>
56927 #include <stdlib.h>
56928
56929 int
56930 main ()
56931 {
56932   int major, minor, micro;
56933   char *tmp_version;
56934
56935   system ("touch conf.glibtest");
56936
56937   /* HP/UX 9 (%@#!) writes to sscanf strings */
56938   tmp_version = g_strdup("$min_glib_version");
56939   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
56940      printf("%s, bad version string\n", "$min_glib_version");
56941      exit(1);
56942    }
56943
56944   if ((glib_major_version != $glib_config_major_version) ||
56945       (glib_minor_version != $glib_config_minor_version) ||
56946       (glib_micro_version != $glib_config_micro_version))
56947     {
56948       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
56949              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
56950              glib_major_version, glib_minor_version, glib_micro_version);
56951       printf ("*** was found! If pkg-config was correct, then it is best\n");
56952       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
56953       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
56954       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
56955       printf("*** required on your system.\n");
56956       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
56957       printf("*** to point to the correct configuration files\n");
56958     }
56959   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
56960            (glib_minor_version != GLIB_MINOR_VERSION) ||
56961            (glib_micro_version != GLIB_MICRO_VERSION))
56962     {
56963       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
56964              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
56965       printf("*** library (version %d.%d.%d)\n",
56966              glib_major_version, glib_minor_version, glib_micro_version);
56967     }
56968   else
56969     {
56970       if ((glib_major_version > major) ||
56971         ((glib_major_version == major) && (glib_minor_version > minor)) ||
56972         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
56973       {
56974         return 0;
56975        }
56976      else
56977       {
56978         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
56979                glib_major_version, glib_minor_version, glib_micro_version);
56980         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
56981                major, minor, micro);
56982         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
56983         printf("***\n");
56984         printf("*** If you have already installed a sufficiently new version, this error\n");
56985         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
56986         printf("*** being found. The easiest way to fix this is to remove the old version\n");
56987         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
56988         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
56989         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
56990         printf("*** so that the correct libraries are found at run-time))\n");
56991       }
56992     }
56993   return 1;
56994 }
56995
56996 _ACEOF
56997 rm -f conftest$ac_exeext
56998 if { (ac_try="$ac_link"
56999 case "(($ac_try" in
57000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57001   *) ac_try_echo=$ac_try;;
57002 esac
57003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57004 $as_echo "$ac_try_echo") >&5
57005   (eval "$ac_link") 2>&5
57006   ac_status=$?
57007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57009   { (case "(($ac_try" in
57010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57011   *) ac_try_echo=$ac_try;;
57012 esac
57013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57014 $as_echo "$ac_try_echo") >&5
57015   (eval "$ac_try") 2>&5
57016   ac_status=$?
57017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57018   (exit $ac_status); }; }; then
57019   :
57020 else
57021   $as_echo "$as_me: program exited with status $ac_status" >&5
57022 $as_echo "$as_me: failed program was:" >&5
57023 sed 's/^/| /' conftest.$ac_ext >&5
57024
57025 ( exit $ac_status )
57026 no_glib=yes
57027 fi
57028 rm -rf conftest.dSYM
57029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57030 fi
57031
57032
57033        CFLAGS="$ac_save_CFLAGS"
57034        LIBS="$ac_save_LIBS"
57035      fi
57036   fi
57037   if test "x$no_glib" = x ; then
57038      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
57039 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
57040      :
57041   else
57042      { $as_echo "$as_me:$LINENO: result: no" >&5
57043 $as_echo "no" >&6; }
57044      if test "$PKG_CONFIG" = "no" ; then
57045        echo "*** A new enough version of pkg-config was not found."
57046        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
57047      else
57048        if test -f conf.glibtest ; then
57049         :
57050        else
57051           echo "*** Could not run GLIB test program, checking why..."
57052           ac_save_CFLAGS="$CFLAGS"
57053           ac_save_LIBS="$LIBS"
57054           CFLAGS="$CFLAGS $GLIB_CFLAGS"
57055           LIBS="$LIBS $GLIB_LIBS"
57056           cat >conftest.$ac_ext <<_ACEOF
57057 /* confdefs.h.  */
57058 _ACEOF
57059 cat confdefs.h >>conftest.$ac_ext
57060 cat >>conftest.$ac_ext <<_ACEOF
57061 /* end confdefs.h.  */
57062
57063 #include <glib.h>
57064 #include <stdio.h>
57065
57066 int
57067 main ()
57068 {
57069  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
57070   ;
57071   return 0;
57072 }
57073 _ACEOF
57074 rm -f conftest.$ac_objext conftest$ac_exeext
57075 if { (ac_try="$ac_link"
57076 case "(($ac_try" in
57077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57078   *) ac_try_echo=$ac_try;;
57079 esac
57080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57081 $as_echo "$ac_try_echo") >&5
57082   (eval "$ac_link") 2>conftest.er1
57083   ac_status=$?
57084   grep -v '^ *+' conftest.er1 >conftest.err
57085   rm -f conftest.er1
57086   cat conftest.err >&5
57087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57088   (exit $ac_status); } && {
57089          test -z "$ac_c_werror_flag" ||
57090          test ! -s conftest.err
57091        } && test -s conftest$ac_exeext && {
57092          test "$cross_compiling" = yes ||
57093          $as_test_x conftest$ac_exeext
57094        }; then
57095    echo "*** The test program compiled, but did not run. This usually means"
57096           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
57097           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
57098           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
57099           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
57100           echo "*** is required on your system"
57101           echo "***"
57102           echo "*** If you have an old version installed, it is best to remove it, although"
57103           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
57104 else
57105   $as_echo "$as_me: failed program was:" >&5
57106 sed 's/^/| /' conftest.$ac_ext >&5
57107
57108          echo "*** The test program failed to compile or link. See the file config.log for the"
57109           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
57110 fi
57111
57112 rm -rf conftest.dSYM
57113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57114       conftest$ac_exeext conftest.$ac_ext
57115           CFLAGS="$ac_save_CFLAGS"
57116           LIBS="$ac_save_LIBS"
57117        fi
57118      fi
57119      GLIB_CFLAGS=""
57120      GLIB_LIBS=""
57121      GLIB_GENMARSHAL=""
57122      GOBJECT_QUERY=""
57123      GLIB_MKENUMS=""
57124
57125             { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
57126 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
57127    { (exit 1); exit 1; }; }
57128
57129   fi
57130
57131
57132
57133
57134
57135   rm -f conf.glibtest
57136
57137     else
57138         { { $as_echo "$as_me:$LINENO: error: explicit glib" >&5
57139 $as_echo "$as_me: error: explicit glib" >&2;}
57140    { (exit 1); exit 1; }; }
57141     fi
57142
57143     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
57144     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
57145
57146     LIBS="$GLIB_LIBS $LIBS"
57147
57148
57149
57150
57151 # Check whether --with-readline was given.
57152 if test "${with_readline+set}" = set; then
57153   withval=$with_readline;
57154             case "$withval" in
57155                 y | ye | yes | n | no) : ;;
57156                 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
57157 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
57158    { (exit 1); exit 1; }; }
57159             esac
57160             want_readline="$withval"
57161
57162 else
57163
57164             want_readline="maybe" # meaning "only if we can find it"
57165
57166 fi
57167
57168
57169
57170   # unless the user said "no", look for readline.
57171   if test x"$want_readline" != x"no"; then
57172     { $as_echo "$as_me:$LINENO: checking for a readline compatible library" >&5
57173 $as_echo_n "checking for a readline compatible library... " >&6; }
57174 if test "${ax_cv_lib_readline+set}" = set; then
57175   $as_echo_n "(cached) " >&6
57176 else
57177
57178       ORIG_LIBS="$LIBS"
57179       for readline_lib in readline edit editline; do
57180         for termcap_lib in "" termcap curses ncurses; do
57181           if test -z "$termcap_lib"; then
57182             TRY_LIB="-l$readline_lib"
57183           else
57184             TRY_LIB="-l$readline_lib -l$termcap_lib"
57185           fi
57186           LIBS="$ORIG_LIBS $TRY_LIB"
57187           cat >conftest.$ac_ext <<_ACEOF
57188 /* confdefs.h.  */
57189 _ACEOF
57190 cat confdefs.h >>conftest.$ac_ext
57191 cat >>conftest.$ac_ext <<_ACEOF
57192 /* end confdefs.h.  */
57193
57194 /* Override any GCC internal prototype to avoid an error.
57195    Use char because int might match the return type of a GCC
57196    builtin and then its argument prototype would still apply.  */
57197 #ifdef __cplusplus
57198 extern "C"
57199 #endif
57200 char readline ();
57201 int
57202 main ()
57203 {
57204 return readline ();
57205   ;
57206   return 0;
57207 }
57208 _ACEOF
57209 rm -f conftest.$ac_objext conftest$ac_exeext
57210 if { (ac_try="$ac_link"
57211 case "(($ac_try" in
57212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57213   *) ac_try_echo=$ac_try;;
57214 esac
57215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57216 $as_echo "$ac_try_echo") >&5
57217   (eval "$ac_link") 2>conftest.er1
57218   ac_status=$?
57219   grep -v '^ *+' conftest.er1 >conftest.err
57220   rm -f conftest.er1
57221   cat conftest.err >&5
57222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57223   (exit $ac_status); } && {
57224          test -z "$ac_c_werror_flag" ||
57225          test ! -s conftest.err
57226        } && test -s conftest$ac_exeext && {
57227          test "$cross_compiling" = yes ||
57228          $as_test_x conftest$ac_exeext
57229        }; then
57230   ax_cv_lib_readline="$TRY_LIB"
57231 else
57232   $as_echo "$as_me: failed program was:" >&5
57233 sed 's/^/| /' conftest.$ac_ext >&5
57234
57235
57236 fi
57237
57238 rm -rf conftest.dSYM
57239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57240       conftest$ac_exeext conftest.$ac_ext
57241           if test -n "$ax_cv_lib_readline"; then
57242             break
57243           fi
57244         done
57245         if test -n "$ax_cv_lib_readline"; then
57246           break
57247         fi
57248       done
57249       if test -z "$ax_cv_lib_readline"; then
57250         ax_cv_lib_readline="no"
57251       fi
57252       LIBS="$ORIG_LIBS"
57253
57254 fi
57255 { $as_echo "$as_me:$LINENO: result: $ax_cv_lib_readline" >&5
57256 $as_echo "$ax_cv_lib_readline" >&6; }
57257
57258     if test "$ax_cv_lib_readline" != "no"; then
57259       ORIG_LIBS="$LIBS"
57260       LIBS="$LIBS $ax_cv_lib_readline"
57261       READLINE_LIBS="$ax_cv_lib_readline"
57262
57263 cat >>confdefs.h <<\_ACEOF
57264 #define HAVE_LIBREADLINE 1
57265 _ACEOF
57266
57267
57268
57269 for ac_header in readline.h readline/readline.h
57270 do
57271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57273   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57274 $as_echo_n "checking for $ac_header... " >&6; }
57275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57276   $as_echo_n "(cached) " >&6
57277 fi
57278 ac_res=`eval 'as_val=${'$as_ac_Header'}
57279                  $as_echo "$as_val"'`
57280                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57281 $as_echo "$ac_res" >&6; }
57282 else
57283   # Is the header compilable?
57284 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57285 $as_echo_n "checking $ac_header usability... " >&6; }
57286 cat >conftest.$ac_ext <<_ACEOF
57287 /* confdefs.h.  */
57288 _ACEOF
57289 cat confdefs.h >>conftest.$ac_ext
57290 cat >>conftest.$ac_ext <<_ACEOF
57291 /* end confdefs.h.  */
57292 $ac_includes_default
57293 #include <$ac_header>
57294 _ACEOF
57295 rm -f conftest.$ac_objext
57296 if { (ac_try="$ac_compile"
57297 case "(($ac_try" in
57298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57299   *) ac_try_echo=$ac_try;;
57300 esac
57301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57302 $as_echo "$ac_try_echo") >&5
57303   (eval "$ac_compile") 2>conftest.er1
57304   ac_status=$?
57305   grep -v '^ *+' conftest.er1 >conftest.err
57306   rm -f conftest.er1
57307   cat conftest.err >&5
57308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57309   (exit $ac_status); } && {
57310          test -z "$ac_c_werror_flag" ||
57311          test ! -s conftest.err
57312        } && test -s conftest.$ac_objext; then
57313   ac_header_compiler=yes
57314 else
57315   $as_echo "$as_me: failed program was:" >&5
57316 sed 's/^/| /' conftest.$ac_ext >&5
57317
57318         ac_header_compiler=no
57319 fi
57320
57321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57322 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57323 $as_echo "$ac_header_compiler" >&6; }
57324
57325 # Is the header present?
57326 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57327 $as_echo_n "checking $ac_header presence... " >&6; }
57328 cat >conftest.$ac_ext <<_ACEOF
57329 /* confdefs.h.  */
57330 _ACEOF
57331 cat confdefs.h >>conftest.$ac_ext
57332 cat >>conftest.$ac_ext <<_ACEOF
57333 /* end confdefs.h.  */
57334 #include <$ac_header>
57335 _ACEOF
57336 if { (ac_try="$ac_cpp conftest.$ac_ext"
57337 case "(($ac_try" in
57338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57339   *) ac_try_echo=$ac_try;;
57340 esac
57341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57342 $as_echo "$ac_try_echo") >&5
57343   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57344   ac_status=$?
57345   grep -v '^ *+' conftest.er1 >conftest.err
57346   rm -f conftest.er1
57347   cat conftest.err >&5
57348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57349   (exit $ac_status); } >/dev/null && {
57350          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57351          test ! -s conftest.err
57352        }; then
57353   ac_header_preproc=yes
57354 else
57355   $as_echo "$as_me: failed program was:" >&5
57356 sed 's/^/| /' conftest.$ac_ext >&5
57357
57358   ac_header_preproc=no
57359 fi
57360
57361 rm -f conftest.err conftest.$ac_ext
57362 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57363 $as_echo "$ac_header_preproc" >&6; }
57364
57365 # So?  What about this header?
57366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57367   yes:no: )
57368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57369 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57372     ac_header_preproc=yes
57373     ;;
57374   no:yes:* )
57375     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57376 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57377     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57378 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57379     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57380 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57381     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57382 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57383     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57384 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57385     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57386 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57387
57388     ;;
57389 esac
57390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57391 $as_echo_n "checking for $ac_header... " >&6; }
57392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57393   $as_echo_n "(cached) " >&6
57394 else
57395   eval "$as_ac_Header=\$ac_header_preproc"
57396 fi
57397 ac_res=`eval 'as_val=${'$as_ac_Header'}
57398                  $as_echo "$as_val"'`
57399                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57400 $as_echo "$ac_res" >&6; }
57401
57402 fi
57403 as_val=`eval 'as_val=${'$as_ac_Header'}
57404                  $as_echo "$as_val"'`
57405    if test "x$as_val" = x""yes; then
57406   cat >>confdefs.h <<_ACEOF
57407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57408 _ACEOF
57409
57410 fi
57411
57412 done
57413
57414       { $as_echo "$as_me:$LINENO: checking whether readline supports history" >&5
57415 $as_echo_n "checking whether readline supports history... " >&6; }
57416 if test "${ax_cv_lib_readline_history+set}" = set; then
57417   $as_echo_n "(cached) " >&6
57418 else
57419
57420         ax_cv_lib_readline_history="no"
57421         cat >conftest.$ac_ext <<_ACEOF
57422 /* confdefs.h.  */
57423 _ACEOF
57424 cat confdefs.h >>conftest.$ac_ext
57425 cat >>conftest.$ac_ext <<_ACEOF
57426 /* end confdefs.h.  */
57427
57428 /* Override any GCC internal prototype to avoid an error.
57429    Use char because int might match the return type of a GCC
57430    builtin and then its argument prototype would still apply.  */
57431 #ifdef __cplusplus
57432 extern "C"
57433 #endif
57434 char add_history ();
57435 int
57436 main ()
57437 {
57438 return add_history ();
57439   ;
57440   return 0;
57441 }
57442 _ACEOF
57443 rm -f conftest.$ac_objext conftest$ac_exeext
57444 if { (ac_try="$ac_link"
57445 case "(($ac_try" in
57446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57447   *) ac_try_echo=$ac_try;;
57448 esac
57449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57450 $as_echo "$ac_try_echo") >&5
57451   (eval "$ac_link") 2>conftest.er1
57452   ac_status=$?
57453   grep -v '^ *+' conftest.er1 >conftest.err
57454   rm -f conftest.er1
57455   cat conftest.err >&5
57456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57457   (exit $ac_status); } && {
57458          test -z "$ac_c_werror_flag" ||
57459          test ! -s conftest.err
57460        } && test -s conftest$ac_exeext && {
57461          test "$cross_compiling" = yes ||
57462          $as_test_x conftest$ac_exeext
57463        }; then
57464   ax_cv_lib_readline_history="yes"
57465 else
57466   $as_echo "$as_me: failed program was:" >&5
57467 sed 's/^/| /' conftest.$ac_ext >&5
57468
57469
57470 fi
57471
57472 rm -rf conftest.dSYM
57473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57474       conftest$ac_exeext conftest.$ac_ext
57475
57476 fi
57477 { $as_echo "$as_me:$LINENO: result: $ax_cv_lib_readline_history" >&5
57478 $as_echo "$ax_cv_lib_readline_history" >&6; }
57479       if test "$ax_cv_lib_readline_history" = "yes"; then
57480
57481 cat >>confdefs.h <<\_ACEOF
57482 #define HAVE_READLINE_HISTORY 1
57483 _ACEOF
57484
57485
57486
57487 for ac_header in history.h readline/history.h
57488 do
57489 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57491   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57492 $as_echo_n "checking for $ac_header... " >&6; }
57493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57494   $as_echo_n "(cached) " >&6
57495 fi
57496 ac_res=`eval 'as_val=${'$as_ac_Header'}
57497                  $as_echo "$as_val"'`
57498                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57499 $as_echo "$ac_res" >&6; }
57500 else
57501   # Is the header compilable?
57502 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57503 $as_echo_n "checking $ac_header usability... " >&6; }
57504 cat >conftest.$ac_ext <<_ACEOF
57505 /* confdefs.h.  */
57506 _ACEOF
57507 cat confdefs.h >>conftest.$ac_ext
57508 cat >>conftest.$ac_ext <<_ACEOF
57509 /* end confdefs.h.  */
57510 $ac_includes_default
57511 #include <$ac_header>
57512 _ACEOF
57513 rm -f conftest.$ac_objext
57514 if { (ac_try="$ac_compile"
57515 case "(($ac_try" in
57516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57517   *) ac_try_echo=$ac_try;;
57518 esac
57519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57520 $as_echo "$ac_try_echo") >&5
57521   (eval "$ac_compile") 2>conftest.er1
57522   ac_status=$?
57523   grep -v '^ *+' conftest.er1 >conftest.err
57524   rm -f conftest.er1
57525   cat conftest.err >&5
57526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57527   (exit $ac_status); } && {
57528          test -z "$ac_c_werror_flag" ||
57529          test ! -s conftest.err
57530        } && test -s conftest.$ac_objext; then
57531   ac_header_compiler=yes
57532 else
57533   $as_echo "$as_me: failed program was:" >&5
57534 sed 's/^/| /' conftest.$ac_ext >&5
57535
57536         ac_header_compiler=no
57537 fi
57538
57539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57540 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57541 $as_echo "$ac_header_compiler" >&6; }
57542
57543 # Is the header present?
57544 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57545 $as_echo_n "checking $ac_header presence... " >&6; }
57546 cat >conftest.$ac_ext <<_ACEOF
57547 /* confdefs.h.  */
57548 _ACEOF
57549 cat confdefs.h >>conftest.$ac_ext
57550 cat >>conftest.$ac_ext <<_ACEOF
57551 /* end confdefs.h.  */
57552 #include <$ac_header>
57553 _ACEOF
57554 if { (ac_try="$ac_cpp conftest.$ac_ext"
57555 case "(($ac_try" in
57556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57557   *) ac_try_echo=$ac_try;;
57558 esac
57559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57560 $as_echo "$ac_try_echo") >&5
57561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57562   ac_status=$?
57563   grep -v '^ *+' conftest.er1 >conftest.err
57564   rm -f conftest.er1
57565   cat conftest.err >&5
57566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57567   (exit $ac_status); } >/dev/null && {
57568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57569          test ! -s conftest.err
57570        }; then
57571   ac_header_preproc=yes
57572 else
57573   $as_echo "$as_me: failed program was:" >&5
57574 sed 's/^/| /' conftest.$ac_ext >&5
57575
57576   ac_header_preproc=no
57577 fi
57578
57579 rm -f conftest.err conftest.$ac_ext
57580 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57581 $as_echo "$ac_header_preproc" >&6; }
57582
57583 # So?  What about this header?
57584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57585   yes:no: )
57586     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57587 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57588     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57589 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57590     ac_header_preproc=yes
57591     ;;
57592   no:yes:* )
57593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57594 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57596 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57598 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57600 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57604 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57605
57606     ;;
57607 esac
57608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57609 $as_echo_n "checking for $ac_header... " >&6; }
57610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57611   $as_echo_n "(cached) " >&6
57612 else
57613   eval "$as_ac_Header=\$ac_header_preproc"
57614 fi
57615 ac_res=`eval 'as_val=${'$as_ac_Header'}
57616                  $as_echo "$as_val"'`
57617                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57618 $as_echo "$ac_res" >&6; }
57619
57620 fi
57621 as_val=`eval 'as_val=${'$as_ac_Header'}
57622                  $as_echo "$as_val"'`
57623    if test "x$as_val" = x""yes; then
57624   cat >>confdefs.h <<_ACEOF
57625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57626 _ACEOF
57627
57628 fi
57629
57630 done
57631
57632       fi
57633       LIBS="$ORIG_LIBS"
57634
57635     else
57636       # no readline.  if the user *really* wanted it, bail out.
57637       if test x"$want_readline" = x"yes"; then
57638         { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
57639 $as_echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
57640    { (exit 1); exit 1; }; }
57641       fi
57642       READLINE_LIBS=""
57643     fi
57644   fi
57645
57646
57647
57648 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
57649 $as_echo_n "checking for modf in -lm... " >&6; }
57650 if test "${ac_cv_lib_m_modf+set}" = set; then
57651   $as_echo_n "(cached) " >&6
57652 else
57653   ac_check_lib_save_LIBS=$LIBS
57654 LIBS="-lm  $LIBS"
57655 cat >conftest.$ac_ext <<_ACEOF
57656 /* confdefs.h.  */
57657 _ACEOF
57658 cat confdefs.h >>conftest.$ac_ext
57659 cat >>conftest.$ac_ext <<_ACEOF
57660 /* end confdefs.h.  */
57661
57662 /* Override any GCC internal prototype to avoid an error.
57663    Use char because int might match the return type of a GCC
57664    builtin and then its argument prototype would still apply.  */
57665 #ifdef __cplusplus
57666 extern "C"
57667 #endif
57668 char modf ();
57669 int
57670 main ()
57671 {
57672 return modf ();
57673   ;
57674   return 0;
57675 }
57676 _ACEOF
57677 rm -f conftest.$ac_objext conftest$ac_exeext
57678 if { (ac_try="$ac_link"
57679 case "(($ac_try" in
57680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57681   *) ac_try_echo=$ac_try;;
57682 esac
57683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57684 $as_echo "$ac_try_echo") >&5
57685   (eval "$ac_link") 2>conftest.er1
57686   ac_status=$?
57687   grep -v '^ *+' conftest.er1 >conftest.err
57688   rm -f conftest.er1
57689   cat conftest.err >&5
57690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57691   (exit $ac_status); } && {
57692          test -z "$ac_c_werror_flag" ||
57693          test ! -s conftest.err
57694        } && test -s conftest$ac_exeext && {
57695          test "$cross_compiling" = yes ||
57696          $as_test_x conftest$ac_exeext
57697        }; then
57698   ac_cv_lib_m_modf=yes
57699 else
57700   $as_echo "$as_me: failed program was:" >&5
57701 sed 's/^/| /' conftest.$ac_ext >&5
57702
57703         ac_cv_lib_m_modf=no
57704 fi
57705
57706 rm -rf conftest.dSYM
57707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57708       conftest$ac_exeext conftest.$ac_ext
57709 LIBS=$ac_check_lib_save_LIBS
57710 fi
57711 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
57712 $as_echo "$ac_cv_lib_m_modf" >&6; }
57713 if test "x$ac_cv_lib_m_modf" = x""yes; then
57714   cat >>confdefs.h <<_ACEOF
57715 #define HAVE_LIBM 1
57716 _ACEOF
57717
57718   LIBS="-lm $LIBS"
57719
57720 fi
57721
57722
57723     if test "${ac_cv_header_execinfo_h+set}" = set; then
57724   { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57725 $as_echo_n "checking for execinfo.h... " >&6; }
57726 if test "${ac_cv_header_execinfo_h+set}" = set; then
57727   $as_echo_n "(cached) " >&6
57728 fi
57729 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57730 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57731 else
57732   # Is the header compilable?
57733 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
57734 $as_echo_n "checking execinfo.h usability... " >&6; }
57735 cat >conftest.$ac_ext <<_ACEOF
57736 /* confdefs.h.  */
57737 _ACEOF
57738 cat confdefs.h >>conftest.$ac_ext
57739 cat >>conftest.$ac_ext <<_ACEOF
57740 /* end confdefs.h.  */
57741 $ac_includes_default
57742 #include <execinfo.h>
57743 _ACEOF
57744 rm -f conftest.$ac_objext
57745 if { (ac_try="$ac_compile"
57746 case "(($ac_try" in
57747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57748   *) ac_try_echo=$ac_try;;
57749 esac
57750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57751 $as_echo "$ac_try_echo") >&5
57752   (eval "$ac_compile") 2>conftest.er1
57753   ac_status=$?
57754   grep -v '^ *+' conftest.er1 >conftest.err
57755   rm -f conftest.er1
57756   cat conftest.err >&5
57757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57758   (exit $ac_status); } && {
57759          test -z "$ac_c_werror_flag" ||
57760          test ! -s conftest.err
57761        } && test -s conftest.$ac_objext; then
57762   ac_header_compiler=yes
57763 else
57764   $as_echo "$as_me: failed program was:" >&5
57765 sed 's/^/| /' conftest.$ac_ext >&5
57766
57767         ac_header_compiler=no
57768 fi
57769
57770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57771 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57772 $as_echo "$ac_header_compiler" >&6; }
57773
57774 # Is the header present?
57775 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
57776 $as_echo_n "checking execinfo.h presence... " >&6; }
57777 cat >conftest.$ac_ext <<_ACEOF
57778 /* confdefs.h.  */
57779 _ACEOF
57780 cat confdefs.h >>conftest.$ac_ext
57781 cat >>conftest.$ac_ext <<_ACEOF
57782 /* end confdefs.h.  */
57783 #include <execinfo.h>
57784 _ACEOF
57785 if { (ac_try="$ac_cpp conftest.$ac_ext"
57786 case "(($ac_try" in
57787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57788   *) ac_try_echo=$ac_try;;
57789 esac
57790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57791 $as_echo "$ac_try_echo") >&5
57792   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57793   ac_status=$?
57794   grep -v '^ *+' conftest.er1 >conftest.err
57795   rm -f conftest.er1
57796   cat conftest.err >&5
57797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57798   (exit $ac_status); } >/dev/null && {
57799          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57800          test ! -s conftest.err
57801        }; then
57802   ac_header_preproc=yes
57803 else
57804   $as_echo "$as_me: failed program was:" >&5
57805 sed 's/^/| /' conftest.$ac_ext >&5
57806
57807   ac_header_preproc=no
57808 fi
57809
57810 rm -f conftest.err conftest.$ac_ext
57811 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57812 $as_echo "$ac_header_preproc" >&6; }
57813
57814 # So?  What about this header?
57815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57816   yes:no: )
57817     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57818 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57819     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
57820 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
57821     ac_header_preproc=yes
57822     ;;
57823   no:yes:* )
57824     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
57825 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
57826     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
57827 $as_echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
57828     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
57829 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
57830     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
57831 $as_echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57832     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
57833 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
57834     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
57835 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
57836
57837     ;;
57838 esac
57839 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
57840 $as_echo_n "checking for execinfo.h... " >&6; }
57841 if test "${ac_cv_header_execinfo_h+set}" = set; then
57842   $as_echo_n "(cached) " >&6
57843 else
57844   ac_cv_header_execinfo_h=$ac_header_preproc
57845 fi
57846 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
57847 $as_echo "$ac_cv_header_execinfo_h" >&6; }
57848
57849 fi
57850 if test "x$ac_cv_header_execinfo_h" = x""yes; then
57851
57852         { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
57853 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
57854 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
57855   $as_echo_n "(cached) " >&6
57856 else
57857   cat >conftest.$ac_ext <<_ACEOF
57858 /* confdefs.h.  */
57859 _ACEOF
57860 cat confdefs.h >>conftest.$ac_ext
57861 cat >>conftest.$ac_ext <<_ACEOF
57862 /* end confdefs.h.  */
57863 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
57864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57865 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
57866
57867 /* System header to define __stub macros and hopefully few prototypes,
57868     which can conflict with char backtrace_symbols_fd (); below.
57869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57870     <limits.h> exists even on freestanding compilers.  */
57871
57872 #ifdef __STDC__
57873 # include <limits.h>
57874 #else
57875 # include <assert.h>
57876 #endif
57877
57878 #undef backtrace_symbols_fd
57879
57880 /* Override any GCC internal prototype to avoid an error.
57881    Use char because int might match the return type of a GCC
57882    builtin and then its argument prototype would still apply.  */
57883 #ifdef __cplusplus
57884 extern "C"
57885 #endif
57886 char backtrace_symbols_fd ();
57887 /* The GNU C library defines this for functions which it implements
57888     to always fail with ENOSYS.  Some functions are actually named
57889     something starting with __ and the normal name is an alias.  */
57890 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
57891 choke me
57892 #endif
57893
57894 int
57895 main ()
57896 {
57897 return backtrace_symbols_fd ();
57898   ;
57899   return 0;
57900 }
57901 _ACEOF
57902 rm -f conftest.$ac_objext conftest$ac_exeext
57903 if { (ac_try="$ac_link"
57904 case "(($ac_try" in
57905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57906   *) ac_try_echo=$ac_try;;
57907 esac
57908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57909 $as_echo "$ac_try_echo") >&5
57910   (eval "$ac_link") 2>conftest.er1
57911   ac_status=$?
57912   grep -v '^ *+' conftest.er1 >conftest.err
57913   rm -f conftest.er1
57914   cat conftest.err >&5
57915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57916   (exit $ac_status); } && {
57917          test -z "$ac_c_werror_flag" ||
57918          test ! -s conftest.err
57919        } && test -s conftest$ac_exeext && {
57920          test "$cross_compiling" = yes ||
57921          $as_test_x conftest$ac_exeext
57922        }; then
57923   ac_cv_func_backtrace_symbols_fd=yes
57924 else
57925   $as_echo "$as_me: failed program was:" >&5
57926 sed 's/^/| /' conftest.$ac_ext >&5
57927
57928         ac_cv_func_backtrace_symbols_fd=no
57929 fi
57930
57931 rm -rf conftest.dSYM
57932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57933       conftest$ac_exeext conftest.$ac_ext
57934 fi
57935 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
57936 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
57937 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
57938
57939
57940 cat >>confdefs.h <<\_ACEOF
57941 #define HAVE_GLIBC_BACKTRACE 1
57942 _ACEOF
57943
57944
57945 fi
57946
57947
57948 fi
57949
57950
57951
57952
57953 #
57954 # Declarations
57955 #
57956 # Checks for library functions and if the function is declared in
57957 # an appropriate header file.  Functions which exist, but for which
57958 # no declaration is available, are declared in common-src/amanda.h.
57959 # It's not clear that any existing system implements but does not
57960 # declare common functions such as these.
57961 #
57962
57963 ice_have_accept=no
57964
57965 for ac_func in accept
57966 do
57967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57968 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57969 $as_echo_n "checking for $ac_func... " >&6; }
57970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57971   $as_echo_n "(cached) " >&6
57972 else
57973   cat >conftest.$ac_ext <<_ACEOF
57974 /* confdefs.h.  */
57975 _ACEOF
57976 cat confdefs.h >>conftest.$ac_ext
57977 cat >>conftest.$ac_ext <<_ACEOF
57978 /* end confdefs.h.  */
57979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57981 #define $ac_func innocuous_$ac_func
57982
57983 /* System header to define __stub macros and hopefully few prototypes,
57984     which can conflict with char $ac_func (); below.
57985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57986     <limits.h> exists even on freestanding compilers.  */
57987
57988 #ifdef __STDC__
57989 # include <limits.h>
57990 #else
57991 # include <assert.h>
57992 #endif
57993
57994 #undef $ac_func
57995
57996 /* Override any GCC internal prototype to avoid an error.
57997    Use char because int might match the return type of a GCC
57998    builtin and then its argument prototype would still apply.  */
57999 #ifdef __cplusplus
58000 extern "C"
58001 #endif
58002 char $ac_func ();
58003 /* The GNU C library defines this for functions which it implements
58004     to always fail with ENOSYS.  Some functions are actually named
58005     something starting with __ and the normal name is an alias.  */
58006 #if defined __stub_$ac_func || defined __stub___$ac_func
58007 choke me
58008 #endif
58009
58010 int
58011 main ()
58012 {
58013 return $ac_func ();
58014   ;
58015   return 0;
58016 }
58017 _ACEOF
58018 rm -f conftest.$ac_objext conftest$ac_exeext
58019 if { (ac_try="$ac_link"
58020 case "(($ac_try" in
58021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58022   *) ac_try_echo=$ac_try;;
58023 esac
58024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58025 $as_echo "$ac_try_echo") >&5
58026   (eval "$ac_link") 2>conftest.er1
58027   ac_status=$?
58028   grep -v '^ *+' conftest.er1 >conftest.err
58029   rm -f conftest.er1
58030   cat conftest.err >&5
58031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58032   (exit $ac_status); } && {
58033          test -z "$ac_c_werror_flag" ||
58034          test ! -s conftest.err
58035        } && test -s conftest$ac_exeext && {
58036          test "$cross_compiling" = yes ||
58037          $as_test_x conftest$ac_exeext
58038        }; then
58039   eval "$as_ac_var=yes"
58040 else
58041   $as_echo "$as_me: failed program was:" >&5
58042 sed 's/^/| /' conftest.$ac_ext >&5
58043
58044         eval "$as_ac_var=no"
58045 fi
58046
58047 rm -rf conftest.dSYM
58048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58049       conftest$ac_exeext conftest.$ac_ext
58050 fi
58051 ac_res=`eval 'as_val=${'$as_ac_var'}
58052                  $as_echo "$as_val"'`
58053                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58054 $as_echo "$ac_res" >&6; }
58055 as_val=`eval 'as_val=${'$as_ac_var'}
58056                  $as_echo "$as_val"'`
58057    if test "x$as_val" = x""yes; then
58058   cat >>confdefs.h <<_ACEOF
58059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58060 _ACEOF
58061  ice_have_accept=yes
58062 fi
58063 done
58064
58065 if test "${ice_have_accept}" = yes; then
58066 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
58067 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
58068 if test "${ice_cv_have_accept_decl+set}" = set; then
58069   $as_echo_n "(cached) " >&6
58070 else
58071
58072 ice_cv_have_accept_decl=no
58073 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58074 ice_re_word='(^|[^a-zA-Z0-9_])'
58075 for header in sys/types.h sys/socket.h; do
58076 # Check for ordinary declaration
58077 cat >conftest.$ac_ext <<_ACEOF
58078 /* confdefs.h.  */
58079 _ACEOF
58080 cat confdefs.h >>conftest.$ac_ext
58081 cat >>conftest.$ac_ext <<_ACEOF
58082 /* end confdefs.h.  */
58083 #include <$header>
58084
58085 _ACEOF
58086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58087   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
58088   ice_cv_have_accept_decl=yes
58089 fi
58090 rm -f conftest*
58091
58092 if test "$ice_cv_have_accept_decl" = yes; then
58093         break
58094 fi
58095 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58096 cat >conftest.$ac_ext <<_ACEOF
58097 /* confdefs.h.  */
58098 _ACEOF
58099 cat confdefs.h >>conftest.$ac_ext
58100 cat >>conftest.$ac_ext <<_ACEOF
58101 /* end confdefs.h.  */
58102 #include <$header>
58103
58104 _ACEOF
58105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58106   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58107   ice_cv_have_accept_decl=yes
58108 fi
58109 rm -f conftest*
58110
58111 if test "$ice_cv_have_accept_decl" = yes; then
58112         break
58113 fi
58114 done
58115
58116 fi
58117
58118 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
58119 $as_echo "$ice_cv_have_accept_decl" >&6; }
58120 if test "$ice_cv_have_accept_decl" = yes; then
58121
58122 cat >>confdefs.h <<_ACEOF
58123 #define HAVE_ACCEPT_DECL 1
58124 _ACEOF
58125
58126 fi
58127 fi
58128
58129 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
58130 # for constant arguments.  Useless!
58131 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
58132 $as_echo_n "checking for working alloca.h... " >&6; }
58133 if test "${ac_cv_working_alloca_h+set}" = set; then
58134   $as_echo_n "(cached) " >&6
58135 else
58136   cat >conftest.$ac_ext <<_ACEOF
58137 /* confdefs.h.  */
58138 _ACEOF
58139 cat confdefs.h >>conftest.$ac_ext
58140 cat >>conftest.$ac_ext <<_ACEOF
58141 /* end confdefs.h.  */
58142 #include <alloca.h>
58143 int
58144 main ()
58145 {
58146 char *p = (char *) alloca (2 * sizeof (int));
58147                           if (p) return 0;
58148   ;
58149   return 0;
58150 }
58151 _ACEOF
58152 rm -f conftest.$ac_objext conftest$ac_exeext
58153 if { (ac_try="$ac_link"
58154 case "(($ac_try" in
58155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58156   *) ac_try_echo=$ac_try;;
58157 esac
58158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58159 $as_echo "$ac_try_echo") >&5
58160   (eval "$ac_link") 2>conftest.er1
58161   ac_status=$?
58162   grep -v '^ *+' conftest.er1 >conftest.err
58163   rm -f conftest.er1
58164   cat conftest.err >&5
58165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58166   (exit $ac_status); } && {
58167          test -z "$ac_c_werror_flag" ||
58168          test ! -s conftest.err
58169        } && test -s conftest$ac_exeext && {
58170          test "$cross_compiling" = yes ||
58171          $as_test_x conftest$ac_exeext
58172        }; then
58173   ac_cv_working_alloca_h=yes
58174 else
58175   $as_echo "$as_me: failed program was:" >&5
58176 sed 's/^/| /' conftest.$ac_ext >&5
58177
58178         ac_cv_working_alloca_h=no
58179 fi
58180
58181 rm -rf conftest.dSYM
58182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58183       conftest$ac_exeext conftest.$ac_ext
58184 fi
58185 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
58186 $as_echo "$ac_cv_working_alloca_h" >&6; }
58187 if test $ac_cv_working_alloca_h = yes; then
58188
58189 cat >>confdefs.h <<\_ACEOF
58190 #define HAVE_ALLOCA_H 1
58191 _ACEOF
58192
58193 fi
58194
58195 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
58196 $as_echo_n "checking for alloca... " >&6; }
58197 if test "${ac_cv_func_alloca_works+set}" = set; then
58198   $as_echo_n "(cached) " >&6
58199 else
58200   cat >conftest.$ac_ext <<_ACEOF
58201 /* confdefs.h.  */
58202 _ACEOF
58203 cat confdefs.h >>conftest.$ac_ext
58204 cat >>conftest.$ac_ext <<_ACEOF
58205 /* end confdefs.h.  */
58206 #ifdef __GNUC__
58207 # define alloca __builtin_alloca
58208 #else
58209 # ifdef _MSC_VER
58210 #  include <malloc.h>
58211 #  define alloca _alloca
58212 # else
58213 #  ifdef HAVE_ALLOCA_H
58214 #   include <alloca.h>
58215 #  else
58216 #   ifdef _AIX
58217  #pragma alloca
58218 #   else
58219 #    ifndef alloca /* predefined by HP cc +Olibcalls */
58220 char *alloca ();
58221 #    endif
58222 #   endif
58223 #  endif
58224 # endif
58225 #endif
58226
58227 int
58228 main ()
58229 {
58230 char *p = (char *) alloca (1);
58231                                     if (p) return 0;
58232   ;
58233   return 0;
58234 }
58235 _ACEOF
58236 rm -f conftest.$ac_objext conftest$ac_exeext
58237 if { (ac_try="$ac_link"
58238 case "(($ac_try" in
58239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58240   *) ac_try_echo=$ac_try;;
58241 esac
58242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58243 $as_echo "$ac_try_echo") >&5
58244   (eval "$ac_link") 2>conftest.er1
58245   ac_status=$?
58246   grep -v '^ *+' conftest.er1 >conftest.err
58247   rm -f conftest.er1
58248   cat conftest.err >&5
58249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58250   (exit $ac_status); } && {
58251          test -z "$ac_c_werror_flag" ||
58252          test ! -s conftest.err
58253        } && test -s conftest$ac_exeext && {
58254          test "$cross_compiling" = yes ||
58255          $as_test_x conftest$ac_exeext
58256        }; then
58257   ac_cv_func_alloca_works=yes
58258 else
58259   $as_echo "$as_me: failed program was:" >&5
58260 sed 's/^/| /' conftest.$ac_ext >&5
58261
58262         ac_cv_func_alloca_works=no
58263 fi
58264
58265 rm -rf conftest.dSYM
58266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58267       conftest$ac_exeext conftest.$ac_ext
58268 fi
58269 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
58270 $as_echo "$ac_cv_func_alloca_works" >&6; }
58271
58272 if test $ac_cv_func_alloca_works = yes; then
58273
58274 cat >>confdefs.h <<\_ACEOF
58275 #define HAVE_ALLOCA 1
58276 _ACEOF
58277
58278 else
58279   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
58280 # that cause trouble.  Some versions do not even contain alloca or
58281 # contain a buggy version.  If you still want to use their alloca,
58282 # use ar to extract alloca.o from them instead of compiling alloca.c.
58283
58284 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
58285
58286 cat >>confdefs.h <<\_ACEOF
58287 #define C_ALLOCA 1
58288 _ACEOF
58289
58290
58291 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
58292 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
58293 if test "${ac_cv_os_cray+set}" = set; then
58294   $as_echo_n "(cached) " >&6
58295 else
58296   cat >conftest.$ac_ext <<_ACEOF
58297 /* confdefs.h.  */
58298 _ACEOF
58299 cat confdefs.h >>conftest.$ac_ext
58300 cat >>conftest.$ac_ext <<_ACEOF
58301 /* end confdefs.h.  */
58302 #if defined CRAY && ! defined CRAY2
58303 webecray
58304 #else
58305 wenotbecray
58306 #endif
58307
58308 _ACEOF
58309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58310   $EGREP "webecray" >/dev/null 2>&1; then
58311   ac_cv_os_cray=yes
58312 else
58313   ac_cv_os_cray=no
58314 fi
58315 rm -f conftest*
58316
58317 fi
58318 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
58319 $as_echo "$ac_cv_os_cray" >&6; }
58320 if test $ac_cv_os_cray = yes; then
58321   for ac_func in _getb67 GETB67 getb67; do
58322     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58323 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58324 $as_echo_n "checking for $ac_func... " >&6; }
58325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58326   $as_echo_n "(cached) " >&6
58327 else
58328   cat >conftest.$ac_ext <<_ACEOF
58329 /* confdefs.h.  */
58330 _ACEOF
58331 cat confdefs.h >>conftest.$ac_ext
58332 cat >>conftest.$ac_ext <<_ACEOF
58333 /* end confdefs.h.  */
58334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58336 #define $ac_func innocuous_$ac_func
58337
58338 /* System header to define __stub macros and hopefully few prototypes,
58339     which can conflict with char $ac_func (); below.
58340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58341     <limits.h> exists even on freestanding compilers.  */
58342
58343 #ifdef __STDC__
58344 # include <limits.h>
58345 #else
58346 # include <assert.h>
58347 #endif
58348
58349 #undef $ac_func
58350
58351 /* Override any GCC internal prototype to avoid an error.
58352    Use char because int might match the return type of a GCC
58353    builtin and then its argument prototype would still apply.  */
58354 #ifdef __cplusplus
58355 extern "C"
58356 #endif
58357 char $ac_func ();
58358 /* The GNU C library defines this for functions which it implements
58359     to always fail with ENOSYS.  Some functions are actually named
58360     something starting with __ and the normal name is an alias.  */
58361 #if defined __stub_$ac_func || defined __stub___$ac_func
58362 choke me
58363 #endif
58364
58365 int
58366 main ()
58367 {
58368 return $ac_func ();
58369   ;
58370   return 0;
58371 }
58372 _ACEOF
58373 rm -f conftest.$ac_objext conftest$ac_exeext
58374 if { (ac_try="$ac_link"
58375 case "(($ac_try" in
58376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58377   *) ac_try_echo=$ac_try;;
58378 esac
58379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58380 $as_echo "$ac_try_echo") >&5
58381   (eval "$ac_link") 2>conftest.er1
58382   ac_status=$?
58383   grep -v '^ *+' conftest.er1 >conftest.err
58384   rm -f conftest.er1
58385   cat conftest.err >&5
58386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58387   (exit $ac_status); } && {
58388          test -z "$ac_c_werror_flag" ||
58389          test ! -s conftest.err
58390        } && test -s conftest$ac_exeext && {
58391          test "$cross_compiling" = yes ||
58392          $as_test_x conftest$ac_exeext
58393        }; then
58394   eval "$as_ac_var=yes"
58395 else
58396   $as_echo "$as_me: failed program was:" >&5
58397 sed 's/^/| /' conftest.$ac_ext >&5
58398
58399         eval "$as_ac_var=no"
58400 fi
58401
58402 rm -rf conftest.dSYM
58403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58404       conftest$ac_exeext conftest.$ac_ext
58405 fi
58406 ac_res=`eval 'as_val=${'$as_ac_var'}
58407                  $as_echo "$as_val"'`
58408                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58409 $as_echo "$ac_res" >&6; }
58410 as_val=`eval 'as_val=${'$as_ac_var'}
58411                  $as_echo "$as_val"'`
58412    if test "x$as_val" = x""yes; then
58413
58414 cat >>confdefs.h <<_ACEOF
58415 #define CRAY_STACKSEG_END $ac_func
58416 _ACEOF
58417
58418     break
58419 fi
58420
58421   done
58422 fi
58423
58424 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
58425 $as_echo_n "checking stack direction for C alloca... " >&6; }
58426 if test "${ac_cv_c_stack_direction+set}" = set; then
58427   $as_echo_n "(cached) " >&6
58428 else
58429   if test "$cross_compiling" = yes; then
58430   ac_cv_c_stack_direction=0
58431 else
58432   cat >conftest.$ac_ext <<_ACEOF
58433 /* confdefs.h.  */
58434 _ACEOF
58435 cat confdefs.h >>conftest.$ac_ext
58436 cat >>conftest.$ac_ext <<_ACEOF
58437 /* end confdefs.h.  */
58438 $ac_includes_default
58439 int
58440 find_stack_direction ()
58441 {
58442   static char *addr = 0;
58443   auto char dummy;
58444   if (addr == 0)
58445     {
58446       addr = &dummy;
58447       return find_stack_direction ();
58448     }
58449   else
58450     return (&dummy > addr) ? 1 : -1;
58451 }
58452
58453 int
58454 main ()
58455 {
58456   return find_stack_direction () < 0;
58457 }
58458 _ACEOF
58459 rm -f conftest$ac_exeext
58460 if { (ac_try="$ac_link"
58461 case "(($ac_try" in
58462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58463   *) ac_try_echo=$ac_try;;
58464 esac
58465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58466 $as_echo "$ac_try_echo") >&5
58467   (eval "$ac_link") 2>&5
58468   ac_status=$?
58469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58471   { (case "(($ac_try" in
58472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58473   *) ac_try_echo=$ac_try;;
58474 esac
58475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58476 $as_echo "$ac_try_echo") >&5
58477   (eval "$ac_try") 2>&5
58478   ac_status=$?
58479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58480   (exit $ac_status); }; }; then
58481   ac_cv_c_stack_direction=1
58482 else
58483   $as_echo "$as_me: program exited with status $ac_status" >&5
58484 $as_echo "$as_me: failed program was:" >&5
58485 sed 's/^/| /' conftest.$ac_ext >&5
58486
58487 ( exit $ac_status )
58488 ac_cv_c_stack_direction=-1
58489 fi
58490 rm -rf conftest.dSYM
58491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58492 fi
58493
58494
58495 fi
58496 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
58497 $as_echo "$ac_cv_c_stack_direction" >&6; }
58498
58499 cat >>confdefs.h <<_ACEOF
58500 #define STACK_DIRECTION $ac_cv_c_stack_direction
58501 _ACEOF
58502
58503
58504 fi
58505
58506
58507 for ac_func in atexit
58508 do
58509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58510 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58511 $as_echo_n "checking for $ac_func... " >&6; }
58512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58513   $as_echo_n "(cached) " >&6
58514 else
58515   cat >conftest.$ac_ext <<_ACEOF
58516 /* confdefs.h.  */
58517 _ACEOF
58518 cat confdefs.h >>conftest.$ac_ext
58519 cat >>conftest.$ac_ext <<_ACEOF
58520 /* end confdefs.h.  */
58521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58523 #define $ac_func innocuous_$ac_func
58524
58525 /* System header to define __stub macros and hopefully few prototypes,
58526     which can conflict with char $ac_func (); below.
58527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58528     <limits.h> exists even on freestanding compilers.  */
58529
58530 #ifdef __STDC__
58531 # include <limits.h>
58532 #else
58533 # include <assert.h>
58534 #endif
58535
58536 #undef $ac_func
58537
58538 /* Override any GCC internal prototype to avoid an error.
58539    Use char because int might match the return type of a GCC
58540    builtin and then its argument prototype would still apply.  */
58541 #ifdef __cplusplus
58542 extern "C"
58543 #endif
58544 char $ac_func ();
58545 /* The GNU C library defines this for functions which it implements
58546     to always fail with ENOSYS.  Some functions are actually named
58547     something starting with __ and the normal name is an alias.  */
58548 #if defined __stub_$ac_func || defined __stub___$ac_func
58549 choke me
58550 #endif
58551
58552 int
58553 main ()
58554 {
58555 return $ac_func ();
58556   ;
58557   return 0;
58558 }
58559 _ACEOF
58560 rm -f conftest.$ac_objext conftest$ac_exeext
58561 if { (ac_try="$ac_link"
58562 case "(($ac_try" in
58563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58564   *) ac_try_echo=$ac_try;;
58565 esac
58566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58567 $as_echo "$ac_try_echo") >&5
58568   (eval "$ac_link") 2>conftest.er1
58569   ac_status=$?
58570   grep -v '^ *+' conftest.er1 >conftest.err
58571   rm -f conftest.er1
58572   cat conftest.err >&5
58573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58574   (exit $ac_status); } && {
58575          test -z "$ac_c_werror_flag" ||
58576          test ! -s conftest.err
58577        } && test -s conftest$ac_exeext && {
58578          test "$cross_compiling" = yes ||
58579          $as_test_x conftest$ac_exeext
58580        }; then
58581   eval "$as_ac_var=yes"
58582 else
58583   $as_echo "$as_me: failed program was:" >&5
58584 sed 's/^/| /' conftest.$ac_ext >&5
58585
58586         eval "$as_ac_var=no"
58587 fi
58588
58589 rm -rf conftest.dSYM
58590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58591       conftest$ac_exeext conftest.$ac_ext
58592 fi
58593 ac_res=`eval 'as_val=${'$as_ac_var'}
58594                  $as_echo "$as_val"'`
58595                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58596 $as_echo "$ac_res" >&6; }
58597 as_val=`eval 'as_val=${'$as_ac_var'}
58598                  $as_echo "$as_val"'`
58599    if test "x$as_val" = x""yes; then
58600   cat >>confdefs.h <<_ACEOF
58601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58602 _ACEOF
58603
58604 fi
58605 done
58606
58607
58608 ice_have_atof=no
58609
58610 for ac_func in atof
58611 do
58612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58613 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58614 $as_echo_n "checking for $ac_func... " >&6; }
58615 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58616   $as_echo_n "(cached) " >&6
58617 else
58618   cat >conftest.$ac_ext <<_ACEOF
58619 /* confdefs.h.  */
58620 _ACEOF
58621 cat confdefs.h >>conftest.$ac_ext
58622 cat >>conftest.$ac_ext <<_ACEOF
58623 /* end confdefs.h.  */
58624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58626 #define $ac_func innocuous_$ac_func
58627
58628 /* System header to define __stub macros and hopefully few prototypes,
58629     which can conflict with char $ac_func (); below.
58630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58631     <limits.h> exists even on freestanding compilers.  */
58632
58633 #ifdef __STDC__
58634 # include <limits.h>
58635 #else
58636 # include <assert.h>
58637 #endif
58638
58639 #undef $ac_func
58640
58641 /* Override any GCC internal prototype to avoid an error.
58642    Use char because int might match the return type of a GCC
58643    builtin and then its argument prototype would still apply.  */
58644 #ifdef __cplusplus
58645 extern "C"
58646 #endif
58647 char $ac_func ();
58648 /* The GNU C library defines this for functions which it implements
58649     to always fail with ENOSYS.  Some functions are actually named
58650     something starting with __ and the normal name is an alias.  */
58651 #if defined __stub_$ac_func || defined __stub___$ac_func
58652 choke me
58653 #endif
58654
58655 int
58656 main ()
58657 {
58658 return $ac_func ();
58659   ;
58660   return 0;
58661 }
58662 _ACEOF
58663 rm -f conftest.$ac_objext conftest$ac_exeext
58664 if { (ac_try="$ac_link"
58665 case "(($ac_try" in
58666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58667   *) ac_try_echo=$ac_try;;
58668 esac
58669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58670 $as_echo "$ac_try_echo") >&5
58671   (eval "$ac_link") 2>conftest.er1
58672   ac_status=$?
58673   grep -v '^ *+' conftest.er1 >conftest.err
58674   rm -f conftest.er1
58675   cat conftest.err >&5
58676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58677   (exit $ac_status); } && {
58678          test -z "$ac_c_werror_flag" ||
58679          test ! -s conftest.err
58680        } && test -s conftest$ac_exeext && {
58681          test "$cross_compiling" = yes ||
58682          $as_test_x conftest$ac_exeext
58683        }; then
58684   eval "$as_ac_var=yes"
58685 else
58686   $as_echo "$as_me: failed program was:" >&5
58687 sed 's/^/| /' conftest.$ac_ext >&5
58688
58689         eval "$as_ac_var=no"
58690 fi
58691
58692 rm -rf conftest.dSYM
58693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58694       conftest$ac_exeext conftest.$ac_ext
58695 fi
58696 ac_res=`eval 'as_val=${'$as_ac_var'}
58697                  $as_echo "$as_val"'`
58698                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58699 $as_echo "$ac_res" >&6; }
58700 as_val=`eval 'as_val=${'$as_ac_var'}
58701                  $as_echo "$as_val"'`
58702    if test "x$as_val" = x""yes; then
58703   cat >>confdefs.h <<_ACEOF
58704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58705 _ACEOF
58706  ice_have_atof=yes
58707 fi
58708 done
58709
58710 if test "${ice_have_atof}" = yes; then
58711 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
58712 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
58713 if test "${ice_cv_have_atof_decl+set}" = set; then
58714   $as_echo_n "(cached) " >&6
58715 else
58716
58717 ice_cv_have_atof_decl=no
58718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58719 ice_re_word='(^|[^a-zA-Z0-9_])'
58720 for header in stdlib.h; do
58721 # Check for ordinary declaration
58722 cat >conftest.$ac_ext <<_ACEOF
58723 /* confdefs.h.  */
58724 _ACEOF
58725 cat confdefs.h >>conftest.$ac_ext
58726 cat >>conftest.$ac_ext <<_ACEOF
58727 /* end confdefs.h.  */
58728 #include <$header>
58729
58730 _ACEOF
58731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58732   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
58733   ice_cv_have_atof_decl=yes
58734 fi
58735 rm -f conftest*
58736
58737 if test "$ice_cv_have_atof_decl" = yes; then
58738         break
58739 fi
58740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58741 cat >conftest.$ac_ext <<_ACEOF
58742 /* confdefs.h.  */
58743 _ACEOF
58744 cat confdefs.h >>conftest.$ac_ext
58745 cat >>conftest.$ac_ext <<_ACEOF
58746 /* end confdefs.h.  */
58747 #include <$header>
58748
58749 _ACEOF
58750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58751   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58752   ice_cv_have_atof_decl=yes
58753 fi
58754 rm -f conftest*
58755
58756 if test "$ice_cv_have_atof_decl" = yes; then
58757         break
58758 fi
58759 done
58760
58761 fi
58762
58763 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
58764 $as_echo "$ice_cv_have_atof_decl" >&6; }
58765 if test "$ice_cv_have_atof_decl" = yes; then
58766
58767 cat >>confdefs.h <<_ACEOF
58768 #define HAVE_ATOF_DECL 1
58769 _ACEOF
58770
58771 fi
58772 fi
58773
58774
58775 ice_have_atol=no
58776
58777 for ac_func in atol
58778 do
58779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58781 $as_echo_n "checking for $ac_func... " >&6; }
58782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58783   $as_echo_n "(cached) " >&6
58784 else
58785   cat >conftest.$ac_ext <<_ACEOF
58786 /* confdefs.h.  */
58787 _ACEOF
58788 cat confdefs.h >>conftest.$ac_ext
58789 cat >>conftest.$ac_ext <<_ACEOF
58790 /* end confdefs.h.  */
58791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58793 #define $ac_func innocuous_$ac_func
58794
58795 /* System header to define __stub macros and hopefully few prototypes,
58796     which can conflict with char $ac_func (); below.
58797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58798     <limits.h> exists even on freestanding compilers.  */
58799
58800 #ifdef __STDC__
58801 # include <limits.h>
58802 #else
58803 # include <assert.h>
58804 #endif
58805
58806 #undef $ac_func
58807
58808 /* Override any GCC internal prototype to avoid an error.
58809    Use char because int might match the return type of a GCC
58810    builtin and then its argument prototype would still apply.  */
58811 #ifdef __cplusplus
58812 extern "C"
58813 #endif
58814 char $ac_func ();
58815 /* The GNU C library defines this for functions which it implements
58816     to always fail with ENOSYS.  Some functions are actually named
58817     something starting with __ and the normal name is an alias.  */
58818 #if defined __stub_$ac_func || defined __stub___$ac_func
58819 choke me
58820 #endif
58821
58822 int
58823 main ()
58824 {
58825 return $ac_func ();
58826   ;
58827   return 0;
58828 }
58829 _ACEOF
58830 rm -f conftest.$ac_objext conftest$ac_exeext
58831 if { (ac_try="$ac_link"
58832 case "(($ac_try" in
58833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58834   *) ac_try_echo=$ac_try;;
58835 esac
58836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58837 $as_echo "$ac_try_echo") >&5
58838   (eval "$ac_link") 2>conftest.er1
58839   ac_status=$?
58840   grep -v '^ *+' conftest.er1 >conftest.err
58841   rm -f conftest.er1
58842   cat conftest.err >&5
58843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58844   (exit $ac_status); } && {
58845          test -z "$ac_c_werror_flag" ||
58846          test ! -s conftest.err
58847        } && test -s conftest$ac_exeext && {
58848          test "$cross_compiling" = yes ||
58849          $as_test_x conftest$ac_exeext
58850        }; then
58851   eval "$as_ac_var=yes"
58852 else
58853   $as_echo "$as_me: failed program was:" >&5
58854 sed 's/^/| /' conftest.$ac_ext >&5
58855
58856         eval "$as_ac_var=no"
58857 fi
58858
58859 rm -rf conftest.dSYM
58860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58861       conftest$ac_exeext conftest.$ac_ext
58862 fi
58863 ac_res=`eval 'as_val=${'$as_ac_var'}
58864                  $as_echo "$as_val"'`
58865                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58866 $as_echo "$ac_res" >&6; }
58867 as_val=`eval 'as_val=${'$as_ac_var'}
58868                  $as_echo "$as_val"'`
58869    if test "x$as_val" = x""yes; then
58870   cat >>confdefs.h <<_ACEOF
58871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58872 _ACEOF
58873  ice_have_atol=yes
58874 fi
58875 done
58876
58877 if test "${ice_have_atol}" = yes; then
58878 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
58879 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
58880 if test "${ice_cv_have_atol_decl+set}" = set; then
58881   $as_echo_n "(cached) " >&6
58882 else
58883
58884 ice_cv_have_atol_decl=no
58885 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58886 ice_re_word='(^|[^a-zA-Z0-9_])'
58887 for header in stdlib.h; do
58888 # Check for ordinary declaration
58889 cat >conftest.$ac_ext <<_ACEOF
58890 /* confdefs.h.  */
58891 _ACEOF
58892 cat confdefs.h >>conftest.$ac_ext
58893 cat >>conftest.$ac_ext <<_ACEOF
58894 /* end confdefs.h.  */
58895 #include <$header>
58896
58897 _ACEOF
58898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58899   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
58900   ice_cv_have_atol_decl=yes
58901 fi
58902 rm -f conftest*
58903
58904 if test "$ice_cv_have_atol_decl" = yes; then
58905         break
58906 fi
58907 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58908 cat >conftest.$ac_ext <<_ACEOF
58909 /* confdefs.h.  */
58910 _ACEOF
58911 cat confdefs.h >>conftest.$ac_ext
58912 cat >>conftest.$ac_ext <<_ACEOF
58913 /* end confdefs.h.  */
58914 #include <$header>
58915
58916 _ACEOF
58917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58918   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58919   ice_cv_have_atol_decl=yes
58920 fi
58921 rm -f conftest*
58922
58923 if test "$ice_cv_have_atol_decl" = yes; then
58924         break
58925 fi
58926 done
58927
58928 fi
58929
58930 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
58931 $as_echo "$ice_cv_have_atol_decl" >&6; }
58932 if test "$ice_cv_have_atol_decl" = yes; then
58933
58934 cat >>confdefs.h <<_ACEOF
58935 #define HAVE_ATOL_DECL 1
58936 _ACEOF
58937
58938 fi
58939 fi
58940
58941
58942 ice_have_atoll=no
58943
58944 for ac_func in atoll
58945 do
58946 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58947 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58948 $as_echo_n "checking for $ac_func... " >&6; }
58949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58950   $as_echo_n "(cached) " >&6
58951 else
58952   cat >conftest.$ac_ext <<_ACEOF
58953 /* confdefs.h.  */
58954 _ACEOF
58955 cat confdefs.h >>conftest.$ac_ext
58956 cat >>conftest.$ac_ext <<_ACEOF
58957 /* end confdefs.h.  */
58958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58960 #define $ac_func innocuous_$ac_func
58961
58962 /* System header to define __stub macros and hopefully few prototypes,
58963     which can conflict with char $ac_func (); below.
58964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58965     <limits.h> exists even on freestanding compilers.  */
58966
58967 #ifdef __STDC__
58968 # include <limits.h>
58969 #else
58970 # include <assert.h>
58971 #endif
58972
58973 #undef $ac_func
58974
58975 /* Override any GCC internal prototype to avoid an error.
58976    Use char because int might match the return type of a GCC
58977    builtin and then its argument prototype would still apply.  */
58978 #ifdef __cplusplus
58979 extern "C"
58980 #endif
58981 char $ac_func ();
58982 /* The GNU C library defines this for functions which it implements
58983     to always fail with ENOSYS.  Some functions are actually named
58984     something starting with __ and the normal name is an alias.  */
58985 #if defined __stub_$ac_func || defined __stub___$ac_func
58986 choke me
58987 #endif
58988
58989 int
58990 main ()
58991 {
58992 return $ac_func ();
58993   ;
58994   return 0;
58995 }
58996 _ACEOF
58997 rm -f conftest.$ac_objext conftest$ac_exeext
58998 if { (ac_try="$ac_link"
58999 case "(($ac_try" in
59000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59001   *) ac_try_echo=$ac_try;;
59002 esac
59003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59004 $as_echo "$ac_try_echo") >&5
59005   (eval "$ac_link") 2>conftest.er1
59006   ac_status=$?
59007   grep -v '^ *+' conftest.er1 >conftest.err
59008   rm -f conftest.er1
59009   cat conftest.err >&5
59010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59011   (exit $ac_status); } && {
59012          test -z "$ac_c_werror_flag" ||
59013          test ! -s conftest.err
59014        } && test -s conftest$ac_exeext && {
59015          test "$cross_compiling" = yes ||
59016          $as_test_x conftest$ac_exeext
59017        }; then
59018   eval "$as_ac_var=yes"
59019 else
59020   $as_echo "$as_me: failed program was:" >&5
59021 sed 's/^/| /' conftest.$ac_ext >&5
59022
59023         eval "$as_ac_var=no"
59024 fi
59025
59026 rm -rf conftest.dSYM
59027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59028       conftest$ac_exeext conftest.$ac_ext
59029 fi
59030 ac_res=`eval 'as_val=${'$as_ac_var'}
59031                  $as_echo "$as_val"'`
59032                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59033 $as_echo "$ac_res" >&6; }
59034 as_val=`eval 'as_val=${'$as_ac_var'}
59035                  $as_echo "$as_val"'`
59036    if test "x$as_val" = x""yes; then
59037   cat >>confdefs.h <<_ACEOF
59038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59039 _ACEOF
59040  ice_have_atoll=yes
59041 fi
59042 done
59043
59044 if test "${ice_have_atoll}" = yes; then
59045 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
59046 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
59047 if test "${ice_cv_have_atoll_decl+set}" = set; then
59048   $as_echo_n "(cached) " >&6
59049 else
59050
59051 ice_cv_have_atoll_decl=no
59052 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59053 ice_re_word='(^|[^a-zA-Z0-9_])'
59054 for header in stdlib.h; do
59055 # Check for ordinary declaration
59056 cat >conftest.$ac_ext <<_ACEOF
59057 /* confdefs.h.  */
59058 _ACEOF
59059 cat confdefs.h >>conftest.$ac_ext
59060 cat >>conftest.$ac_ext <<_ACEOF
59061 /* end confdefs.h.  */
59062 #include <$header>
59063
59064 _ACEOF
59065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59066   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
59067   ice_cv_have_atoll_decl=yes
59068 fi
59069 rm -f conftest*
59070
59071 if test "$ice_cv_have_atoll_decl" = yes; then
59072         break
59073 fi
59074 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59075 cat >conftest.$ac_ext <<_ACEOF
59076 /* confdefs.h.  */
59077 _ACEOF
59078 cat confdefs.h >>conftest.$ac_ext
59079 cat >>conftest.$ac_ext <<_ACEOF
59080 /* end confdefs.h.  */
59081 #include <$header>
59082
59083 _ACEOF
59084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59085   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59086   ice_cv_have_atoll_decl=yes
59087 fi
59088 rm -f conftest*
59089
59090 if test "$ice_cv_have_atoll_decl" = yes; then
59091         break
59092 fi
59093 done
59094
59095 fi
59096
59097 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
59098 $as_echo "$ice_cv_have_atoll_decl" >&6; }
59099 if test "$ice_cv_have_atoll_decl" = yes; then
59100
59101 cat >>confdefs.h <<_ACEOF
59102 #define HAVE_ATOLL_DECL 1
59103 _ACEOF
59104
59105 fi
59106 fi
59107
59108
59109 ice_have_strtol=no
59110
59111 for ac_func in strtol
59112 do
59113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59115 $as_echo_n "checking for $ac_func... " >&6; }
59116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59117   $as_echo_n "(cached) " >&6
59118 else
59119   cat >conftest.$ac_ext <<_ACEOF
59120 /* confdefs.h.  */
59121 _ACEOF
59122 cat confdefs.h >>conftest.$ac_ext
59123 cat >>conftest.$ac_ext <<_ACEOF
59124 /* end confdefs.h.  */
59125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59127 #define $ac_func innocuous_$ac_func
59128
59129 /* System header to define __stub macros and hopefully few prototypes,
59130     which can conflict with char $ac_func (); below.
59131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59132     <limits.h> exists even on freestanding compilers.  */
59133
59134 #ifdef __STDC__
59135 # include <limits.h>
59136 #else
59137 # include <assert.h>
59138 #endif
59139
59140 #undef $ac_func
59141
59142 /* Override any GCC internal prototype to avoid an error.
59143    Use char because int might match the return type of a GCC
59144    builtin and then its argument prototype would still apply.  */
59145 #ifdef __cplusplus
59146 extern "C"
59147 #endif
59148 char $ac_func ();
59149 /* The GNU C library defines this for functions which it implements
59150     to always fail with ENOSYS.  Some functions are actually named
59151     something starting with __ and the normal name is an alias.  */
59152 #if defined __stub_$ac_func || defined __stub___$ac_func
59153 choke me
59154 #endif
59155
59156 int
59157 main ()
59158 {
59159 return $ac_func ();
59160   ;
59161   return 0;
59162 }
59163 _ACEOF
59164 rm -f conftest.$ac_objext conftest$ac_exeext
59165 if { (ac_try="$ac_link"
59166 case "(($ac_try" in
59167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59168   *) ac_try_echo=$ac_try;;
59169 esac
59170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59171 $as_echo "$ac_try_echo") >&5
59172   (eval "$ac_link") 2>conftest.er1
59173   ac_status=$?
59174   grep -v '^ *+' conftest.er1 >conftest.err
59175   rm -f conftest.er1
59176   cat conftest.err >&5
59177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59178   (exit $ac_status); } && {
59179          test -z "$ac_c_werror_flag" ||
59180          test ! -s conftest.err
59181        } && test -s conftest$ac_exeext && {
59182          test "$cross_compiling" = yes ||
59183          $as_test_x conftest$ac_exeext
59184        }; then
59185   eval "$as_ac_var=yes"
59186 else
59187   $as_echo "$as_me: failed program was:" >&5
59188 sed 's/^/| /' conftest.$ac_ext >&5
59189
59190         eval "$as_ac_var=no"
59191 fi
59192
59193 rm -rf conftest.dSYM
59194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59195       conftest$ac_exeext conftest.$ac_ext
59196 fi
59197 ac_res=`eval 'as_val=${'$as_ac_var'}
59198                  $as_echo "$as_val"'`
59199                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59200 $as_echo "$ac_res" >&6; }
59201 as_val=`eval 'as_val=${'$as_ac_var'}
59202                  $as_echo "$as_val"'`
59203    if test "x$as_val" = x""yes; then
59204   cat >>confdefs.h <<_ACEOF
59205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59206 _ACEOF
59207  ice_have_strtol=yes
59208 fi
59209 done
59210
59211 if test "${ice_have_strtol}" = yes; then
59212 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
59213 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
59214 if test "${ice_cv_have_strtol_decl+set}" = set; then
59215   $as_echo_n "(cached) " >&6
59216 else
59217
59218 ice_cv_have_strtol_decl=no
59219 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59220 ice_re_word='(^|[^a-zA-Z0-9_])'
59221 for header in stdlib.h; do
59222 # Check for ordinary declaration
59223 cat >conftest.$ac_ext <<_ACEOF
59224 /* confdefs.h.  */
59225 _ACEOF
59226 cat confdefs.h >>conftest.$ac_ext
59227 cat >>conftest.$ac_ext <<_ACEOF
59228 /* end confdefs.h.  */
59229 #include <$header>
59230
59231 _ACEOF
59232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59233   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
59234   ice_cv_have_strtol_decl=yes
59235 fi
59236 rm -f conftest*
59237
59238 if test "$ice_cv_have_strtol_decl" = yes; then
59239         break
59240 fi
59241 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59242 cat >conftest.$ac_ext <<_ACEOF
59243 /* confdefs.h.  */
59244 _ACEOF
59245 cat confdefs.h >>conftest.$ac_ext
59246 cat >>conftest.$ac_ext <<_ACEOF
59247 /* end confdefs.h.  */
59248 #include <$header>
59249
59250 _ACEOF
59251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59252   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59253   ice_cv_have_strtol_decl=yes
59254 fi
59255 rm -f conftest*
59256
59257 if test "$ice_cv_have_strtol_decl" = yes; then
59258         break
59259 fi
59260 done
59261
59262 fi
59263
59264 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
59265 $as_echo "$ice_cv_have_strtol_decl" >&6; }
59266 if test "$ice_cv_have_strtol_decl" = yes; then
59267
59268 cat >>confdefs.h <<_ACEOF
59269 #define HAVE_STRTOL_DECL 1
59270 _ACEOF
59271
59272 fi
59273 fi
59274
59275
59276 ice_have_strtoll=no
59277
59278 for ac_func in strtoll
59279 do
59280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59281 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59282 $as_echo_n "checking for $ac_func... " >&6; }
59283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59284   $as_echo_n "(cached) " >&6
59285 else
59286   cat >conftest.$ac_ext <<_ACEOF
59287 /* confdefs.h.  */
59288 _ACEOF
59289 cat confdefs.h >>conftest.$ac_ext
59290 cat >>conftest.$ac_ext <<_ACEOF
59291 /* end confdefs.h.  */
59292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59294 #define $ac_func innocuous_$ac_func
59295
59296 /* System header to define __stub macros and hopefully few prototypes,
59297     which can conflict with char $ac_func (); below.
59298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59299     <limits.h> exists even on freestanding compilers.  */
59300
59301 #ifdef __STDC__
59302 # include <limits.h>
59303 #else
59304 # include <assert.h>
59305 #endif
59306
59307 #undef $ac_func
59308
59309 /* Override any GCC internal prototype to avoid an error.
59310    Use char because int might match the return type of a GCC
59311    builtin and then its argument prototype would still apply.  */
59312 #ifdef __cplusplus
59313 extern "C"
59314 #endif
59315 char $ac_func ();
59316 /* The GNU C library defines this for functions which it implements
59317     to always fail with ENOSYS.  Some functions are actually named
59318     something starting with __ and the normal name is an alias.  */
59319 #if defined __stub_$ac_func || defined __stub___$ac_func
59320 choke me
59321 #endif
59322
59323 int
59324 main ()
59325 {
59326 return $ac_func ();
59327   ;
59328   return 0;
59329 }
59330 _ACEOF
59331 rm -f conftest.$ac_objext conftest$ac_exeext
59332 if { (ac_try="$ac_link"
59333 case "(($ac_try" in
59334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59335   *) ac_try_echo=$ac_try;;
59336 esac
59337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59338 $as_echo "$ac_try_echo") >&5
59339   (eval "$ac_link") 2>conftest.er1
59340   ac_status=$?
59341   grep -v '^ *+' conftest.er1 >conftest.err
59342   rm -f conftest.er1
59343   cat conftest.err >&5
59344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59345   (exit $ac_status); } && {
59346          test -z "$ac_c_werror_flag" ||
59347          test ! -s conftest.err
59348        } && test -s conftest$ac_exeext && {
59349          test "$cross_compiling" = yes ||
59350          $as_test_x conftest$ac_exeext
59351        }; then
59352   eval "$as_ac_var=yes"
59353 else
59354   $as_echo "$as_me: failed program was:" >&5
59355 sed 's/^/| /' conftest.$ac_ext >&5
59356
59357         eval "$as_ac_var=no"
59358 fi
59359
59360 rm -rf conftest.dSYM
59361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59362       conftest$ac_exeext conftest.$ac_ext
59363 fi
59364 ac_res=`eval 'as_val=${'$as_ac_var'}
59365                  $as_echo "$as_val"'`
59366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59367 $as_echo "$ac_res" >&6; }
59368 as_val=`eval 'as_val=${'$as_ac_var'}
59369                  $as_echo "$as_val"'`
59370    if test "x$as_val" = x""yes; then
59371   cat >>confdefs.h <<_ACEOF
59372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59373 _ACEOF
59374  ice_have_strtoll=yes
59375 fi
59376 done
59377
59378 if test "${ice_have_strtoll}" = yes; then
59379 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
59380 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
59381 if test "${ice_cv_have_strtoll_decl+set}" = set; then
59382   $as_echo_n "(cached) " >&6
59383 else
59384
59385 ice_cv_have_strtoll_decl=no
59386 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59387 ice_re_word='(^|[^a-zA-Z0-9_])'
59388 for header in stdlib.h; do
59389 # Check for ordinary declaration
59390 cat >conftest.$ac_ext <<_ACEOF
59391 /* confdefs.h.  */
59392 _ACEOF
59393 cat confdefs.h >>conftest.$ac_ext
59394 cat >>conftest.$ac_ext <<_ACEOF
59395 /* end confdefs.h.  */
59396 #include <$header>
59397
59398 _ACEOF
59399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59400   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
59401   ice_cv_have_strtoll_decl=yes
59402 fi
59403 rm -f conftest*
59404
59405 if test "$ice_cv_have_strtoll_decl" = yes; then
59406         break
59407 fi
59408 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59409 cat >conftest.$ac_ext <<_ACEOF
59410 /* confdefs.h.  */
59411 _ACEOF
59412 cat confdefs.h >>conftest.$ac_ext
59413 cat >>conftest.$ac_ext <<_ACEOF
59414 /* end confdefs.h.  */
59415 #include <$header>
59416
59417 _ACEOF
59418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59419   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59420   ice_cv_have_strtoll_decl=yes
59421 fi
59422 rm -f conftest*
59423
59424 if test "$ice_cv_have_strtoll_decl" = yes; then
59425         break
59426 fi
59427 done
59428
59429 fi
59430
59431 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
59432 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
59433 if test "$ice_cv_have_strtoll_decl" = yes; then
59434
59435 cat >>confdefs.h <<_ACEOF
59436 #define HAVE_STRTOLL_DECL 1
59437 _ACEOF
59438
59439 fi
59440 fi
59441
59442
59443 for ac_func in basename
59444 do
59445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59447 $as_echo_n "checking for $ac_func... " >&6; }
59448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59449   $as_echo_n "(cached) " >&6
59450 else
59451   cat >conftest.$ac_ext <<_ACEOF
59452 /* confdefs.h.  */
59453 _ACEOF
59454 cat confdefs.h >>conftest.$ac_ext
59455 cat >>conftest.$ac_ext <<_ACEOF
59456 /* end confdefs.h.  */
59457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59459 #define $ac_func innocuous_$ac_func
59460
59461 /* System header to define __stub macros and hopefully few prototypes,
59462     which can conflict with char $ac_func (); below.
59463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59464     <limits.h> exists even on freestanding compilers.  */
59465
59466 #ifdef __STDC__
59467 # include <limits.h>
59468 #else
59469 # include <assert.h>
59470 #endif
59471
59472 #undef $ac_func
59473
59474 /* Override any GCC internal prototype to avoid an error.
59475    Use char because int might match the return type of a GCC
59476    builtin and then its argument prototype would still apply.  */
59477 #ifdef __cplusplus
59478 extern "C"
59479 #endif
59480 char $ac_func ();
59481 /* The GNU C library defines this for functions which it implements
59482     to always fail with ENOSYS.  Some functions are actually named
59483     something starting with __ and the normal name is an alias.  */
59484 #if defined __stub_$ac_func || defined __stub___$ac_func
59485 choke me
59486 #endif
59487
59488 int
59489 main ()
59490 {
59491 return $ac_func ();
59492   ;
59493   return 0;
59494 }
59495 _ACEOF
59496 rm -f conftest.$ac_objext conftest$ac_exeext
59497 if { (ac_try="$ac_link"
59498 case "(($ac_try" in
59499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59500   *) ac_try_echo=$ac_try;;
59501 esac
59502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59503 $as_echo "$ac_try_echo") >&5
59504   (eval "$ac_link") 2>conftest.er1
59505   ac_status=$?
59506   grep -v '^ *+' conftest.er1 >conftest.err
59507   rm -f conftest.er1
59508   cat conftest.err >&5
59509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59510   (exit $ac_status); } && {
59511          test -z "$ac_c_werror_flag" ||
59512          test ! -s conftest.err
59513        } && test -s conftest$ac_exeext && {
59514          test "$cross_compiling" = yes ||
59515          $as_test_x conftest$ac_exeext
59516        }; then
59517   eval "$as_ac_var=yes"
59518 else
59519   $as_echo "$as_me: failed program was:" >&5
59520 sed 's/^/| /' conftest.$ac_ext >&5
59521
59522         eval "$as_ac_var=no"
59523 fi
59524
59525 rm -rf conftest.dSYM
59526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59527       conftest$ac_exeext conftest.$ac_ext
59528 fi
59529 ac_res=`eval 'as_val=${'$as_ac_var'}
59530                  $as_echo "$as_val"'`
59531                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59532 $as_echo "$ac_res" >&6; }
59533 as_val=`eval 'as_val=${'$as_ac_var'}
59534                  $as_echo "$as_val"'`
59535    if test "x$as_val" = x""yes; then
59536   cat >>confdefs.h <<_ACEOF
59537 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59538 _ACEOF
59539
59540 fi
59541 done
59542
59543
59544 ice_have_bind=no
59545
59546 for ac_func in bind
59547 do
59548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59549 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59550 $as_echo_n "checking for $ac_func... " >&6; }
59551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59552   $as_echo_n "(cached) " >&6
59553 else
59554   cat >conftest.$ac_ext <<_ACEOF
59555 /* confdefs.h.  */
59556 _ACEOF
59557 cat confdefs.h >>conftest.$ac_ext
59558 cat >>conftest.$ac_ext <<_ACEOF
59559 /* end confdefs.h.  */
59560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59562 #define $ac_func innocuous_$ac_func
59563
59564 /* System header to define __stub macros and hopefully few prototypes,
59565     which can conflict with char $ac_func (); below.
59566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59567     <limits.h> exists even on freestanding compilers.  */
59568
59569 #ifdef __STDC__
59570 # include <limits.h>
59571 #else
59572 # include <assert.h>
59573 #endif
59574
59575 #undef $ac_func
59576
59577 /* Override any GCC internal prototype to avoid an error.
59578    Use char because int might match the return type of a GCC
59579    builtin and then its argument prototype would still apply.  */
59580 #ifdef __cplusplus
59581 extern "C"
59582 #endif
59583 char $ac_func ();
59584 /* The GNU C library defines this for functions which it implements
59585     to always fail with ENOSYS.  Some functions are actually named
59586     something starting with __ and the normal name is an alias.  */
59587 #if defined __stub_$ac_func || defined __stub___$ac_func
59588 choke me
59589 #endif
59590
59591 int
59592 main ()
59593 {
59594 return $ac_func ();
59595   ;
59596   return 0;
59597 }
59598 _ACEOF
59599 rm -f conftest.$ac_objext conftest$ac_exeext
59600 if { (ac_try="$ac_link"
59601 case "(($ac_try" in
59602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59603   *) ac_try_echo=$ac_try;;
59604 esac
59605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59606 $as_echo "$ac_try_echo") >&5
59607   (eval "$ac_link") 2>conftest.er1
59608   ac_status=$?
59609   grep -v '^ *+' conftest.er1 >conftest.err
59610   rm -f conftest.er1
59611   cat conftest.err >&5
59612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59613   (exit $ac_status); } && {
59614          test -z "$ac_c_werror_flag" ||
59615          test ! -s conftest.err
59616        } && test -s conftest$ac_exeext && {
59617          test "$cross_compiling" = yes ||
59618          $as_test_x conftest$ac_exeext
59619        }; then
59620   eval "$as_ac_var=yes"
59621 else
59622   $as_echo "$as_me: failed program was:" >&5
59623 sed 's/^/| /' conftest.$ac_ext >&5
59624
59625         eval "$as_ac_var=no"
59626 fi
59627
59628 rm -rf conftest.dSYM
59629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59630       conftest$ac_exeext conftest.$ac_ext
59631 fi
59632 ac_res=`eval 'as_val=${'$as_ac_var'}
59633                  $as_echo "$as_val"'`
59634                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59635 $as_echo "$ac_res" >&6; }
59636 as_val=`eval 'as_val=${'$as_ac_var'}
59637                  $as_echo "$as_val"'`
59638    if test "x$as_val" = x""yes; then
59639   cat >>confdefs.h <<_ACEOF
59640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59641 _ACEOF
59642  ice_have_bind=yes
59643 fi
59644 done
59645
59646 if test "${ice_have_bind}" = yes; then
59647 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
59648 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
59649 if test "${ice_cv_have_bind_decl+set}" = set; then
59650   $as_echo_n "(cached) " >&6
59651 else
59652
59653 ice_cv_have_bind_decl=no
59654 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59655 ice_re_word='(^|[^a-zA-Z0-9_])'
59656 for header in sys/types.h sys/socket.h; do
59657 # Check for ordinary declaration
59658 cat >conftest.$ac_ext <<_ACEOF
59659 /* confdefs.h.  */
59660 _ACEOF
59661 cat confdefs.h >>conftest.$ac_ext
59662 cat >>conftest.$ac_ext <<_ACEOF
59663 /* end confdefs.h.  */
59664 #include <$header>
59665
59666 _ACEOF
59667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59668   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
59669   ice_cv_have_bind_decl=yes
59670 fi
59671 rm -f conftest*
59672
59673 if test "$ice_cv_have_bind_decl" = yes; then
59674         break
59675 fi
59676 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59677 cat >conftest.$ac_ext <<_ACEOF
59678 /* confdefs.h.  */
59679 _ACEOF
59680 cat confdefs.h >>conftest.$ac_ext
59681 cat >>conftest.$ac_ext <<_ACEOF
59682 /* end confdefs.h.  */
59683 #include <$header>
59684
59685 _ACEOF
59686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59687   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59688   ice_cv_have_bind_decl=yes
59689 fi
59690 rm -f conftest*
59691
59692 if test "$ice_cv_have_bind_decl" = yes; then
59693         break
59694 fi
59695 done
59696
59697 fi
59698
59699 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
59700 $as_echo "$ice_cv_have_bind_decl" >&6; }
59701 if test "$ice_cv_have_bind_decl" = yes; then
59702
59703 cat >>confdefs.h <<_ACEOF
59704 #define HAVE_BIND_DECL 1
59705 _ACEOF
59706
59707 fi
59708 fi
59709
59710
59711 ice_have_bcopy=no
59712
59713 for ac_func in bcopy
59714 do
59715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59717 $as_echo_n "checking for $ac_func... " >&6; }
59718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59719   $as_echo_n "(cached) " >&6
59720 else
59721   cat >conftest.$ac_ext <<_ACEOF
59722 /* confdefs.h.  */
59723 _ACEOF
59724 cat confdefs.h >>conftest.$ac_ext
59725 cat >>conftest.$ac_ext <<_ACEOF
59726 /* end confdefs.h.  */
59727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59729 #define $ac_func innocuous_$ac_func
59730
59731 /* System header to define __stub macros and hopefully few prototypes,
59732     which can conflict with char $ac_func (); below.
59733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59734     <limits.h> exists even on freestanding compilers.  */
59735
59736 #ifdef __STDC__
59737 # include <limits.h>
59738 #else
59739 # include <assert.h>
59740 #endif
59741
59742 #undef $ac_func
59743
59744 /* Override any GCC internal prototype to avoid an error.
59745    Use char because int might match the return type of a GCC
59746    builtin and then its argument prototype would still apply.  */
59747 #ifdef __cplusplus
59748 extern "C"
59749 #endif
59750 char $ac_func ();
59751 /* The GNU C library defines this for functions which it implements
59752     to always fail with ENOSYS.  Some functions are actually named
59753     something starting with __ and the normal name is an alias.  */
59754 #if defined __stub_$ac_func || defined __stub___$ac_func
59755 choke me
59756 #endif
59757
59758 int
59759 main ()
59760 {
59761 return $ac_func ();
59762   ;
59763   return 0;
59764 }
59765 _ACEOF
59766 rm -f conftest.$ac_objext conftest$ac_exeext
59767 if { (ac_try="$ac_link"
59768 case "(($ac_try" in
59769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59770   *) ac_try_echo=$ac_try;;
59771 esac
59772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59773 $as_echo "$ac_try_echo") >&5
59774   (eval "$ac_link") 2>conftest.er1
59775   ac_status=$?
59776   grep -v '^ *+' conftest.er1 >conftest.err
59777   rm -f conftest.er1
59778   cat conftest.err >&5
59779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59780   (exit $ac_status); } && {
59781          test -z "$ac_c_werror_flag" ||
59782          test ! -s conftest.err
59783        } && test -s conftest$ac_exeext && {
59784          test "$cross_compiling" = yes ||
59785          $as_test_x conftest$ac_exeext
59786        }; then
59787   eval "$as_ac_var=yes"
59788 else
59789   $as_echo "$as_me: failed program was:" >&5
59790 sed 's/^/| /' conftest.$ac_ext >&5
59791
59792         eval "$as_ac_var=no"
59793 fi
59794
59795 rm -rf conftest.dSYM
59796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59797       conftest$ac_exeext conftest.$ac_ext
59798 fi
59799 ac_res=`eval 'as_val=${'$as_ac_var'}
59800                  $as_echo "$as_val"'`
59801                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59802 $as_echo "$ac_res" >&6; }
59803 as_val=`eval 'as_val=${'$as_ac_var'}
59804                  $as_echo "$as_val"'`
59805    if test "x$as_val" = x""yes; then
59806   cat >>confdefs.h <<_ACEOF
59807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59808 _ACEOF
59809  ice_have_bcopy=yes
59810 fi
59811 done
59812
59813 if test "${ice_have_bcopy}" = yes; then
59814 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
59815 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
59816 if test "${ice_cv_have_bcopy_decl+set}" = set; then
59817   $as_echo_n "(cached) " >&6
59818 else
59819
59820 ice_cv_have_bcopy_decl=no
59821 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59822 ice_re_word='(^|[^a-zA-Z0-9_])'
59823 for header in string.h strings.h stdlib.h; do
59824 # Check for ordinary declaration
59825 cat >conftest.$ac_ext <<_ACEOF
59826 /* confdefs.h.  */
59827 _ACEOF
59828 cat confdefs.h >>conftest.$ac_ext
59829 cat >>conftest.$ac_ext <<_ACEOF
59830 /* end confdefs.h.  */
59831 #include <$header>
59832
59833 _ACEOF
59834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59835   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
59836   ice_cv_have_bcopy_decl=yes
59837 fi
59838 rm -f conftest*
59839
59840 if test "$ice_cv_have_bcopy_decl" = yes; then
59841         break
59842 fi
59843 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59844 cat >conftest.$ac_ext <<_ACEOF
59845 /* confdefs.h.  */
59846 _ACEOF
59847 cat confdefs.h >>conftest.$ac_ext
59848 cat >>conftest.$ac_ext <<_ACEOF
59849 /* end confdefs.h.  */
59850 #include <$header>
59851
59852 _ACEOF
59853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59854   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59855   ice_cv_have_bcopy_decl=yes
59856 fi
59857 rm -f conftest*
59858
59859 if test "$ice_cv_have_bcopy_decl" = yes; then
59860         break
59861 fi
59862 done
59863
59864 fi
59865
59866 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
59867 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
59868 if test "$ice_cv_have_bcopy_decl" = yes; then
59869
59870 cat >>confdefs.h <<_ACEOF
59871 #define HAVE_BCOPY_DECL 1
59872 _ACEOF
59873
59874 fi
59875 fi
59876
59877
59878 ice_have_bzero=no
59879
59880 for ac_func in bzero
59881 do
59882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59883 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59884 $as_echo_n "checking for $ac_func... " >&6; }
59885 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59886   $as_echo_n "(cached) " >&6
59887 else
59888   cat >conftest.$ac_ext <<_ACEOF
59889 /* confdefs.h.  */
59890 _ACEOF
59891 cat confdefs.h >>conftest.$ac_ext
59892 cat >>conftest.$ac_ext <<_ACEOF
59893 /* end confdefs.h.  */
59894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59896 #define $ac_func innocuous_$ac_func
59897
59898 /* System header to define __stub macros and hopefully few prototypes,
59899     which can conflict with char $ac_func (); below.
59900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59901     <limits.h> exists even on freestanding compilers.  */
59902
59903 #ifdef __STDC__
59904 # include <limits.h>
59905 #else
59906 # include <assert.h>
59907 #endif
59908
59909 #undef $ac_func
59910
59911 /* Override any GCC internal prototype to avoid an error.
59912    Use char because int might match the return type of a GCC
59913    builtin and then its argument prototype would still apply.  */
59914 #ifdef __cplusplus
59915 extern "C"
59916 #endif
59917 char $ac_func ();
59918 /* The GNU C library defines this for functions which it implements
59919     to always fail with ENOSYS.  Some functions are actually named
59920     something starting with __ and the normal name is an alias.  */
59921 #if defined __stub_$ac_func || defined __stub___$ac_func
59922 choke me
59923 #endif
59924
59925 int
59926 main ()
59927 {
59928 return $ac_func ();
59929   ;
59930   return 0;
59931 }
59932 _ACEOF
59933 rm -f conftest.$ac_objext conftest$ac_exeext
59934 if { (ac_try="$ac_link"
59935 case "(($ac_try" in
59936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59937   *) ac_try_echo=$ac_try;;
59938 esac
59939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59940 $as_echo "$ac_try_echo") >&5
59941   (eval "$ac_link") 2>conftest.er1
59942   ac_status=$?
59943   grep -v '^ *+' conftest.er1 >conftest.err
59944   rm -f conftest.er1
59945   cat conftest.err >&5
59946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59947   (exit $ac_status); } && {
59948          test -z "$ac_c_werror_flag" ||
59949          test ! -s conftest.err
59950        } && test -s conftest$ac_exeext && {
59951          test "$cross_compiling" = yes ||
59952          $as_test_x conftest$ac_exeext
59953        }; then
59954   eval "$as_ac_var=yes"
59955 else
59956   $as_echo "$as_me: failed program was:" >&5
59957 sed 's/^/| /' conftest.$ac_ext >&5
59958
59959         eval "$as_ac_var=no"
59960 fi
59961
59962 rm -rf conftest.dSYM
59963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59964       conftest$ac_exeext conftest.$ac_ext
59965 fi
59966 ac_res=`eval 'as_val=${'$as_ac_var'}
59967                  $as_echo "$as_val"'`
59968                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59969 $as_echo "$ac_res" >&6; }
59970 as_val=`eval 'as_val=${'$as_ac_var'}
59971                  $as_echo "$as_val"'`
59972    if test "x$as_val" = x""yes; then
59973   cat >>confdefs.h <<_ACEOF
59974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59975 _ACEOF
59976  ice_have_bzero=yes
59977 fi
59978 done
59979
59980 if test "${ice_have_bzero}" = yes; then
59981 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
59982 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
59983 if test "${ice_cv_have_bzero_decl+set}" = set; then
59984   $as_echo_n "(cached) " >&6
59985 else
59986
59987 ice_cv_have_bzero_decl=no
59988 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59989 ice_re_word='(^|[^a-zA-Z0-9_])'
59990 for header in string.h strings.h stdlib.h; do
59991 # Check for ordinary declaration
59992 cat >conftest.$ac_ext <<_ACEOF
59993 /* confdefs.h.  */
59994 _ACEOF
59995 cat confdefs.h >>conftest.$ac_ext
59996 cat >>conftest.$ac_ext <<_ACEOF
59997 /* end confdefs.h.  */
59998 #include <$header>
59999
60000 _ACEOF
60001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60002   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
60003   ice_cv_have_bzero_decl=yes
60004 fi
60005 rm -f conftest*
60006
60007 if test "$ice_cv_have_bzero_decl" = yes; then
60008         break
60009 fi
60010 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60011 cat >conftest.$ac_ext <<_ACEOF
60012 /* confdefs.h.  */
60013 _ACEOF
60014 cat confdefs.h >>conftest.$ac_ext
60015 cat >>conftest.$ac_ext <<_ACEOF
60016 /* end confdefs.h.  */
60017 #include <$header>
60018
60019 _ACEOF
60020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60021   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60022   ice_cv_have_bzero_decl=yes
60023 fi
60024 rm -f conftest*
60025
60026 if test "$ice_cv_have_bzero_decl" = yes; then
60027         break
60028 fi
60029 done
60030
60031 fi
60032
60033 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
60034 $as_echo "$ice_cv_have_bzero_decl" >&6; }
60035 if test "$ice_cv_have_bzero_decl" = yes; then
60036
60037 cat >>confdefs.h <<_ACEOF
60038 #define HAVE_BZERO_DECL 1
60039 _ACEOF
60040
60041 fi
60042 fi
60043
60044 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
60045 $as_echo_n "checking whether closedir returns void... " >&6; }
60046 if test "${ac_cv_func_closedir_void+set}" = set; then
60047   $as_echo_n "(cached) " >&6
60048 else
60049   if test "$cross_compiling" = yes; then
60050   ac_cv_func_closedir_void=yes
60051 else
60052   cat >conftest.$ac_ext <<_ACEOF
60053 /* confdefs.h.  */
60054 _ACEOF
60055 cat confdefs.h >>conftest.$ac_ext
60056 cat >>conftest.$ac_ext <<_ACEOF
60057 /* end confdefs.h.  */
60058 $ac_includes_default
60059 #include <$ac_header_dirent>
60060 #ifndef __cplusplus
60061 int closedir ();
60062 #endif
60063
60064 int
60065 main ()
60066 {
60067 return closedir (opendir (".")) != 0;
60068   ;
60069   return 0;
60070 }
60071 _ACEOF
60072 rm -f conftest$ac_exeext
60073 if { (ac_try="$ac_link"
60074 case "(($ac_try" in
60075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60076   *) ac_try_echo=$ac_try;;
60077 esac
60078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60079 $as_echo "$ac_try_echo") >&5
60080   (eval "$ac_link") 2>&5
60081   ac_status=$?
60082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60084   { (case "(($ac_try" in
60085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60086   *) ac_try_echo=$ac_try;;
60087 esac
60088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60089 $as_echo "$ac_try_echo") >&5
60090   (eval "$ac_try") 2>&5
60091   ac_status=$?
60092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60093   (exit $ac_status); }; }; then
60094   ac_cv_func_closedir_void=no
60095 else
60096   $as_echo "$as_me: program exited with status $ac_status" >&5
60097 $as_echo "$as_me: failed program was:" >&5
60098 sed 's/^/| /' conftest.$ac_ext >&5
60099
60100 ( exit $ac_status )
60101 ac_cv_func_closedir_void=yes
60102 fi
60103 rm -rf conftest.dSYM
60104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60105 fi
60106
60107
60108 fi
60109 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
60110 $as_echo "$ac_cv_func_closedir_void" >&6; }
60111 if test $ac_cv_func_closedir_void = yes; then
60112
60113 cat >>confdefs.h <<\_ACEOF
60114 #define CLOSEDIR_VOID 1
60115 _ACEOF
60116
60117 fi
60118
60119
60120 ice_have_closelog=no
60121
60122 for ac_func in closelog
60123 do
60124 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60125 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60126 $as_echo_n "checking for $ac_func... " >&6; }
60127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60128   $as_echo_n "(cached) " >&6
60129 else
60130   cat >conftest.$ac_ext <<_ACEOF
60131 /* confdefs.h.  */
60132 _ACEOF
60133 cat confdefs.h >>conftest.$ac_ext
60134 cat >>conftest.$ac_ext <<_ACEOF
60135 /* end confdefs.h.  */
60136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60138 #define $ac_func innocuous_$ac_func
60139
60140 /* System header to define __stub macros and hopefully few prototypes,
60141     which can conflict with char $ac_func (); below.
60142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60143     <limits.h> exists even on freestanding compilers.  */
60144
60145 #ifdef __STDC__
60146 # include <limits.h>
60147 #else
60148 # include <assert.h>
60149 #endif
60150
60151 #undef $ac_func
60152
60153 /* Override any GCC internal prototype to avoid an error.
60154    Use char because int might match the return type of a GCC
60155    builtin and then its argument prototype would still apply.  */
60156 #ifdef __cplusplus
60157 extern "C"
60158 #endif
60159 char $ac_func ();
60160 /* The GNU C library defines this for functions which it implements
60161     to always fail with ENOSYS.  Some functions are actually named
60162     something starting with __ and the normal name is an alias.  */
60163 #if defined __stub_$ac_func || defined __stub___$ac_func
60164 choke me
60165 #endif
60166
60167 int
60168 main ()
60169 {
60170 return $ac_func ();
60171   ;
60172   return 0;
60173 }
60174 _ACEOF
60175 rm -f conftest.$ac_objext conftest$ac_exeext
60176 if { (ac_try="$ac_link"
60177 case "(($ac_try" in
60178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60179   *) ac_try_echo=$ac_try;;
60180 esac
60181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60182 $as_echo "$ac_try_echo") >&5
60183   (eval "$ac_link") 2>conftest.er1
60184   ac_status=$?
60185   grep -v '^ *+' conftest.er1 >conftest.err
60186   rm -f conftest.er1
60187   cat conftest.err >&5
60188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60189   (exit $ac_status); } && {
60190          test -z "$ac_c_werror_flag" ||
60191          test ! -s conftest.err
60192        } && test -s conftest$ac_exeext && {
60193          test "$cross_compiling" = yes ||
60194          $as_test_x conftest$ac_exeext
60195        }; then
60196   eval "$as_ac_var=yes"
60197 else
60198   $as_echo "$as_me: failed program was:" >&5
60199 sed 's/^/| /' conftest.$ac_ext >&5
60200
60201         eval "$as_ac_var=no"
60202 fi
60203
60204 rm -rf conftest.dSYM
60205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60206       conftest$ac_exeext conftest.$ac_ext
60207 fi
60208 ac_res=`eval 'as_val=${'$as_ac_var'}
60209                  $as_echo "$as_val"'`
60210                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60211 $as_echo "$ac_res" >&6; }
60212 as_val=`eval 'as_val=${'$as_ac_var'}
60213                  $as_echo "$as_val"'`
60214    if test "x$as_val" = x""yes; then
60215   cat >>confdefs.h <<_ACEOF
60216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60217 _ACEOF
60218  ice_have_closelog=yes
60219 fi
60220 done
60221
60222 if test "${ice_have_closelog}" = yes; then
60223 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
60224 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
60225 if test "${ice_cv_have_closelog_decl+set}" = set; then
60226   $as_echo_n "(cached) " >&6
60227 else
60228
60229 ice_cv_have_closelog_decl=no
60230 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60231 ice_re_word='(^|[^a-zA-Z0-9_])'
60232 for header in syslog.h; do
60233 # Check for ordinary declaration
60234 cat >conftest.$ac_ext <<_ACEOF
60235 /* confdefs.h.  */
60236 _ACEOF
60237 cat confdefs.h >>conftest.$ac_ext
60238 cat >>conftest.$ac_ext <<_ACEOF
60239 /* end confdefs.h.  */
60240 #include <$header>
60241
60242 _ACEOF
60243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60244   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
60245   ice_cv_have_closelog_decl=yes
60246 fi
60247 rm -f conftest*
60248
60249 if test "$ice_cv_have_closelog_decl" = yes; then
60250         break
60251 fi
60252 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60253 cat >conftest.$ac_ext <<_ACEOF
60254 /* confdefs.h.  */
60255 _ACEOF
60256 cat confdefs.h >>conftest.$ac_ext
60257 cat >>conftest.$ac_ext <<_ACEOF
60258 /* end confdefs.h.  */
60259 #include <$header>
60260
60261 _ACEOF
60262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60263   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60264   ice_cv_have_closelog_decl=yes
60265 fi
60266 rm -f conftest*
60267
60268 if test "$ice_cv_have_closelog_decl" = yes; then
60269         break
60270 fi
60271 done
60272
60273 fi
60274
60275 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
60276 $as_echo "$ice_cv_have_closelog_decl" >&6; }
60277 if test "$ice_cv_have_closelog_decl" = yes; then
60278
60279 cat >>confdefs.h <<_ACEOF
60280 #define HAVE_CLOSELOG_DECL 1
60281 _ACEOF
60282
60283 fi
60284 fi
60285
60286
60287 ice_have_connect=no
60288
60289 for ac_func in connect
60290 do
60291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60292 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60293 $as_echo_n "checking for $ac_func... " >&6; }
60294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60295   $as_echo_n "(cached) " >&6
60296 else
60297   cat >conftest.$ac_ext <<_ACEOF
60298 /* confdefs.h.  */
60299 _ACEOF
60300 cat confdefs.h >>conftest.$ac_ext
60301 cat >>conftest.$ac_ext <<_ACEOF
60302 /* end confdefs.h.  */
60303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60305 #define $ac_func innocuous_$ac_func
60306
60307 /* System header to define __stub macros and hopefully few prototypes,
60308     which can conflict with char $ac_func (); below.
60309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60310     <limits.h> exists even on freestanding compilers.  */
60311
60312 #ifdef __STDC__
60313 # include <limits.h>
60314 #else
60315 # include <assert.h>
60316 #endif
60317
60318 #undef $ac_func
60319
60320 /* Override any GCC internal prototype to avoid an error.
60321    Use char because int might match the return type of a GCC
60322    builtin and then its argument prototype would still apply.  */
60323 #ifdef __cplusplus
60324 extern "C"
60325 #endif
60326 char $ac_func ();
60327 /* The GNU C library defines this for functions which it implements
60328     to always fail with ENOSYS.  Some functions are actually named
60329     something starting with __ and the normal name is an alias.  */
60330 #if defined __stub_$ac_func || defined __stub___$ac_func
60331 choke me
60332 #endif
60333
60334 int
60335 main ()
60336 {
60337 return $ac_func ();
60338   ;
60339   return 0;
60340 }
60341 _ACEOF
60342 rm -f conftest.$ac_objext conftest$ac_exeext
60343 if { (ac_try="$ac_link"
60344 case "(($ac_try" in
60345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60346   *) ac_try_echo=$ac_try;;
60347 esac
60348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60349 $as_echo "$ac_try_echo") >&5
60350   (eval "$ac_link") 2>conftest.er1
60351   ac_status=$?
60352   grep -v '^ *+' conftest.er1 >conftest.err
60353   rm -f conftest.er1
60354   cat conftest.err >&5
60355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60356   (exit $ac_status); } && {
60357          test -z "$ac_c_werror_flag" ||
60358          test ! -s conftest.err
60359        } && test -s conftest$ac_exeext && {
60360          test "$cross_compiling" = yes ||
60361          $as_test_x conftest$ac_exeext
60362        }; then
60363   eval "$as_ac_var=yes"
60364 else
60365   $as_echo "$as_me: failed program was:" >&5
60366 sed 's/^/| /' conftest.$ac_ext >&5
60367
60368         eval "$as_ac_var=no"
60369 fi
60370
60371 rm -rf conftest.dSYM
60372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60373       conftest$ac_exeext conftest.$ac_ext
60374 fi
60375 ac_res=`eval 'as_val=${'$as_ac_var'}
60376                  $as_echo "$as_val"'`
60377                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60378 $as_echo "$ac_res" >&6; }
60379 as_val=`eval 'as_val=${'$as_ac_var'}
60380                  $as_echo "$as_val"'`
60381    if test "x$as_val" = x""yes; then
60382   cat >>confdefs.h <<_ACEOF
60383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60384 _ACEOF
60385  ice_have_connect=yes
60386 fi
60387 done
60388
60389 if test "${ice_have_connect}" = yes; then
60390 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
60391 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
60392 if test "${ice_cv_have_connect_decl+set}" = set; then
60393   $as_echo_n "(cached) " >&6
60394 else
60395
60396 ice_cv_have_connect_decl=no
60397 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60398 ice_re_word='(^|[^a-zA-Z0-9_])'
60399 for header in sys/types.h sys/socket.h; do
60400 # Check for ordinary declaration
60401 cat >conftest.$ac_ext <<_ACEOF
60402 /* confdefs.h.  */
60403 _ACEOF
60404 cat confdefs.h >>conftest.$ac_ext
60405 cat >>conftest.$ac_ext <<_ACEOF
60406 /* end confdefs.h.  */
60407 #include <$header>
60408
60409 _ACEOF
60410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60411   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
60412   ice_cv_have_connect_decl=yes
60413 fi
60414 rm -f conftest*
60415
60416 if test "$ice_cv_have_connect_decl" = yes; then
60417         break
60418 fi
60419 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60420 cat >conftest.$ac_ext <<_ACEOF
60421 /* confdefs.h.  */
60422 _ACEOF
60423 cat confdefs.h >>conftest.$ac_ext
60424 cat >>conftest.$ac_ext <<_ACEOF
60425 /* end confdefs.h.  */
60426 #include <$header>
60427
60428 _ACEOF
60429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60430   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60431   ice_cv_have_connect_decl=yes
60432 fi
60433 rm -f conftest*
60434
60435 if test "$ice_cv_have_connect_decl" = yes; then
60436         break
60437 fi
60438 done
60439
60440 fi
60441
60442 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
60443 $as_echo "$ice_cv_have_connect_decl" >&6; }
60444 if test "$ice_cv_have_connect_decl" = yes; then
60445
60446 cat >>confdefs.h <<_ACEOF
60447 #define HAVE_CONNECT_DECL 1
60448 _ACEOF
60449
60450 fi
60451 fi
60452
60453
60454 ice_have_fclose=no
60455
60456 for ac_func in fclose
60457 do
60458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60459 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60460 $as_echo_n "checking for $ac_func... " >&6; }
60461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60462   $as_echo_n "(cached) " >&6
60463 else
60464   cat >conftest.$ac_ext <<_ACEOF
60465 /* confdefs.h.  */
60466 _ACEOF
60467 cat confdefs.h >>conftest.$ac_ext
60468 cat >>conftest.$ac_ext <<_ACEOF
60469 /* end confdefs.h.  */
60470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60472 #define $ac_func innocuous_$ac_func
60473
60474 /* System header to define __stub macros and hopefully few prototypes,
60475     which can conflict with char $ac_func (); below.
60476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60477     <limits.h> exists even on freestanding compilers.  */
60478
60479 #ifdef __STDC__
60480 # include <limits.h>
60481 #else
60482 # include <assert.h>
60483 #endif
60484
60485 #undef $ac_func
60486
60487 /* Override any GCC internal prototype to avoid an error.
60488    Use char because int might match the return type of a GCC
60489    builtin and then its argument prototype would still apply.  */
60490 #ifdef __cplusplus
60491 extern "C"
60492 #endif
60493 char $ac_func ();
60494 /* The GNU C library defines this for functions which it implements
60495     to always fail with ENOSYS.  Some functions are actually named
60496     something starting with __ and the normal name is an alias.  */
60497 #if defined __stub_$ac_func || defined __stub___$ac_func
60498 choke me
60499 #endif
60500
60501 int
60502 main ()
60503 {
60504 return $ac_func ();
60505   ;
60506   return 0;
60507 }
60508 _ACEOF
60509 rm -f conftest.$ac_objext conftest$ac_exeext
60510 if { (ac_try="$ac_link"
60511 case "(($ac_try" in
60512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60513   *) ac_try_echo=$ac_try;;
60514 esac
60515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60516 $as_echo "$ac_try_echo") >&5
60517   (eval "$ac_link") 2>conftest.er1
60518   ac_status=$?
60519   grep -v '^ *+' conftest.er1 >conftest.err
60520   rm -f conftest.er1
60521   cat conftest.err >&5
60522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60523   (exit $ac_status); } && {
60524          test -z "$ac_c_werror_flag" ||
60525          test ! -s conftest.err
60526        } && test -s conftest$ac_exeext && {
60527          test "$cross_compiling" = yes ||
60528          $as_test_x conftest$ac_exeext
60529        }; then
60530   eval "$as_ac_var=yes"
60531 else
60532   $as_echo "$as_me: failed program was:" >&5
60533 sed 's/^/| /' conftest.$ac_ext >&5
60534
60535         eval "$as_ac_var=no"
60536 fi
60537
60538 rm -rf conftest.dSYM
60539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60540       conftest$ac_exeext conftest.$ac_ext
60541 fi
60542 ac_res=`eval 'as_val=${'$as_ac_var'}
60543                  $as_echo "$as_val"'`
60544                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60545 $as_echo "$ac_res" >&6; }
60546 as_val=`eval 'as_val=${'$as_ac_var'}
60547                  $as_echo "$as_val"'`
60548    if test "x$as_val" = x""yes; then
60549   cat >>confdefs.h <<_ACEOF
60550 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60551 _ACEOF
60552  ice_have_fclose=yes
60553 fi
60554 done
60555
60556 if test "${ice_have_fclose}" = yes; then
60557 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
60558 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
60559 if test "${ice_cv_have_fclose_decl+set}" = set; then
60560   $as_echo_n "(cached) " >&6
60561 else
60562
60563 ice_cv_have_fclose_decl=no
60564 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60565 ice_re_word='(^|[^a-zA-Z0-9_])'
60566 for header in stdio.h; do
60567 # Check for ordinary declaration
60568 cat >conftest.$ac_ext <<_ACEOF
60569 /* confdefs.h.  */
60570 _ACEOF
60571 cat confdefs.h >>conftest.$ac_ext
60572 cat >>conftest.$ac_ext <<_ACEOF
60573 /* end confdefs.h.  */
60574 #include <$header>
60575
60576 _ACEOF
60577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60578   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
60579   ice_cv_have_fclose_decl=yes
60580 fi
60581 rm -f conftest*
60582
60583 if test "$ice_cv_have_fclose_decl" = yes; then
60584         break
60585 fi
60586 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60587 cat >conftest.$ac_ext <<_ACEOF
60588 /* confdefs.h.  */
60589 _ACEOF
60590 cat confdefs.h >>conftest.$ac_ext
60591 cat >>conftest.$ac_ext <<_ACEOF
60592 /* end confdefs.h.  */
60593 #include <$header>
60594
60595 _ACEOF
60596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60597   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60598   ice_cv_have_fclose_decl=yes
60599 fi
60600 rm -f conftest*
60601
60602 if test "$ice_cv_have_fclose_decl" = yes; then
60603         break
60604 fi
60605 done
60606
60607 fi
60608
60609 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
60610 $as_echo "$ice_cv_have_fclose_decl" >&6; }
60611 if test "$ice_cv_have_fclose_decl" = yes; then
60612
60613 cat >>confdefs.h <<_ACEOF
60614 #define HAVE_FCLOSE_DECL 1
60615 _ACEOF
60616
60617 fi
60618 fi
60619
60620
60621 ice_have_fflush=no
60622
60623 for ac_func in fflush
60624 do
60625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60626 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60627 $as_echo_n "checking for $ac_func... " >&6; }
60628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60629   $as_echo_n "(cached) " >&6
60630 else
60631   cat >conftest.$ac_ext <<_ACEOF
60632 /* confdefs.h.  */
60633 _ACEOF
60634 cat confdefs.h >>conftest.$ac_ext
60635 cat >>conftest.$ac_ext <<_ACEOF
60636 /* end confdefs.h.  */
60637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60639 #define $ac_func innocuous_$ac_func
60640
60641 /* System header to define __stub macros and hopefully few prototypes,
60642     which can conflict with char $ac_func (); below.
60643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60644     <limits.h> exists even on freestanding compilers.  */
60645
60646 #ifdef __STDC__
60647 # include <limits.h>
60648 #else
60649 # include <assert.h>
60650 #endif
60651
60652 #undef $ac_func
60653
60654 /* Override any GCC internal prototype to avoid an error.
60655    Use char because int might match the return type of a GCC
60656    builtin and then its argument prototype would still apply.  */
60657 #ifdef __cplusplus
60658 extern "C"
60659 #endif
60660 char $ac_func ();
60661 /* The GNU C library defines this for functions which it implements
60662     to always fail with ENOSYS.  Some functions are actually named
60663     something starting with __ and the normal name is an alias.  */
60664 #if defined __stub_$ac_func || defined __stub___$ac_func
60665 choke me
60666 #endif
60667
60668 int
60669 main ()
60670 {
60671 return $ac_func ();
60672   ;
60673   return 0;
60674 }
60675 _ACEOF
60676 rm -f conftest.$ac_objext conftest$ac_exeext
60677 if { (ac_try="$ac_link"
60678 case "(($ac_try" in
60679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60680   *) ac_try_echo=$ac_try;;
60681 esac
60682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60683 $as_echo "$ac_try_echo") >&5
60684   (eval "$ac_link") 2>conftest.er1
60685   ac_status=$?
60686   grep -v '^ *+' conftest.er1 >conftest.err
60687   rm -f conftest.er1
60688   cat conftest.err >&5
60689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60690   (exit $ac_status); } && {
60691          test -z "$ac_c_werror_flag" ||
60692          test ! -s conftest.err
60693        } && test -s conftest$ac_exeext && {
60694          test "$cross_compiling" = yes ||
60695          $as_test_x conftest$ac_exeext
60696        }; then
60697   eval "$as_ac_var=yes"
60698 else
60699   $as_echo "$as_me: failed program was:" >&5
60700 sed 's/^/| /' conftest.$ac_ext >&5
60701
60702         eval "$as_ac_var=no"
60703 fi
60704
60705 rm -rf conftest.dSYM
60706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60707       conftest$ac_exeext conftest.$ac_ext
60708 fi
60709 ac_res=`eval 'as_val=${'$as_ac_var'}
60710                  $as_echo "$as_val"'`
60711                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60712 $as_echo "$ac_res" >&6; }
60713 as_val=`eval 'as_val=${'$as_ac_var'}
60714                  $as_echo "$as_val"'`
60715    if test "x$as_val" = x""yes; then
60716   cat >>confdefs.h <<_ACEOF
60717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60718 _ACEOF
60719  ice_have_fflush=yes
60720 fi
60721 done
60722
60723 if test "${ice_have_fflush}" = yes; then
60724 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
60725 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
60726 if test "${ice_cv_have_fflush_decl+set}" = set; then
60727   $as_echo_n "(cached) " >&6
60728 else
60729
60730 ice_cv_have_fflush_decl=no
60731 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60732 ice_re_word='(^|[^a-zA-Z0-9_])'
60733 for header in stdio.h; do
60734 # Check for ordinary declaration
60735 cat >conftest.$ac_ext <<_ACEOF
60736 /* confdefs.h.  */
60737 _ACEOF
60738 cat confdefs.h >>conftest.$ac_ext
60739 cat >>conftest.$ac_ext <<_ACEOF
60740 /* end confdefs.h.  */
60741 #include <$header>
60742
60743 _ACEOF
60744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60745   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
60746   ice_cv_have_fflush_decl=yes
60747 fi
60748 rm -f conftest*
60749
60750 if test "$ice_cv_have_fflush_decl" = yes; then
60751         break
60752 fi
60753 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60754 cat >conftest.$ac_ext <<_ACEOF
60755 /* confdefs.h.  */
60756 _ACEOF
60757 cat confdefs.h >>conftest.$ac_ext
60758 cat >>conftest.$ac_ext <<_ACEOF
60759 /* end confdefs.h.  */
60760 #include <$header>
60761
60762 _ACEOF
60763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60764   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60765   ice_cv_have_fflush_decl=yes
60766 fi
60767 rm -f conftest*
60768
60769 if test "$ice_cv_have_fflush_decl" = yes; then
60770         break
60771 fi
60772 done
60773
60774 fi
60775
60776 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
60777 $as_echo "$ice_cv_have_fflush_decl" >&6; }
60778 if test "$ice_cv_have_fflush_decl" = yes; then
60779
60780 cat >>confdefs.h <<_ACEOF
60781 #define HAVE_FFLUSH_DECL 1
60782 _ACEOF
60783
60784 fi
60785 fi
60786
60787
60788 ice_have_fprintf=no
60789
60790 for ac_func in fprintf
60791 do
60792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60793 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60794 $as_echo_n "checking for $ac_func... " >&6; }
60795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60796   $as_echo_n "(cached) " >&6
60797 else
60798   cat >conftest.$ac_ext <<_ACEOF
60799 /* confdefs.h.  */
60800 _ACEOF
60801 cat confdefs.h >>conftest.$ac_ext
60802 cat >>conftest.$ac_ext <<_ACEOF
60803 /* end confdefs.h.  */
60804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60806 #define $ac_func innocuous_$ac_func
60807
60808 /* System header to define __stub macros and hopefully few prototypes,
60809     which can conflict with char $ac_func (); below.
60810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60811     <limits.h> exists even on freestanding compilers.  */
60812
60813 #ifdef __STDC__
60814 # include <limits.h>
60815 #else
60816 # include <assert.h>
60817 #endif
60818
60819 #undef $ac_func
60820
60821 /* Override any GCC internal prototype to avoid an error.
60822    Use char because int might match the return type of a GCC
60823    builtin and then its argument prototype would still apply.  */
60824 #ifdef __cplusplus
60825 extern "C"
60826 #endif
60827 char $ac_func ();
60828 /* The GNU C library defines this for functions which it implements
60829     to always fail with ENOSYS.  Some functions are actually named
60830     something starting with __ and the normal name is an alias.  */
60831 #if defined __stub_$ac_func || defined __stub___$ac_func
60832 choke me
60833 #endif
60834
60835 int
60836 main ()
60837 {
60838 return $ac_func ();
60839   ;
60840   return 0;
60841 }
60842 _ACEOF
60843 rm -f conftest.$ac_objext conftest$ac_exeext
60844 if { (ac_try="$ac_link"
60845 case "(($ac_try" in
60846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60847   *) ac_try_echo=$ac_try;;
60848 esac
60849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60850 $as_echo "$ac_try_echo") >&5
60851   (eval "$ac_link") 2>conftest.er1
60852   ac_status=$?
60853   grep -v '^ *+' conftest.er1 >conftest.err
60854   rm -f conftest.er1
60855   cat conftest.err >&5
60856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60857   (exit $ac_status); } && {
60858          test -z "$ac_c_werror_flag" ||
60859          test ! -s conftest.err
60860        } && test -s conftest$ac_exeext && {
60861          test "$cross_compiling" = yes ||
60862          $as_test_x conftest$ac_exeext
60863        }; then
60864   eval "$as_ac_var=yes"
60865 else
60866   $as_echo "$as_me: failed program was:" >&5
60867 sed 's/^/| /' conftest.$ac_ext >&5
60868
60869         eval "$as_ac_var=no"
60870 fi
60871
60872 rm -rf conftest.dSYM
60873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60874       conftest$ac_exeext conftest.$ac_ext
60875 fi
60876 ac_res=`eval 'as_val=${'$as_ac_var'}
60877                  $as_echo "$as_val"'`
60878                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60879 $as_echo "$ac_res" >&6; }
60880 as_val=`eval 'as_val=${'$as_ac_var'}
60881                  $as_echo "$as_val"'`
60882    if test "x$as_val" = x""yes; then
60883   cat >>confdefs.h <<_ACEOF
60884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60885 _ACEOF
60886  ice_have_fprintf=yes
60887 fi
60888 done
60889
60890 if test "${ice_have_fprintf}" = yes; then
60891 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
60892 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
60893 if test "${ice_cv_have_fprintf_decl+set}" = set; then
60894   $as_echo_n "(cached) " >&6
60895 else
60896
60897 ice_cv_have_fprintf_decl=no
60898 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60899 ice_re_word='(^|[^a-zA-Z0-9_])'
60900 for header in stdio.h; do
60901 # Check for ordinary declaration
60902 cat >conftest.$ac_ext <<_ACEOF
60903 /* confdefs.h.  */
60904 _ACEOF
60905 cat confdefs.h >>conftest.$ac_ext
60906 cat >>conftest.$ac_ext <<_ACEOF
60907 /* end confdefs.h.  */
60908 #include <$header>
60909
60910 _ACEOF
60911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60912   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
60913   ice_cv_have_fprintf_decl=yes
60914 fi
60915 rm -f conftest*
60916
60917 if test "$ice_cv_have_fprintf_decl" = yes; then
60918         break
60919 fi
60920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60921 cat >conftest.$ac_ext <<_ACEOF
60922 /* confdefs.h.  */
60923 _ACEOF
60924 cat confdefs.h >>conftest.$ac_ext
60925 cat >>conftest.$ac_ext <<_ACEOF
60926 /* end confdefs.h.  */
60927 #include <$header>
60928
60929 _ACEOF
60930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60931   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60932   ice_cv_have_fprintf_decl=yes
60933 fi
60934 rm -f conftest*
60935
60936 if test "$ice_cv_have_fprintf_decl" = yes; then
60937         break
60938 fi
60939 done
60940
60941 fi
60942
60943 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
60944 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
60945 if test "$ice_cv_have_fprintf_decl" = yes; then
60946
60947 cat >>confdefs.h <<_ACEOF
60948 #define HAVE_FPRINTF_DECL 1
60949 _ACEOF
60950
60951 fi
60952 fi
60953
60954
60955 ice_have_fputc=no
60956
60957 for ac_func in fputc
60958 do
60959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60960 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60961 $as_echo_n "checking for $ac_func... " >&6; }
60962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60963   $as_echo_n "(cached) " >&6
60964 else
60965   cat >conftest.$ac_ext <<_ACEOF
60966 /* confdefs.h.  */
60967 _ACEOF
60968 cat confdefs.h >>conftest.$ac_ext
60969 cat >>conftest.$ac_ext <<_ACEOF
60970 /* end confdefs.h.  */
60971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60973 #define $ac_func innocuous_$ac_func
60974
60975 /* System header to define __stub macros and hopefully few prototypes,
60976     which can conflict with char $ac_func (); below.
60977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60978     <limits.h> exists even on freestanding compilers.  */
60979
60980 #ifdef __STDC__
60981 # include <limits.h>
60982 #else
60983 # include <assert.h>
60984 #endif
60985
60986 #undef $ac_func
60987
60988 /* Override any GCC internal prototype to avoid an error.
60989    Use char because int might match the return type of a GCC
60990    builtin and then its argument prototype would still apply.  */
60991 #ifdef __cplusplus
60992 extern "C"
60993 #endif
60994 char $ac_func ();
60995 /* The GNU C library defines this for functions which it implements
60996     to always fail with ENOSYS.  Some functions are actually named
60997     something starting with __ and the normal name is an alias.  */
60998 #if defined __stub_$ac_func || defined __stub___$ac_func
60999 choke me
61000 #endif
61001
61002 int
61003 main ()
61004 {
61005 return $ac_func ();
61006   ;
61007   return 0;
61008 }
61009 _ACEOF
61010 rm -f conftest.$ac_objext conftest$ac_exeext
61011 if { (ac_try="$ac_link"
61012 case "(($ac_try" in
61013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61014   *) ac_try_echo=$ac_try;;
61015 esac
61016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61017 $as_echo "$ac_try_echo") >&5
61018   (eval "$ac_link") 2>conftest.er1
61019   ac_status=$?
61020   grep -v '^ *+' conftest.er1 >conftest.err
61021   rm -f conftest.er1
61022   cat conftest.err >&5
61023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61024   (exit $ac_status); } && {
61025          test -z "$ac_c_werror_flag" ||
61026          test ! -s conftest.err
61027        } && test -s conftest$ac_exeext && {
61028          test "$cross_compiling" = yes ||
61029          $as_test_x conftest$ac_exeext
61030        }; then
61031   eval "$as_ac_var=yes"
61032 else
61033   $as_echo "$as_me: failed program was:" >&5
61034 sed 's/^/| /' conftest.$ac_ext >&5
61035
61036         eval "$as_ac_var=no"
61037 fi
61038
61039 rm -rf conftest.dSYM
61040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61041       conftest$ac_exeext conftest.$ac_ext
61042 fi
61043 ac_res=`eval 'as_val=${'$as_ac_var'}
61044                  $as_echo "$as_val"'`
61045                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61046 $as_echo "$ac_res" >&6; }
61047 as_val=`eval 'as_val=${'$as_ac_var'}
61048                  $as_echo "$as_val"'`
61049    if test "x$as_val" = x""yes; then
61050   cat >>confdefs.h <<_ACEOF
61051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61052 _ACEOF
61053  ice_have_fputc=yes
61054 fi
61055 done
61056
61057 if test "${ice_have_fputc}" = yes; then
61058 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
61059 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
61060 if test "${ice_cv_have_fputc_decl+set}" = set; then
61061   $as_echo_n "(cached) " >&6
61062 else
61063
61064 ice_cv_have_fputc_decl=no
61065 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61066 ice_re_word='(^|[^a-zA-Z0-9_])'
61067 for header in stdio.h; do
61068 # Check for ordinary declaration
61069 cat >conftest.$ac_ext <<_ACEOF
61070 /* confdefs.h.  */
61071 _ACEOF
61072 cat confdefs.h >>conftest.$ac_ext
61073 cat >>conftest.$ac_ext <<_ACEOF
61074 /* end confdefs.h.  */
61075 #include <$header>
61076
61077 _ACEOF
61078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61079   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
61080   ice_cv_have_fputc_decl=yes
61081 fi
61082 rm -f conftest*
61083
61084 if test "$ice_cv_have_fputc_decl" = yes; then
61085         break
61086 fi
61087 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61088 cat >conftest.$ac_ext <<_ACEOF
61089 /* confdefs.h.  */
61090 _ACEOF
61091 cat confdefs.h >>conftest.$ac_ext
61092 cat >>conftest.$ac_ext <<_ACEOF
61093 /* end confdefs.h.  */
61094 #include <$header>
61095
61096 _ACEOF
61097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61098   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61099   ice_cv_have_fputc_decl=yes
61100 fi
61101 rm -f conftest*
61102
61103 if test "$ice_cv_have_fputc_decl" = yes; then
61104         break
61105 fi
61106 done
61107
61108 fi
61109
61110 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
61111 $as_echo "$ice_cv_have_fputc_decl" >&6; }
61112 if test "$ice_cv_have_fputc_decl" = yes; then
61113
61114 cat >>confdefs.h <<_ACEOF
61115 #define HAVE_FPUTC_DECL 1
61116 _ACEOF
61117
61118 fi
61119 fi
61120
61121
61122 ice_have_fputs=no
61123
61124 for ac_func in fputs
61125 do
61126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61127 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61128 $as_echo_n "checking for $ac_func... " >&6; }
61129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61130   $as_echo_n "(cached) " >&6
61131 else
61132   cat >conftest.$ac_ext <<_ACEOF
61133 /* confdefs.h.  */
61134 _ACEOF
61135 cat confdefs.h >>conftest.$ac_ext
61136 cat >>conftest.$ac_ext <<_ACEOF
61137 /* end confdefs.h.  */
61138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61140 #define $ac_func innocuous_$ac_func
61141
61142 /* System header to define __stub macros and hopefully few prototypes,
61143     which can conflict with char $ac_func (); below.
61144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61145     <limits.h> exists even on freestanding compilers.  */
61146
61147 #ifdef __STDC__
61148 # include <limits.h>
61149 #else
61150 # include <assert.h>
61151 #endif
61152
61153 #undef $ac_func
61154
61155 /* Override any GCC internal prototype to avoid an error.
61156    Use char because int might match the return type of a GCC
61157    builtin and then its argument prototype would still apply.  */
61158 #ifdef __cplusplus
61159 extern "C"
61160 #endif
61161 char $ac_func ();
61162 /* The GNU C library defines this for functions which it implements
61163     to always fail with ENOSYS.  Some functions are actually named
61164     something starting with __ and the normal name is an alias.  */
61165 #if defined __stub_$ac_func || defined __stub___$ac_func
61166 choke me
61167 #endif
61168
61169 int
61170 main ()
61171 {
61172 return $ac_func ();
61173   ;
61174   return 0;
61175 }
61176 _ACEOF
61177 rm -f conftest.$ac_objext conftest$ac_exeext
61178 if { (ac_try="$ac_link"
61179 case "(($ac_try" in
61180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61181   *) ac_try_echo=$ac_try;;
61182 esac
61183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61184 $as_echo "$ac_try_echo") >&5
61185   (eval "$ac_link") 2>conftest.er1
61186   ac_status=$?
61187   grep -v '^ *+' conftest.er1 >conftest.err
61188   rm -f conftest.er1
61189   cat conftest.err >&5
61190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61191   (exit $ac_status); } && {
61192          test -z "$ac_c_werror_flag" ||
61193          test ! -s conftest.err
61194        } && test -s conftest$ac_exeext && {
61195          test "$cross_compiling" = yes ||
61196          $as_test_x conftest$ac_exeext
61197        }; then
61198   eval "$as_ac_var=yes"
61199 else
61200   $as_echo "$as_me: failed program was:" >&5
61201 sed 's/^/| /' conftest.$ac_ext >&5
61202
61203         eval "$as_ac_var=no"
61204 fi
61205
61206 rm -rf conftest.dSYM
61207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61208       conftest$ac_exeext conftest.$ac_ext
61209 fi
61210 ac_res=`eval 'as_val=${'$as_ac_var'}
61211                  $as_echo "$as_val"'`
61212                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61213 $as_echo "$ac_res" >&6; }
61214 as_val=`eval 'as_val=${'$as_ac_var'}
61215                  $as_echo "$as_val"'`
61216    if test "x$as_val" = x""yes; then
61217   cat >>confdefs.h <<_ACEOF
61218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61219 _ACEOF
61220  ice_have_fputs=yes
61221 fi
61222 done
61223
61224 if test "${ice_have_fputs}" = yes; then
61225 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
61226 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
61227 if test "${ice_cv_have_fputs_decl+set}" = set; then
61228   $as_echo_n "(cached) " >&6
61229 else
61230
61231 ice_cv_have_fputs_decl=no
61232 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61233 ice_re_word='(^|[^a-zA-Z0-9_])'
61234 for header in stdio.h; do
61235 # Check for ordinary declaration
61236 cat >conftest.$ac_ext <<_ACEOF
61237 /* confdefs.h.  */
61238 _ACEOF
61239 cat confdefs.h >>conftest.$ac_ext
61240 cat >>conftest.$ac_ext <<_ACEOF
61241 /* end confdefs.h.  */
61242 #include <$header>
61243
61244 _ACEOF
61245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61246   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
61247   ice_cv_have_fputs_decl=yes
61248 fi
61249 rm -f conftest*
61250
61251 if test "$ice_cv_have_fputs_decl" = yes; then
61252         break
61253 fi
61254 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61255 cat >conftest.$ac_ext <<_ACEOF
61256 /* confdefs.h.  */
61257 _ACEOF
61258 cat confdefs.h >>conftest.$ac_ext
61259 cat >>conftest.$ac_ext <<_ACEOF
61260 /* end confdefs.h.  */
61261 #include <$header>
61262
61263 _ACEOF
61264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61265   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61266   ice_cv_have_fputs_decl=yes
61267 fi
61268 rm -f conftest*
61269
61270 if test "$ice_cv_have_fputs_decl" = yes; then
61271         break
61272 fi
61273 done
61274
61275 fi
61276
61277 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
61278 $as_echo "$ice_cv_have_fputs_decl" >&6; }
61279 if test "$ice_cv_have_fputs_decl" = yes; then
61280
61281 cat >>confdefs.h <<_ACEOF
61282 #define HAVE_FPUTS_DECL 1
61283 _ACEOF
61284
61285 fi
61286 fi
61287
61288
61289 ice_have_fread=no
61290
61291 for ac_func in fread
61292 do
61293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61294 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61295 $as_echo_n "checking for $ac_func... " >&6; }
61296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61297   $as_echo_n "(cached) " >&6
61298 else
61299   cat >conftest.$ac_ext <<_ACEOF
61300 /* confdefs.h.  */
61301 _ACEOF
61302 cat confdefs.h >>conftest.$ac_ext
61303 cat >>conftest.$ac_ext <<_ACEOF
61304 /* end confdefs.h.  */
61305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61307 #define $ac_func innocuous_$ac_func
61308
61309 /* System header to define __stub macros and hopefully few prototypes,
61310     which can conflict with char $ac_func (); below.
61311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61312     <limits.h> exists even on freestanding compilers.  */
61313
61314 #ifdef __STDC__
61315 # include <limits.h>
61316 #else
61317 # include <assert.h>
61318 #endif
61319
61320 #undef $ac_func
61321
61322 /* Override any GCC internal prototype to avoid an error.
61323    Use char because int might match the return type of a GCC
61324    builtin and then its argument prototype would still apply.  */
61325 #ifdef __cplusplus
61326 extern "C"
61327 #endif
61328 char $ac_func ();
61329 /* The GNU C library defines this for functions which it implements
61330     to always fail with ENOSYS.  Some functions are actually named
61331     something starting with __ and the normal name is an alias.  */
61332 #if defined __stub_$ac_func || defined __stub___$ac_func
61333 choke me
61334 #endif
61335
61336 int
61337 main ()
61338 {
61339 return $ac_func ();
61340   ;
61341   return 0;
61342 }
61343 _ACEOF
61344 rm -f conftest.$ac_objext conftest$ac_exeext
61345 if { (ac_try="$ac_link"
61346 case "(($ac_try" in
61347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61348   *) ac_try_echo=$ac_try;;
61349 esac
61350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61351 $as_echo "$ac_try_echo") >&5
61352   (eval "$ac_link") 2>conftest.er1
61353   ac_status=$?
61354   grep -v '^ *+' conftest.er1 >conftest.err
61355   rm -f conftest.er1
61356   cat conftest.err >&5
61357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61358   (exit $ac_status); } && {
61359          test -z "$ac_c_werror_flag" ||
61360          test ! -s conftest.err
61361        } && test -s conftest$ac_exeext && {
61362          test "$cross_compiling" = yes ||
61363          $as_test_x conftest$ac_exeext
61364        }; then
61365   eval "$as_ac_var=yes"
61366 else
61367   $as_echo "$as_me: failed program was:" >&5
61368 sed 's/^/| /' conftest.$ac_ext >&5
61369
61370         eval "$as_ac_var=no"
61371 fi
61372
61373 rm -rf conftest.dSYM
61374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61375       conftest$ac_exeext conftest.$ac_ext
61376 fi
61377 ac_res=`eval 'as_val=${'$as_ac_var'}
61378                  $as_echo "$as_val"'`
61379                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61380 $as_echo "$ac_res" >&6; }
61381 as_val=`eval 'as_val=${'$as_ac_var'}
61382                  $as_echo "$as_val"'`
61383    if test "x$as_val" = x""yes; then
61384   cat >>confdefs.h <<_ACEOF
61385 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61386 _ACEOF
61387  ice_have_fread=yes
61388 fi
61389 done
61390
61391 if test "${ice_have_fread}" = yes; then
61392 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
61393 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
61394 if test "${ice_cv_have_fread_decl+set}" = set; then
61395   $as_echo_n "(cached) " >&6
61396 else
61397
61398 ice_cv_have_fread_decl=no
61399 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61400 ice_re_word='(^|[^a-zA-Z0-9_])'
61401 for header in stdio.h stdlib.h; do
61402 # Check for ordinary declaration
61403 cat >conftest.$ac_ext <<_ACEOF
61404 /* confdefs.h.  */
61405 _ACEOF
61406 cat confdefs.h >>conftest.$ac_ext
61407 cat >>conftest.$ac_ext <<_ACEOF
61408 /* end confdefs.h.  */
61409 #include <$header>
61410
61411 _ACEOF
61412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61413   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
61414   ice_cv_have_fread_decl=yes
61415 fi
61416 rm -f conftest*
61417
61418 if test "$ice_cv_have_fread_decl" = yes; then
61419         break
61420 fi
61421 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61422 cat >conftest.$ac_ext <<_ACEOF
61423 /* confdefs.h.  */
61424 _ACEOF
61425 cat confdefs.h >>conftest.$ac_ext
61426 cat >>conftest.$ac_ext <<_ACEOF
61427 /* end confdefs.h.  */
61428 #include <$header>
61429
61430 _ACEOF
61431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61432   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61433   ice_cv_have_fread_decl=yes
61434 fi
61435 rm -f conftest*
61436
61437 if test "$ice_cv_have_fread_decl" = yes; then
61438         break
61439 fi
61440 done
61441
61442 fi
61443
61444 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
61445 $as_echo "$ice_cv_have_fread_decl" >&6; }
61446 if test "$ice_cv_have_fread_decl" = yes; then
61447
61448 cat >>confdefs.h <<_ACEOF
61449 #define HAVE_FREAD_DECL 1
61450 _ACEOF
61451
61452 fi
61453 fi
61454
61455
61456 ice_have_fseek=no
61457
61458 for ac_func in fseek
61459 do
61460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61461 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61462 $as_echo_n "checking for $ac_func... " >&6; }
61463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61464   $as_echo_n "(cached) " >&6
61465 else
61466   cat >conftest.$ac_ext <<_ACEOF
61467 /* confdefs.h.  */
61468 _ACEOF
61469 cat confdefs.h >>conftest.$ac_ext
61470 cat >>conftest.$ac_ext <<_ACEOF
61471 /* end confdefs.h.  */
61472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61474 #define $ac_func innocuous_$ac_func
61475
61476 /* System header to define __stub macros and hopefully few prototypes,
61477     which can conflict with char $ac_func (); below.
61478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61479     <limits.h> exists even on freestanding compilers.  */
61480
61481 #ifdef __STDC__
61482 # include <limits.h>
61483 #else
61484 # include <assert.h>
61485 #endif
61486
61487 #undef $ac_func
61488
61489 /* Override any GCC internal prototype to avoid an error.
61490    Use char because int might match the return type of a GCC
61491    builtin and then its argument prototype would still apply.  */
61492 #ifdef __cplusplus
61493 extern "C"
61494 #endif
61495 char $ac_func ();
61496 /* The GNU C library defines this for functions which it implements
61497     to always fail with ENOSYS.  Some functions are actually named
61498     something starting with __ and the normal name is an alias.  */
61499 #if defined __stub_$ac_func || defined __stub___$ac_func
61500 choke me
61501 #endif
61502
61503 int
61504 main ()
61505 {
61506 return $ac_func ();
61507   ;
61508   return 0;
61509 }
61510 _ACEOF
61511 rm -f conftest.$ac_objext conftest$ac_exeext
61512 if { (ac_try="$ac_link"
61513 case "(($ac_try" in
61514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61515   *) ac_try_echo=$ac_try;;
61516 esac
61517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61518 $as_echo "$ac_try_echo") >&5
61519   (eval "$ac_link") 2>conftest.er1
61520   ac_status=$?
61521   grep -v '^ *+' conftest.er1 >conftest.err
61522   rm -f conftest.er1
61523   cat conftest.err >&5
61524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61525   (exit $ac_status); } && {
61526          test -z "$ac_c_werror_flag" ||
61527          test ! -s conftest.err
61528        } && test -s conftest$ac_exeext && {
61529          test "$cross_compiling" = yes ||
61530          $as_test_x conftest$ac_exeext
61531        }; then
61532   eval "$as_ac_var=yes"
61533 else
61534   $as_echo "$as_me: failed program was:" >&5
61535 sed 's/^/| /' conftest.$ac_ext >&5
61536
61537         eval "$as_ac_var=no"
61538 fi
61539
61540 rm -rf conftest.dSYM
61541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61542       conftest$ac_exeext conftest.$ac_ext
61543 fi
61544 ac_res=`eval 'as_val=${'$as_ac_var'}
61545                  $as_echo "$as_val"'`
61546                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61547 $as_echo "$ac_res" >&6; }
61548 as_val=`eval 'as_val=${'$as_ac_var'}
61549                  $as_echo "$as_val"'`
61550    if test "x$as_val" = x""yes; then
61551   cat >>confdefs.h <<_ACEOF
61552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61553 _ACEOF
61554  ice_have_fseek=yes
61555 fi
61556 done
61557
61558 if test "${ice_have_fseek}" = yes; then
61559 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
61560 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
61561 if test "${ice_cv_have_fseek_decl+set}" = set; then
61562   $as_echo_n "(cached) " >&6
61563 else
61564
61565 ice_cv_have_fseek_decl=no
61566 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61567 ice_re_word='(^|[^a-zA-Z0-9_])'
61568 for header in stdio.h; do
61569 # Check for ordinary declaration
61570 cat >conftest.$ac_ext <<_ACEOF
61571 /* confdefs.h.  */
61572 _ACEOF
61573 cat confdefs.h >>conftest.$ac_ext
61574 cat >>conftest.$ac_ext <<_ACEOF
61575 /* end confdefs.h.  */
61576 #include <$header>
61577
61578 _ACEOF
61579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61580   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
61581   ice_cv_have_fseek_decl=yes
61582 fi
61583 rm -f conftest*
61584
61585 if test "$ice_cv_have_fseek_decl" = yes; then
61586         break
61587 fi
61588 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61589 cat >conftest.$ac_ext <<_ACEOF
61590 /* confdefs.h.  */
61591 _ACEOF
61592 cat confdefs.h >>conftest.$ac_ext
61593 cat >>conftest.$ac_ext <<_ACEOF
61594 /* end confdefs.h.  */
61595 #include <$header>
61596
61597 _ACEOF
61598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61599   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61600   ice_cv_have_fseek_decl=yes
61601 fi
61602 rm -f conftest*
61603
61604 if test "$ice_cv_have_fseek_decl" = yes; then
61605         break
61606 fi
61607 done
61608
61609 fi
61610
61611 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
61612 $as_echo "$ice_cv_have_fseek_decl" >&6; }
61613 if test "$ice_cv_have_fseek_decl" = yes; then
61614
61615 cat >>confdefs.h <<_ACEOF
61616 #define HAVE_FSEEK_DECL 1
61617 _ACEOF
61618
61619 fi
61620 fi
61621
61622
61623 ice_have_fwrite=no
61624
61625 for ac_func in fwrite
61626 do
61627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61628 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61629 $as_echo_n "checking for $ac_func... " >&6; }
61630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61631   $as_echo_n "(cached) " >&6
61632 else
61633   cat >conftest.$ac_ext <<_ACEOF
61634 /* confdefs.h.  */
61635 _ACEOF
61636 cat confdefs.h >>conftest.$ac_ext
61637 cat >>conftest.$ac_ext <<_ACEOF
61638 /* end confdefs.h.  */
61639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61640    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61641 #define $ac_func innocuous_$ac_func
61642
61643 /* System header to define __stub macros and hopefully few prototypes,
61644     which can conflict with char $ac_func (); below.
61645     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61646     <limits.h> exists even on freestanding compilers.  */
61647
61648 #ifdef __STDC__
61649 # include <limits.h>
61650 #else
61651 # include <assert.h>
61652 #endif
61653
61654 #undef $ac_func
61655
61656 /* Override any GCC internal prototype to avoid an error.
61657    Use char because int might match the return type of a GCC
61658    builtin and then its argument prototype would still apply.  */
61659 #ifdef __cplusplus
61660 extern "C"
61661 #endif
61662 char $ac_func ();
61663 /* The GNU C library defines this for functions which it implements
61664     to always fail with ENOSYS.  Some functions are actually named
61665     something starting with __ and the normal name is an alias.  */
61666 #if defined __stub_$ac_func || defined __stub___$ac_func
61667 choke me
61668 #endif
61669
61670 int
61671 main ()
61672 {
61673 return $ac_func ();
61674   ;
61675   return 0;
61676 }
61677 _ACEOF
61678 rm -f conftest.$ac_objext conftest$ac_exeext
61679 if { (ac_try="$ac_link"
61680 case "(($ac_try" in
61681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61682   *) ac_try_echo=$ac_try;;
61683 esac
61684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61685 $as_echo "$ac_try_echo") >&5
61686   (eval "$ac_link") 2>conftest.er1
61687   ac_status=$?
61688   grep -v '^ *+' conftest.er1 >conftest.err
61689   rm -f conftest.er1
61690   cat conftest.err >&5
61691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61692   (exit $ac_status); } && {
61693          test -z "$ac_c_werror_flag" ||
61694          test ! -s conftest.err
61695        } && test -s conftest$ac_exeext && {
61696          test "$cross_compiling" = yes ||
61697          $as_test_x conftest$ac_exeext
61698        }; then
61699   eval "$as_ac_var=yes"
61700 else
61701   $as_echo "$as_me: failed program was:" >&5
61702 sed 's/^/| /' conftest.$ac_ext >&5
61703
61704         eval "$as_ac_var=no"
61705 fi
61706
61707 rm -rf conftest.dSYM
61708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61709       conftest$ac_exeext conftest.$ac_ext
61710 fi
61711 ac_res=`eval 'as_val=${'$as_ac_var'}
61712                  $as_echo "$as_val"'`
61713                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61714 $as_echo "$ac_res" >&6; }
61715 as_val=`eval 'as_val=${'$as_ac_var'}
61716                  $as_echo "$as_val"'`
61717    if test "x$as_val" = x""yes; then
61718   cat >>confdefs.h <<_ACEOF
61719 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61720 _ACEOF
61721  ice_have_fwrite=yes
61722 fi
61723 done
61724
61725 if test "${ice_have_fwrite}" = yes; then
61726 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
61727 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
61728 if test "${ice_cv_have_fwrite_decl+set}" = set; then
61729   $as_echo_n "(cached) " >&6
61730 else
61731
61732 ice_cv_have_fwrite_decl=no
61733 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61734 ice_re_word='(^|[^a-zA-Z0-9_])'
61735 for header in stdio.h stdlib.h; do
61736 # Check for ordinary declaration
61737 cat >conftest.$ac_ext <<_ACEOF
61738 /* confdefs.h.  */
61739 _ACEOF
61740 cat confdefs.h >>conftest.$ac_ext
61741 cat >>conftest.$ac_ext <<_ACEOF
61742 /* end confdefs.h.  */
61743 #include <$header>
61744
61745 _ACEOF
61746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61747   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
61748   ice_cv_have_fwrite_decl=yes
61749 fi
61750 rm -f conftest*
61751
61752 if test "$ice_cv_have_fwrite_decl" = yes; then
61753         break
61754 fi
61755 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61756 cat >conftest.$ac_ext <<_ACEOF
61757 /* confdefs.h.  */
61758 _ACEOF
61759 cat confdefs.h >>conftest.$ac_ext
61760 cat >>conftest.$ac_ext <<_ACEOF
61761 /* end confdefs.h.  */
61762 #include <$header>
61763
61764 _ACEOF
61765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61766   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61767   ice_cv_have_fwrite_decl=yes
61768 fi
61769 rm -f conftest*
61770
61771 if test "$ice_cv_have_fwrite_decl" = yes; then
61772         break
61773 fi
61774 done
61775
61776 fi
61777
61778 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
61779 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
61780 if test "$ice_cv_have_fwrite_decl" = yes; then
61781
61782 cat >>confdefs.h <<_ACEOF
61783 #define HAVE_FWRITE_DECL 1
61784 _ACEOF
61785
61786 fi
61787 fi
61788
61789
61790 for ac_func in getgrgid_r
61791 do
61792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61793 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61794 $as_echo_n "checking for $ac_func... " >&6; }
61795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61796   $as_echo_n "(cached) " >&6
61797 else
61798   cat >conftest.$ac_ext <<_ACEOF
61799 /* confdefs.h.  */
61800 _ACEOF
61801 cat confdefs.h >>conftest.$ac_ext
61802 cat >>conftest.$ac_ext <<_ACEOF
61803 /* end confdefs.h.  */
61804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61806 #define $ac_func innocuous_$ac_func
61807
61808 /* System header to define __stub macros and hopefully few prototypes,
61809     which can conflict with char $ac_func (); below.
61810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61811     <limits.h> exists even on freestanding compilers.  */
61812
61813 #ifdef __STDC__
61814 # include <limits.h>
61815 #else
61816 # include <assert.h>
61817 #endif
61818
61819 #undef $ac_func
61820
61821 /* Override any GCC internal prototype to avoid an error.
61822    Use char because int might match the return type of a GCC
61823    builtin and then its argument prototype would still apply.  */
61824 #ifdef __cplusplus
61825 extern "C"
61826 #endif
61827 char $ac_func ();
61828 /* The GNU C library defines this for functions which it implements
61829     to always fail with ENOSYS.  Some functions are actually named
61830     something starting with __ and the normal name is an alias.  */
61831 #if defined __stub_$ac_func || defined __stub___$ac_func
61832 choke me
61833 #endif
61834
61835 int
61836 main ()
61837 {
61838 return $ac_func ();
61839   ;
61840   return 0;
61841 }
61842 _ACEOF
61843 rm -f conftest.$ac_objext conftest$ac_exeext
61844 if { (ac_try="$ac_link"
61845 case "(($ac_try" in
61846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61847   *) ac_try_echo=$ac_try;;
61848 esac
61849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61850 $as_echo "$ac_try_echo") >&5
61851   (eval "$ac_link") 2>conftest.er1
61852   ac_status=$?
61853   grep -v '^ *+' conftest.er1 >conftest.err
61854   rm -f conftest.er1
61855   cat conftest.err >&5
61856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61857   (exit $ac_status); } && {
61858          test -z "$ac_c_werror_flag" ||
61859          test ! -s conftest.err
61860        } && test -s conftest$ac_exeext && {
61861          test "$cross_compiling" = yes ||
61862          $as_test_x conftest$ac_exeext
61863        }; then
61864   eval "$as_ac_var=yes"
61865 else
61866   $as_echo "$as_me: failed program was:" >&5
61867 sed 's/^/| /' conftest.$ac_ext >&5
61868
61869         eval "$as_ac_var=no"
61870 fi
61871
61872 rm -rf conftest.dSYM
61873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61874       conftest$ac_exeext conftest.$ac_ext
61875 fi
61876 ac_res=`eval 'as_val=${'$as_ac_var'}
61877                  $as_echo "$as_val"'`
61878                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61879 $as_echo "$ac_res" >&6; }
61880 as_val=`eval 'as_val=${'$as_ac_var'}
61881                  $as_echo "$as_val"'`
61882    if test "x$as_val" = x""yes; then
61883   cat >>confdefs.h <<_ACEOF
61884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61885 _ACEOF
61886
61887 fi
61888 done
61889
61890
61891 for ac_func in getpwuid_r
61892 do
61893 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61894 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61895 $as_echo_n "checking for $ac_func... " >&6; }
61896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61897   $as_echo_n "(cached) " >&6
61898 else
61899   cat >conftest.$ac_ext <<_ACEOF
61900 /* confdefs.h.  */
61901 _ACEOF
61902 cat confdefs.h >>conftest.$ac_ext
61903 cat >>conftest.$ac_ext <<_ACEOF
61904 /* end confdefs.h.  */
61905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61907 #define $ac_func innocuous_$ac_func
61908
61909 /* System header to define __stub macros and hopefully few prototypes,
61910     which can conflict with char $ac_func (); below.
61911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61912     <limits.h> exists even on freestanding compilers.  */
61913
61914 #ifdef __STDC__
61915 # include <limits.h>
61916 #else
61917 # include <assert.h>
61918 #endif
61919
61920 #undef $ac_func
61921
61922 /* Override any GCC internal prototype to avoid an error.
61923    Use char because int might match the return type of a GCC
61924    builtin and then its argument prototype would still apply.  */
61925 #ifdef __cplusplus
61926 extern "C"
61927 #endif
61928 char $ac_func ();
61929 /* The GNU C library defines this for functions which it implements
61930     to always fail with ENOSYS.  Some functions are actually named
61931     something starting with __ and the normal name is an alias.  */
61932 #if defined __stub_$ac_func || defined __stub___$ac_func
61933 choke me
61934 #endif
61935
61936 int
61937 main ()
61938 {
61939 return $ac_func ();
61940   ;
61941   return 0;
61942 }
61943 _ACEOF
61944 rm -f conftest.$ac_objext conftest$ac_exeext
61945 if { (ac_try="$ac_link"
61946 case "(($ac_try" in
61947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61948   *) ac_try_echo=$ac_try;;
61949 esac
61950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61951 $as_echo "$ac_try_echo") >&5
61952   (eval "$ac_link") 2>conftest.er1
61953   ac_status=$?
61954   grep -v '^ *+' conftest.er1 >conftest.err
61955   rm -f conftest.er1
61956   cat conftest.err >&5
61957   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61958   (exit $ac_status); } && {
61959          test -z "$ac_c_werror_flag" ||
61960          test ! -s conftest.err
61961        } && test -s conftest$ac_exeext && {
61962          test "$cross_compiling" = yes ||
61963          $as_test_x conftest$ac_exeext
61964        }; then
61965   eval "$as_ac_var=yes"
61966 else
61967   $as_echo "$as_me: failed program was:" >&5
61968 sed 's/^/| /' conftest.$ac_ext >&5
61969
61970         eval "$as_ac_var=no"
61971 fi
61972
61973 rm -rf conftest.dSYM
61974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61975       conftest$ac_exeext conftest.$ac_ext
61976 fi
61977 ac_res=`eval 'as_val=${'$as_ac_var'}
61978                  $as_echo "$as_val"'`
61979                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61980 $as_echo "$ac_res" >&6; }
61981 as_val=`eval 'as_val=${'$as_ac_var'}
61982                  $as_echo "$as_val"'`
61983    if test "x$as_val" = x""yes; then
61984   cat >>confdefs.h <<_ACEOF
61985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61986 _ACEOF
61987
61988 fi
61989 done
61990
61991
61992 ice_have_gethostname=no
61993
61994 for ac_func in gethostname
61995 do
61996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61998 $as_echo_n "checking for $ac_func... " >&6; }
61999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62000   $as_echo_n "(cached) " >&6
62001 else
62002   cat >conftest.$ac_ext <<_ACEOF
62003 /* confdefs.h.  */
62004 _ACEOF
62005 cat confdefs.h >>conftest.$ac_ext
62006 cat >>conftest.$ac_ext <<_ACEOF
62007 /* end confdefs.h.  */
62008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62010 #define $ac_func innocuous_$ac_func
62011
62012 /* System header to define __stub macros and hopefully few prototypes,
62013     which can conflict with char $ac_func (); below.
62014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62015     <limits.h> exists even on freestanding compilers.  */
62016
62017 #ifdef __STDC__
62018 # include <limits.h>
62019 #else
62020 # include <assert.h>
62021 #endif
62022
62023 #undef $ac_func
62024
62025 /* Override any GCC internal prototype to avoid an error.
62026    Use char because int might match the return type of a GCC
62027    builtin and then its argument prototype would still apply.  */
62028 #ifdef __cplusplus
62029 extern "C"
62030 #endif
62031 char $ac_func ();
62032 /* The GNU C library defines this for functions which it implements
62033     to always fail with ENOSYS.  Some functions are actually named
62034     something starting with __ and the normal name is an alias.  */
62035 #if defined __stub_$ac_func || defined __stub___$ac_func
62036 choke me
62037 #endif
62038
62039 int
62040 main ()
62041 {
62042 return $ac_func ();
62043   ;
62044   return 0;
62045 }
62046 _ACEOF
62047 rm -f conftest.$ac_objext conftest$ac_exeext
62048 if { (ac_try="$ac_link"
62049 case "(($ac_try" in
62050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62051   *) ac_try_echo=$ac_try;;
62052 esac
62053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62054 $as_echo "$ac_try_echo") >&5
62055   (eval "$ac_link") 2>conftest.er1
62056   ac_status=$?
62057   grep -v '^ *+' conftest.er1 >conftest.err
62058   rm -f conftest.er1
62059   cat conftest.err >&5
62060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62061   (exit $ac_status); } && {
62062          test -z "$ac_c_werror_flag" ||
62063          test ! -s conftest.err
62064        } && test -s conftest$ac_exeext && {
62065          test "$cross_compiling" = yes ||
62066          $as_test_x conftest$ac_exeext
62067        }; then
62068   eval "$as_ac_var=yes"
62069 else
62070   $as_echo "$as_me: failed program was:" >&5
62071 sed 's/^/| /' conftest.$ac_ext >&5
62072
62073         eval "$as_ac_var=no"
62074 fi
62075
62076 rm -rf conftest.dSYM
62077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62078       conftest$ac_exeext conftest.$ac_ext
62079 fi
62080 ac_res=`eval 'as_val=${'$as_ac_var'}
62081                  $as_echo "$as_val"'`
62082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62083 $as_echo "$ac_res" >&6; }
62084 as_val=`eval 'as_val=${'$as_ac_var'}
62085                  $as_echo "$as_val"'`
62086    if test "x$as_val" = x""yes; then
62087   cat >>confdefs.h <<_ACEOF
62088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62089 _ACEOF
62090  ice_have_gethostname=yes
62091 fi
62092 done
62093
62094 if test "${ice_have_gethostname}" = yes; then
62095 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
62096 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
62097 if test "${ice_cv_have_gethostname_decl+set}" = set; then
62098   $as_echo_n "(cached) " >&6
62099 else
62100
62101 ice_cv_have_gethostname_decl=no
62102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62103 ice_re_word='(^|[^a-zA-Z0-9_])'
62104 for header in unistd.h; do
62105 # Check for ordinary declaration
62106 cat >conftest.$ac_ext <<_ACEOF
62107 /* confdefs.h.  */
62108 _ACEOF
62109 cat confdefs.h >>conftest.$ac_ext
62110 cat >>conftest.$ac_ext <<_ACEOF
62111 /* end confdefs.h.  */
62112 #include <$header>
62113
62114 _ACEOF
62115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62116   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
62117   ice_cv_have_gethostname_decl=yes
62118 fi
62119 rm -f conftest*
62120
62121 if test "$ice_cv_have_gethostname_decl" = yes; then
62122         break
62123 fi
62124 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62125 cat >conftest.$ac_ext <<_ACEOF
62126 /* confdefs.h.  */
62127 _ACEOF
62128 cat confdefs.h >>conftest.$ac_ext
62129 cat >>conftest.$ac_ext <<_ACEOF
62130 /* end confdefs.h.  */
62131 #include <$header>
62132
62133 _ACEOF
62134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62135   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62136   ice_cv_have_gethostname_decl=yes
62137 fi
62138 rm -f conftest*
62139
62140 if test "$ice_cv_have_gethostname_decl" = yes; then
62141         break
62142 fi
62143 done
62144
62145 fi
62146
62147 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
62148 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
62149 if test "$ice_cv_have_gethostname_decl" = yes; then
62150
62151 cat >>confdefs.h <<_ACEOF
62152 #define HAVE_GETHOSTNAME_DECL 1
62153 _ACEOF
62154
62155 fi
62156 fi
62157
62158
62159 ice_have_getopt=no
62160
62161 for ac_func in getopt
62162 do
62163 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62164 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62165 $as_echo_n "checking for $ac_func... " >&6; }
62166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62167   $as_echo_n "(cached) " >&6
62168 else
62169   cat >conftest.$ac_ext <<_ACEOF
62170 /* confdefs.h.  */
62171 _ACEOF
62172 cat confdefs.h >>conftest.$ac_ext
62173 cat >>conftest.$ac_ext <<_ACEOF
62174 /* end confdefs.h.  */
62175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62177 #define $ac_func innocuous_$ac_func
62178
62179 /* System header to define __stub macros and hopefully few prototypes,
62180     which can conflict with char $ac_func (); below.
62181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62182     <limits.h> exists even on freestanding compilers.  */
62183
62184 #ifdef __STDC__
62185 # include <limits.h>
62186 #else
62187 # include <assert.h>
62188 #endif
62189
62190 #undef $ac_func
62191
62192 /* Override any GCC internal prototype to avoid an error.
62193    Use char because int might match the return type of a GCC
62194    builtin and then its argument prototype would still apply.  */
62195 #ifdef __cplusplus
62196 extern "C"
62197 #endif
62198 char $ac_func ();
62199 /* The GNU C library defines this for functions which it implements
62200     to always fail with ENOSYS.  Some functions are actually named
62201     something starting with __ and the normal name is an alias.  */
62202 #if defined __stub_$ac_func || defined __stub___$ac_func
62203 choke me
62204 #endif
62205
62206 int
62207 main ()
62208 {
62209 return $ac_func ();
62210   ;
62211   return 0;
62212 }
62213 _ACEOF
62214 rm -f conftest.$ac_objext conftest$ac_exeext
62215 if { (ac_try="$ac_link"
62216 case "(($ac_try" in
62217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62218   *) ac_try_echo=$ac_try;;
62219 esac
62220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62221 $as_echo "$ac_try_echo") >&5
62222   (eval "$ac_link") 2>conftest.er1
62223   ac_status=$?
62224   grep -v '^ *+' conftest.er1 >conftest.err
62225   rm -f conftest.er1
62226   cat conftest.err >&5
62227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62228   (exit $ac_status); } && {
62229          test -z "$ac_c_werror_flag" ||
62230          test ! -s conftest.err
62231        } && test -s conftest$ac_exeext && {
62232          test "$cross_compiling" = yes ||
62233          $as_test_x conftest$ac_exeext
62234        }; then
62235   eval "$as_ac_var=yes"
62236 else
62237   $as_echo "$as_me: failed program was:" >&5
62238 sed 's/^/| /' conftest.$ac_ext >&5
62239
62240         eval "$as_ac_var=no"
62241 fi
62242
62243 rm -rf conftest.dSYM
62244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62245       conftest$ac_exeext conftest.$ac_ext
62246 fi
62247 ac_res=`eval 'as_val=${'$as_ac_var'}
62248                  $as_echo "$as_val"'`
62249                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62250 $as_echo "$ac_res" >&6; }
62251 as_val=`eval 'as_val=${'$as_ac_var'}
62252                  $as_echo "$as_val"'`
62253    if test "x$as_val" = x""yes; then
62254   cat >>confdefs.h <<_ACEOF
62255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62256 _ACEOF
62257  ice_have_getopt=yes
62258 fi
62259 done
62260
62261 if test "${ice_have_getopt}" = yes; then
62262 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
62263 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
62264 if test "${ice_cv_have_getopt_decl+set}" = set; then
62265   $as_echo_n "(cached) " >&6
62266 else
62267
62268 ice_cv_have_getopt_decl=no
62269 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62270 ice_re_word='(^|[^a-zA-Z0-9_])'
62271 for header in stdlib.h unistd.h libc.h; do
62272 # Check for ordinary declaration
62273 cat >conftest.$ac_ext <<_ACEOF
62274 /* confdefs.h.  */
62275 _ACEOF
62276 cat confdefs.h >>conftest.$ac_ext
62277 cat >>conftest.$ac_ext <<_ACEOF
62278 /* end confdefs.h.  */
62279 #include <$header>
62280
62281 _ACEOF
62282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62283   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
62284   ice_cv_have_getopt_decl=yes
62285 fi
62286 rm -f conftest*
62287
62288 if test "$ice_cv_have_getopt_decl" = yes; then
62289         break
62290 fi
62291 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62292 cat >conftest.$ac_ext <<_ACEOF
62293 /* confdefs.h.  */
62294 _ACEOF
62295 cat confdefs.h >>conftest.$ac_ext
62296 cat >>conftest.$ac_ext <<_ACEOF
62297 /* end confdefs.h.  */
62298 #include <$header>
62299
62300 _ACEOF
62301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62302   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62303   ice_cv_have_getopt_decl=yes
62304 fi
62305 rm -f conftest*
62306
62307 if test "$ice_cv_have_getopt_decl" = yes; then
62308         break
62309 fi
62310 done
62311
62312 fi
62313
62314 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
62315 $as_echo "$ice_cv_have_getopt_decl" >&6; }
62316 if test "$ice_cv_have_getopt_decl" = yes; then
62317
62318 cat >>confdefs.h <<_ACEOF
62319 #define HAVE_GETOPT_DECL 1
62320 _ACEOF
62321
62322 fi
62323 fi
62324
62325
62326 ice_have_getpeername=no
62327
62328 for ac_func in getpeername
62329 do
62330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62331 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62332 $as_echo_n "checking for $ac_func... " >&6; }
62333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62334   $as_echo_n "(cached) " >&6
62335 else
62336   cat >conftest.$ac_ext <<_ACEOF
62337 /* confdefs.h.  */
62338 _ACEOF
62339 cat confdefs.h >>conftest.$ac_ext
62340 cat >>conftest.$ac_ext <<_ACEOF
62341 /* end confdefs.h.  */
62342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62344 #define $ac_func innocuous_$ac_func
62345
62346 /* System header to define __stub macros and hopefully few prototypes,
62347     which can conflict with char $ac_func (); below.
62348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62349     <limits.h> exists even on freestanding compilers.  */
62350
62351 #ifdef __STDC__
62352 # include <limits.h>
62353 #else
62354 # include <assert.h>
62355 #endif
62356
62357 #undef $ac_func
62358
62359 /* Override any GCC internal prototype to avoid an error.
62360    Use char because int might match the return type of a GCC
62361    builtin and then its argument prototype would still apply.  */
62362 #ifdef __cplusplus
62363 extern "C"
62364 #endif
62365 char $ac_func ();
62366 /* The GNU C library defines this for functions which it implements
62367     to always fail with ENOSYS.  Some functions are actually named
62368     something starting with __ and the normal name is an alias.  */
62369 #if defined __stub_$ac_func || defined __stub___$ac_func
62370 choke me
62371 #endif
62372
62373 int
62374 main ()
62375 {
62376 return $ac_func ();
62377   ;
62378   return 0;
62379 }
62380 _ACEOF
62381 rm -f conftest.$ac_objext conftest$ac_exeext
62382 if { (ac_try="$ac_link"
62383 case "(($ac_try" in
62384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62385   *) ac_try_echo=$ac_try;;
62386 esac
62387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62388 $as_echo "$ac_try_echo") >&5
62389   (eval "$ac_link") 2>conftest.er1
62390   ac_status=$?
62391   grep -v '^ *+' conftest.er1 >conftest.err
62392   rm -f conftest.er1
62393   cat conftest.err >&5
62394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62395   (exit $ac_status); } && {
62396          test -z "$ac_c_werror_flag" ||
62397          test ! -s conftest.err
62398        } && test -s conftest$ac_exeext && {
62399          test "$cross_compiling" = yes ||
62400          $as_test_x conftest$ac_exeext
62401        }; then
62402   eval "$as_ac_var=yes"
62403 else
62404   $as_echo "$as_me: failed program was:" >&5
62405 sed 's/^/| /' conftest.$ac_ext >&5
62406
62407         eval "$as_ac_var=no"
62408 fi
62409
62410 rm -rf conftest.dSYM
62411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62412       conftest$ac_exeext conftest.$ac_ext
62413 fi
62414 ac_res=`eval 'as_val=${'$as_ac_var'}
62415                  $as_echo "$as_val"'`
62416                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62417 $as_echo "$ac_res" >&6; }
62418 as_val=`eval 'as_val=${'$as_ac_var'}
62419                  $as_echo "$as_val"'`
62420    if test "x$as_val" = x""yes; then
62421   cat >>confdefs.h <<_ACEOF
62422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62423 _ACEOF
62424  ice_have_getpeername=yes
62425 fi
62426 done
62427
62428 if test "${ice_have_getpeername}" = yes; then
62429 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
62430 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
62431 if test "${ice_cv_have_getpeername_decl+set}" = set; then
62432   $as_echo_n "(cached) " >&6
62433 else
62434
62435 ice_cv_have_getpeername_decl=no
62436 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62437 ice_re_word='(^|[^a-zA-Z0-9_])'
62438 for header in sys/types.h sys/socket.h; do
62439 # Check for ordinary declaration
62440 cat >conftest.$ac_ext <<_ACEOF
62441 /* confdefs.h.  */
62442 _ACEOF
62443 cat confdefs.h >>conftest.$ac_ext
62444 cat >>conftest.$ac_ext <<_ACEOF
62445 /* end confdefs.h.  */
62446 #include <$header>
62447
62448 _ACEOF
62449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62450   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
62451   ice_cv_have_getpeername_decl=yes
62452 fi
62453 rm -f conftest*
62454
62455 if test "$ice_cv_have_getpeername_decl" = yes; then
62456         break
62457 fi
62458 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62459 cat >conftest.$ac_ext <<_ACEOF
62460 /* confdefs.h.  */
62461 _ACEOF
62462 cat confdefs.h >>conftest.$ac_ext
62463 cat >>conftest.$ac_ext <<_ACEOF
62464 /* end confdefs.h.  */
62465 #include <$header>
62466
62467 _ACEOF
62468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62469   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62470   ice_cv_have_getpeername_decl=yes
62471 fi
62472 rm -f conftest*
62473
62474 if test "$ice_cv_have_getpeername_decl" = yes; then
62475         break
62476 fi
62477 done
62478
62479 fi
62480
62481 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
62482 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
62483 if test "$ice_cv_have_getpeername_decl" = yes; then
62484
62485 cat >>confdefs.h <<_ACEOF
62486 #define HAVE_GETPEERNAME_DECL 1
62487 _ACEOF
62488
62489 fi
62490 fi
62491
62492 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
62493 $as_echo_n "checking for getpgrp... " >&6; }
62494 if test "${ac_cv_func_getpgrp+set}" = set; then
62495   $as_echo_n "(cached) " >&6
62496 else
62497   cat >conftest.$ac_ext <<_ACEOF
62498 /* confdefs.h.  */
62499 _ACEOF
62500 cat confdefs.h >>conftest.$ac_ext
62501 cat >>conftest.$ac_ext <<_ACEOF
62502 /* end confdefs.h.  */
62503 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
62504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62505 #define getpgrp innocuous_getpgrp
62506
62507 /* System header to define __stub macros and hopefully few prototypes,
62508     which can conflict with char getpgrp (); below.
62509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62510     <limits.h> exists even on freestanding compilers.  */
62511
62512 #ifdef __STDC__
62513 # include <limits.h>
62514 #else
62515 # include <assert.h>
62516 #endif
62517
62518 #undef getpgrp
62519
62520 /* Override any GCC internal prototype to avoid an error.
62521    Use char because int might match the return type of a GCC
62522    builtin and then its argument prototype would still apply.  */
62523 #ifdef __cplusplus
62524 extern "C"
62525 #endif
62526 char getpgrp ();
62527 /* The GNU C library defines this for functions which it implements
62528     to always fail with ENOSYS.  Some functions are actually named
62529     something starting with __ and the normal name is an alias.  */
62530 #if defined __stub_getpgrp || defined __stub___getpgrp
62531 choke me
62532 #endif
62533
62534 int
62535 main ()
62536 {
62537 return getpgrp ();
62538   ;
62539   return 0;
62540 }
62541 _ACEOF
62542 rm -f conftest.$ac_objext conftest$ac_exeext
62543 if { (ac_try="$ac_link"
62544 case "(($ac_try" in
62545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62546   *) ac_try_echo=$ac_try;;
62547 esac
62548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62549 $as_echo "$ac_try_echo") >&5
62550   (eval "$ac_link") 2>conftest.er1
62551   ac_status=$?
62552   grep -v '^ *+' conftest.er1 >conftest.err
62553   rm -f conftest.er1
62554   cat conftest.err >&5
62555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62556   (exit $ac_status); } && {
62557          test -z "$ac_c_werror_flag" ||
62558          test ! -s conftest.err
62559        } && test -s conftest$ac_exeext && {
62560          test "$cross_compiling" = yes ||
62561          $as_test_x conftest$ac_exeext
62562        }; then
62563   ac_cv_func_getpgrp=yes
62564 else
62565   $as_echo "$as_me: failed program was:" >&5
62566 sed 's/^/| /' conftest.$ac_ext >&5
62567
62568         ac_cv_func_getpgrp=no
62569 fi
62570
62571 rm -rf conftest.dSYM
62572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62573       conftest$ac_exeext conftest.$ac_ext
62574 fi
62575 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
62576 $as_echo "$ac_cv_func_getpgrp" >&6; }
62577
62578 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
62579 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
62580 if test "${ac_cv_func_getpgrp_void+set}" = set; then
62581   $as_echo_n "(cached) " >&6
62582 else
62583   # Use it with a single arg.
62584 cat >conftest.$ac_ext <<_ACEOF
62585 /* confdefs.h.  */
62586 _ACEOF
62587 cat confdefs.h >>conftest.$ac_ext
62588 cat >>conftest.$ac_ext <<_ACEOF
62589 /* end confdefs.h.  */
62590 $ac_includes_default
62591 int
62592 main ()
62593 {
62594 getpgrp (0);
62595   ;
62596   return 0;
62597 }
62598 _ACEOF
62599 rm -f conftest.$ac_objext
62600 if { (ac_try="$ac_compile"
62601 case "(($ac_try" in
62602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62603   *) ac_try_echo=$ac_try;;
62604 esac
62605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62606 $as_echo "$ac_try_echo") >&5
62607   (eval "$ac_compile") 2>conftest.er1
62608   ac_status=$?
62609   grep -v '^ *+' conftest.er1 >conftest.err
62610   rm -f conftest.er1
62611   cat conftest.err >&5
62612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62613   (exit $ac_status); } && {
62614          test -z "$ac_c_werror_flag" ||
62615          test ! -s conftest.err
62616        } && test -s conftest.$ac_objext; then
62617   ac_cv_func_getpgrp_void=no
62618 else
62619   $as_echo "$as_me: failed program was:" >&5
62620 sed 's/^/| /' conftest.$ac_ext >&5
62621
62622         ac_cv_func_getpgrp_void=yes
62623 fi
62624
62625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62626
62627 fi
62628 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
62629 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
62630 if test $ac_cv_func_getpgrp_void = yes; then
62631
62632 cat >>confdefs.h <<\_ACEOF
62633 #define GETPGRP_VOID 1
62634 _ACEOF
62635
62636 fi
62637
62638
62639 ice_have_getsockname=no
62640
62641 for ac_func in getsockname
62642 do
62643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62644 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62645 $as_echo_n "checking for $ac_func... " >&6; }
62646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62647   $as_echo_n "(cached) " >&6
62648 else
62649   cat >conftest.$ac_ext <<_ACEOF
62650 /* confdefs.h.  */
62651 _ACEOF
62652 cat confdefs.h >>conftest.$ac_ext
62653 cat >>conftest.$ac_ext <<_ACEOF
62654 /* end confdefs.h.  */
62655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62657 #define $ac_func innocuous_$ac_func
62658
62659 /* System header to define __stub macros and hopefully few prototypes,
62660     which can conflict with char $ac_func (); below.
62661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62662     <limits.h> exists even on freestanding compilers.  */
62663
62664 #ifdef __STDC__
62665 # include <limits.h>
62666 #else
62667 # include <assert.h>
62668 #endif
62669
62670 #undef $ac_func
62671
62672 /* Override any GCC internal prototype to avoid an error.
62673    Use char because int might match the return type of a GCC
62674    builtin and then its argument prototype would still apply.  */
62675 #ifdef __cplusplus
62676 extern "C"
62677 #endif
62678 char $ac_func ();
62679 /* The GNU C library defines this for functions which it implements
62680     to always fail with ENOSYS.  Some functions are actually named
62681     something starting with __ and the normal name is an alias.  */
62682 #if defined __stub_$ac_func || defined __stub___$ac_func
62683 choke me
62684 #endif
62685
62686 int
62687 main ()
62688 {
62689 return $ac_func ();
62690   ;
62691   return 0;
62692 }
62693 _ACEOF
62694 rm -f conftest.$ac_objext conftest$ac_exeext
62695 if { (ac_try="$ac_link"
62696 case "(($ac_try" in
62697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62698   *) ac_try_echo=$ac_try;;
62699 esac
62700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62701 $as_echo "$ac_try_echo") >&5
62702   (eval "$ac_link") 2>conftest.er1
62703   ac_status=$?
62704   grep -v '^ *+' conftest.er1 >conftest.err
62705   rm -f conftest.er1
62706   cat conftest.err >&5
62707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62708   (exit $ac_status); } && {
62709          test -z "$ac_c_werror_flag" ||
62710          test ! -s conftest.err
62711        } && test -s conftest$ac_exeext && {
62712          test "$cross_compiling" = yes ||
62713          $as_test_x conftest$ac_exeext
62714        }; then
62715   eval "$as_ac_var=yes"
62716 else
62717   $as_echo "$as_me: failed program was:" >&5
62718 sed 's/^/| /' conftest.$ac_ext >&5
62719
62720         eval "$as_ac_var=no"
62721 fi
62722
62723 rm -rf conftest.dSYM
62724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62725       conftest$ac_exeext conftest.$ac_ext
62726 fi
62727 ac_res=`eval 'as_val=${'$as_ac_var'}
62728                  $as_echo "$as_val"'`
62729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62730 $as_echo "$ac_res" >&6; }
62731 as_val=`eval 'as_val=${'$as_ac_var'}
62732                  $as_echo "$as_val"'`
62733    if test "x$as_val" = x""yes; then
62734   cat >>confdefs.h <<_ACEOF
62735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62736 _ACEOF
62737  ice_have_getsockname=yes
62738 fi
62739 done
62740
62741 if test "${ice_have_getsockname}" = yes; then
62742 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
62743 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
62744 if test "${ice_cv_have_getsockname_decl+set}" = set; then
62745   $as_echo_n "(cached) " >&6
62746 else
62747
62748 ice_cv_have_getsockname_decl=no
62749 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62750 ice_re_word='(^|[^a-zA-Z0-9_])'
62751 for header in sys/types.h sys/socket.h; do
62752 # Check for ordinary declaration
62753 cat >conftest.$ac_ext <<_ACEOF
62754 /* confdefs.h.  */
62755 _ACEOF
62756 cat confdefs.h >>conftest.$ac_ext
62757 cat >>conftest.$ac_ext <<_ACEOF
62758 /* end confdefs.h.  */
62759 #include <$header>
62760
62761 _ACEOF
62762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62763   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
62764   ice_cv_have_getsockname_decl=yes
62765 fi
62766 rm -f conftest*
62767
62768 if test "$ice_cv_have_getsockname_decl" = yes; then
62769         break
62770 fi
62771 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62772 cat >conftest.$ac_ext <<_ACEOF
62773 /* confdefs.h.  */
62774 _ACEOF
62775 cat confdefs.h >>conftest.$ac_ext
62776 cat >>conftest.$ac_ext <<_ACEOF
62777 /* end confdefs.h.  */
62778 #include <$header>
62779
62780 _ACEOF
62781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62782   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62783   ice_cv_have_getsockname_decl=yes
62784 fi
62785 rm -f conftest*
62786
62787 if test "$ice_cv_have_getsockname_decl" = yes; then
62788         break
62789 fi
62790 done
62791
62792 fi
62793
62794 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
62795 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
62796 if test "$ice_cv_have_getsockname_decl" = yes; then
62797
62798 cat >>confdefs.h <<_ACEOF
62799 #define HAVE_GETSOCKNAME_DECL 1
62800 _ACEOF
62801
62802 fi
62803 fi
62804
62805
62806 ice_have_getsockopt=no
62807
62808 for ac_func in getsockopt
62809 do
62810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62812 $as_echo_n "checking for $ac_func... " >&6; }
62813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62814   $as_echo_n "(cached) " >&6
62815 else
62816   cat >conftest.$ac_ext <<_ACEOF
62817 /* confdefs.h.  */
62818 _ACEOF
62819 cat confdefs.h >>conftest.$ac_ext
62820 cat >>conftest.$ac_ext <<_ACEOF
62821 /* end confdefs.h.  */
62822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62824 #define $ac_func innocuous_$ac_func
62825
62826 /* System header to define __stub macros and hopefully few prototypes,
62827     which can conflict with char $ac_func (); below.
62828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62829     <limits.h> exists even on freestanding compilers.  */
62830
62831 #ifdef __STDC__
62832 # include <limits.h>
62833 #else
62834 # include <assert.h>
62835 #endif
62836
62837 #undef $ac_func
62838
62839 /* Override any GCC internal prototype to avoid an error.
62840    Use char because int might match the return type of a GCC
62841    builtin and then its argument prototype would still apply.  */
62842 #ifdef __cplusplus
62843 extern "C"
62844 #endif
62845 char $ac_func ();
62846 /* The GNU C library defines this for functions which it implements
62847     to always fail with ENOSYS.  Some functions are actually named
62848     something starting with __ and the normal name is an alias.  */
62849 #if defined __stub_$ac_func || defined __stub___$ac_func
62850 choke me
62851 #endif
62852
62853 int
62854 main ()
62855 {
62856 return $ac_func ();
62857   ;
62858   return 0;
62859 }
62860 _ACEOF
62861 rm -f conftest.$ac_objext conftest$ac_exeext
62862 if { (ac_try="$ac_link"
62863 case "(($ac_try" in
62864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62865   *) ac_try_echo=$ac_try;;
62866 esac
62867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62868 $as_echo "$ac_try_echo") >&5
62869   (eval "$ac_link") 2>conftest.er1
62870   ac_status=$?
62871   grep -v '^ *+' conftest.er1 >conftest.err
62872   rm -f conftest.er1
62873   cat conftest.err >&5
62874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62875   (exit $ac_status); } && {
62876          test -z "$ac_c_werror_flag" ||
62877          test ! -s conftest.err
62878        } && test -s conftest$ac_exeext && {
62879          test "$cross_compiling" = yes ||
62880          $as_test_x conftest$ac_exeext
62881        }; then
62882   eval "$as_ac_var=yes"
62883 else
62884   $as_echo "$as_me: failed program was:" >&5
62885 sed 's/^/| /' conftest.$ac_ext >&5
62886
62887         eval "$as_ac_var=no"
62888 fi
62889
62890 rm -rf conftest.dSYM
62891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62892       conftest$ac_exeext conftest.$ac_ext
62893 fi
62894 ac_res=`eval 'as_val=${'$as_ac_var'}
62895                  $as_echo "$as_val"'`
62896                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62897 $as_echo "$ac_res" >&6; }
62898 as_val=`eval 'as_val=${'$as_ac_var'}
62899                  $as_echo "$as_val"'`
62900    if test "x$as_val" = x""yes; then
62901   cat >>confdefs.h <<_ACEOF
62902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62903 _ACEOF
62904  ice_have_getsockopt=yes
62905 fi
62906 done
62907
62908 if test "${ice_have_getsockopt}" = yes; then
62909 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
62910 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
62911 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
62912   $as_echo_n "(cached) " >&6
62913 else
62914
62915 ice_cv_have_getsockopt_decl=no
62916 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62917 ice_re_word='(^|[^a-zA-Z0-9_])'
62918 for header in sys/types.h sys/socket.h; do
62919 # Check for ordinary declaration
62920 cat >conftest.$ac_ext <<_ACEOF
62921 /* confdefs.h.  */
62922 _ACEOF
62923 cat confdefs.h >>conftest.$ac_ext
62924 cat >>conftest.$ac_ext <<_ACEOF
62925 /* end confdefs.h.  */
62926 #include <$header>
62927
62928 _ACEOF
62929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62930   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
62931   ice_cv_have_getsockopt_decl=yes
62932 fi
62933 rm -f conftest*
62934
62935 if test "$ice_cv_have_getsockopt_decl" = yes; then
62936         break
62937 fi
62938 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62939 cat >conftest.$ac_ext <<_ACEOF
62940 /* confdefs.h.  */
62941 _ACEOF
62942 cat confdefs.h >>conftest.$ac_ext
62943 cat >>conftest.$ac_ext <<_ACEOF
62944 /* end confdefs.h.  */
62945 #include <$header>
62946
62947 _ACEOF
62948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62949   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62950   ice_cv_have_getsockopt_decl=yes
62951 fi
62952 rm -f conftest*
62953
62954 if test "$ice_cv_have_getsockopt_decl" = yes; then
62955         break
62956 fi
62957 done
62958
62959 fi
62960
62961 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
62962 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
62963 if test "$ice_cv_have_getsockopt_decl" = yes; then
62964
62965 cat >>confdefs.h <<_ACEOF
62966 #define HAVE_GETSOCKOPT_DECL 1
62967 _ACEOF
62968
62969 fi
62970 fi
62971
62972
62973 ice_have_initgroups=no
62974
62975 for ac_func in initgroups
62976 do
62977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62978 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62979 $as_echo_n "checking for $ac_func... " >&6; }
62980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62981   $as_echo_n "(cached) " >&6
62982 else
62983   cat >conftest.$ac_ext <<_ACEOF
62984 /* confdefs.h.  */
62985 _ACEOF
62986 cat confdefs.h >>conftest.$ac_ext
62987 cat >>conftest.$ac_ext <<_ACEOF
62988 /* end confdefs.h.  */
62989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62991 #define $ac_func innocuous_$ac_func
62992
62993 /* System header to define __stub macros and hopefully few prototypes,
62994     which can conflict with char $ac_func (); below.
62995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62996     <limits.h> exists even on freestanding compilers.  */
62997
62998 #ifdef __STDC__
62999 # include <limits.h>
63000 #else
63001 # include <assert.h>
63002 #endif
63003
63004 #undef $ac_func
63005
63006 /* Override any GCC internal prototype to avoid an error.
63007    Use char because int might match the return type of a GCC
63008    builtin and then its argument prototype would still apply.  */
63009 #ifdef __cplusplus
63010 extern "C"
63011 #endif
63012 char $ac_func ();
63013 /* The GNU C library defines this for functions which it implements
63014     to always fail with ENOSYS.  Some functions are actually named
63015     something starting with __ and the normal name is an alias.  */
63016 #if defined __stub_$ac_func || defined __stub___$ac_func
63017 choke me
63018 #endif
63019
63020 int
63021 main ()
63022 {
63023 return $ac_func ();
63024   ;
63025   return 0;
63026 }
63027 _ACEOF
63028 rm -f conftest.$ac_objext conftest$ac_exeext
63029 if { (ac_try="$ac_link"
63030 case "(($ac_try" in
63031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63032   *) ac_try_echo=$ac_try;;
63033 esac
63034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63035 $as_echo "$ac_try_echo") >&5
63036   (eval "$ac_link") 2>conftest.er1
63037   ac_status=$?
63038   grep -v '^ *+' conftest.er1 >conftest.err
63039   rm -f conftest.er1
63040   cat conftest.err >&5
63041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63042   (exit $ac_status); } && {
63043          test -z "$ac_c_werror_flag" ||
63044          test ! -s conftest.err
63045        } && test -s conftest$ac_exeext && {
63046          test "$cross_compiling" = yes ||
63047          $as_test_x conftest$ac_exeext
63048        }; then
63049   eval "$as_ac_var=yes"
63050 else
63051   $as_echo "$as_me: failed program was:" >&5
63052 sed 's/^/| /' conftest.$ac_ext >&5
63053
63054         eval "$as_ac_var=no"
63055 fi
63056
63057 rm -rf conftest.dSYM
63058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63059       conftest$ac_exeext conftest.$ac_ext
63060 fi
63061 ac_res=`eval 'as_val=${'$as_ac_var'}
63062                  $as_echo "$as_val"'`
63063                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63064 $as_echo "$ac_res" >&6; }
63065 as_val=`eval 'as_val=${'$as_ac_var'}
63066                  $as_echo "$as_val"'`
63067    if test "x$as_val" = x""yes; then
63068   cat >>confdefs.h <<_ACEOF
63069 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63070 _ACEOF
63071  ice_have_initgroups=yes
63072 fi
63073 done
63074
63075 if test "${ice_have_initgroups}" = yes; then
63076 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
63077 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
63078 if test "${ice_cv_have_initgroups_decl+set}" = set; then
63079   $as_echo_n "(cached) " >&6
63080 else
63081
63082 ice_cv_have_initgroups_decl=no
63083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63084 ice_re_word='(^|[^a-zA-Z0-9_])'
63085 for header in grp.h sys/types.h unistd.h libc.h; do
63086 # Check for ordinary declaration
63087 cat >conftest.$ac_ext <<_ACEOF
63088 /* confdefs.h.  */
63089 _ACEOF
63090 cat confdefs.h >>conftest.$ac_ext
63091 cat >>conftest.$ac_ext <<_ACEOF
63092 /* end confdefs.h.  */
63093 #include <$header>
63094
63095 _ACEOF
63096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63097   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
63098   ice_cv_have_initgroups_decl=yes
63099 fi
63100 rm -f conftest*
63101
63102 if test "$ice_cv_have_initgroups_decl" = yes; then
63103         break
63104 fi
63105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63106 cat >conftest.$ac_ext <<_ACEOF
63107 /* confdefs.h.  */
63108 _ACEOF
63109 cat confdefs.h >>conftest.$ac_ext
63110 cat >>conftest.$ac_ext <<_ACEOF
63111 /* end confdefs.h.  */
63112 #include <$header>
63113
63114 _ACEOF
63115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63116   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63117   ice_cv_have_initgroups_decl=yes
63118 fi
63119 rm -f conftest*
63120
63121 if test "$ice_cv_have_initgroups_decl" = yes; then
63122         break
63123 fi
63124 done
63125
63126 fi
63127
63128 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
63129 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
63130 if test "$ice_cv_have_initgroups_decl" = yes; then
63131
63132 cat >>confdefs.h <<_ACEOF
63133 #define HAVE_INITGROUPS_DECL 1
63134 _ACEOF
63135
63136 fi
63137 fi
63138
63139
63140 ice_have_ioctl=no
63141
63142 for ac_func in ioctl
63143 do
63144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63145 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63146 $as_echo_n "checking for $ac_func... " >&6; }
63147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63148   $as_echo_n "(cached) " >&6
63149 else
63150   cat >conftest.$ac_ext <<_ACEOF
63151 /* confdefs.h.  */
63152 _ACEOF
63153 cat confdefs.h >>conftest.$ac_ext
63154 cat >>conftest.$ac_ext <<_ACEOF
63155 /* end confdefs.h.  */
63156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63158 #define $ac_func innocuous_$ac_func
63159
63160 /* System header to define __stub macros and hopefully few prototypes,
63161     which can conflict with char $ac_func (); below.
63162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63163     <limits.h> exists even on freestanding compilers.  */
63164
63165 #ifdef __STDC__
63166 # include <limits.h>
63167 #else
63168 # include <assert.h>
63169 #endif
63170
63171 #undef $ac_func
63172
63173 /* Override any GCC internal prototype to avoid an error.
63174    Use char because int might match the return type of a GCC
63175    builtin and then its argument prototype would still apply.  */
63176 #ifdef __cplusplus
63177 extern "C"
63178 #endif
63179 char $ac_func ();
63180 /* The GNU C library defines this for functions which it implements
63181     to always fail with ENOSYS.  Some functions are actually named
63182     something starting with __ and the normal name is an alias.  */
63183 #if defined __stub_$ac_func || defined __stub___$ac_func
63184 choke me
63185 #endif
63186
63187 int
63188 main ()
63189 {
63190 return $ac_func ();
63191   ;
63192   return 0;
63193 }
63194 _ACEOF
63195 rm -f conftest.$ac_objext conftest$ac_exeext
63196 if { (ac_try="$ac_link"
63197 case "(($ac_try" in
63198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63199   *) ac_try_echo=$ac_try;;
63200 esac
63201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63202 $as_echo "$ac_try_echo") >&5
63203   (eval "$ac_link") 2>conftest.er1
63204   ac_status=$?
63205   grep -v '^ *+' conftest.er1 >conftest.err
63206   rm -f conftest.er1
63207   cat conftest.err >&5
63208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63209   (exit $ac_status); } && {
63210          test -z "$ac_c_werror_flag" ||
63211          test ! -s conftest.err
63212        } && test -s conftest$ac_exeext && {
63213          test "$cross_compiling" = yes ||
63214          $as_test_x conftest$ac_exeext
63215        }; then
63216   eval "$as_ac_var=yes"
63217 else
63218   $as_echo "$as_me: failed program was:" >&5
63219 sed 's/^/| /' conftest.$ac_ext >&5
63220
63221         eval "$as_ac_var=no"
63222 fi
63223
63224 rm -rf conftest.dSYM
63225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63226       conftest$ac_exeext conftest.$ac_ext
63227 fi
63228 ac_res=`eval 'as_val=${'$as_ac_var'}
63229                  $as_echo "$as_val"'`
63230                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63231 $as_echo "$ac_res" >&6; }
63232 as_val=`eval 'as_val=${'$as_ac_var'}
63233                  $as_echo "$as_val"'`
63234    if test "x$as_val" = x""yes; then
63235   cat >>confdefs.h <<_ACEOF
63236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63237 _ACEOF
63238  ice_have_ioctl=yes
63239 fi
63240 done
63241
63242 if test "${ice_have_ioctl}" = yes; then
63243 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
63244 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
63245 if test "${ice_cv_have_ioctl_decl+set}" = set; then
63246   $as_echo_n "(cached) " >&6
63247 else
63248
63249 ice_cv_have_ioctl_decl=no
63250 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63251 ice_re_word='(^|[^a-zA-Z0-9_])'
63252 for header in sys/ioctl.h unistd.h libc.h; do
63253 # Check for ordinary declaration
63254 cat >conftest.$ac_ext <<_ACEOF
63255 /* confdefs.h.  */
63256 _ACEOF
63257 cat confdefs.h >>conftest.$ac_ext
63258 cat >>conftest.$ac_ext <<_ACEOF
63259 /* end confdefs.h.  */
63260 #include <$header>
63261
63262 _ACEOF
63263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63264   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
63265   ice_cv_have_ioctl_decl=yes
63266 fi
63267 rm -f conftest*
63268
63269 if test "$ice_cv_have_ioctl_decl" = yes; then
63270         break
63271 fi
63272 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63273 cat >conftest.$ac_ext <<_ACEOF
63274 /* confdefs.h.  */
63275 _ACEOF
63276 cat confdefs.h >>conftest.$ac_ext
63277 cat >>conftest.$ac_ext <<_ACEOF
63278 /* end confdefs.h.  */
63279 #include <$header>
63280
63281 _ACEOF
63282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63283   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63284   ice_cv_have_ioctl_decl=yes
63285 fi
63286 rm -f conftest*
63287
63288 if test "$ice_cv_have_ioctl_decl" = yes; then
63289         break
63290 fi
63291 done
63292
63293 fi
63294
63295 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
63296 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
63297 if test "$ice_cv_have_ioctl_decl" = yes; then
63298
63299 cat >>confdefs.h <<_ACEOF
63300 #define HAVE_IOCTL_DECL 1
63301 _ACEOF
63302
63303 fi
63304 fi
63305
63306
63307 ice_have_isnormal=no
63308
63309 for ac_func in isnormal
63310 do
63311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63312 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63313 $as_echo_n "checking for $ac_func... " >&6; }
63314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63315   $as_echo_n "(cached) " >&6
63316 else
63317   cat >conftest.$ac_ext <<_ACEOF
63318 /* confdefs.h.  */
63319 _ACEOF
63320 cat confdefs.h >>conftest.$ac_ext
63321 cat >>conftest.$ac_ext <<_ACEOF
63322 /* end confdefs.h.  */
63323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63325 #define $ac_func innocuous_$ac_func
63326
63327 /* System header to define __stub macros and hopefully few prototypes,
63328     which can conflict with char $ac_func (); below.
63329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63330     <limits.h> exists even on freestanding compilers.  */
63331
63332 #ifdef __STDC__
63333 # include <limits.h>
63334 #else
63335 # include <assert.h>
63336 #endif
63337
63338 #undef $ac_func
63339
63340 /* Override any GCC internal prototype to avoid an error.
63341    Use char because int might match the return type of a GCC
63342    builtin and then its argument prototype would still apply.  */
63343 #ifdef __cplusplus
63344 extern "C"
63345 #endif
63346 char $ac_func ();
63347 /* The GNU C library defines this for functions which it implements
63348     to always fail with ENOSYS.  Some functions are actually named
63349     something starting with __ and the normal name is an alias.  */
63350 #if defined __stub_$ac_func || defined __stub___$ac_func
63351 choke me
63352 #endif
63353
63354 int
63355 main ()
63356 {
63357 return $ac_func ();
63358   ;
63359   return 0;
63360 }
63361 _ACEOF
63362 rm -f conftest.$ac_objext conftest$ac_exeext
63363 if { (ac_try="$ac_link"
63364 case "(($ac_try" in
63365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63366   *) ac_try_echo=$ac_try;;
63367 esac
63368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63369 $as_echo "$ac_try_echo") >&5
63370   (eval "$ac_link") 2>conftest.er1
63371   ac_status=$?
63372   grep -v '^ *+' conftest.er1 >conftest.err
63373   rm -f conftest.er1
63374   cat conftest.err >&5
63375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63376   (exit $ac_status); } && {
63377          test -z "$ac_c_werror_flag" ||
63378          test ! -s conftest.err
63379        } && test -s conftest$ac_exeext && {
63380          test "$cross_compiling" = yes ||
63381          $as_test_x conftest$ac_exeext
63382        }; then
63383   eval "$as_ac_var=yes"
63384 else
63385   $as_echo "$as_me: failed program was:" >&5
63386 sed 's/^/| /' conftest.$ac_ext >&5
63387
63388         eval "$as_ac_var=no"
63389 fi
63390
63391 rm -rf conftest.dSYM
63392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63393       conftest$ac_exeext conftest.$ac_ext
63394 fi
63395 ac_res=`eval 'as_val=${'$as_ac_var'}
63396                  $as_echo "$as_val"'`
63397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63398 $as_echo "$ac_res" >&6; }
63399 as_val=`eval 'as_val=${'$as_ac_var'}
63400                  $as_echo "$as_val"'`
63401    if test "x$as_val" = x""yes; then
63402   cat >>confdefs.h <<_ACEOF
63403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63404 _ACEOF
63405  ice_have_isnormal=yes
63406 fi
63407 done
63408
63409 if test "${ice_have_isnormal}" = yes; then
63410 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
63411 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
63412 if test "${ice_cv_have_isnormal_decl+set}" = set; then
63413   $as_echo_n "(cached) " >&6
63414 else
63415
63416 ice_cv_have_isnormal_decl=no
63417 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63418 ice_re_word='(^|[^a-zA-Z0-9_])'
63419 for header in math.h; do
63420 # Check for ordinary declaration
63421 cat >conftest.$ac_ext <<_ACEOF
63422 /* confdefs.h.  */
63423 _ACEOF
63424 cat confdefs.h >>conftest.$ac_ext
63425 cat >>conftest.$ac_ext <<_ACEOF
63426 /* end confdefs.h.  */
63427 #include <$header>
63428
63429 _ACEOF
63430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63431   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
63432   ice_cv_have_isnormal_decl=yes
63433 fi
63434 rm -f conftest*
63435
63436 if test "$ice_cv_have_isnormal_decl" = yes; then
63437         break
63438 fi
63439 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63440 cat >conftest.$ac_ext <<_ACEOF
63441 /* confdefs.h.  */
63442 _ACEOF
63443 cat confdefs.h >>conftest.$ac_ext
63444 cat >>conftest.$ac_ext <<_ACEOF
63445 /* end confdefs.h.  */
63446 #include <$header>
63447
63448 _ACEOF
63449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63450   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63451   ice_cv_have_isnormal_decl=yes
63452 fi
63453 rm -f conftest*
63454
63455 if test "$ice_cv_have_isnormal_decl" = yes; then
63456         break
63457 fi
63458 done
63459
63460 fi
63461
63462 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
63463 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
63464 if test "$ice_cv_have_isnormal_decl" = yes; then
63465
63466 cat >>confdefs.h <<_ACEOF
63467 #define HAVE_ISNORMAL_DECL 1
63468 _ACEOF
63469
63470 fi
63471 fi
63472
63473
63474 ice_have_listen=no
63475
63476 for ac_func in listen
63477 do
63478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63479 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63480 $as_echo_n "checking for $ac_func... " >&6; }
63481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63482   $as_echo_n "(cached) " >&6
63483 else
63484   cat >conftest.$ac_ext <<_ACEOF
63485 /* confdefs.h.  */
63486 _ACEOF
63487 cat confdefs.h >>conftest.$ac_ext
63488 cat >>conftest.$ac_ext <<_ACEOF
63489 /* end confdefs.h.  */
63490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63492 #define $ac_func innocuous_$ac_func
63493
63494 /* System header to define __stub macros and hopefully few prototypes,
63495     which can conflict with char $ac_func (); below.
63496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63497     <limits.h> exists even on freestanding compilers.  */
63498
63499 #ifdef __STDC__
63500 # include <limits.h>
63501 #else
63502 # include <assert.h>
63503 #endif
63504
63505 #undef $ac_func
63506
63507 /* Override any GCC internal prototype to avoid an error.
63508    Use char because int might match the return type of a GCC
63509    builtin and then its argument prototype would still apply.  */
63510 #ifdef __cplusplus
63511 extern "C"
63512 #endif
63513 char $ac_func ();
63514 /* The GNU C library defines this for functions which it implements
63515     to always fail with ENOSYS.  Some functions are actually named
63516     something starting with __ and the normal name is an alias.  */
63517 #if defined __stub_$ac_func || defined __stub___$ac_func
63518 choke me
63519 #endif
63520
63521 int
63522 main ()
63523 {
63524 return $ac_func ();
63525   ;
63526   return 0;
63527 }
63528 _ACEOF
63529 rm -f conftest.$ac_objext conftest$ac_exeext
63530 if { (ac_try="$ac_link"
63531 case "(($ac_try" in
63532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63533   *) ac_try_echo=$ac_try;;
63534 esac
63535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63536 $as_echo "$ac_try_echo") >&5
63537   (eval "$ac_link") 2>conftest.er1
63538   ac_status=$?
63539   grep -v '^ *+' conftest.er1 >conftest.err
63540   rm -f conftest.er1
63541   cat conftest.err >&5
63542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63543   (exit $ac_status); } && {
63544          test -z "$ac_c_werror_flag" ||
63545          test ! -s conftest.err
63546        } && test -s conftest$ac_exeext && {
63547          test "$cross_compiling" = yes ||
63548          $as_test_x conftest$ac_exeext
63549        }; then
63550   eval "$as_ac_var=yes"
63551 else
63552   $as_echo "$as_me: failed program was:" >&5
63553 sed 's/^/| /' conftest.$ac_ext >&5
63554
63555         eval "$as_ac_var=no"
63556 fi
63557
63558 rm -rf conftest.dSYM
63559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63560       conftest$ac_exeext conftest.$ac_ext
63561 fi
63562 ac_res=`eval 'as_val=${'$as_ac_var'}
63563                  $as_echo "$as_val"'`
63564                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63565 $as_echo "$ac_res" >&6; }
63566 as_val=`eval 'as_val=${'$as_ac_var'}
63567                  $as_echo "$as_val"'`
63568    if test "x$as_val" = x""yes; then
63569   cat >>confdefs.h <<_ACEOF
63570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63571 _ACEOF
63572  ice_have_listen=yes
63573 fi
63574 done
63575
63576 if test "${ice_have_listen}" = yes; then
63577 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
63578 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
63579 if test "${ice_cv_have_listen_decl+set}" = set; then
63580   $as_echo_n "(cached) " >&6
63581 else
63582
63583 ice_cv_have_listen_decl=no
63584 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63585 ice_re_word='(^|[^a-zA-Z0-9_])'
63586 for header in sys/types.h sys/socket.h; do
63587 # Check for ordinary declaration
63588 cat >conftest.$ac_ext <<_ACEOF
63589 /* confdefs.h.  */
63590 _ACEOF
63591 cat confdefs.h >>conftest.$ac_ext
63592 cat >>conftest.$ac_ext <<_ACEOF
63593 /* end confdefs.h.  */
63594 #include <$header>
63595
63596 _ACEOF
63597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63598   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
63599   ice_cv_have_listen_decl=yes
63600 fi
63601 rm -f conftest*
63602
63603 if test "$ice_cv_have_listen_decl" = yes; then
63604         break
63605 fi
63606 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63607 cat >conftest.$ac_ext <<_ACEOF
63608 /* confdefs.h.  */
63609 _ACEOF
63610 cat confdefs.h >>conftest.$ac_ext
63611 cat >>conftest.$ac_ext <<_ACEOF
63612 /* end confdefs.h.  */
63613 #include <$header>
63614
63615 _ACEOF
63616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63617   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63618   ice_cv_have_listen_decl=yes
63619 fi
63620 rm -f conftest*
63621
63622 if test "$ice_cv_have_listen_decl" = yes; then
63623         break
63624 fi
63625 done
63626
63627 fi
63628
63629 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
63630 $as_echo "$ice_cv_have_listen_decl" >&6; }
63631 if test "$ice_cv_have_listen_decl" = yes; then
63632
63633 cat >>confdefs.h <<_ACEOF
63634 #define HAVE_LISTEN_DECL 1
63635 _ACEOF
63636
63637 fi
63638 fi
63639
63640
63641 ice_have_lstat=no
63642
63643 for ac_func in lstat
63644 do
63645 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63646 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63647 $as_echo_n "checking for $ac_func... " >&6; }
63648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63649   $as_echo_n "(cached) " >&6
63650 else
63651   cat >conftest.$ac_ext <<_ACEOF
63652 /* confdefs.h.  */
63653 _ACEOF
63654 cat confdefs.h >>conftest.$ac_ext
63655 cat >>conftest.$ac_ext <<_ACEOF
63656 /* end confdefs.h.  */
63657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63659 #define $ac_func innocuous_$ac_func
63660
63661 /* System header to define __stub macros and hopefully few prototypes,
63662     which can conflict with char $ac_func (); below.
63663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63664     <limits.h> exists even on freestanding compilers.  */
63665
63666 #ifdef __STDC__
63667 # include <limits.h>
63668 #else
63669 # include <assert.h>
63670 #endif
63671
63672 #undef $ac_func
63673
63674 /* Override any GCC internal prototype to avoid an error.
63675    Use char because int might match the return type of a GCC
63676    builtin and then its argument prototype would still apply.  */
63677 #ifdef __cplusplus
63678 extern "C"
63679 #endif
63680 char $ac_func ();
63681 /* The GNU C library defines this for functions which it implements
63682     to always fail with ENOSYS.  Some functions are actually named
63683     something starting with __ and the normal name is an alias.  */
63684 #if defined __stub_$ac_func || defined __stub___$ac_func
63685 choke me
63686 #endif
63687
63688 int
63689 main ()
63690 {
63691 return $ac_func ();
63692   ;
63693   return 0;
63694 }
63695 _ACEOF
63696 rm -f conftest.$ac_objext conftest$ac_exeext
63697 if { (ac_try="$ac_link"
63698 case "(($ac_try" in
63699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63700   *) ac_try_echo=$ac_try;;
63701 esac
63702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63703 $as_echo "$ac_try_echo") >&5
63704   (eval "$ac_link") 2>conftest.er1
63705   ac_status=$?
63706   grep -v '^ *+' conftest.er1 >conftest.err
63707   rm -f conftest.er1
63708   cat conftest.err >&5
63709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63710   (exit $ac_status); } && {
63711          test -z "$ac_c_werror_flag" ||
63712          test ! -s conftest.err
63713        } && test -s conftest$ac_exeext && {
63714          test "$cross_compiling" = yes ||
63715          $as_test_x conftest$ac_exeext
63716        }; then
63717   eval "$as_ac_var=yes"
63718 else
63719   $as_echo "$as_me: failed program was:" >&5
63720 sed 's/^/| /' conftest.$ac_ext >&5
63721
63722         eval "$as_ac_var=no"
63723 fi
63724
63725 rm -rf conftest.dSYM
63726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63727       conftest$ac_exeext conftest.$ac_ext
63728 fi
63729 ac_res=`eval 'as_val=${'$as_ac_var'}
63730                  $as_echo "$as_val"'`
63731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63732 $as_echo "$ac_res" >&6; }
63733 as_val=`eval 'as_val=${'$as_ac_var'}
63734                  $as_echo "$as_val"'`
63735    if test "x$as_val" = x""yes; then
63736   cat >>confdefs.h <<_ACEOF
63737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63738 _ACEOF
63739  ice_have_lstat=yes
63740 fi
63741 done
63742
63743 if test "${ice_have_lstat}" = yes; then
63744 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
63745 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
63746 if test "${ice_cv_have_lstat_decl+set}" = set; then
63747   $as_echo_n "(cached) " >&6
63748 else
63749
63750 ice_cv_have_lstat_decl=no
63751 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63752 ice_re_word='(^|[^a-zA-Z0-9_])'
63753 for header in sys/types.h sys/stat.h; do
63754 # Check for ordinary declaration
63755 cat >conftest.$ac_ext <<_ACEOF
63756 /* confdefs.h.  */
63757 _ACEOF
63758 cat confdefs.h >>conftest.$ac_ext
63759 cat >>conftest.$ac_ext <<_ACEOF
63760 /* end confdefs.h.  */
63761 #include <$header>
63762
63763 _ACEOF
63764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63765   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
63766   ice_cv_have_lstat_decl=yes
63767 fi
63768 rm -f conftest*
63769
63770 if test "$ice_cv_have_lstat_decl" = yes; then
63771         break
63772 fi
63773 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63774 cat >conftest.$ac_ext <<_ACEOF
63775 /* confdefs.h.  */
63776 _ACEOF
63777 cat confdefs.h >>conftest.$ac_ext
63778 cat >>conftest.$ac_ext <<_ACEOF
63779 /* end confdefs.h.  */
63780 #include <$header>
63781
63782 _ACEOF
63783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63784   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63785   ice_cv_have_lstat_decl=yes
63786 fi
63787 rm -f conftest*
63788
63789 if test "$ice_cv_have_lstat_decl" = yes; then
63790         break
63791 fi
63792 done
63793
63794 fi
63795
63796 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
63797 $as_echo "$ice_cv_have_lstat_decl" >&6; }
63798 if test "$ice_cv_have_lstat_decl" = yes; then
63799
63800 cat >>confdefs.h <<_ACEOF
63801 #define HAVE_LSTAT_DECL 1
63802 _ACEOF
63803
63804 fi
63805 fi
63806
63807
63808 ice_have_malloc=no
63809
63810 for ac_func in malloc
63811 do
63812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63813 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63814 $as_echo_n "checking for $ac_func... " >&6; }
63815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63816   $as_echo_n "(cached) " >&6
63817 else
63818   cat >conftest.$ac_ext <<_ACEOF
63819 /* confdefs.h.  */
63820 _ACEOF
63821 cat confdefs.h >>conftest.$ac_ext
63822 cat >>conftest.$ac_ext <<_ACEOF
63823 /* end confdefs.h.  */
63824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63826 #define $ac_func innocuous_$ac_func
63827
63828 /* System header to define __stub macros and hopefully few prototypes,
63829     which can conflict with char $ac_func (); below.
63830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63831     <limits.h> exists even on freestanding compilers.  */
63832
63833 #ifdef __STDC__
63834 # include <limits.h>
63835 #else
63836 # include <assert.h>
63837 #endif
63838
63839 #undef $ac_func
63840
63841 /* Override any GCC internal prototype to avoid an error.
63842    Use char because int might match the return type of a GCC
63843    builtin and then its argument prototype would still apply.  */
63844 #ifdef __cplusplus
63845 extern "C"
63846 #endif
63847 char $ac_func ();
63848 /* The GNU C library defines this for functions which it implements
63849     to always fail with ENOSYS.  Some functions are actually named
63850     something starting with __ and the normal name is an alias.  */
63851 #if defined __stub_$ac_func || defined __stub___$ac_func
63852 choke me
63853 #endif
63854
63855 int
63856 main ()
63857 {
63858 return $ac_func ();
63859   ;
63860   return 0;
63861 }
63862 _ACEOF
63863 rm -f conftest.$ac_objext conftest$ac_exeext
63864 if { (ac_try="$ac_link"
63865 case "(($ac_try" in
63866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63867   *) ac_try_echo=$ac_try;;
63868 esac
63869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63870 $as_echo "$ac_try_echo") >&5
63871   (eval "$ac_link") 2>conftest.er1
63872   ac_status=$?
63873   grep -v '^ *+' conftest.er1 >conftest.err
63874   rm -f conftest.er1
63875   cat conftest.err >&5
63876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63877   (exit $ac_status); } && {
63878          test -z "$ac_c_werror_flag" ||
63879          test ! -s conftest.err
63880        } && test -s conftest$ac_exeext && {
63881          test "$cross_compiling" = yes ||
63882          $as_test_x conftest$ac_exeext
63883        }; then
63884   eval "$as_ac_var=yes"
63885 else
63886   $as_echo "$as_me: failed program was:" >&5
63887 sed 's/^/| /' conftest.$ac_ext >&5
63888
63889         eval "$as_ac_var=no"
63890 fi
63891
63892 rm -rf conftest.dSYM
63893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63894       conftest$ac_exeext conftest.$ac_ext
63895 fi
63896 ac_res=`eval 'as_val=${'$as_ac_var'}
63897                  $as_echo "$as_val"'`
63898                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63899 $as_echo "$ac_res" >&6; }
63900 as_val=`eval 'as_val=${'$as_ac_var'}
63901                  $as_echo "$as_val"'`
63902    if test "x$as_val" = x""yes; then
63903   cat >>confdefs.h <<_ACEOF
63904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63905 _ACEOF
63906  ice_have_malloc=yes
63907 fi
63908 done
63909
63910 if test "${ice_have_malloc}" = yes; then
63911 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
63912 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
63913 if test "${ice_cv_have_malloc_decl+set}" = set; then
63914   $as_echo_n "(cached) " >&6
63915 else
63916
63917 ice_cv_have_malloc_decl=no
63918 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63919 ice_re_word='(^|[^a-zA-Z0-9_])'
63920 for header in stdlib.h; do
63921 # Check for ordinary declaration
63922 cat >conftest.$ac_ext <<_ACEOF
63923 /* confdefs.h.  */
63924 _ACEOF
63925 cat confdefs.h >>conftest.$ac_ext
63926 cat >>conftest.$ac_ext <<_ACEOF
63927 /* end confdefs.h.  */
63928 #include <$header>
63929
63930 _ACEOF
63931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63932   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
63933   ice_cv_have_malloc_decl=yes
63934 fi
63935 rm -f conftest*
63936
63937 if test "$ice_cv_have_malloc_decl" = yes; then
63938         break
63939 fi
63940 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63941 cat >conftest.$ac_ext <<_ACEOF
63942 /* confdefs.h.  */
63943 _ACEOF
63944 cat confdefs.h >>conftest.$ac_ext
63945 cat >>conftest.$ac_ext <<_ACEOF
63946 /* end confdefs.h.  */
63947 #include <$header>
63948
63949 _ACEOF
63950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63951   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63952   ice_cv_have_malloc_decl=yes
63953 fi
63954 rm -f conftest*
63955
63956 if test "$ice_cv_have_malloc_decl" = yes; then
63957         break
63958 fi
63959 done
63960
63961 fi
63962
63963 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
63964 $as_echo "$ice_cv_have_malloc_decl" >&6; }
63965 if test "$ice_cv_have_malloc_decl" = yes; then
63966
63967 cat >>confdefs.h <<_ACEOF
63968 #define HAVE_MALLOC_DECL 1
63969 _ACEOF
63970
63971 fi
63972 fi
63973
63974
63975 ice_have_memmove=no
63976
63977 for ac_func in memmove
63978 do
63979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63980 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63981 $as_echo_n "checking for $ac_func... " >&6; }
63982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63983   $as_echo_n "(cached) " >&6
63984 else
63985   cat >conftest.$ac_ext <<_ACEOF
63986 /* confdefs.h.  */
63987 _ACEOF
63988 cat confdefs.h >>conftest.$ac_ext
63989 cat >>conftest.$ac_ext <<_ACEOF
63990 /* end confdefs.h.  */
63991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63993 #define $ac_func innocuous_$ac_func
63994
63995 /* System header to define __stub macros and hopefully few prototypes,
63996     which can conflict with char $ac_func (); below.
63997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63998     <limits.h> exists even on freestanding compilers.  */
63999
64000 #ifdef __STDC__
64001 # include <limits.h>
64002 #else
64003 # include <assert.h>
64004 #endif
64005
64006 #undef $ac_func
64007
64008 /* Override any GCC internal prototype to avoid an error.
64009    Use char because int might match the return type of a GCC
64010    builtin and then its argument prototype would still apply.  */
64011 #ifdef __cplusplus
64012 extern "C"
64013 #endif
64014 char $ac_func ();
64015 /* The GNU C library defines this for functions which it implements
64016     to always fail with ENOSYS.  Some functions are actually named
64017     something starting with __ and the normal name is an alias.  */
64018 #if defined __stub_$ac_func || defined __stub___$ac_func
64019 choke me
64020 #endif
64021
64022 int
64023 main ()
64024 {
64025 return $ac_func ();
64026   ;
64027   return 0;
64028 }
64029 _ACEOF
64030 rm -f conftest.$ac_objext conftest$ac_exeext
64031 if { (ac_try="$ac_link"
64032 case "(($ac_try" in
64033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64034   *) ac_try_echo=$ac_try;;
64035 esac
64036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64037 $as_echo "$ac_try_echo") >&5
64038   (eval "$ac_link") 2>conftest.er1
64039   ac_status=$?
64040   grep -v '^ *+' conftest.er1 >conftest.err
64041   rm -f conftest.er1
64042   cat conftest.err >&5
64043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64044   (exit $ac_status); } && {
64045          test -z "$ac_c_werror_flag" ||
64046          test ! -s conftest.err
64047        } && test -s conftest$ac_exeext && {
64048          test "$cross_compiling" = yes ||
64049          $as_test_x conftest$ac_exeext
64050        }; then
64051   eval "$as_ac_var=yes"
64052 else
64053   $as_echo "$as_me: failed program was:" >&5
64054 sed 's/^/| /' conftest.$ac_ext >&5
64055
64056         eval "$as_ac_var=no"
64057 fi
64058
64059 rm -rf conftest.dSYM
64060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64061       conftest$ac_exeext conftest.$ac_ext
64062 fi
64063 ac_res=`eval 'as_val=${'$as_ac_var'}
64064                  $as_echo "$as_val"'`
64065                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64066 $as_echo "$ac_res" >&6; }
64067 as_val=`eval 'as_val=${'$as_ac_var'}
64068                  $as_echo "$as_val"'`
64069    if test "x$as_val" = x""yes; then
64070   cat >>confdefs.h <<_ACEOF
64071 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64072 _ACEOF
64073  ice_have_memmove=yes
64074 fi
64075 done
64076
64077 if test "${ice_have_memmove}" = yes; then
64078 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
64079 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
64080 if test "${ice_cv_have_memmove_decl+set}" = set; then
64081   $as_echo_n "(cached) " >&6
64082 else
64083
64084 ice_cv_have_memmove_decl=no
64085 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64086 ice_re_word='(^|[^a-zA-Z0-9_])'
64087 for header in string.h strings.h; do
64088 # Check for ordinary declaration
64089 cat >conftest.$ac_ext <<_ACEOF
64090 /* confdefs.h.  */
64091 _ACEOF
64092 cat confdefs.h >>conftest.$ac_ext
64093 cat >>conftest.$ac_ext <<_ACEOF
64094 /* end confdefs.h.  */
64095 #include <$header>
64096
64097 _ACEOF
64098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64099   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
64100   ice_cv_have_memmove_decl=yes
64101 fi
64102 rm -f conftest*
64103
64104 if test "$ice_cv_have_memmove_decl" = yes; then
64105         break
64106 fi
64107 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64108 cat >conftest.$ac_ext <<_ACEOF
64109 /* confdefs.h.  */
64110 _ACEOF
64111 cat confdefs.h >>conftest.$ac_ext
64112 cat >>conftest.$ac_ext <<_ACEOF
64113 /* end confdefs.h.  */
64114 #include <$header>
64115
64116 _ACEOF
64117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64118   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64119   ice_cv_have_memmove_decl=yes
64120 fi
64121 rm -f conftest*
64122
64123 if test "$ice_cv_have_memmove_decl" = yes; then
64124         break
64125 fi
64126 done
64127
64128 fi
64129
64130 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
64131 $as_echo "$ice_cv_have_memmove_decl" >&6; }
64132 if test "$ice_cv_have_memmove_decl" = yes; then
64133
64134 cat >>confdefs.h <<_ACEOF
64135 #define HAVE_MEMMOVE_DECL 1
64136 _ACEOF
64137
64138 fi
64139 fi
64140
64141
64142 ice_have_memset=no
64143
64144 for ac_func in memset
64145 do
64146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64147 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64148 $as_echo_n "checking for $ac_func... " >&6; }
64149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64150   $as_echo_n "(cached) " >&6
64151 else
64152   cat >conftest.$ac_ext <<_ACEOF
64153 /* confdefs.h.  */
64154 _ACEOF
64155 cat confdefs.h >>conftest.$ac_ext
64156 cat >>conftest.$ac_ext <<_ACEOF
64157 /* end confdefs.h.  */
64158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64160 #define $ac_func innocuous_$ac_func
64161
64162 /* System header to define __stub macros and hopefully few prototypes,
64163     which can conflict with char $ac_func (); below.
64164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64165     <limits.h> exists even on freestanding compilers.  */
64166
64167 #ifdef __STDC__
64168 # include <limits.h>
64169 #else
64170 # include <assert.h>
64171 #endif
64172
64173 #undef $ac_func
64174
64175 /* Override any GCC internal prototype to avoid an error.
64176    Use char because int might match the return type of a GCC
64177    builtin and then its argument prototype would still apply.  */
64178 #ifdef __cplusplus
64179 extern "C"
64180 #endif
64181 char $ac_func ();
64182 /* The GNU C library defines this for functions which it implements
64183     to always fail with ENOSYS.  Some functions are actually named
64184     something starting with __ and the normal name is an alias.  */
64185 #if defined __stub_$ac_func || defined __stub___$ac_func
64186 choke me
64187 #endif
64188
64189 int
64190 main ()
64191 {
64192 return $ac_func ();
64193   ;
64194   return 0;
64195 }
64196 _ACEOF
64197 rm -f conftest.$ac_objext conftest$ac_exeext
64198 if { (ac_try="$ac_link"
64199 case "(($ac_try" in
64200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64201   *) ac_try_echo=$ac_try;;
64202 esac
64203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64204 $as_echo "$ac_try_echo") >&5
64205   (eval "$ac_link") 2>conftest.er1
64206   ac_status=$?
64207   grep -v '^ *+' conftest.er1 >conftest.err
64208   rm -f conftest.er1
64209   cat conftest.err >&5
64210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64211   (exit $ac_status); } && {
64212          test -z "$ac_c_werror_flag" ||
64213          test ! -s conftest.err
64214        } && test -s conftest$ac_exeext && {
64215          test "$cross_compiling" = yes ||
64216          $as_test_x conftest$ac_exeext
64217        }; then
64218   eval "$as_ac_var=yes"
64219 else
64220   $as_echo "$as_me: failed program was:" >&5
64221 sed 's/^/| /' conftest.$ac_ext >&5
64222
64223         eval "$as_ac_var=no"
64224 fi
64225
64226 rm -rf conftest.dSYM
64227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64228       conftest$ac_exeext conftest.$ac_ext
64229 fi
64230 ac_res=`eval 'as_val=${'$as_ac_var'}
64231                  $as_echo "$as_val"'`
64232                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64233 $as_echo "$ac_res" >&6; }
64234 as_val=`eval 'as_val=${'$as_ac_var'}
64235                  $as_echo "$as_val"'`
64236    if test "x$as_val" = x""yes; then
64237   cat >>confdefs.h <<_ACEOF
64238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64239 _ACEOF
64240  ice_have_memset=yes
64241 fi
64242 done
64243
64244 if test "${ice_have_memset}" = yes; then
64245 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
64246 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
64247 if test "${ice_cv_have_memset_decl+set}" = set; then
64248   $as_echo_n "(cached) " >&6
64249 else
64250
64251 ice_cv_have_memset_decl=no
64252 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64253 ice_re_word='(^|[^a-zA-Z0-9_])'
64254 for header in string.h strings.h; do
64255 # Check for ordinary declaration
64256 cat >conftest.$ac_ext <<_ACEOF
64257 /* confdefs.h.  */
64258 _ACEOF
64259 cat confdefs.h >>conftest.$ac_ext
64260 cat >>conftest.$ac_ext <<_ACEOF
64261 /* end confdefs.h.  */
64262 #include <$header>
64263
64264 _ACEOF
64265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64266   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
64267   ice_cv_have_memset_decl=yes
64268 fi
64269 rm -f conftest*
64270
64271 if test "$ice_cv_have_memset_decl" = yes; then
64272         break
64273 fi
64274 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64275 cat >conftest.$ac_ext <<_ACEOF
64276 /* confdefs.h.  */
64277 _ACEOF
64278 cat confdefs.h >>conftest.$ac_ext
64279 cat >>conftest.$ac_ext <<_ACEOF
64280 /* end confdefs.h.  */
64281 #include <$header>
64282
64283 _ACEOF
64284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64285   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64286   ice_cv_have_memset_decl=yes
64287 fi
64288 rm -f conftest*
64289
64290 if test "$ice_cv_have_memset_decl" = yes; then
64291         break
64292 fi
64293 done
64294
64295 fi
64296
64297 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
64298 $as_echo "$ice_cv_have_memset_decl" >&6; }
64299 if test "$ice_cv_have_memset_decl" = yes; then
64300
64301 cat >>confdefs.h <<_ACEOF
64302 #define HAVE_MEMSET_DECL 1
64303 _ACEOF
64304
64305 fi
64306 fi
64307
64308
64309 ice_have_mkstemp=no
64310
64311 for ac_func in mkstemp
64312 do
64313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64314 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64315 $as_echo_n "checking for $ac_func... " >&6; }
64316 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64317   $as_echo_n "(cached) " >&6
64318 else
64319   cat >conftest.$ac_ext <<_ACEOF
64320 /* confdefs.h.  */
64321 _ACEOF
64322 cat confdefs.h >>conftest.$ac_ext
64323 cat >>conftest.$ac_ext <<_ACEOF
64324 /* end confdefs.h.  */
64325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64327 #define $ac_func innocuous_$ac_func
64328
64329 /* System header to define __stub macros and hopefully few prototypes,
64330     which can conflict with char $ac_func (); below.
64331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64332     <limits.h> exists even on freestanding compilers.  */
64333
64334 #ifdef __STDC__
64335 # include <limits.h>
64336 #else
64337 # include <assert.h>
64338 #endif
64339
64340 #undef $ac_func
64341
64342 /* Override any GCC internal prototype to avoid an error.
64343    Use char because int might match the return type of a GCC
64344    builtin and then its argument prototype would still apply.  */
64345 #ifdef __cplusplus
64346 extern "C"
64347 #endif
64348 char $ac_func ();
64349 /* The GNU C library defines this for functions which it implements
64350     to always fail with ENOSYS.  Some functions are actually named
64351     something starting with __ and the normal name is an alias.  */
64352 #if defined __stub_$ac_func || defined __stub___$ac_func
64353 choke me
64354 #endif
64355
64356 int
64357 main ()
64358 {
64359 return $ac_func ();
64360   ;
64361   return 0;
64362 }
64363 _ACEOF
64364 rm -f conftest.$ac_objext conftest$ac_exeext
64365 if { (ac_try="$ac_link"
64366 case "(($ac_try" in
64367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64368   *) ac_try_echo=$ac_try;;
64369 esac
64370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64371 $as_echo "$ac_try_echo") >&5
64372   (eval "$ac_link") 2>conftest.er1
64373   ac_status=$?
64374   grep -v '^ *+' conftest.er1 >conftest.err
64375   rm -f conftest.er1
64376   cat conftest.err >&5
64377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64378   (exit $ac_status); } && {
64379          test -z "$ac_c_werror_flag" ||
64380          test ! -s conftest.err
64381        } && test -s conftest$ac_exeext && {
64382          test "$cross_compiling" = yes ||
64383          $as_test_x conftest$ac_exeext
64384        }; then
64385   eval "$as_ac_var=yes"
64386 else
64387   $as_echo "$as_me: failed program was:" >&5
64388 sed 's/^/| /' conftest.$ac_ext >&5
64389
64390         eval "$as_ac_var=no"
64391 fi
64392
64393 rm -rf conftest.dSYM
64394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64395       conftest$ac_exeext conftest.$ac_ext
64396 fi
64397 ac_res=`eval 'as_val=${'$as_ac_var'}
64398                  $as_echo "$as_val"'`
64399                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64400 $as_echo "$ac_res" >&6; }
64401 as_val=`eval 'as_val=${'$as_ac_var'}
64402                  $as_echo "$as_val"'`
64403    if test "x$as_val" = x""yes; then
64404   cat >>confdefs.h <<_ACEOF
64405 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64406 _ACEOF
64407  ice_have_mkstemp=yes
64408 fi
64409 done
64410
64411 if test "${ice_have_mkstemp}" = yes; then
64412 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
64413 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
64414 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
64415   $as_echo_n "(cached) " >&6
64416 else
64417
64418 ice_cv_have_mkstemp_decl=no
64419 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64420 ice_re_word='(^|[^a-zA-Z0-9_])'
64421 for header in stdlib.h; do
64422 # Check for ordinary declaration
64423 cat >conftest.$ac_ext <<_ACEOF
64424 /* confdefs.h.  */
64425 _ACEOF
64426 cat confdefs.h >>conftest.$ac_ext
64427 cat >>conftest.$ac_ext <<_ACEOF
64428 /* end confdefs.h.  */
64429 #include <$header>
64430
64431 _ACEOF
64432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64433   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
64434   ice_cv_have_mkstemp_decl=yes
64435 fi
64436 rm -f conftest*
64437
64438 if test "$ice_cv_have_mkstemp_decl" = yes; then
64439         break
64440 fi
64441 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64442 cat >conftest.$ac_ext <<_ACEOF
64443 /* confdefs.h.  */
64444 _ACEOF
64445 cat confdefs.h >>conftest.$ac_ext
64446 cat >>conftest.$ac_ext <<_ACEOF
64447 /* end confdefs.h.  */
64448 #include <$header>
64449
64450 _ACEOF
64451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64452   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64453   ice_cv_have_mkstemp_decl=yes
64454 fi
64455 rm -f conftest*
64456
64457 if test "$ice_cv_have_mkstemp_decl" = yes; then
64458         break
64459 fi
64460 done
64461
64462 fi
64463
64464 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
64465 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
64466 if test "$ice_cv_have_mkstemp_decl" = yes; then
64467
64468 cat >>confdefs.h <<_ACEOF
64469 #define HAVE_MKSTEMP_DECL 1
64470 _ACEOF
64471
64472 fi
64473 fi
64474
64475
64476 ice_have_mktemp=no
64477
64478 for ac_func in mktemp
64479 do
64480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64481 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64482 $as_echo_n "checking for $ac_func... " >&6; }
64483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64484   $as_echo_n "(cached) " >&6
64485 else
64486   cat >conftest.$ac_ext <<_ACEOF
64487 /* confdefs.h.  */
64488 _ACEOF
64489 cat confdefs.h >>conftest.$ac_ext
64490 cat >>conftest.$ac_ext <<_ACEOF
64491 /* end confdefs.h.  */
64492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64494 #define $ac_func innocuous_$ac_func
64495
64496 /* System header to define __stub macros and hopefully few prototypes,
64497     which can conflict with char $ac_func (); below.
64498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64499     <limits.h> exists even on freestanding compilers.  */
64500
64501 #ifdef __STDC__
64502 # include <limits.h>
64503 #else
64504 # include <assert.h>
64505 #endif
64506
64507 #undef $ac_func
64508
64509 /* Override any GCC internal prototype to avoid an error.
64510    Use char because int might match the return type of a GCC
64511    builtin and then its argument prototype would still apply.  */
64512 #ifdef __cplusplus
64513 extern "C"
64514 #endif
64515 char $ac_func ();
64516 /* The GNU C library defines this for functions which it implements
64517     to always fail with ENOSYS.  Some functions are actually named
64518     something starting with __ and the normal name is an alias.  */
64519 #if defined __stub_$ac_func || defined __stub___$ac_func
64520 choke me
64521 #endif
64522
64523 int
64524 main ()
64525 {
64526 return $ac_func ();
64527   ;
64528   return 0;
64529 }
64530 _ACEOF
64531 rm -f conftest.$ac_objext conftest$ac_exeext
64532 if { (ac_try="$ac_link"
64533 case "(($ac_try" in
64534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64535   *) ac_try_echo=$ac_try;;
64536 esac
64537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64538 $as_echo "$ac_try_echo") >&5
64539   (eval "$ac_link") 2>conftest.er1
64540   ac_status=$?
64541   grep -v '^ *+' conftest.er1 >conftest.err
64542   rm -f conftest.er1
64543   cat conftest.err >&5
64544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64545   (exit $ac_status); } && {
64546          test -z "$ac_c_werror_flag" ||
64547          test ! -s conftest.err
64548        } && test -s conftest$ac_exeext && {
64549          test "$cross_compiling" = yes ||
64550          $as_test_x conftest$ac_exeext
64551        }; then
64552   eval "$as_ac_var=yes"
64553 else
64554   $as_echo "$as_me: failed program was:" >&5
64555 sed 's/^/| /' conftest.$ac_ext >&5
64556
64557         eval "$as_ac_var=no"
64558 fi
64559
64560 rm -rf conftest.dSYM
64561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64562       conftest$ac_exeext conftest.$ac_ext
64563 fi
64564 ac_res=`eval 'as_val=${'$as_ac_var'}
64565                  $as_echo "$as_val"'`
64566                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64567 $as_echo "$ac_res" >&6; }
64568 as_val=`eval 'as_val=${'$as_ac_var'}
64569                  $as_echo "$as_val"'`
64570    if test "x$as_val" = x""yes; then
64571   cat >>confdefs.h <<_ACEOF
64572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64573 _ACEOF
64574  ice_have_mktemp=yes
64575 fi
64576 done
64577
64578 if test "${ice_have_mktemp}" = yes; then
64579 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
64580 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
64581 if test "${ice_cv_have_mktemp_decl+set}" = set; then
64582   $as_echo_n "(cached) " >&6
64583 else
64584
64585 ice_cv_have_mktemp_decl=no
64586 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64587 ice_re_word='(^|[^a-zA-Z0-9_])'
64588 for header in stdlib.h; do
64589 # Check for ordinary declaration
64590 cat >conftest.$ac_ext <<_ACEOF
64591 /* confdefs.h.  */
64592 _ACEOF
64593 cat confdefs.h >>conftest.$ac_ext
64594 cat >>conftest.$ac_ext <<_ACEOF
64595 /* end confdefs.h.  */
64596 #include <$header>
64597
64598 _ACEOF
64599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64600   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
64601   ice_cv_have_mktemp_decl=yes
64602 fi
64603 rm -f conftest*
64604
64605 if test "$ice_cv_have_mktemp_decl" = yes; then
64606         break
64607 fi
64608 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64609 cat >conftest.$ac_ext <<_ACEOF
64610 /* confdefs.h.  */
64611 _ACEOF
64612 cat confdefs.h >>conftest.$ac_ext
64613 cat >>conftest.$ac_ext <<_ACEOF
64614 /* end confdefs.h.  */
64615 #include <$header>
64616
64617 _ACEOF
64618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64619   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64620   ice_cv_have_mktemp_decl=yes
64621 fi
64622 rm -f conftest*
64623
64624 if test "$ice_cv_have_mktemp_decl" = yes; then
64625         break
64626 fi
64627 done
64628
64629 fi
64630
64631 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
64632 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
64633 if test "$ice_cv_have_mktemp_decl" = yes; then
64634
64635 cat >>confdefs.h <<_ACEOF
64636 #define HAVE_MKTEMP_DECL 1
64637 _ACEOF
64638
64639 fi
64640 fi
64641
64642
64643 ice_have_mktime=no
64644
64645 for ac_func in mktime
64646 do
64647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64649 $as_echo_n "checking for $ac_func... " >&6; }
64650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64651   $as_echo_n "(cached) " >&6
64652 else
64653   cat >conftest.$ac_ext <<_ACEOF
64654 /* confdefs.h.  */
64655 _ACEOF
64656 cat confdefs.h >>conftest.$ac_ext
64657 cat >>conftest.$ac_ext <<_ACEOF
64658 /* end confdefs.h.  */
64659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64661 #define $ac_func innocuous_$ac_func
64662
64663 /* System header to define __stub macros and hopefully few prototypes,
64664     which can conflict with char $ac_func (); below.
64665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64666     <limits.h> exists even on freestanding compilers.  */
64667
64668 #ifdef __STDC__
64669 # include <limits.h>
64670 #else
64671 # include <assert.h>
64672 #endif
64673
64674 #undef $ac_func
64675
64676 /* Override any GCC internal prototype to avoid an error.
64677    Use char because int might match the return type of a GCC
64678    builtin and then its argument prototype would still apply.  */
64679 #ifdef __cplusplus
64680 extern "C"
64681 #endif
64682 char $ac_func ();
64683 /* The GNU C library defines this for functions which it implements
64684     to always fail with ENOSYS.  Some functions are actually named
64685     something starting with __ and the normal name is an alias.  */
64686 #if defined __stub_$ac_func || defined __stub___$ac_func
64687 choke me
64688 #endif
64689
64690 int
64691 main ()
64692 {
64693 return $ac_func ();
64694   ;
64695   return 0;
64696 }
64697 _ACEOF
64698 rm -f conftest.$ac_objext conftest$ac_exeext
64699 if { (ac_try="$ac_link"
64700 case "(($ac_try" in
64701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64702   *) ac_try_echo=$ac_try;;
64703 esac
64704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64705 $as_echo "$ac_try_echo") >&5
64706   (eval "$ac_link") 2>conftest.er1
64707   ac_status=$?
64708   grep -v '^ *+' conftest.er1 >conftest.err
64709   rm -f conftest.er1
64710   cat conftest.err >&5
64711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64712   (exit $ac_status); } && {
64713          test -z "$ac_c_werror_flag" ||
64714          test ! -s conftest.err
64715        } && test -s conftest$ac_exeext && {
64716          test "$cross_compiling" = yes ||
64717          $as_test_x conftest$ac_exeext
64718        }; then
64719   eval "$as_ac_var=yes"
64720 else
64721   $as_echo "$as_me: failed program was:" >&5
64722 sed 's/^/| /' conftest.$ac_ext >&5
64723
64724         eval "$as_ac_var=no"
64725 fi
64726
64727 rm -rf conftest.dSYM
64728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64729       conftest$ac_exeext conftest.$ac_ext
64730 fi
64731 ac_res=`eval 'as_val=${'$as_ac_var'}
64732                  $as_echo "$as_val"'`
64733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64734 $as_echo "$ac_res" >&6; }
64735 as_val=`eval 'as_val=${'$as_ac_var'}
64736                  $as_echo "$as_val"'`
64737    if test "x$as_val" = x""yes; then
64738   cat >>confdefs.h <<_ACEOF
64739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64740 _ACEOF
64741  ice_have_mktime=yes
64742 fi
64743 done
64744
64745 if test "${ice_have_mktime}" = yes; then
64746 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
64747 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
64748 if test "${ice_cv_have_mktime_decl+set}" = set; then
64749   $as_echo_n "(cached) " >&6
64750 else
64751
64752 ice_cv_have_mktime_decl=no
64753 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64754 ice_re_word='(^|[^a-zA-Z0-9_])'
64755 for header in time.h sys/time.h; do
64756 # Check for ordinary declaration
64757 cat >conftest.$ac_ext <<_ACEOF
64758 /* confdefs.h.  */
64759 _ACEOF
64760 cat confdefs.h >>conftest.$ac_ext
64761 cat >>conftest.$ac_ext <<_ACEOF
64762 /* end confdefs.h.  */
64763 #include <$header>
64764
64765 _ACEOF
64766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64767   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
64768   ice_cv_have_mktime_decl=yes
64769 fi
64770 rm -f conftest*
64771
64772 if test "$ice_cv_have_mktime_decl" = yes; then
64773         break
64774 fi
64775 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64776 cat >conftest.$ac_ext <<_ACEOF
64777 /* confdefs.h.  */
64778 _ACEOF
64779 cat confdefs.h >>conftest.$ac_ext
64780 cat >>conftest.$ac_ext <<_ACEOF
64781 /* end confdefs.h.  */
64782 #include <$header>
64783
64784 _ACEOF
64785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64786   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64787   ice_cv_have_mktime_decl=yes
64788 fi
64789 rm -f conftest*
64790
64791 if test "$ice_cv_have_mktime_decl" = yes; then
64792         break
64793 fi
64794 done
64795
64796 fi
64797
64798 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
64799 $as_echo "$ice_cv_have_mktime_decl" >&6; }
64800 if test "$ice_cv_have_mktime_decl" = yes; then
64801
64802 cat >>confdefs.h <<_ACEOF
64803 #define HAVE_MKTIME_DECL 1
64804 _ACEOF
64805
64806 fi
64807 fi
64808
64809
64810 for ac_func in on_exit
64811 do
64812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64813 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64814 $as_echo_n "checking for $ac_func... " >&6; }
64815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64816   $as_echo_n "(cached) " >&6
64817 else
64818   cat >conftest.$ac_ext <<_ACEOF
64819 /* confdefs.h.  */
64820 _ACEOF
64821 cat confdefs.h >>conftest.$ac_ext
64822 cat >>conftest.$ac_ext <<_ACEOF
64823 /* end confdefs.h.  */
64824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64826 #define $ac_func innocuous_$ac_func
64827
64828 /* System header to define __stub macros and hopefully few prototypes,
64829     which can conflict with char $ac_func (); below.
64830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64831     <limits.h> exists even on freestanding compilers.  */
64832
64833 #ifdef __STDC__
64834 # include <limits.h>
64835 #else
64836 # include <assert.h>
64837 #endif
64838
64839 #undef $ac_func
64840
64841 /* Override any GCC internal prototype to avoid an error.
64842    Use char because int might match the return type of a GCC
64843    builtin and then its argument prototype would still apply.  */
64844 #ifdef __cplusplus
64845 extern "C"
64846 #endif
64847 char $ac_func ();
64848 /* The GNU C library defines this for functions which it implements
64849     to always fail with ENOSYS.  Some functions are actually named
64850     something starting with __ and the normal name is an alias.  */
64851 #if defined __stub_$ac_func || defined __stub___$ac_func
64852 choke me
64853 #endif
64854
64855 int
64856 main ()
64857 {
64858 return $ac_func ();
64859   ;
64860   return 0;
64861 }
64862 _ACEOF
64863 rm -f conftest.$ac_objext conftest$ac_exeext
64864 if { (ac_try="$ac_link"
64865 case "(($ac_try" in
64866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64867   *) ac_try_echo=$ac_try;;
64868 esac
64869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64870 $as_echo "$ac_try_echo") >&5
64871   (eval "$ac_link") 2>conftest.er1
64872   ac_status=$?
64873   grep -v '^ *+' conftest.er1 >conftest.err
64874   rm -f conftest.er1
64875   cat conftest.err >&5
64876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64877   (exit $ac_status); } && {
64878          test -z "$ac_c_werror_flag" ||
64879          test ! -s conftest.err
64880        } && test -s conftest$ac_exeext && {
64881          test "$cross_compiling" = yes ||
64882          $as_test_x conftest$ac_exeext
64883        }; then
64884   eval "$as_ac_var=yes"
64885 else
64886   $as_echo "$as_me: failed program was:" >&5
64887 sed 's/^/| /' conftest.$ac_ext >&5
64888
64889         eval "$as_ac_var=no"
64890 fi
64891
64892 rm -rf conftest.dSYM
64893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64894       conftest$ac_exeext conftest.$ac_ext
64895 fi
64896 ac_res=`eval 'as_val=${'$as_ac_var'}
64897                  $as_echo "$as_val"'`
64898                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64899 $as_echo "$ac_res" >&6; }
64900 as_val=`eval 'as_val=${'$as_ac_var'}
64901                  $as_echo "$as_val"'`
64902    if test "x$as_val" = x""yes; then
64903   cat >>confdefs.h <<_ACEOF
64904 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64905 _ACEOF
64906
64907 fi
64908 done
64909
64910
64911 ice_have_openlog=no
64912
64913 for ac_func in openlog
64914 do
64915 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64916 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64917 $as_echo_n "checking for $ac_func... " >&6; }
64918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64919   $as_echo_n "(cached) " >&6
64920 else
64921   cat >conftest.$ac_ext <<_ACEOF
64922 /* confdefs.h.  */
64923 _ACEOF
64924 cat confdefs.h >>conftest.$ac_ext
64925 cat >>conftest.$ac_ext <<_ACEOF
64926 /* end confdefs.h.  */
64927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64929 #define $ac_func innocuous_$ac_func
64930
64931 /* System header to define __stub macros and hopefully few prototypes,
64932     which can conflict with char $ac_func (); below.
64933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64934     <limits.h> exists even on freestanding compilers.  */
64935
64936 #ifdef __STDC__
64937 # include <limits.h>
64938 #else
64939 # include <assert.h>
64940 #endif
64941
64942 #undef $ac_func
64943
64944 /* Override any GCC internal prototype to avoid an error.
64945    Use char because int might match the return type of a GCC
64946    builtin and then its argument prototype would still apply.  */
64947 #ifdef __cplusplus
64948 extern "C"
64949 #endif
64950 char $ac_func ();
64951 /* The GNU C library defines this for functions which it implements
64952     to always fail with ENOSYS.  Some functions are actually named
64953     something starting with __ and the normal name is an alias.  */
64954 #if defined __stub_$ac_func || defined __stub___$ac_func
64955 choke me
64956 #endif
64957
64958 int
64959 main ()
64960 {
64961 return $ac_func ();
64962   ;
64963   return 0;
64964 }
64965 _ACEOF
64966 rm -f conftest.$ac_objext conftest$ac_exeext
64967 if { (ac_try="$ac_link"
64968 case "(($ac_try" in
64969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64970   *) ac_try_echo=$ac_try;;
64971 esac
64972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64973 $as_echo "$ac_try_echo") >&5
64974   (eval "$ac_link") 2>conftest.er1
64975   ac_status=$?
64976   grep -v '^ *+' conftest.er1 >conftest.err
64977   rm -f conftest.er1
64978   cat conftest.err >&5
64979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64980   (exit $ac_status); } && {
64981          test -z "$ac_c_werror_flag" ||
64982          test ! -s conftest.err
64983        } && test -s conftest$ac_exeext && {
64984          test "$cross_compiling" = yes ||
64985          $as_test_x conftest$ac_exeext
64986        }; then
64987   eval "$as_ac_var=yes"
64988 else
64989   $as_echo "$as_me: failed program was:" >&5
64990 sed 's/^/| /' conftest.$ac_ext >&5
64991
64992         eval "$as_ac_var=no"
64993 fi
64994
64995 rm -rf conftest.dSYM
64996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64997       conftest$ac_exeext conftest.$ac_ext
64998 fi
64999 ac_res=`eval 'as_val=${'$as_ac_var'}
65000                  $as_echo "$as_val"'`
65001                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65002 $as_echo "$ac_res" >&6; }
65003 as_val=`eval 'as_val=${'$as_ac_var'}
65004                  $as_echo "$as_val"'`
65005    if test "x$as_val" = x""yes; then
65006   cat >>confdefs.h <<_ACEOF
65007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65008 _ACEOF
65009  ice_have_openlog=yes
65010 fi
65011 done
65012
65013 if test "${ice_have_openlog}" = yes; then
65014 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
65015 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
65016 if test "${ice_cv_have_openlog_decl+set}" = set; then
65017   $as_echo_n "(cached) " >&6
65018 else
65019
65020 ice_cv_have_openlog_decl=no
65021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65022 ice_re_word='(^|[^a-zA-Z0-9_])'
65023 for header in syslog.h; do
65024 # Check for ordinary declaration
65025 cat >conftest.$ac_ext <<_ACEOF
65026 /* confdefs.h.  */
65027 _ACEOF
65028 cat confdefs.h >>conftest.$ac_ext
65029 cat >>conftest.$ac_ext <<_ACEOF
65030 /* end confdefs.h.  */
65031 #include <$header>
65032
65033 _ACEOF
65034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65035   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
65036   ice_cv_have_openlog_decl=yes
65037 fi
65038 rm -f conftest*
65039
65040 if test "$ice_cv_have_openlog_decl" = yes; then
65041         break
65042 fi
65043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65044 cat >conftest.$ac_ext <<_ACEOF
65045 /* confdefs.h.  */
65046 _ACEOF
65047 cat confdefs.h >>conftest.$ac_ext
65048 cat >>conftest.$ac_ext <<_ACEOF
65049 /* end confdefs.h.  */
65050 #include <$header>
65051
65052 _ACEOF
65053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65054   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65055   ice_cv_have_openlog_decl=yes
65056 fi
65057 rm -f conftest*
65058
65059 if test "$ice_cv_have_openlog_decl" = yes; then
65060         break
65061 fi
65062 done
65063
65064 fi
65065
65066 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
65067 $as_echo "$ice_cv_have_openlog_decl" >&6; }
65068 if test "$ice_cv_have_openlog_decl" = yes; then
65069
65070 cat >>confdefs.h <<_ACEOF
65071 #define HAVE_OPENLOG_DECL 1
65072 _ACEOF
65073
65074 fi
65075 fi
65076
65077
65078 ice_have_pclose=no
65079
65080 for ac_func in pclose
65081 do
65082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65083 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65084 $as_echo_n "checking for $ac_func... " >&6; }
65085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65086   $as_echo_n "(cached) " >&6
65087 else
65088   cat >conftest.$ac_ext <<_ACEOF
65089 /* confdefs.h.  */
65090 _ACEOF
65091 cat confdefs.h >>conftest.$ac_ext
65092 cat >>conftest.$ac_ext <<_ACEOF
65093 /* end confdefs.h.  */
65094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65096 #define $ac_func innocuous_$ac_func
65097
65098 /* System header to define __stub macros and hopefully few prototypes,
65099     which can conflict with char $ac_func (); below.
65100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65101     <limits.h> exists even on freestanding compilers.  */
65102
65103 #ifdef __STDC__
65104 # include <limits.h>
65105 #else
65106 # include <assert.h>
65107 #endif
65108
65109 #undef $ac_func
65110
65111 /* Override any GCC internal prototype to avoid an error.
65112    Use char because int might match the return type of a GCC
65113    builtin and then its argument prototype would still apply.  */
65114 #ifdef __cplusplus
65115 extern "C"
65116 #endif
65117 char $ac_func ();
65118 /* The GNU C library defines this for functions which it implements
65119     to always fail with ENOSYS.  Some functions are actually named
65120     something starting with __ and the normal name is an alias.  */
65121 #if defined __stub_$ac_func || defined __stub___$ac_func
65122 choke me
65123 #endif
65124
65125 int
65126 main ()
65127 {
65128 return $ac_func ();
65129   ;
65130   return 0;
65131 }
65132 _ACEOF
65133 rm -f conftest.$ac_objext conftest$ac_exeext
65134 if { (ac_try="$ac_link"
65135 case "(($ac_try" in
65136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65137   *) ac_try_echo=$ac_try;;
65138 esac
65139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65140 $as_echo "$ac_try_echo") >&5
65141   (eval "$ac_link") 2>conftest.er1
65142   ac_status=$?
65143   grep -v '^ *+' conftest.er1 >conftest.err
65144   rm -f conftest.er1
65145   cat conftest.err >&5
65146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65147   (exit $ac_status); } && {
65148          test -z "$ac_c_werror_flag" ||
65149          test ! -s conftest.err
65150        } && test -s conftest$ac_exeext && {
65151          test "$cross_compiling" = yes ||
65152          $as_test_x conftest$ac_exeext
65153        }; then
65154   eval "$as_ac_var=yes"
65155 else
65156   $as_echo "$as_me: failed program was:" >&5
65157 sed 's/^/| /' conftest.$ac_ext >&5
65158
65159         eval "$as_ac_var=no"
65160 fi
65161
65162 rm -rf conftest.dSYM
65163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65164       conftest$ac_exeext conftest.$ac_ext
65165 fi
65166 ac_res=`eval 'as_val=${'$as_ac_var'}
65167                  $as_echo "$as_val"'`
65168                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65169 $as_echo "$ac_res" >&6; }
65170 as_val=`eval 'as_val=${'$as_ac_var'}
65171                  $as_echo "$as_val"'`
65172    if test "x$as_val" = x""yes; then
65173   cat >>confdefs.h <<_ACEOF
65174 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65175 _ACEOF
65176  ice_have_pclose=yes
65177 fi
65178 done
65179
65180 if test "${ice_have_pclose}" = yes; then
65181 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
65182 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
65183 if test "${ice_cv_have_pclose_decl+set}" = set; then
65184   $as_echo_n "(cached) " >&6
65185 else
65186
65187 ice_cv_have_pclose_decl=no
65188 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65189 ice_re_word='(^|[^a-zA-Z0-9_])'
65190 for header in stdio.h; do
65191 # Check for ordinary declaration
65192 cat >conftest.$ac_ext <<_ACEOF
65193 /* confdefs.h.  */
65194 _ACEOF
65195 cat confdefs.h >>conftest.$ac_ext
65196 cat >>conftest.$ac_ext <<_ACEOF
65197 /* end confdefs.h.  */
65198 #include <$header>
65199
65200 _ACEOF
65201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65202   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
65203   ice_cv_have_pclose_decl=yes
65204 fi
65205 rm -f conftest*
65206
65207 if test "$ice_cv_have_pclose_decl" = yes; then
65208         break
65209 fi
65210 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65211 cat >conftest.$ac_ext <<_ACEOF
65212 /* confdefs.h.  */
65213 _ACEOF
65214 cat confdefs.h >>conftest.$ac_ext
65215 cat >>conftest.$ac_ext <<_ACEOF
65216 /* end confdefs.h.  */
65217 #include <$header>
65218
65219 _ACEOF
65220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65221   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65222   ice_cv_have_pclose_decl=yes
65223 fi
65224 rm -f conftest*
65225
65226 if test "$ice_cv_have_pclose_decl" = yes; then
65227         break
65228 fi
65229 done
65230
65231 fi
65232
65233 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
65234 $as_echo "$ice_cv_have_pclose_decl" >&6; }
65235 if test "$ice_cv_have_pclose_decl" = yes; then
65236
65237 cat >>confdefs.h <<_ACEOF
65238 #define HAVE_PCLOSE_DECL 1
65239 _ACEOF
65240
65241 fi
65242 fi
65243
65244
65245 ice_have_perror=no
65246
65247 for ac_func in perror
65248 do
65249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65250 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65251 $as_echo_n "checking for $ac_func... " >&6; }
65252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65253   $as_echo_n "(cached) " >&6
65254 else
65255   cat >conftest.$ac_ext <<_ACEOF
65256 /* confdefs.h.  */
65257 _ACEOF
65258 cat confdefs.h >>conftest.$ac_ext
65259 cat >>conftest.$ac_ext <<_ACEOF
65260 /* end confdefs.h.  */
65261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65263 #define $ac_func innocuous_$ac_func
65264
65265 /* System header to define __stub macros and hopefully few prototypes,
65266     which can conflict with char $ac_func (); below.
65267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65268     <limits.h> exists even on freestanding compilers.  */
65269
65270 #ifdef __STDC__
65271 # include <limits.h>
65272 #else
65273 # include <assert.h>
65274 #endif
65275
65276 #undef $ac_func
65277
65278 /* Override any GCC internal prototype to avoid an error.
65279    Use char because int might match the return type of a GCC
65280    builtin and then its argument prototype would still apply.  */
65281 #ifdef __cplusplus
65282 extern "C"
65283 #endif
65284 char $ac_func ();
65285 /* The GNU C library defines this for functions which it implements
65286     to always fail with ENOSYS.  Some functions are actually named
65287     something starting with __ and the normal name is an alias.  */
65288 #if defined __stub_$ac_func || defined __stub___$ac_func
65289 choke me
65290 #endif
65291
65292 int
65293 main ()
65294 {
65295 return $ac_func ();
65296   ;
65297   return 0;
65298 }
65299 _ACEOF
65300 rm -f conftest.$ac_objext conftest$ac_exeext
65301 if { (ac_try="$ac_link"
65302 case "(($ac_try" in
65303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65304   *) ac_try_echo=$ac_try;;
65305 esac
65306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65307 $as_echo "$ac_try_echo") >&5
65308   (eval "$ac_link") 2>conftest.er1
65309   ac_status=$?
65310   grep -v '^ *+' conftest.er1 >conftest.err
65311   rm -f conftest.er1
65312   cat conftest.err >&5
65313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65314   (exit $ac_status); } && {
65315          test -z "$ac_c_werror_flag" ||
65316          test ! -s conftest.err
65317        } && test -s conftest$ac_exeext && {
65318          test "$cross_compiling" = yes ||
65319          $as_test_x conftest$ac_exeext
65320        }; then
65321   eval "$as_ac_var=yes"
65322 else
65323   $as_echo "$as_me: failed program was:" >&5
65324 sed 's/^/| /' conftest.$ac_ext >&5
65325
65326         eval "$as_ac_var=no"
65327 fi
65328
65329 rm -rf conftest.dSYM
65330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65331       conftest$ac_exeext conftest.$ac_ext
65332 fi
65333 ac_res=`eval 'as_val=${'$as_ac_var'}
65334                  $as_echo "$as_val"'`
65335                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65336 $as_echo "$ac_res" >&6; }
65337 as_val=`eval 'as_val=${'$as_ac_var'}
65338                  $as_echo "$as_val"'`
65339    if test "x$as_val" = x""yes; then
65340   cat >>confdefs.h <<_ACEOF
65341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65342 _ACEOF
65343  ice_have_perror=yes
65344 fi
65345 done
65346
65347 if test "${ice_have_perror}" = yes; then
65348 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
65349 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
65350 if test "${ice_cv_have_perror_decl+set}" = set; then
65351   $as_echo_n "(cached) " >&6
65352 else
65353
65354 ice_cv_have_perror_decl=no
65355 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65356 ice_re_word='(^|[^a-zA-Z0-9_])'
65357 for header in stdio.h; do
65358 # Check for ordinary declaration
65359 cat >conftest.$ac_ext <<_ACEOF
65360 /* confdefs.h.  */
65361 _ACEOF
65362 cat confdefs.h >>conftest.$ac_ext
65363 cat >>conftest.$ac_ext <<_ACEOF
65364 /* end confdefs.h.  */
65365 #include <$header>
65366
65367 _ACEOF
65368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65369   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
65370   ice_cv_have_perror_decl=yes
65371 fi
65372 rm -f conftest*
65373
65374 if test "$ice_cv_have_perror_decl" = yes; then
65375         break
65376 fi
65377 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65378 cat >conftest.$ac_ext <<_ACEOF
65379 /* confdefs.h.  */
65380 _ACEOF
65381 cat confdefs.h >>conftest.$ac_ext
65382 cat >>conftest.$ac_ext <<_ACEOF
65383 /* end confdefs.h.  */
65384 #include <$header>
65385
65386 _ACEOF
65387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65388   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65389   ice_cv_have_perror_decl=yes
65390 fi
65391 rm -f conftest*
65392
65393 if test "$ice_cv_have_perror_decl" = yes; then
65394         break
65395 fi
65396 done
65397
65398 fi
65399
65400 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
65401 $as_echo "$ice_cv_have_perror_decl" >&6; }
65402 if test "$ice_cv_have_perror_decl" = yes; then
65403
65404 cat >>confdefs.h <<_ACEOF
65405 #define HAVE_PERROR_DECL 1
65406 _ACEOF
65407
65408 fi
65409 fi
65410
65411
65412 ice_have_printf=no
65413
65414 for ac_func in printf
65415 do
65416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65417 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65418 $as_echo_n "checking for $ac_func... " >&6; }
65419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65420   $as_echo_n "(cached) " >&6
65421 else
65422   cat >conftest.$ac_ext <<_ACEOF
65423 /* confdefs.h.  */
65424 _ACEOF
65425 cat confdefs.h >>conftest.$ac_ext
65426 cat >>conftest.$ac_ext <<_ACEOF
65427 /* end confdefs.h.  */
65428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65430 #define $ac_func innocuous_$ac_func
65431
65432 /* System header to define __stub macros and hopefully few prototypes,
65433     which can conflict with char $ac_func (); below.
65434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65435     <limits.h> exists even on freestanding compilers.  */
65436
65437 #ifdef __STDC__
65438 # include <limits.h>
65439 #else
65440 # include <assert.h>
65441 #endif
65442
65443 #undef $ac_func
65444
65445 /* Override any GCC internal prototype to avoid an error.
65446    Use char because int might match the return type of a GCC
65447    builtin and then its argument prototype would still apply.  */
65448 #ifdef __cplusplus
65449 extern "C"
65450 #endif
65451 char $ac_func ();
65452 /* The GNU C library defines this for functions which it implements
65453     to always fail with ENOSYS.  Some functions are actually named
65454     something starting with __ and the normal name is an alias.  */
65455 #if defined __stub_$ac_func || defined __stub___$ac_func
65456 choke me
65457 #endif
65458
65459 int
65460 main ()
65461 {
65462 return $ac_func ();
65463   ;
65464   return 0;
65465 }
65466 _ACEOF
65467 rm -f conftest.$ac_objext conftest$ac_exeext
65468 if { (ac_try="$ac_link"
65469 case "(($ac_try" in
65470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65471   *) ac_try_echo=$ac_try;;
65472 esac
65473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65474 $as_echo "$ac_try_echo") >&5
65475   (eval "$ac_link") 2>conftest.er1
65476   ac_status=$?
65477   grep -v '^ *+' conftest.er1 >conftest.err
65478   rm -f conftest.er1
65479   cat conftest.err >&5
65480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65481   (exit $ac_status); } && {
65482          test -z "$ac_c_werror_flag" ||
65483          test ! -s conftest.err
65484        } && test -s conftest$ac_exeext && {
65485          test "$cross_compiling" = yes ||
65486          $as_test_x conftest$ac_exeext
65487        }; then
65488   eval "$as_ac_var=yes"
65489 else
65490   $as_echo "$as_me: failed program was:" >&5
65491 sed 's/^/| /' conftest.$ac_ext >&5
65492
65493         eval "$as_ac_var=no"
65494 fi
65495
65496 rm -rf conftest.dSYM
65497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65498       conftest$ac_exeext conftest.$ac_ext
65499 fi
65500 ac_res=`eval 'as_val=${'$as_ac_var'}
65501                  $as_echo "$as_val"'`
65502                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65503 $as_echo "$ac_res" >&6; }
65504 as_val=`eval 'as_val=${'$as_ac_var'}
65505                  $as_echo "$as_val"'`
65506    if test "x$as_val" = x""yes; then
65507   cat >>confdefs.h <<_ACEOF
65508 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65509 _ACEOF
65510  ice_have_printf=yes
65511 fi
65512 done
65513
65514 if test "${ice_have_printf}" = yes; then
65515 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
65516 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
65517 if test "${ice_cv_have_printf_decl+set}" = set; then
65518   $as_echo_n "(cached) " >&6
65519 else
65520
65521 ice_cv_have_printf_decl=no
65522 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65523 ice_re_word='(^|[^a-zA-Z0-9_])'
65524 for header in stdio.h; do
65525 # Check for ordinary declaration
65526 cat >conftest.$ac_ext <<_ACEOF
65527 /* confdefs.h.  */
65528 _ACEOF
65529 cat confdefs.h >>conftest.$ac_ext
65530 cat >>conftest.$ac_ext <<_ACEOF
65531 /* end confdefs.h.  */
65532 #include <$header>
65533
65534 _ACEOF
65535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65536   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
65537   ice_cv_have_printf_decl=yes
65538 fi
65539 rm -f conftest*
65540
65541 if test "$ice_cv_have_printf_decl" = yes; then
65542         break
65543 fi
65544 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65545 cat >conftest.$ac_ext <<_ACEOF
65546 /* confdefs.h.  */
65547 _ACEOF
65548 cat confdefs.h >>conftest.$ac_ext
65549 cat >>conftest.$ac_ext <<_ACEOF
65550 /* end confdefs.h.  */
65551 #include <$header>
65552
65553 _ACEOF
65554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65555   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65556   ice_cv_have_printf_decl=yes
65557 fi
65558 rm -f conftest*
65559
65560 if test "$ice_cv_have_printf_decl" = yes; then
65561         break
65562 fi
65563 done
65564
65565 fi
65566
65567 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
65568 $as_echo "$ice_cv_have_printf_decl" >&6; }
65569 if test "$ice_cv_have_printf_decl" = yes; then
65570
65571 cat >>confdefs.h <<_ACEOF
65572 #define HAVE_PRINTF_DECL 1
65573 _ACEOF
65574
65575 fi
65576 fi
65577
65578
65579 for ac_func in putenv
65580 do
65581 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65582 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65583 $as_echo_n "checking for $ac_func... " >&6; }
65584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65585   $as_echo_n "(cached) " >&6
65586 else
65587   cat >conftest.$ac_ext <<_ACEOF
65588 /* confdefs.h.  */
65589 _ACEOF
65590 cat confdefs.h >>conftest.$ac_ext
65591 cat >>conftest.$ac_ext <<_ACEOF
65592 /* end confdefs.h.  */
65593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65595 #define $ac_func innocuous_$ac_func
65596
65597 /* System header to define __stub macros and hopefully few prototypes,
65598     which can conflict with char $ac_func (); below.
65599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65600     <limits.h> exists even on freestanding compilers.  */
65601
65602 #ifdef __STDC__
65603 # include <limits.h>
65604 #else
65605 # include <assert.h>
65606 #endif
65607
65608 #undef $ac_func
65609
65610 /* Override any GCC internal prototype to avoid an error.
65611    Use char because int might match the return type of a GCC
65612    builtin and then its argument prototype would still apply.  */
65613 #ifdef __cplusplus
65614 extern "C"
65615 #endif
65616 char $ac_func ();
65617 /* The GNU C library defines this for functions which it implements
65618     to always fail with ENOSYS.  Some functions are actually named
65619     something starting with __ and the normal name is an alias.  */
65620 #if defined __stub_$ac_func || defined __stub___$ac_func
65621 choke me
65622 #endif
65623
65624 int
65625 main ()
65626 {
65627 return $ac_func ();
65628   ;
65629   return 0;
65630 }
65631 _ACEOF
65632 rm -f conftest.$ac_objext conftest$ac_exeext
65633 if { (ac_try="$ac_link"
65634 case "(($ac_try" in
65635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65636   *) ac_try_echo=$ac_try;;
65637 esac
65638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65639 $as_echo "$ac_try_echo") >&5
65640   (eval "$ac_link") 2>conftest.er1
65641   ac_status=$?
65642   grep -v '^ *+' conftest.er1 >conftest.err
65643   rm -f conftest.er1
65644   cat conftest.err >&5
65645   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65646   (exit $ac_status); } && {
65647          test -z "$ac_c_werror_flag" ||
65648          test ! -s conftest.err
65649        } && test -s conftest$ac_exeext && {
65650          test "$cross_compiling" = yes ||
65651          $as_test_x conftest$ac_exeext
65652        }; then
65653   eval "$as_ac_var=yes"
65654 else
65655   $as_echo "$as_me: failed program was:" >&5
65656 sed 's/^/| /' conftest.$ac_ext >&5
65657
65658         eval "$as_ac_var=no"
65659 fi
65660
65661 rm -rf conftest.dSYM
65662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65663       conftest$ac_exeext conftest.$ac_ext
65664 fi
65665 ac_res=`eval 'as_val=${'$as_ac_var'}
65666                  $as_echo "$as_val"'`
65667                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65668 $as_echo "$ac_res" >&6; }
65669 as_val=`eval 'as_val=${'$as_ac_var'}
65670                  $as_echo "$as_val"'`
65671    if test "x$as_val" = x""yes; then
65672   cat >>confdefs.h <<_ACEOF
65673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65674 _ACEOF
65675
65676 fi
65677 done
65678
65679
65680 ice_have_puts=no
65681
65682 for ac_func in puts
65683 do
65684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65685 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65686 $as_echo_n "checking for $ac_func... " >&6; }
65687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65688   $as_echo_n "(cached) " >&6
65689 else
65690   cat >conftest.$ac_ext <<_ACEOF
65691 /* confdefs.h.  */
65692 _ACEOF
65693 cat confdefs.h >>conftest.$ac_ext
65694 cat >>conftest.$ac_ext <<_ACEOF
65695 /* end confdefs.h.  */
65696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65698 #define $ac_func innocuous_$ac_func
65699
65700 /* System header to define __stub macros and hopefully few prototypes,
65701     which can conflict with char $ac_func (); below.
65702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65703     <limits.h> exists even on freestanding compilers.  */
65704
65705 #ifdef __STDC__
65706 # include <limits.h>
65707 #else
65708 # include <assert.h>
65709 #endif
65710
65711 #undef $ac_func
65712
65713 /* Override any GCC internal prototype to avoid an error.
65714    Use char because int might match the return type of a GCC
65715    builtin and then its argument prototype would still apply.  */
65716 #ifdef __cplusplus
65717 extern "C"
65718 #endif
65719 char $ac_func ();
65720 /* The GNU C library defines this for functions which it implements
65721     to always fail with ENOSYS.  Some functions are actually named
65722     something starting with __ and the normal name is an alias.  */
65723 #if defined __stub_$ac_func || defined __stub___$ac_func
65724 choke me
65725 #endif
65726
65727 int
65728 main ()
65729 {
65730 return $ac_func ();
65731   ;
65732   return 0;
65733 }
65734 _ACEOF
65735 rm -f conftest.$ac_objext conftest$ac_exeext
65736 if { (ac_try="$ac_link"
65737 case "(($ac_try" in
65738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65739   *) ac_try_echo=$ac_try;;
65740 esac
65741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65742 $as_echo "$ac_try_echo") >&5
65743   (eval "$ac_link") 2>conftest.er1
65744   ac_status=$?
65745   grep -v '^ *+' conftest.er1 >conftest.err
65746   rm -f conftest.er1
65747   cat conftest.err >&5
65748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65749   (exit $ac_status); } && {
65750          test -z "$ac_c_werror_flag" ||
65751          test ! -s conftest.err
65752        } && test -s conftest$ac_exeext && {
65753          test "$cross_compiling" = yes ||
65754          $as_test_x conftest$ac_exeext
65755        }; then
65756   eval "$as_ac_var=yes"
65757 else
65758   $as_echo "$as_me: failed program was:" >&5
65759 sed 's/^/| /' conftest.$ac_ext >&5
65760
65761         eval "$as_ac_var=no"
65762 fi
65763
65764 rm -rf conftest.dSYM
65765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65766       conftest$ac_exeext conftest.$ac_ext
65767 fi
65768 ac_res=`eval 'as_val=${'$as_ac_var'}
65769                  $as_echo "$as_val"'`
65770                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65771 $as_echo "$ac_res" >&6; }
65772 as_val=`eval 'as_val=${'$as_ac_var'}
65773                  $as_echo "$as_val"'`
65774    if test "x$as_val" = x""yes; then
65775   cat >>confdefs.h <<_ACEOF
65776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65777 _ACEOF
65778  ice_have_puts=yes
65779 fi
65780 done
65781
65782 if test "${ice_have_puts}" = yes; then
65783 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
65784 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
65785 if test "${ice_cv_have_puts_decl+set}" = set; then
65786   $as_echo_n "(cached) " >&6
65787 else
65788
65789 ice_cv_have_puts_decl=no
65790 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65791 ice_re_word='(^|[^a-zA-Z0-9_])'
65792 for header in stdio.h; do
65793 # Check for ordinary declaration
65794 cat >conftest.$ac_ext <<_ACEOF
65795 /* confdefs.h.  */
65796 _ACEOF
65797 cat confdefs.h >>conftest.$ac_ext
65798 cat >>conftest.$ac_ext <<_ACEOF
65799 /* end confdefs.h.  */
65800 #include <$header>
65801
65802 _ACEOF
65803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65804   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
65805   ice_cv_have_puts_decl=yes
65806 fi
65807 rm -f conftest*
65808
65809 if test "$ice_cv_have_puts_decl" = yes; then
65810         break
65811 fi
65812 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65813 cat >conftest.$ac_ext <<_ACEOF
65814 /* confdefs.h.  */
65815 _ACEOF
65816 cat confdefs.h >>conftest.$ac_ext
65817 cat >>conftest.$ac_ext <<_ACEOF
65818 /* end confdefs.h.  */
65819 #include <$header>
65820
65821 _ACEOF
65822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65823   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65824   ice_cv_have_puts_decl=yes
65825 fi
65826 rm -f conftest*
65827
65828 if test "$ice_cv_have_puts_decl" = yes; then
65829         break
65830 fi
65831 done
65832
65833 fi
65834
65835 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
65836 $as_echo "$ice_cv_have_puts_decl" >&6; }
65837 if test "$ice_cv_have_puts_decl" = yes; then
65838
65839 cat >>confdefs.h <<_ACEOF
65840 #define HAVE_PUTS_DECL 1
65841 _ACEOF
65842
65843 fi
65844 fi
65845
65846
65847 ice_have_realloc=no
65848
65849 for ac_func in realloc
65850 do
65851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65852 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65853 $as_echo_n "checking for $ac_func... " >&6; }
65854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65855   $as_echo_n "(cached) " >&6
65856 else
65857   cat >conftest.$ac_ext <<_ACEOF
65858 /* confdefs.h.  */
65859 _ACEOF
65860 cat confdefs.h >>conftest.$ac_ext
65861 cat >>conftest.$ac_ext <<_ACEOF
65862 /* end confdefs.h.  */
65863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65865 #define $ac_func innocuous_$ac_func
65866
65867 /* System header to define __stub macros and hopefully few prototypes,
65868     which can conflict with char $ac_func (); below.
65869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65870     <limits.h> exists even on freestanding compilers.  */
65871
65872 #ifdef __STDC__
65873 # include <limits.h>
65874 #else
65875 # include <assert.h>
65876 #endif
65877
65878 #undef $ac_func
65879
65880 /* Override any GCC internal prototype to avoid an error.
65881    Use char because int might match the return type of a GCC
65882    builtin and then its argument prototype would still apply.  */
65883 #ifdef __cplusplus
65884 extern "C"
65885 #endif
65886 char $ac_func ();
65887 /* The GNU C library defines this for functions which it implements
65888     to always fail with ENOSYS.  Some functions are actually named
65889     something starting with __ and the normal name is an alias.  */
65890 #if defined __stub_$ac_func || defined __stub___$ac_func
65891 choke me
65892 #endif
65893
65894 int
65895 main ()
65896 {
65897 return $ac_func ();
65898   ;
65899   return 0;
65900 }
65901 _ACEOF
65902 rm -f conftest.$ac_objext conftest$ac_exeext
65903 if { (ac_try="$ac_link"
65904 case "(($ac_try" in
65905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65906   *) ac_try_echo=$ac_try;;
65907 esac
65908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65909 $as_echo "$ac_try_echo") >&5
65910   (eval "$ac_link") 2>conftest.er1
65911   ac_status=$?
65912   grep -v '^ *+' conftest.er1 >conftest.err
65913   rm -f conftest.er1
65914   cat conftest.err >&5
65915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65916   (exit $ac_status); } && {
65917          test -z "$ac_c_werror_flag" ||
65918          test ! -s conftest.err
65919        } && test -s conftest$ac_exeext && {
65920          test "$cross_compiling" = yes ||
65921          $as_test_x conftest$ac_exeext
65922        }; then
65923   eval "$as_ac_var=yes"
65924 else
65925   $as_echo "$as_me: failed program was:" >&5
65926 sed 's/^/| /' conftest.$ac_ext >&5
65927
65928         eval "$as_ac_var=no"
65929 fi
65930
65931 rm -rf conftest.dSYM
65932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65933       conftest$ac_exeext conftest.$ac_ext
65934 fi
65935 ac_res=`eval 'as_val=${'$as_ac_var'}
65936                  $as_echo "$as_val"'`
65937                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65938 $as_echo "$ac_res" >&6; }
65939 as_val=`eval 'as_val=${'$as_ac_var'}
65940                  $as_echo "$as_val"'`
65941    if test "x$as_val" = x""yes; then
65942   cat >>confdefs.h <<_ACEOF
65943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65944 _ACEOF
65945  ice_have_realloc=yes
65946 fi
65947 done
65948
65949 if test "${ice_have_realloc}" = yes; then
65950 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
65951 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
65952 if test "${ice_cv_have_realloc_decl+set}" = set; then
65953   $as_echo_n "(cached) " >&6
65954 else
65955
65956 ice_cv_have_realloc_decl=no
65957 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65958 ice_re_word='(^|[^a-zA-Z0-9_])'
65959 for header in stdlib.h; do
65960 # Check for ordinary declaration
65961 cat >conftest.$ac_ext <<_ACEOF
65962 /* confdefs.h.  */
65963 _ACEOF
65964 cat confdefs.h >>conftest.$ac_ext
65965 cat >>conftest.$ac_ext <<_ACEOF
65966 /* end confdefs.h.  */
65967 #include <$header>
65968
65969 _ACEOF
65970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65971   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
65972   ice_cv_have_realloc_decl=yes
65973 fi
65974 rm -f conftest*
65975
65976 if test "$ice_cv_have_realloc_decl" = yes; then
65977         break
65978 fi
65979 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65980 cat >conftest.$ac_ext <<_ACEOF
65981 /* confdefs.h.  */
65982 _ACEOF
65983 cat confdefs.h >>conftest.$ac_ext
65984 cat >>conftest.$ac_ext <<_ACEOF
65985 /* end confdefs.h.  */
65986 #include <$header>
65987
65988 _ACEOF
65989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65990   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65991   ice_cv_have_realloc_decl=yes
65992 fi
65993 rm -f conftest*
65994
65995 if test "$ice_cv_have_realloc_decl" = yes; then
65996         break
65997 fi
65998 done
65999
66000 fi
66001
66002 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
66003 $as_echo "$ice_cv_have_realloc_decl" >&6; }
66004 if test "$ice_cv_have_realloc_decl" = yes; then
66005
66006 cat >>confdefs.h <<_ACEOF
66007 #define HAVE_REALLOC_DECL 1
66008 _ACEOF
66009
66010 fi
66011 fi
66012
66013
66014 ice_have_recvfrom=no
66015
66016 for ac_func in recvfrom
66017 do
66018 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66019 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66020 $as_echo_n "checking for $ac_func... " >&6; }
66021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66022   $as_echo_n "(cached) " >&6
66023 else
66024   cat >conftest.$ac_ext <<_ACEOF
66025 /* confdefs.h.  */
66026 _ACEOF
66027 cat confdefs.h >>conftest.$ac_ext
66028 cat >>conftest.$ac_ext <<_ACEOF
66029 /* end confdefs.h.  */
66030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66032 #define $ac_func innocuous_$ac_func
66033
66034 /* System header to define __stub macros and hopefully few prototypes,
66035     which can conflict with char $ac_func (); below.
66036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66037     <limits.h> exists even on freestanding compilers.  */
66038
66039 #ifdef __STDC__
66040 # include <limits.h>
66041 #else
66042 # include <assert.h>
66043 #endif
66044
66045 #undef $ac_func
66046
66047 /* Override any GCC internal prototype to avoid an error.
66048    Use char because int might match the return type of a GCC
66049    builtin and then its argument prototype would still apply.  */
66050 #ifdef __cplusplus
66051 extern "C"
66052 #endif
66053 char $ac_func ();
66054 /* The GNU C library defines this for functions which it implements
66055     to always fail with ENOSYS.  Some functions are actually named
66056     something starting with __ and the normal name is an alias.  */
66057 #if defined __stub_$ac_func || defined __stub___$ac_func
66058 choke me
66059 #endif
66060
66061 int
66062 main ()
66063 {
66064 return $ac_func ();
66065   ;
66066   return 0;
66067 }
66068 _ACEOF
66069 rm -f conftest.$ac_objext conftest$ac_exeext
66070 if { (ac_try="$ac_link"
66071 case "(($ac_try" in
66072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66073   *) ac_try_echo=$ac_try;;
66074 esac
66075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66076 $as_echo "$ac_try_echo") >&5
66077   (eval "$ac_link") 2>conftest.er1
66078   ac_status=$?
66079   grep -v '^ *+' conftest.er1 >conftest.err
66080   rm -f conftest.er1
66081   cat conftest.err >&5
66082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66083   (exit $ac_status); } && {
66084          test -z "$ac_c_werror_flag" ||
66085          test ! -s conftest.err
66086        } && test -s conftest$ac_exeext && {
66087          test "$cross_compiling" = yes ||
66088          $as_test_x conftest$ac_exeext
66089        }; then
66090   eval "$as_ac_var=yes"
66091 else
66092   $as_echo "$as_me: failed program was:" >&5
66093 sed 's/^/| /' conftest.$ac_ext >&5
66094
66095         eval "$as_ac_var=no"
66096 fi
66097
66098 rm -rf conftest.dSYM
66099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66100       conftest$ac_exeext conftest.$ac_ext
66101 fi
66102 ac_res=`eval 'as_val=${'$as_ac_var'}
66103                  $as_echo "$as_val"'`
66104                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66105 $as_echo "$ac_res" >&6; }
66106 as_val=`eval 'as_val=${'$as_ac_var'}
66107                  $as_echo "$as_val"'`
66108    if test "x$as_val" = x""yes; then
66109   cat >>confdefs.h <<_ACEOF
66110 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66111 _ACEOF
66112  ice_have_recvfrom=yes
66113 fi
66114 done
66115
66116 if test "${ice_have_recvfrom}" = yes; then
66117 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
66118 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
66119 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
66120   $as_echo_n "(cached) " >&6
66121 else
66122
66123 ice_cv_have_recvfrom_decl=no
66124 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66125 ice_re_word='(^|[^a-zA-Z0-9_])'
66126 for header in sys/types.h sys/socket.h; do
66127 # Check for ordinary declaration
66128 cat >conftest.$ac_ext <<_ACEOF
66129 /* confdefs.h.  */
66130 _ACEOF
66131 cat confdefs.h >>conftest.$ac_ext
66132 cat >>conftest.$ac_ext <<_ACEOF
66133 /* end confdefs.h.  */
66134 #include <$header>
66135
66136 _ACEOF
66137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66138   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
66139   ice_cv_have_recvfrom_decl=yes
66140 fi
66141 rm -f conftest*
66142
66143 if test "$ice_cv_have_recvfrom_decl" = yes; then
66144         break
66145 fi
66146 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66147 cat >conftest.$ac_ext <<_ACEOF
66148 /* confdefs.h.  */
66149 _ACEOF
66150 cat confdefs.h >>conftest.$ac_ext
66151 cat >>conftest.$ac_ext <<_ACEOF
66152 /* end confdefs.h.  */
66153 #include <$header>
66154
66155 _ACEOF
66156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66157   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66158   ice_cv_have_recvfrom_decl=yes
66159 fi
66160 rm -f conftest*
66161
66162 if test "$ice_cv_have_recvfrom_decl" = yes; then
66163         break
66164 fi
66165 done
66166
66167 fi
66168
66169 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
66170 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
66171 if test "$ice_cv_have_recvfrom_decl" = yes; then
66172
66173 cat >>confdefs.h <<_ACEOF
66174 #define HAVE_RECVFROM_DECL 1
66175 _ACEOF
66176
66177 fi
66178 fi
66179
66180
66181 ice_have_remove=no
66182
66183 for ac_func in remove
66184 do
66185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66186 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66187 $as_echo_n "checking for $ac_func... " >&6; }
66188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66189   $as_echo_n "(cached) " >&6
66190 else
66191   cat >conftest.$ac_ext <<_ACEOF
66192 /* confdefs.h.  */
66193 _ACEOF
66194 cat confdefs.h >>conftest.$ac_ext
66195 cat >>conftest.$ac_ext <<_ACEOF
66196 /* end confdefs.h.  */
66197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66199 #define $ac_func innocuous_$ac_func
66200
66201 /* System header to define __stub macros and hopefully few prototypes,
66202     which can conflict with char $ac_func (); below.
66203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66204     <limits.h> exists even on freestanding compilers.  */
66205
66206 #ifdef __STDC__
66207 # include <limits.h>
66208 #else
66209 # include <assert.h>
66210 #endif
66211
66212 #undef $ac_func
66213
66214 /* Override any GCC internal prototype to avoid an error.
66215    Use char because int might match the return type of a GCC
66216    builtin and then its argument prototype would still apply.  */
66217 #ifdef __cplusplus
66218 extern "C"
66219 #endif
66220 char $ac_func ();
66221 /* The GNU C library defines this for functions which it implements
66222     to always fail with ENOSYS.  Some functions are actually named
66223     something starting with __ and the normal name is an alias.  */
66224 #if defined __stub_$ac_func || defined __stub___$ac_func
66225 choke me
66226 #endif
66227
66228 int
66229 main ()
66230 {
66231 return $ac_func ();
66232   ;
66233   return 0;
66234 }
66235 _ACEOF
66236 rm -f conftest.$ac_objext conftest$ac_exeext
66237 if { (ac_try="$ac_link"
66238 case "(($ac_try" in
66239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66240   *) ac_try_echo=$ac_try;;
66241 esac
66242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66243 $as_echo "$ac_try_echo") >&5
66244   (eval "$ac_link") 2>conftest.er1
66245   ac_status=$?
66246   grep -v '^ *+' conftest.er1 >conftest.err
66247   rm -f conftest.er1
66248   cat conftest.err >&5
66249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66250   (exit $ac_status); } && {
66251          test -z "$ac_c_werror_flag" ||
66252          test ! -s conftest.err
66253        } && test -s conftest$ac_exeext && {
66254          test "$cross_compiling" = yes ||
66255          $as_test_x conftest$ac_exeext
66256        }; then
66257   eval "$as_ac_var=yes"
66258 else
66259   $as_echo "$as_me: failed program was:" >&5
66260 sed 's/^/| /' conftest.$ac_ext >&5
66261
66262         eval "$as_ac_var=no"
66263 fi
66264
66265 rm -rf conftest.dSYM
66266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66267       conftest$ac_exeext conftest.$ac_ext
66268 fi
66269 ac_res=`eval 'as_val=${'$as_ac_var'}
66270                  $as_echo "$as_val"'`
66271                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66272 $as_echo "$ac_res" >&6; }
66273 as_val=`eval 'as_val=${'$as_ac_var'}
66274                  $as_echo "$as_val"'`
66275    if test "x$as_val" = x""yes; then
66276   cat >>confdefs.h <<_ACEOF
66277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66278 _ACEOF
66279  ice_have_remove=yes
66280 fi
66281 done
66282
66283 if test "${ice_have_remove}" = yes; then
66284 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
66285 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
66286 if test "${ice_cv_have_remove_decl+set}" = set; then
66287   $as_echo_n "(cached) " >&6
66288 else
66289
66290 ice_cv_have_remove_decl=no
66291 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66292 ice_re_word='(^|[^a-zA-Z0-9_])'
66293 for header in stdio.h; do
66294 # Check for ordinary declaration
66295 cat >conftest.$ac_ext <<_ACEOF
66296 /* confdefs.h.  */
66297 _ACEOF
66298 cat confdefs.h >>conftest.$ac_ext
66299 cat >>conftest.$ac_ext <<_ACEOF
66300 /* end confdefs.h.  */
66301 #include <$header>
66302
66303 _ACEOF
66304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66305   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
66306   ice_cv_have_remove_decl=yes
66307 fi
66308 rm -f conftest*
66309
66310 if test "$ice_cv_have_remove_decl" = yes; then
66311         break
66312 fi
66313 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66314 cat >conftest.$ac_ext <<_ACEOF
66315 /* confdefs.h.  */
66316 _ACEOF
66317 cat confdefs.h >>conftest.$ac_ext
66318 cat >>conftest.$ac_ext <<_ACEOF
66319 /* end confdefs.h.  */
66320 #include <$header>
66321
66322 _ACEOF
66323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66324   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66325   ice_cv_have_remove_decl=yes
66326 fi
66327 rm -f conftest*
66328
66329 if test "$ice_cv_have_remove_decl" = yes; then
66330         break
66331 fi
66332 done
66333
66334 fi
66335
66336 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
66337 $as_echo "$ice_cv_have_remove_decl" >&6; }
66338 if test "$ice_cv_have_remove_decl" = yes; then
66339
66340 cat >>confdefs.h <<_ACEOF
66341 #define HAVE_REMOVE_DECL 1
66342 _ACEOF
66343
66344 fi
66345 fi
66346
66347
66348 ice_have_rename=no
66349
66350 for ac_func in rename
66351 do
66352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66354 $as_echo_n "checking for $ac_func... " >&6; }
66355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66356   $as_echo_n "(cached) " >&6
66357 else
66358   cat >conftest.$ac_ext <<_ACEOF
66359 /* confdefs.h.  */
66360 _ACEOF
66361 cat confdefs.h >>conftest.$ac_ext
66362 cat >>conftest.$ac_ext <<_ACEOF
66363 /* end confdefs.h.  */
66364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66366 #define $ac_func innocuous_$ac_func
66367
66368 /* System header to define __stub macros and hopefully few prototypes,
66369     which can conflict with char $ac_func (); below.
66370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66371     <limits.h> exists even on freestanding compilers.  */
66372
66373 #ifdef __STDC__
66374 # include <limits.h>
66375 #else
66376 # include <assert.h>
66377 #endif
66378
66379 #undef $ac_func
66380
66381 /* Override any GCC internal prototype to avoid an error.
66382    Use char because int might match the return type of a GCC
66383    builtin and then its argument prototype would still apply.  */
66384 #ifdef __cplusplus
66385 extern "C"
66386 #endif
66387 char $ac_func ();
66388 /* The GNU C library defines this for functions which it implements
66389     to always fail with ENOSYS.  Some functions are actually named
66390     something starting with __ and the normal name is an alias.  */
66391 #if defined __stub_$ac_func || defined __stub___$ac_func
66392 choke me
66393 #endif
66394
66395 int
66396 main ()
66397 {
66398 return $ac_func ();
66399   ;
66400   return 0;
66401 }
66402 _ACEOF
66403 rm -f conftest.$ac_objext conftest$ac_exeext
66404 if { (ac_try="$ac_link"
66405 case "(($ac_try" in
66406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66407   *) ac_try_echo=$ac_try;;
66408 esac
66409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66410 $as_echo "$ac_try_echo") >&5
66411   (eval "$ac_link") 2>conftest.er1
66412   ac_status=$?
66413   grep -v '^ *+' conftest.er1 >conftest.err
66414   rm -f conftest.er1
66415   cat conftest.err >&5
66416   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66417   (exit $ac_status); } && {
66418          test -z "$ac_c_werror_flag" ||
66419          test ! -s conftest.err
66420        } && test -s conftest$ac_exeext && {
66421          test "$cross_compiling" = yes ||
66422          $as_test_x conftest$ac_exeext
66423        }; then
66424   eval "$as_ac_var=yes"
66425 else
66426   $as_echo "$as_me: failed program was:" >&5
66427 sed 's/^/| /' conftest.$ac_ext >&5
66428
66429         eval "$as_ac_var=no"
66430 fi
66431
66432 rm -rf conftest.dSYM
66433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66434       conftest$ac_exeext conftest.$ac_ext
66435 fi
66436 ac_res=`eval 'as_val=${'$as_ac_var'}
66437                  $as_echo "$as_val"'`
66438                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66439 $as_echo "$ac_res" >&6; }
66440 as_val=`eval 'as_val=${'$as_ac_var'}
66441                  $as_echo "$as_val"'`
66442    if test "x$as_val" = x""yes; then
66443   cat >>confdefs.h <<_ACEOF
66444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66445 _ACEOF
66446  ice_have_rename=yes
66447 fi
66448 done
66449
66450 if test "${ice_have_rename}" = yes; then
66451 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
66452 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
66453 if test "${ice_cv_have_rename_decl+set}" = set; then
66454   $as_echo_n "(cached) " >&6
66455 else
66456
66457 ice_cv_have_rename_decl=no
66458 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66459 ice_re_word='(^|[^a-zA-Z0-9_])'
66460 for header in stdio.h; do
66461 # Check for ordinary declaration
66462 cat >conftest.$ac_ext <<_ACEOF
66463 /* confdefs.h.  */
66464 _ACEOF
66465 cat confdefs.h >>conftest.$ac_ext
66466 cat >>conftest.$ac_ext <<_ACEOF
66467 /* end confdefs.h.  */
66468 #include <$header>
66469
66470 _ACEOF
66471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66472   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
66473   ice_cv_have_rename_decl=yes
66474 fi
66475 rm -f conftest*
66476
66477 if test "$ice_cv_have_rename_decl" = yes; then
66478         break
66479 fi
66480 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66481 cat >conftest.$ac_ext <<_ACEOF
66482 /* confdefs.h.  */
66483 _ACEOF
66484 cat confdefs.h >>conftest.$ac_ext
66485 cat >>conftest.$ac_ext <<_ACEOF
66486 /* end confdefs.h.  */
66487 #include <$header>
66488
66489 _ACEOF
66490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66491   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66492   ice_cv_have_rename_decl=yes
66493 fi
66494 rm -f conftest*
66495
66496 if test "$ice_cv_have_rename_decl" = yes; then
66497         break
66498 fi
66499 done
66500
66501 fi
66502
66503 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
66504 $as_echo "$ice_cv_have_rename_decl" >&6; }
66505 if test "$ice_cv_have_rename_decl" = yes; then
66506
66507 cat >>confdefs.h <<_ACEOF
66508 #define HAVE_RENAME_DECL 1
66509 _ACEOF
66510
66511 fi
66512 fi
66513
66514
66515 ice_have_rewind=no
66516
66517 for ac_func in rewind
66518 do
66519 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66520 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66521 $as_echo_n "checking for $ac_func... " >&6; }
66522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66523   $as_echo_n "(cached) " >&6
66524 else
66525   cat >conftest.$ac_ext <<_ACEOF
66526 /* confdefs.h.  */
66527 _ACEOF
66528 cat confdefs.h >>conftest.$ac_ext
66529 cat >>conftest.$ac_ext <<_ACEOF
66530 /* end confdefs.h.  */
66531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66533 #define $ac_func innocuous_$ac_func
66534
66535 /* System header to define __stub macros and hopefully few prototypes,
66536     which can conflict with char $ac_func (); below.
66537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66538     <limits.h> exists even on freestanding compilers.  */
66539
66540 #ifdef __STDC__
66541 # include <limits.h>
66542 #else
66543 # include <assert.h>
66544 #endif
66545
66546 #undef $ac_func
66547
66548 /* Override any GCC internal prototype to avoid an error.
66549    Use char because int might match the return type of a GCC
66550    builtin and then its argument prototype would still apply.  */
66551 #ifdef __cplusplus
66552 extern "C"
66553 #endif
66554 char $ac_func ();
66555 /* The GNU C library defines this for functions which it implements
66556     to always fail with ENOSYS.  Some functions are actually named
66557     something starting with __ and the normal name is an alias.  */
66558 #if defined __stub_$ac_func || defined __stub___$ac_func
66559 choke me
66560 #endif
66561
66562 int
66563 main ()
66564 {
66565 return $ac_func ();
66566   ;
66567   return 0;
66568 }
66569 _ACEOF
66570 rm -f conftest.$ac_objext conftest$ac_exeext
66571 if { (ac_try="$ac_link"
66572 case "(($ac_try" in
66573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66574   *) ac_try_echo=$ac_try;;
66575 esac
66576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66577 $as_echo "$ac_try_echo") >&5
66578   (eval "$ac_link") 2>conftest.er1
66579   ac_status=$?
66580   grep -v '^ *+' conftest.er1 >conftest.err
66581   rm -f conftest.er1
66582   cat conftest.err >&5
66583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66584   (exit $ac_status); } && {
66585          test -z "$ac_c_werror_flag" ||
66586          test ! -s conftest.err
66587        } && test -s conftest$ac_exeext && {
66588          test "$cross_compiling" = yes ||
66589          $as_test_x conftest$ac_exeext
66590        }; then
66591   eval "$as_ac_var=yes"
66592 else
66593   $as_echo "$as_me: failed program was:" >&5
66594 sed 's/^/| /' conftest.$ac_ext >&5
66595
66596         eval "$as_ac_var=no"
66597 fi
66598
66599 rm -rf conftest.dSYM
66600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66601       conftest$ac_exeext conftest.$ac_ext
66602 fi
66603 ac_res=`eval 'as_val=${'$as_ac_var'}
66604                  $as_echo "$as_val"'`
66605                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66606 $as_echo "$ac_res" >&6; }
66607 as_val=`eval 'as_val=${'$as_ac_var'}
66608                  $as_echo "$as_val"'`
66609    if test "x$as_val" = x""yes; then
66610   cat >>confdefs.h <<_ACEOF
66611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66612 _ACEOF
66613  ice_have_rewind=yes
66614 fi
66615 done
66616
66617 if test "${ice_have_rewind}" = yes; then
66618 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
66619 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
66620 if test "${ice_cv_have_rewind_decl+set}" = set; then
66621   $as_echo_n "(cached) " >&6
66622 else
66623
66624 ice_cv_have_rewind_decl=no
66625 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66626 ice_re_word='(^|[^a-zA-Z0-9_])'
66627 for header in stdio.h; do
66628 # Check for ordinary declaration
66629 cat >conftest.$ac_ext <<_ACEOF
66630 /* confdefs.h.  */
66631 _ACEOF
66632 cat confdefs.h >>conftest.$ac_ext
66633 cat >>conftest.$ac_ext <<_ACEOF
66634 /* end confdefs.h.  */
66635 #include <$header>
66636
66637 _ACEOF
66638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66639   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
66640   ice_cv_have_rewind_decl=yes
66641 fi
66642 rm -f conftest*
66643
66644 if test "$ice_cv_have_rewind_decl" = yes; then
66645         break
66646 fi
66647 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66648 cat >conftest.$ac_ext <<_ACEOF
66649 /* confdefs.h.  */
66650 _ACEOF
66651 cat confdefs.h >>conftest.$ac_ext
66652 cat >>conftest.$ac_ext <<_ACEOF
66653 /* end confdefs.h.  */
66654 #include <$header>
66655
66656 _ACEOF
66657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66658   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66659   ice_cv_have_rewind_decl=yes
66660 fi
66661 rm -f conftest*
66662
66663 if test "$ice_cv_have_rewind_decl" = yes; then
66664         break
66665 fi
66666 done
66667
66668 fi
66669
66670 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
66671 $as_echo "$ice_cv_have_rewind_decl" >&6; }
66672 if test "$ice_cv_have_rewind_decl" = yes; then
66673
66674 cat >>confdefs.h <<_ACEOF
66675 #define HAVE_REWIND_DECL 1
66676 _ACEOF
66677
66678 fi
66679 fi
66680
66681
66682 ice_have_ruserok=no
66683
66684 for ac_func in ruserok
66685 do
66686 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66687 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66688 $as_echo_n "checking for $ac_func... " >&6; }
66689 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66690   $as_echo_n "(cached) " >&6
66691 else
66692   cat >conftest.$ac_ext <<_ACEOF
66693 /* confdefs.h.  */
66694 _ACEOF
66695 cat confdefs.h >>conftest.$ac_ext
66696 cat >>conftest.$ac_ext <<_ACEOF
66697 /* end confdefs.h.  */
66698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66700 #define $ac_func innocuous_$ac_func
66701
66702 /* System header to define __stub macros and hopefully few prototypes,
66703     which can conflict with char $ac_func (); below.
66704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66705     <limits.h> exists even on freestanding compilers.  */
66706
66707 #ifdef __STDC__
66708 # include <limits.h>
66709 #else
66710 # include <assert.h>
66711 #endif
66712
66713 #undef $ac_func
66714
66715 /* Override any GCC internal prototype to avoid an error.
66716    Use char because int might match the return type of a GCC
66717    builtin and then its argument prototype would still apply.  */
66718 #ifdef __cplusplus
66719 extern "C"
66720 #endif
66721 char $ac_func ();
66722 /* The GNU C library defines this for functions which it implements
66723     to always fail with ENOSYS.  Some functions are actually named
66724     something starting with __ and the normal name is an alias.  */
66725 #if defined __stub_$ac_func || defined __stub___$ac_func
66726 choke me
66727 #endif
66728
66729 int
66730 main ()
66731 {
66732 return $ac_func ();
66733   ;
66734   return 0;
66735 }
66736 _ACEOF
66737 rm -f conftest.$ac_objext conftest$ac_exeext
66738 if { (ac_try="$ac_link"
66739 case "(($ac_try" in
66740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66741   *) ac_try_echo=$ac_try;;
66742 esac
66743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66744 $as_echo "$ac_try_echo") >&5
66745   (eval "$ac_link") 2>conftest.er1
66746   ac_status=$?
66747   grep -v '^ *+' conftest.er1 >conftest.err
66748   rm -f conftest.er1
66749   cat conftest.err >&5
66750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66751   (exit $ac_status); } && {
66752          test -z "$ac_c_werror_flag" ||
66753          test ! -s conftest.err
66754        } && test -s conftest$ac_exeext && {
66755          test "$cross_compiling" = yes ||
66756          $as_test_x conftest$ac_exeext
66757        }; then
66758   eval "$as_ac_var=yes"
66759 else
66760   $as_echo "$as_me: failed program was:" >&5
66761 sed 's/^/| /' conftest.$ac_ext >&5
66762
66763         eval "$as_ac_var=no"
66764 fi
66765
66766 rm -rf conftest.dSYM
66767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66768       conftest$ac_exeext conftest.$ac_ext
66769 fi
66770 ac_res=`eval 'as_val=${'$as_ac_var'}
66771                  $as_echo "$as_val"'`
66772                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66773 $as_echo "$ac_res" >&6; }
66774 as_val=`eval 'as_val=${'$as_ac_var'}
66775                  $as_echo "$as_val"'`
66776    if test "x$as_val" = x""yes; then
66777   cat >>confdefs.h <<_ACEOF
66778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66779 _ACEOF
66780  ice_have_ruserok=yes
66781 fi
66782 done
66783
66784 if test "${ice_have_ruserok}" = yes; then
66785 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
66786 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
66787 if test "${ice_cv_have_ruserok_decl+set}" = set; then
66788   $as_echo_n "(cached) " >&6
66789 else
66790
66791 ice_cv_have_ruserok_decl=no
66792 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66793 ice_re_word='(^|[^a-zA-Z0-9_])'
66794 for header in netdb.h sys/socket.h libc.h unistd.h; do
66795 # Check for ordinary declaration
66796 cat >conftest.$ac_ext <<_ACEOF
66797 /* confdefs.h.  */
66798 _ACEOF
66799 cat confdefs.h >>conftest.$ac_ext
66800 cat >>conftest.$ac_ext <<_ACEOF
66801 /* end confdefs.h.  */
66802 #include <$header>
66803
66804 _ACEOF
66805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66806   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
66807   ice_cv_have_ruserok_decl=yes
66808 fi
66809 rm -f conftest*
66810
66811 if test "$ice_cv_have_ruserok_decl" = yes; then
66812         break
66813 fi
66814 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66815 cat >conftest.$ac_ext <<_ACEOF
66816 /* confdefs.h.  */
66817 _ACEOF
66818 cat confdefs.h >>conftest.$ac_ext
66819 cat >>conftest.$ac_ext <<_ACEOF
66820 /* end confdefs.h.  */
66821 #include <$header>
66822
66823 _ACEOF
66824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66825   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66826   ice_cv_have_ruserok_decl=yes
66827 fi
66828 rm -f conftest*
66829
66830 if test "$ice_cv_have_ruserok_decl" = yes; then
66831         break
66832 fi
66833 done
66834
66835 fi
66836
66837 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
66838 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
66839 if test "$ice_cv_have_ruserok_decl" = yes; then
66840
66841 cat >>confdefs.h <<_ACEOF
66842 #define HAVE_RUSEROK_DECL 1
66843 _ACEOF
66844
66845 fi
66846 fi
66847
66848
66849 ice_have_select=no
66850
66851 for ac_func in select
66852 do
66853 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66854 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66855 $as_echo_n "checking for $ac_func... " >&6; }
66856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66857   $as_echo_n "(cached) " >&6
66858 else
66859   cat >conftest.$ac_ext <<_ACEOF
66860 /* confdefs.h.  */
66861 _ACEOF
66862 cat confdefs.h >>conftest.$ac_ext
66863 cat >>conftest.$ac_ext <<_ACEOF
66864 /* end confdefs.h.  */
66865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66867 #define $ac_func innocuous_$ac_func
66868
66869 /* System header to define __stub macros and hopefully few prototypes,
66870     which can conflict with char $ac_func (); below.
66871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66872     <limits.h> exists even on freestanding compilers.  */
66873
66874 #ifdef __STDC__
66875 # include <limits.h>
66876 #else
66877 # include <assert.h>
66878 #endif
66879
66880 #undef $ac_func
66881
66882 /* Override any GCC internal prototype to avoid an error.
66883    Use char because int might match the return type of a GCC
66884    builtin and then its argument prototype would still apply.  */
66885 #ifdef __cplusplus
66886 extern "C"
66887 #endif
66888 char $ac_func ();
66889 /* The GNU C library defines this for functions which it implements
66890     to always fail with ENOSYS.  Some functions are actually named
66891     something starting with __ and the normal name is an alias.  */
66892 #if defined __stub_$ac_func || defined __stub___$ac_func
66893 choke me
66894 #endif
66895
66896 int
66897 main ()
66898 {
66899 return $ac_func ();
66900   ;
66901   return 0;
66902 }
66903 _ACEOF
66904 rm -f conftest.$ac_objext conftest$ac_exeext
66905 if { (ac_try="$ac_link"
66906 case "(($ac_try" in
66907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66908   *) ac_try_echo=$ac_try;;
66909 esac
66910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66911 $as_echo "$ac_try_echo") >&5
66912   (eval "$ac_link") 2>conftest.er1
66913   ac_status=$?
66914   grep -v '^ *+' conftest.er1 >conftest.err
66915   rm -f conftest.er1
66916   cat conftest.err >&5
66917   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66918   (exit $ac_status); } && {
66919          test -z "$ac_c_werror_flag" ||
66920          test ! -s conftest.err
66921        } && test -s conftest$ac_exeext && {
66922          test "$cross_compiling" = yes ||
66923          $as_test_x conftest$ac_exeext
66924        }; then
66925   eval "$as_ac_var=yes"
66926 else
66927   $as_echo "$as_me: failed program was:" >&5
66928 sed 's/^/| /' conftest.$ac_ext >&5
66929
66930         eval "$as_ac_var=no"
66931 fi
66932
66933 rm -rf conftest.dSYM
66934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66935       conftest$ac_exeext conftest.$ac_ext
66936 fi
66937 ac_res=`eval 'as_val=${'$as_ac_var'}
66938                  $as_echo "$as_val"'`
66939                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66940 $as_echo "$ac_res" >&6; }
66941 as_val=`eval 'as_val=${'$as_ac_var'}
66942                  $as_echo "$as_val"'`
66943    if test "x$as_val" = x""yes; then
66944   cat >>confdefs.h <<_ACEOF
66945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66946 _ACEOF
66947  ice_have_select=yes
66948 fi
66949 done
66950
66951 if test "${ice_have_select}" = yes; then
66952 { $as_echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
66953 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
66954 if test "${ice_cv_have_select_decl+set}" = set; then
66955   $as_echo_n "(cached) " >&6
66956 else
66957
66958 ice_cv_have_select_decl=no
66959 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66960 ice_re_word='(^|[^a-zA-Z0-9_])'
66961 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
66962 # Check for ordinary declaration
66963 cat >conftest.$ac_ext <<_ACEOF
66964 /* confdefs.h.  */
66965 _ACEOF
66966 cat confdefs.h >>conftest.$ac_ext
66967 cat >>conftest.$ac_ext <<_ACEOF
66968 /* end confdefs.h.  */
66969 #include <$header>
66970
66971 _ACEOF
66972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66973   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
66974   ice_cv_have_select_decl=yes
66975 fi
66976 rm -f conftest*
66977
66978 if test "$ice_cv_have_select_decl" = yes; then
66979         break
66980 fi
66981 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66982 cat >conftest.$ac_ext <<_ACEOF
66983 /* confdefs.h.  */
66984 _ACEOF
66985 cat confdefs.h >>conftest.$ac_ext
66986 cat >>conftest.$ac_ext <<_ACEOF
66987 /* end confdefs.h.  */
66988 #include <$header>
66989
66990 _ACEOF
66991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66992   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66993   ice_cv_have_select_decl=yes
66994 fi
66995 rm -f conftest*
66996
66997 if test "$ice_cv_have_select_decl" = yes; then
66998         break
66999 fi
67000 done
67001
67002 fi
67003
67004 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
67005 $as_echo "$ice_cv_have_select_decl" >&6; }
67006 if test "$ice_cv_have_select_decl" = yes; then
67007
67008 cat >>confdefs.h <<_ACEOF
67009 #define HAVE_SELECT_DECL 1
67010 _ACEOF
67011
67012 fi
67013 fi
67014
67015
67016
67017
67018
67019
67020
67021
67022 for ac_header in sys/time.h \
67023             sys/types.h \
67024             sys/select.h \
67025             sys/socket.h \
67026             unistd.h \
67027
67028 do
67029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
67030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
67031   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
67032 $as_echo_n "checking for $ac_header... " >&6; }
67033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
67034   $as_echo_n "(cached) " >&6
67035 fi
67036 ac_res=`eval 'as_val=${'$as_ac_Header'}
67037                  $as_echo "$as_val"'`
67038                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67039 $as_echo "$ac_res" >&6; }
67040 else
67041   # Is the header compilable?
67042 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
67043 $as_echo_n "checking $ac_header usability... " >&6; }
67044 cat >conftest.$ac_ext <<_ACEOF
67045 /* confdefs.h.  */
67046 _ACEOF
67047 cat confdefs.h >>conftest.$ac_ext
67048 cat >>conftest.$ac_ext <<_ACEOF
67049 /* end confdefs.h.  */
67050 $ac_includes_default
67051 #include <$ac_header>
67052 _ACEOF
67053 rm -f conftest.$ac_objext
67054 if { (ac_try="$ac_compile"
67055 case "(($ac_try" in
67056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67057   *) ac_try_echo=$ac_try;;
67058 esac
67059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67060 $as_echo "$ac_try_echo") >&5
67061   (eval "$ac_compile") 2>conftest.er1
67062   ac_status=$?
67063   grep -v '^ *+' conftest.er1 >conftest.err
67064   rm -f conftest.er1
67065   cat conftest.err >&5
67066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67067   (exit $ac_status); } && {
67068          test -z "$ac_c_werror_flag" ||
67069          test ! -s conftest.err
67070        } && test -s conftest.$ac_objext; then
67071   ac_header_compiler=yes
67072 else
67073   $as_echo "$as_me: failed program was:" >&5
67074 sed 's/^/| /' conftest.$ac_ext >&5
67075
67076         ac_header_compiler=no
67077 fi
67078
67079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
67080 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67081 $as_echo "$ac_header_compiler" >&6; }
67082
67083 # Is the header present?
67084 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
67085 $as_echo_n "checking $ac_header presence... " >&6; }
67086 cat >conftest.$ac_ext <<_ACEOF
67087 /* confdefs.h.  */
67088 _ACEOF
67089 cat confdefs.h >>conftest.$ac_ext
67090 cat >>conftest.$ac_ext <<_ACEOF
67091 /* end confdefs.h.  */
67092 #include <$ac_header>
67093 _ACEOF
67094 if { (ac_try="$ac_cpp conftest.$ac_ext"
67095 case "(($ac_try" in
67096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67097   *) ac_try_echo=$ac_try;;
67098 esac
67099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67100 $as_echo "$ac_try_echo") >&5
67101   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
67102   ac_status=$?
67103   grep -v '^ *+' conftest.er1 >conftest.err
67104   rm -f conftest.er1
67105   cat conftest.err >&5
67106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67107   (exit $ac_status); } >/dev/null && {
67108          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
67109          test ! -s conftest.err
67110        }; then
67111   ac_header_preproc=yes
67112 else
67113   $as_echo "$as_me: failed program was:" >&5
67114 sed 's/^/| /' conftest.$ac_ext >&5
67115
67116   ac_header_preproc=no
67117 fi
67118
67119 rm -f conftest.err conftest.$ac_ext
67120 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67121 $as_echo "$ac_header_preproc" >&6; }
67122
67123 # So?  What about this header?
67124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67125   yes:no: )
67126     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67127 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67128     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67130     ac_header_preproc=yes
67131     ;;
67132   no:yes:* )
67133     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67134 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67135     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
67136 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
67137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67138 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
67140 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
67141     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67142 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67144 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67145
67146     ;;
67147 esac
67148 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
67149 $as_echo_n "checking for $ac_header... " >&6; }
67150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
67151   $as_echo_n "(cached) " >&6
67152 else
67153   eval "$as_ac_Header=\$ac_header_preproc"
67154 fi
67155 ac_res=`eval 'as_val=${'$as_ac_Header'}
67156                  $as_echo "$as_val"'`
67157                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67158 $as_echo "$ac_res" >&6; }
67159
67160 fi
67161 as_val=`eval 'as_val=${'$as_ac_Header'}
67162                  $as_echo "$as_val"'`
67163    if test "x$as_val" = x""yes; then
67164   cat >>confdefs.h <<_ACEOF
67165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
67166 _ACEOF
67167
67168 fi
67169
67170 done
67171
67172
67173         { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
67174 $as_echo_n "checking for select() argument type... " >&6; }
67175 if test "${amanda_cv_select_arg_type+set}" = set; then
67176   $as_echo_n "(cached) " >&6
67177 else
67178
67179                 rm -f conftest.c
67180                 cat <<EOF >conftest.$ac_ext
67181 #include "confdefs.h"
67182 #ifdef TIME_WITH_SYS_TIME
67183 #  include <sys/time.h>
67184 #  include <time.h>
67185 #else
67186 #  ifdef HAVE_SYS_TIME_H
67187 #    include <sys/time.h>
67188 #  else
67189 #    include <time.h>
67190 #  endif
67191 #endif
67192 #ifdef HAVE_SYS_TYPES_H
67193 # include <sys/types.h>
67194 #endif
67195 #ifdef HAVE_SYS_SELECT_H
67196 #  include <sys/select.h>
67197 #endif
67198 #ifdef HAVE_SYS_SOCKET_H
67199 #  include <sys/socket.h>
67200 #endif
67201 #ifdef HAVE_UNISTD_H
67202 # include <unistd.h>
67203 #endif
67204
67205 int main()
67206 {
67207 #ifdef FD_SET_POINTER
67208         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
67209 #else
67210         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
67211 #endif
67212         return 0;
67213 }
67214 EOF
67215
67216                 # Figure out the select argument type by first trying to
67217                 # compile with the fd_set argument.  If the compile fails,
67218                 # then we know to use the int.  If it suceeds, then try to
67219                 # use the int.  If the int fails, then use fd_set.  If
67220                 # both suceeed, then do a line count on the number of
67221                 # lines that the compiler spit out, assuming that the
67222                 # compile outputing more lines had more errors.
67223                 amanda_cv_select_arg_type=no
67224                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
67225                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
67226                 if test $? -ne 0; then
67227                     amanda_cv_select_arg_type=int
67228                 fi
67229                 if test "$amanda_cv_select_arg_type" = no; then
67230                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
67231                     if test $? -ne 0; then
67232                         amanda_cv_select_arg_type=fd_set
67233                     fi
67234                 fi
67235                 if test "$amanda_cv_select_arg_type" = no; then
67236                     wc_fdset=`wc -l <conftest.fd_set`
67237                     wc_int=`wc -l <conftest.int`
67238                     if test "$wc_fdset" -le "$wc_int"; then
67239                         amanda_cv_select_arg_type=fd_set
67240                     else
67241                         amanda_cv_select_arg_type=int
67242                     fi
67243                 fi
67244                 rm -f conftest*
67245
67246
67247 fi
67248 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
67249 $as_echo "$amanda_cv_select_arg_type" >&6; }
67250
67251 cat >>confdefs.h <<_ACEOF
67252 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
67253 _ACEOF
67254
67255
67256
67257
67258 ice_have_sendto=no
67259
67260 for ac_func in sendto
67261 do
67262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67264 $as_echo_n "checking for $ac_func... " >&6; }
67265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67266   $as_echo_n "(cached) " >&6
67267 else
67268   cat >conftest.$ac_ext <<_ACEOF
67269 /* confdefs.h.  */
67270 _ACEOF
67271 cat confdefs.h >>conftest.$ac_ext
67272 cat >>conftest.$ac_ext <<_ACEOF
67273 /* end confdefs.h.  */
67274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67276 #define $ac_func innocuous_$ac_func
67277
67278 /* System header to define __stub macros and hopefully few prototypes,
67279     which can conflict with char $ac_func (); below.
67280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67281     <limits.h> exists even on freestanding compilers.  */
67282
67283 #ifdef __STDC__
67284 # include <limits.h>
67285 #else
67286 # include <assert.h>
67287 #endif
67288
67289 #undef $ac_func
67290
67291 /* Override any GCC internal prototype to avoid an error.
67292    Use char because int might match the return type of a GCC
67293    builtin and then its argument prototype would still apply.  */
67294 #ifdef __cplusplus
67295 extern "C"
67296 #endif
67297 char $ac_func ();
67298 /* The GNU C library defines this for functions which it implements
67299     to always fail with ENOSYS.  Some functions are actually named
67300     something starting with __ and the normal name is an alias.  */
67301 #if defined __stub_$ac_func || defined __stub___$ac_func
67302 choke me
67303 #endif
67304
67305 int
67306 main ()
67307 {
67308 return $ac_func ();
67309   ;
67310   return 0;
67311 }
67312 _ACEOF
67313 rm -f conftest.$ac_objext conftest$ac_exeext
67314 if { (ac_try="$ac_link"
67315 case "(($ac_try" in
67316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67317   *) ac_try_echo=$ac_try;;
67318 esac
67319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67320 $as_echo "$ac_try_echo") >&5
67321   (eval "$ac_link") 2>conftest.er1
67322   ac_status=$?
67323   grep -v '^ *+' conftest.er1 >conftest.err
67324   rm -f conftest.er1
67325   cat conftest.err >&5
67326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67327   (exit $ac_status); } && {
67328          test -z "$ac_c_werror_flag" ||
67329          test ! -s conftest.err
67330        } && test -s conftest$ac_exeext && {
67331          test "$cross_compiling" = yes ||
67332          $as_test_x conftest$ac_exeext
67333        }; then
67334   eval "$as_ac_var=yes"
67335 else
67336   $as_echo "$as_me: failed program was:" >&5
67337 sed 's/^/| /' conftest.$ac_ext >&5
67338
67339         eval "$as_ac_var=no"
67340 fi
67341
67342 rm -rf conftest.dSYM
67343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67344       conftest$ac_exeext conftest.$ac_ext
67345 fi
67346 ac_res=`eval 'as_val=${'$as_ac_var'}
67347                  $as_echo "$as_val"'`
67348                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67349 $as_echo "$ac_res" >&6; }
67350 as_val=`eval 'as_val=${'$as_ac_var'}
67351                  $as_echo "$as_val"'`
67352    if test "x$as_val" = x""yes; then
67353   cat >>confdefs.h <<_ACEOF
67354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67355 _ACEOF
67356  ice_have_sendto=yes
67357 fi
67358 done
67359
67360 if test "${ice_have_sendto}" = yes; then
67361 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
67362 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
67363 if test "${ice_cv_have_sendto_decl+set}" = set; then
67364   $as_echo_n "(cached) " >&6
67365 else
67366
67367 ice_cv_have_sendto_decl=no
67368 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67369 ice_re_word='(^|[^a-zA-Z0-9_])'
67370 for header in sys/types.h sys/socket.h; do
67371 # Check for ordinary declaration
67372 cat >conftest.$ac_ext <<_ACEOF
67373 /* confdefs.h.  */
67374 _ACEOF
67375 cat confdefs.h >>conftest.$ac_ext
67376 cat >>conftest.$ac_ext <<_ACEOF
67377 /* end confdefs.h.  */
67378 #include <$header>
67379
67380 _ACEOF
67381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67382   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
67383   ice_cv_have_sendto_decl=yes
67384 fi
67385 rm -f conftest*
67386
67387 if test "$ice_cv_have_sendto_decl" = yes; then
67388         break
67389 fi
67390 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67391 cat >conftest.$ac_ext <<_ACEOF
67392 /* confdefs.h.  */
67393 _ACEOF
67394 cat confdefs.h >>conftest.$ac_ext
67395 cat >>conftest.$ac_ext <<_ACEOF
67396 /* end confdefs.h.  */
67397 #include <$header>
67398
67399 _ACEOF
67400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67401   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67402   ice_cv_have_sendto_decl=yes
67403 fi
67404 rm -f conftest*
67405
67406 if test "$ice_cv_have_sendto_decl" = yes; then
67407         break
67408 fi
67409 done
67410
67411 fi
67412
67413 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
67414 $as_echo "$ice_cv_have_sendto_decl" >&6; }
67415 if test "$ice_cv_have_sendto_decl" = yes; then
67416
67417 cat >>confdefs.h <<_ACEOF
67418 #define HAVE_SENDTO_DECL 1
67419 _ACEOF
67420
67421 fi
67422 fi
67423
67424
67425 ice_have_setegid=no
67426
67427 for ac_func in setegid
67428 do
67429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67430 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67431 $as_echo_n "checking for $ac_func... " >&6; }
67432 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67433   $as_echo_n "(cached) " >&6
67434 else
67435   cat >conftest.$ac_ext <<_ACEOF
67436 /* confdefs.h.  */
67437 _ACEOF
67438 cat confdefs.h >>conftest.$ac_ext
67439 cat >>conftest.$ac_ext <<_ACEOF
67440 /* end confdefs.h.  */
67441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67443 #define $ac_func innocuous_$ac_func
67444
67445 /* System header to define __stub macros and hopefully few prototypes,
67446     which can conflict with char $ac_func (); below.
67447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67448     <limits.h> exists even on freestanding compilers.  */
67449
67450 #ifdef __STDC__
67451 # include <limits.h>
67452 #else
67453 # include <assert.h>
67454 #endif
67455
67456 #undef $ac_func
67457
67458 /* Override any GCC internal prototype to avoid an error.
67459    Use char because int might match the return type of a GCC
67460    builtin and then its argument prototype would still apply.  */
67461 #ifdef __cplusplus
67462 extern "C"
67463 #endif
67464 char $ac_func ();
67465 /* The GNU C library defines this for functions which it implements
67466     to always fail with ENOSYS.  Some functions are actually named
67467     something starting with __ and the normal name is an alias.  */
67468 #if defined __stub_$ac_func || defined __stub___$ac_func
67469 choke me
67470 #endif
67471
67472 int
67473 main ()
67474 {
67475 return $ac_func ();
67476   ;
67477   return 0;
67478 }
67479 _ACEOF
67480 rm -f conftest.$ac_objext conftest$ac_exeext
67481 if { (ac_try="$ac_link"
67482 case "(($ac_try" in
67483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67484   *) ac_try_echo=$ac_try;;
67485 esac
67486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67487 $as_echo "$ac_try_echo") >&5
67488   (eval "$ac_link") 2>conftest.er1
67489   ac_status=$?
67490   grep -v '^ *+' conftest.er1 >conftest.err
67491   rm -f conftest.er1
67492   cat conftest.err >&5
67493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67494   (exit $ac_status); } && {
67495          test -z "$ac_c_werror_flag" ||
67496          test ! -s conftest.err
67497        } && test -s conftest$ac_exeext && {
67498          test "$cross_compiling" = yes ||
67499          $as_test_x conftest$ac_exeext
67500        }; then
67501   eval "$as_ac_var=yes"
67502 else
67503   $as_echo "$as_me: failed program was:" >&5
67504 sed 's/^/| /' conftest.$ac_ext >&5
67505
67506         eval "$as_ac_var=no"
67507 fi
67508
67509 rm -rf conftest.dSYM
67510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67511       conftest$ac_exeext conftest.$ac_ext
67512 fi
67513 ac_res=`eval 'as_val=${'$as_ac_var'}
67514                  $as_echo "$as_val"'`
67515                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67516 $as_echo "$ac_res" >&6; }
67517 as_val=`eval 'as_val=${'$as_ac_var'}
67518                  $as_echo "$as_val"'`
67519    if test "x$as_val" = x""yes; then
67520   cat >>confdefs.h <<_ACEOF
67521 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67522 _ACEOF
67523  ice_have_setegid=yes
67524 fi
67525 done
67526
67527 if test "${ice_have_setegid}" = yes; then
67528 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
67529 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
67530 if test "${ice_cv_have_setegid_decl+set}" = set; then
67531   $as_echo_n "(cached) " >&6
67532 else
67533
67534 ice_cv_have_setegid_decl=no
67535 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67536 ice_re_word='(^|[^a-zA-Z0-9_])'
67537 for header in unistd.h; do
67538 # Check for ordinary declaration
67539 cat >conftest.$ac_ext <<_ACEOF
67540 /* confdefs.h.  */
67541 _ACEOF
67542 cat confdefs.h >>conftest.$ac_ext
67543 cat >>conftest.$ac_ext <<_ACEOF
67544 /* end confdefs.h.  */
67545 #include <$header>
67546
67547 _ACEOF
67548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67549   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
67550   ice_cv_have_setegid_decl=yes
67551 fi
67552 rm -f conftest*
67553
67554 if test "$ice_cv_have_setegid_decl" = yes; then
67555         break
67556 fi
67557 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67558 cat >conftest.$ac_ext <<_ACEOF
67559 /* confdefs.h.  */
67560 _ACEOF
67561 cat confdefs.h >>conftest.$ac_ext
67562 cat >>conftest.$ac_ext <<_ACEOF
67563 /* end confdefs.h.  */
67564 #include <$header>
67565
67566 _ACEOF
67567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67568   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67569   ice_cv_have_setegid_decl=yes
67570 fi
67571 rm -f conftest*
67572
67573 if test "$ice_cv_have_setegid_decl" = yes; then
67574         break
67575 fi
67576 done
67577
67578 fi
67579
67580 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
67581 $as_echo "$ice_cv_have_setegid_decl" >&6; }
67582 if test "$ice_cv_have_setegid_decl" = yes; then
67583
67584 cat >>confdefs.h <<_ACEOF
67585 #define HAVE_SETEGID_DECL 1
67586 _ACEOF
67587
67588 fi
67589 fi
67590
67591
67592 ice_have_seteuid=no
67593
67594 for ac_func in seteuid
67595 do
67596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67597 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67598 $as_echo_n "checking for $ac_func... " >&6; }
67599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67600   $as_echo_n "(cached) " >&6
67601 else
67602   cat >conftest.$ac_ext <<_ACEOF
67603 /* confdefs.h.  */
67604 _ACEOF
67605 cat confdefs.h >>conftest.$ac_ext
67606 cat >>conftest.$ac_ext <<_ACEOF
67607 /* end confdefs.h.  */
67608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67610 #define $ac_func innocuous_$ac_func
67611
67612 /* System header to define __stub macros and hopefully few prototypes,
67613     which can conflict with char $ac_func (); below.
67614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67615     <limits.h> exists even on freestanding compilers.  */
67616
67617 #ifdef __STDC__
67618 # include <limits.h>
67619 #else
67620 # include <assert.h>
67621 #endif
67622
67623 #undef $ac_func
67624
67625 /* Override any GCC internal prototype to avoid an error.
67626    Use char because int might match the return type of a GCC
67627    builtin and then its argument prototype would still apply.  */
67628 #ifdef __cplusplus
67629 extern "C"
67630 #endif
67631 char $ac_func ();
67632 /* The GNU C library defines this for functions which it implements
67633     to always fail with ENOSYS.  Some functions are actually named
67634     something starting with __ and the normal name is an alias.  */
67635 #if defined __stub_$ac_func || defined __stub___$ac_func
67636 choke me
67637 #endif
67638
67639 int
67640 main ()
67641 {
67642 return $ac_func ();
67643   ;
67644   return 0;
67645 }
67646 _ACEOF
67647 rm -f conftest.$ac_objext conftest$ac_exeext
67648 if { (ac_try="$ac_link"
67649 case "(($ac_try" in
67650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67651   *) ac_try_echo=$ac_try;;
67652 esac
67653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67654 $as_echo "$ac_try_echo") >&5
67655   (eval "$ac_link") 2>conftest.er1
67656   ac_status=$?
67657   grep -v '^ *+' conftest.er1 >conftest.err
67658   rm -f conftest.er1
67659   cat conftest.err >&5
67660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67661   (exit $ac_status); } && {
67662          test -z "$ac_c_werror_flag" ||
67663          test ! -s conftest.err
67664        } && test -s conftest$ac_exeext && {
67665          test "$cross_compiling" = yes ||
67666          $as_test_x conftest$ac_exeext
67667        }; then
67668   eval "$as_ac_var=yes"
67669 else
67670   $as_echo "$as_me: failed program was:" >&5
67671 sed 's/^/| /' conftest.$ac_ext >&5
67672
67673         eval "$as_ac_var=no"
67674 fi
67675
67676 rm -rf conftest.dSYM
67677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67678       conftest$ac_exeext conftest.$ac_ext
67679 fi
67680 ac_res=`eval 'as_val=${'$as_ac_var'}
67681                  $as_echo "$as_val"'`
67682                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67683 $as_echo "$ac_res" >&6; }
67684 as_val=`eval 'as_val=${'$as_ac_var'}
67685                  $as_echo "$as_val"'`
67686    if test "x$as_val" = x""yes; then
67687   cat >>confdefs.h <<_ACEOF
67688 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67689 _ACEOF
67690  ice_have_seteuid=yes
67691 fi
67692 done
67693
67694 if test "${ice_have_seteuid}" = yes; then
67695 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
67696 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
67697 if test "${ice_cv_have_seteuid_decl+set}" = set; then
67698   $as_echo_n "(cached) " >&6
67699 else
67700
67701 ice_cv_have_seteuid_decl=no
67702 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67703 ice_re_word='(^|[^a-zA-Z0-9_])'
67704 for header in unistd.h; do
67705 # Check for ordinary declaration
67706 cat >conftest.$ac_ext <<_ACEOF
67707 /* confdefs.h.  */
67708 _ACEOF
67709 cat confdefs.h >>conftest.$ac_ext
67710 cat >>conftest.$ac_ext <<_ACEOF
67711 /* end confdefs.h.  */
67712 #include <$header>
67713
67714 _ACEOF
67715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67716   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
67717   ice_cv_have_seteuid_decl=yes
67718 fi
67719 rm -f conftest*
67720
67721 if test "$ice_cv_have_seteuid_decl" = yes; then
67722         break
67723 fi
67724 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67725 cat >conftest.$ac_ext <<_ACEOF
67726 /* confdefs.h.  */
67727 _ACEOF
67728 cat confdefs.h >>conftest.$ac_ext
67729 cat >>conftest.$ac_ext <<_ACEOF
67730 /* end confdefs.h.  */
67731 #include <$header>
67732
67733 _ACEOF
67734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67735   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67736   ice_cv_have_seteuid_decl=yes
67737 fi
67738 rm -f conftest*
67739
67740 if test "$ice_cv_have_seteuid_decl" = yes; then
67741         break
67742 fi
67743 done
67744
67745 fi
67746
67747 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
67748 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
67749 if test "$ice_cv_have_seteuid_decl" = yes; then
67750
67751 cat >>confdefs.h <<_ACEOF
67752 #define HAVE_SETEUID_DECL 1
67753 _ACEOF
67754
67755 fi
67756 fi
67757
67758
67759 ice_have_setresgid=no
67760
67761 for ac_func in setresgid
67762 do
67763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67764 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67765 $as_echo_n "checking for $ac_func... " >&6; }
67766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67767   $as_echo_n "(cached) " >&6
67768 else
67769   cat >conftest.$ac_ext <<_ACEOF
67770 /* confdefs.h.  */
67771 _ACEOF
67772 cat confdefs.h >>conftest.$ac_ext
67773 cat >>conftest.$ac_ext <<_ACEOF
67774 /* end confdefs.h.  */
67775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67777 #define $ac_func innocuous_$ac_func
67778
67779 /* System header to define __stub macros and hopefully few prototypes,
67780     which can conflict with char $ac_func (); below.
67781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67782     <limits.h> exists even on freestanding compilers.  */
67783
67784 #ifdef __STDC__
67785 # include <limits.h>
67786 #else
67787 # include <assert.h>
67788 #endif
67789
67790 #undef $ac_func
67791
67792 /* Override any GCC internal prototype to avoid an error.
67793    Use char because int might match the return type of a GCC
67794    builtin and then its argument prototype would still apply.  */
67795 #ifdef __cplusplus
67796 extern "C"
67797 #endif
67798 char $ac_func ();
67799 /* The GNU C library defines this for functions which it implements
67800     to always fail with ENOSYS.  Some functions are actually named
67801     something starting with __ and the normal name is an alias.  */
67802 #if defined __stub_$ac_func || defined __stub___$ac_func
67803 choke me
67804 #endif
67805
67806 int
67807 main ()
67808 {
67809 return $ac_func ();
67810   ;
67811   return 0;
67812 }
67813 _ACEOF
67814 rm -f conftest.$ac_objext conftest$ac_exeext
67815 if { (ac_try="$ac_link"
67816 case "(($ac_try" in
67817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67818   *) ac_try_echo=$ac_try;;
67819 esac
67820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67821 $as_echo "$ac_try_echo") >&5
67822   (eval "$ac_link") 2>conftest.er1
67823   ac_status=$?
67824   grep -v '^ *+' conftest.er1 >conftest.err
67825   rm -f conftest.er1
67826   cat conftest.err >&5
67827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67828   (exit $ac_status); } && {
67829          test -z "$ac_c_werror_flag" ||
67830          test ! -s conftest.err
67831        } && test -s conftest$ac_exeext && {
67832          test "$cross_compiling" = yes ||
67833          $as_test_x conftest$ac_exeext
67834        }; then
67835   eval "$as_ac_var=yes"
67836 else
67837   $as_echo "$as_me: failed program was:" >&5
67838 sed 's/^/| /' conftest.$ac_ext >&5
67839
67840         eval "$as_ac_var=no"
67841 fi
67842
67843 rm -rf conftest.dSYM
67844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67845       conftest$ac_exeext conftest.$ac_ext
67846 fi
67847 ac_res=`eval 'as_val=${'$as_ac_var'}
67848                  $as_echo "$as_val"'`
67849                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67850 $as_echo "$ac_res" >&6; }
67851 as_val=`eval 'as_val=${'$as_ac_var'}
67852                  $as_echo "$as_val"'`
67853    if test "x$as_val" = x""yes; then
67854   cat >>confdefs.h <<_ACEOF
67855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67856 _ACEOF
67857  ice_have_setresgid=yes
67858 fi
67859 done
67860
67861 if test "${ice_have_setresgid}" = yes; then
67862 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
67863 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
67864 if test "${ice_cv_have_setresgid_decl+set}" = set; then
67865   $as_echo_n "(cached) " >&6
67866 else
67867
67868 ice_cv_have_setresgid_decl=no
67869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67870 ice_re_word='(^|[^a-zA-Z0-9_])'
67871 for header in unistd.h; do
67872 # Check for ordinary declaration
67873 cat >conftest.$ac_ext <<_ACEOF
67874 /* confdefs.h.  */
67875 _ACEOF
67876 cat confdefs.h >>conftest.$ac_ext
67877 cat >>conftest.$ac_ext <<_ACEOF
67878 /* end confdefs.h.  */
67879 #include <$header>
67880
67881 _ACEOF
67882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67883   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
67884   ice_cv_have_setresgid_decl=yes
67885 fi
67886 rm -f conftest*
67887
67888 if test "$ice_cv_have_setresgid_decl" = yes; then
67889         break
67890 fi
67891 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67892 cat >conftest.$ac_ext <<_ACEOF
67893 /* confdefs.h.  */
67894 _ACEOF
67895 cat confdefs.h >>conftest.$ac_ext
67896 cat >>conftest.$ac_ext <<_ACEOF
67897 /* end confdefs.h.  */
67898 #include <$header>
67899
67900 _ACEOF
67901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67902   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67903   ice_cv_have_setresgid_decl=yes
67904 fi
67905 rm -f conftest*
67906
67907 if test "$ice_cv_have_setresgid_decl" = yes; then
67908         break
67909 fi
67910 done
67911
67912 fi
67913
67914 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
67915 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
67916 if test "$ice_cv_have_setresgid_decl" = yes; then
67917
67918 cat >>confdefs.h <<_ACEOF
67919 #define HAVE_SETRESGID_DECL 1
67920 _ACEOF
67921
67922 fi
67923 fi
67924
67925
67926 ice_have_setresuid=no
67927
67928 for ac_func in setresuid
67929 do
67930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67931 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67932 $as_echo_n "checking for $ac_func... " >&6; }
67933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67934   $as_echo_n "(cached) " >&6
67935 else
67936   cat >conftest.$ac_ext <<_ACEOF
67937 /* confdefs.h.  */
67938 _ACEOF
67939 cat confdefs.h >>conftest.$ac_ext
67940 cat >>conftest.$ac_ext <<_ACEOF
67941 /* end confdefs.h.  */
67942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67944 #define $ac_func innocuous_$ac_func
67945
67946 /* System header to define __stub macros and hopefully few prototypes,
67947     which can conflict with char $ac_func (); below.
67948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67949     <limits.h> exists even on freestanding compilers.  */
67950
67951 #ifdef __STDC__
67952 # include <limits.h>
67953 #else
67954 # include <assert.h>
67955 #endif
67956
67957 #undef $ac_func
67958
67959 /* Override any GCC internal prototype to avoid an error.
67960    Use char because int might match the return type of a GCC
67961    builtin and then its argument prototype would still apply.  */
67962 #ifdef __cplusplus
67963 extern "C"
67964 #endif
67965 char $ac_func ();
67966 /* The GNU C library defines this for functions which it implements
67967     to always fail with ENOSYS.  Some functions are actually named
67968     something starting with __ and the normal name is an alias.  */
67969 #if defined __stub_$ac_func || defined __stub___$ac_func
67970 choke me
67971 #endif
67972
67973 int
67974 main ()
67975 {
67976 return $ac_func ();
67977   ;
67978   return 0;
67979 }
67980 _ACEOF
67981 rm -f conftest.$ac_objext conftest$ac_exeext
67982 if { (ac_try="$ac_link"
67983 case "(($ac_try" in
67984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67985   *) ac_try_echo=$ac_try;;
67986 esac
67987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67988 $as_echo "$ac_try_echo") >&5
67989   (eval "$ac_link") 2>conftest.er1
67990   ac_status=$?
67991   grep -v '^ *+' conftest.er1 >conftest.err
67992   rm -f conftest.er1
67993   cat conftest.err >&5
67994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67995   (exit $ac_status); } && {
67996          test -z "$ac_c_werror_flag" ||
67997          test ! -s conftest.err
67998        } && test -s conftest$ac_exeext && {
67999          test "$cross_compiling" = yes ||
68000          $as_test_x conftest$ac_exeext
68001        }; then
68002   eval "$as_ac_var=yes"
68003 else
68004   $as_echo "$as_me: failed program was:" >&5
68005 sed 's/^/| /' conftest.$ac_ext >&5
68006
68007         eval "$as_ac_var=no"
68008 fi
68009
68010 rm -rf conftest.dSYM
68011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68012       conftest$ac_exeext conftest.$ac_ext
68013 fi
68014 ac_res=`eval 'as_val=${'$as_ac_var'}
68015                  $as_echo "$as_val"'`
68016                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68017 $as_echo "$ac_res" >&6; }
68018 as_val=`eval 'as_val=${'$as_ac_var'}
68019                  $as_echo "$as_val"'`
68020    if test "x$as_val" = x""yes; then
68021   cat >>confdefs.h <<_ACEOF
68022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68023 _ACEOF
68024  ice_have_setresuid=yes
68025 fi
68026 done
68027
68028 if test "${ice_have_setresuid}" = yes; then
68029 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
68030 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
68031 if test "${ice_cv_have_setresuid_decl+set}" = set; then
68032   $as_echo_n "(cached) " >&6
68033 else
68034
68035 ice_cv_have_setresuid_decl=no
68036 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68037 ice_re_word='(^|[^a-zA-Z0-9_])'
68038 for header in unistd.h; do
68039 # Check for ordinary declaration
68040 cat >conftest.$ac_ext <<_ACEOF
68041 /* confdefs.h.  */
68042 _ACEOF
68043 cat confdefs.h >>conftest.$ac_ext
68044 cat >>conftest.$ac_ext <<_ACEOF
68045 /* end confdefs.h.  */
68046 #include <$header>
68047
68048 _ACEOF
68049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68050   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
68051   ice_cv_have_setresuid_decl=yes
68052 fi
68053 rm -f conftest*
68054
68055 if test "$ice_cv_have_setresuid_decl" = yes; then
68056         break
68057 fi
68058 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68059 cat >conftest.$ac_ext <<_ACEOF
68060 /* confdefs.h.  */
68061 _ACEOF
68062 cat confdefs.h >>conftest.$ac_ext
68063 cat >>conftest.$ac_ext <<_ACEOF
68064 /* end confdefs.h.  */
68065 #include <$header>
68066
68067 _ACEOF
68068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68069   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68070   ice_cv_have_setresuid_decl=yes
68071 fi
68072 rm -f conftest*
68073
68074 if test "$ice_cv_have_setresuid_decl" = yes; then
68075         break
68076 fi
68077 done
68078
68079 fi
68080
68081 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
68082 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
68083 if test "$ice_cv_have_setresuid_decl" = yes; then
68084
68085 cat >>confdefs.h <<_ACEOF
68086 #define HAVE_SETRESUID_DECL 1
68087 _ACEOF
68088
68089 fi
68090 fi
68091
68092
68093 ice_have_snprintf=no
68094
68095 for ac_func in snprintf
68096 do
68097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68098 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68099 $as_echo_n "checking for $ac_func... " >&6; }
68100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68101   $as_echo_n "(cached) " >&6
68102 else
68103   cat >conftest.$ac_ext <<_ACEOF
68104 /* confdefs.h.  */
68105 _ACEOF
68106 cat confdefs.h >>conftest.$ac_ext
68107 cat >>conftest.$ac_ext <<_ACEOF
68108 /* end confdefs.h.  */
68109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68111 #define $ac_func innocuous_$ac_func
68112
68113 /* System header to define __stub macros and hopefully few prototypes,
68114     which can conflict with char $ac_func (); below.
68115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68116     <limits.h> exists even on freestanding compilers.  */
68117
68118 #ifdef __STDC__
68119 # include <limits.h>
68120 #else
68121 # include <assert.h>
68122 #endif
68123
68124 #undef $ac_func
68125
68126 /* Override any GCC internal prototype to avoid an error.
68127    Use char because int might match the return type of a GCC
68128    builtin and then its argument prototype would still apply.  */
68129 #ifdef __cplusplus
68130 extern "C"
68131 #endif
68132 char $ac_func ();
68133 /* The GNU C library defines this for functions which it implements
68134     to always fail with ENOSYS.  Some functions are actually named
68135     something starting with __ and the normal name is an alias.  */
68136 #if defined __stub_$ac_func || defined __stub___$ac_func
68137 choke me
68138 #endif
68139
68140 int
68141 main ()
68142 {
68143 return $ac_func ();
68144   ;
68145   return 0;
68146 }
68147 _ACEOF
68148 rm -f conftest.$ac_objext conftest$ac_exeext
68149 if { (ac_try="$ac_link"
68150 case "(($ac_try" in
68151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68152   *) ac_try_echo=$ac_try;;
68153 esac
68154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68155 $as_echo "$ac_try_echo") >&5
68156   (eval "$ac_link") 2>conftest.er1
68157   ac_status=$?
68158   grep -v '^ *+' conftest.er1 >conftest.err
68159   rm -f conftest.er1
68160   cat conftest.err >&5
68161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68162   (exit $ac_status); } && {
68163          test -z "$ac_c_werror_flag" ||
68164          test ! -s conftest.err
68165        } && test -s conftest$ac_exeext && {
68166          test "$cross_compiling" = yes ||
68167          $as_test_x conftest$ac_exeext
68168        }; then
68169   eval "$as_ac_var=yes"
68170 else
68171   $as_echo "$as_me: failed program was:" >&5
68172 sed 's/^/| /' conftest.$ac_ext >&5
68173
68174         eval "$as_ac_var=no"
68175 fi
68176
68177 rm -rf conftest.dSYM
68178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68179       conftest$ac_exeext conftest.$ac_ext
68180 fi
68181 ac_res=`eval 'as_val=${'$as_ac_var'}
68182                  $as_echo "$as_val"'`
68183                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68184 $as_echo "$ac_res" >&6; }
68185 as_val=`eval 'as_val=${'$as_ac_var'}
68186                  $as_echo "$as_val"'`
68187    if test "x$as_val" = x""yes; then
68188   cat >>confdefs.h <<_ACEOF
68189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68190 _ACEOF
68191  ice_have_snprintf=yes
68192 fi
68193 done
68194
68195 if test "${ice_have_snprintf}" = yes; then
68196 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
68197 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
68198 if test "${ice_cv_have_snprintf_decl+set}" = set; then
68199   $as_echo_n "(cached) " >&6
68200 else
68201
68202 ice_cv_have_snprintf_decl=no
68203 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68204 ice_re_word='(^|[^a-zA-Z0-9_])'
68205 for header in stdio.h; do
68206 # Check for ordinary declaration
68207 cat >conftest.$ac_ext <<_ACEOF
68208 /* confdefs.h.  */
68209 _ACEOF
68210 cat confdefs.h >>conftest.$ac_ext
68211 cat >>conftest.$ac_ext <<_ACEOF
68212 /* end confdefs.h.  */
68213 #include <$header>
68214
68215 _ACEOF
68216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68217   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
68218   ice_cv_have_snprintf_decl=yes
68219 fi
68220 rm -f conftest*
68221
68222 if test "$ice_cv_have_snprintf_decl" = yes; then
68223         break
68224 fi
68225 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68226 cat >conftest.$ac_ext <<_ACEOF
68227 /* confdefs.h.  */
68228 _ACEOF
68229 cat confdefs.h >>conftest.$ac_ext
68230 cat >>conftest.$ac_ext <<_ACEOF
68231 /* end confdefs.h.  */
68232 #include <$header>
68233
68234 _ACEOF
68235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68236   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68237   ice_cv_have_snprintf_decl=yes
68238 fi
68239 rm -f conftest*
68240
68241 if test "$ice_cv_have_snprintf_decl" = yes; then
68242         break
68243 fi
68244 done
68245
68246 fi
68247
68248 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
68249 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
68250 if test "$ice_cv_have_snprintf_decl" = yes; then
68251
68252 cat >>confdefs.h <<_ACEOF
68253 #define HAVE_SNPRINTF_DECL 1
68254 _ACEOF
68255
68256 fi
68257 fi
68258
68259
68260 ice_have_vsnprintf=no
68261
68262 for ac_func in vsnprintf
68263 do
68264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68265 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68266 $as_echo_n "checking for $ac_func... " >&6; }
68267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68268   $as_echo_n "(cached) " >&6
68269 else
68270   cat >conftest.$ac_ext <<_ACEOF
68271 /* confdefs.h.  */
68272 _ACEOF
68273 cat confdefs.h >>conftest.$ac_ext
68274 cat >>conftest.$ac_ext <<_ACEOF
68275 /* end confdefs.h.  */
68276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68278 #define $ac_func innocuous_$ac_func
68279
68280 /* System header to define __stub macros and hopefully few prototypes,
68281     which can conflict with char $ac_func (); below.
68282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68283     <limits.h> exists even on freestanding compilers.  */
68284
68285 #ifdef __STDC__
68286 # include <limits.h>
68287 #else
68288 # include <assert.h>
68289 #endif
68290
68291 #undef $ac_func
68292
68293 /* Override any GCC internal prototype to avoid an error.
68294    Use char because int might match the return type of a GCC
68295    builtin and then its argument prototype would still apply.  */
68296 #ifdef __cplusplus
68297 extern "C"
68298 #endif
68299 char $ac_func ();
68300 /* The GNU C library defines this for functions which it implements
68301     to always fail with ENOSYS.  Some functions are actually named
68302     something starting with __ and the normal name is an alias.  */
68303 #if defined __stub_$ac_func || defined __stub___$ac_func
68304 choke me
68305 #endif
68306
68307 int
68308 main ()
68309 {
68310 return $ac_func ();
68311   ;
68312   return 0;
68313 }
68314 _ACEOF
68315 rm -f conftest.$ac_objext conftest$ac_exeext
68316 if { (ac_try="$ac_link"
68317 case "(($ac_try" in
68318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68319   *) ac_try_echo=$ac_try;;
68320 esac
68321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68322 $as_echo "$ac_try_echo") >&5
68323   (eval "$ac_link") 2>conftest.er1
68324   ac_status=$?
68325   grep -v '^ *+' conftest.er1 >conftest.err
68326   rm -f conftest.er1
68327   cat conftest.err >&5
68328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68329   (exit $ac_status); } && {
68330          test -z "$ac_c_werror_flag" ||
68331          test ! -s conftest.err
68332        } && test -s conftest$ac_exeext && {
68333          test "$cross_compiling" = yes ||
68334          $as_test_x conftest$ac_exeext
68335        }; then
68336   eval "$as_ac_var=yes"
68337 else
68338   $as_echo "$as_me: failed program was:" >&5
68339 sed 's/^/| /' conftest.$ac_ext >&5
68340
68341         eval "$as_ac_var=no"
68342 fi
68343
68344 rm -rf conftest.dSYM
68345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68346       conftest$ac_exeext conftest.$ac_ext
68347 fi
68348 ac_res=`eval 'as_val=${'$as_ac_var'}
68349                  $as_echo "$as_val"'`
68350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68351 $as_echo "$ac_res" >&6; }
68352 as_val=`eval 'as_val=${'$as_ac_var'}
68353                  $as_echo "$as_val"'`
68354    if test "x$as_val" = x""yes; then
68355   cat >>confdefs.h <<_ACEOF
68356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68357 _ACEOF
68358  ice_have_vsnprintf=yes
68359 fi
68360 done
68361
68362 if test "${ice_have_vsnprintf}" = yes; then
68363 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
68364 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
68365 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
68366   $as_echo_n "(cached) " >&6
68367 else
68368
68369 ice_cv_have_vsnprintf_decl=no
68370 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68371 ice_re_word='(^|[^a-zA-Z0-9_])'
68372 for header in stdio.h; do
68373 # Check for ordinary declaration
68374 cat >conftest.$ac_ext <<_ACEOF
68375 /* confdefs.h.  */
68376 _ACEOF
68377 cat confdefs.h >>conftest.$ac_ext
68378 cat >>conftest.$ac_ext <<_ACEOF
68379 /* end confdefs.h.  */
68380 #include <$header>
68381
68382 _ACEOF
68383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68384   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
68385   ice_cv_have_vsnprintf_decl=yes
68386 fi
68387 rm -f conftest*
68388
68389 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68390         break
68391 fi
68392 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68393 cat >conftest.$ac_ext <<_ACEOF
68394 /* confdefs.h.  */
68395 _ACEOF
68396 cat confdefs.h >>conftest.$ac_ext
68397 cat >>conftest.$ac_ext <<_ACEOF
68398 /* end confdefs.h.  */
68399 #include <$header>
68400
68401 _ACEOF
68402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68403   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68404   ice_cv_have_vsnprintf_decl=yes
68405 fi
68406 rm -f conftest*
68407
68408 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68409         break
68410 fi
68411 done
68412
68413 fi
68414
68415 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
68416 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
68417 if test "$ice_cv_have_vsnprintf_decl" = yes; then
68418
68419 cat >>confdefs.h <<_ACEOF
68420 #define HAVE_VSNPRINTF_DECL 1
68421 _ACEOF
68422
68423 fi
68424 fi
68425
68426
68427     { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
68428 $as_echo_n "checking for setpgid... " >&6; }
68429 if test "${ac_cv_func_setpgid+set}" = set; then
68430   $as_echo_n "(cached) " >&6
68431 else
68432   cat >conftest.$ac_ext <<_ACEOF
68433 /* confdefs.h.  */
68434 _ACEOF
68435 cat confdefs.h >>conftest.$ac_ext
68436 cat >>conftest.$ac_ext <<_ACEOF
68437 /* end confdefs.h.  */
68438 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
68439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68440 #define setpgid innocuous_setpgid
68441
68442 /* System header to define __stub macros and hopefully few prototypes,
68443     which can conflict with char setpgid (); below.
68444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68445     <limits.h> exists even on freestanding compilers.  */
68446
68447 #ifdef __STDC__
68448 # include <limits.h>
68449 #else
68450 # include <assert.h>
68451 #endif
68452
68453 #undef setpgid
68454
68455 /* Override any GCC internal prototype to avoid an error.
68456    Use char because int might match the return type of a GCC
68457    builtin and then its argument prototype would still apply.  */
68458 #ifdef __cplusplus
68459 extern "C"
68460 #endif
68461 char setpgid ();
68462 /* The GNU C library defines this for functions which it implements
68463     to always fail with ENOSYS.  Some functions are actually named
68464     something starting with __ and the normal name is an alias.  */
68465 #if defined __stub_setpgid || defined __stub___setpgid
68466 choke me
68467 #endif
68468
68469 int
68470 main ()
68471 {
68472 return setpgid ();
68473   ;
68474   return 0;
68475 }
68476 _ACEOF
68477 rm -f conftest.$ac_objext conftest$ac_exeext
68478 if { (ac_try="$ac_link"
68479 case "(($ac_try" in
68480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68481   *) ac_try_echo=$ac_try;;
68482 esac
68483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68484 $as_echo "$ac_try_echo") >&5
68485   (eval "$ac_link") 2>conftest.er1
68486   ac_status=$?
68487   grep -v '^ *+' conftest.er1 >conftest.err
68488   rm -f conftest.er1
68489   cat conftest.err >&5
68490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68491   (exit $ac_status); } && {
68492          test -z "$ac_c_werror_flag" ||
68493          test ! -s conftest.err
68494        } && test -s conftest$ac_exeext && {
68495          test "$cross_compiling" = yes ||
68496          $as_test_x conftest$ac_exeext
68497        }; then
68498   ac_cv_func_setpgid=yes
68499 else
68500   $as_echo "$as_me: failed program was:" >&5
68501 sed 's/^/| /' conftest.$ac_ext >&5
68502
68503         ac_cv_func_setpgid=no
68504 fi
68505
68506 rm -rf conftest.dSYM
68507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68508       conftest$ac_exeext conftest.$ac_ext
68509 fi
68510 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
68511 $as_echo "$ac_cv_func_setpgid" >&6; }
68512 if test "x$ac_cv_func_setpgid" = x""yes; then
68513
68514
68515 cat >>confdefs.h <<\_ACEOF
68516 #define HAVE_SETPGID 1
68517 _ACEOF
68518
68519
68520 ice_have_setpgid=no
68521
68522 for ac_func in setpgid
68523 do
68524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68525 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68526 $as_echo_n "checking for $ac_func... " >&6; }
68527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68528   $as_echo_n "(cached) " >&6
68529 else
68530   cat >conftest.$ac_ext <<_ACEOF
68531 /* confdefs.h.  */
68532 _ACEOF
68533 cat confdefs.h >>conftest.$ac_ext
68534 cat >>conftest.$ac_ext <<_ACEOF
68535 /* end confdefs.h.  */
68536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68538 #define $ac_func innocuous_$ac_func
68539
68540 /* System header to define __stub macros and hopefully few prototypes,
68541     which can conflict with char $ac_func (); below.
68542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68543     <limits.h> exists even on freestanding compilers.  */
68544
68545 #ifdef __STDC__
68546 # include <limits.h>
68547 #else
68548 # include <assert.h>
68549 #endif
68550
68551 #undef $ac_func
68552
68553 /* Override any GCC internal prototype to avoid an error.
68554    Use char because int might match the return type of a GCC
68555    builtin and then its argument prototype would still apply.  */
68556 #ifdef __cplusplus
68557 extern "C"
68558 #endif
68559 char $ac_func ();
68560 /* The GNU C library defines this for functions which it implements
68561     to always fail with ENOSYS.  Some functions are actually named
68562     something starting with __ and the normal name is an alias.  */
68563 #if defined __stub_$ac_func || defined __stub___$ac_func
68564 choke me
68565 #endif
68566
68567 int
68568 main ()
68569 {
68570 return $ac_func ();
68571   ;
68572   return 0;
68573 }
68574 _ACEOF
68575 rm -f conftest.$ac_objext conftest$ac_exeext
68576 if { (ac_try="$ac_link"
68577 case "(($ac_try" in
68578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68579   *) ac_try_echo=$ac_try;;
68580 esac
68581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68582 $as_echo "$ac_try_echo") >&5
68583   (eval "$ac_link") 2>conftest.er1
68584   ac_status=$?
68585   grep -v '^ *+' conftest.er1 >conftest.err
68586   rm -f conftest.er1
68587   cat conftest.err >&5
68588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68589   (exit $ac_status); } && {
68590          test -z "$ac_c_werror_flag" ||
68591          test ! -s conftest.err
68592        } && test -s conftest$ac_exeext && {
68593          test "$cross_compiling" = yes ||
68594          $as_test_x conftest$ac_exeext
68595        }; then
68596   eval "$as_ac_var=yes"
68597 else
68598   $as_echo "$as_me: failed program was:" >&5
68599 sed 's/^/| /' conftest.$ac_ext >&5
68600
68601         eval "$as_ac_var=no"
68602 fi
68603
68604 rm -rf conftest.dSYM
68605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68606       conftest$ac_exeext conftest.$ac_ext
68607 fi
68608 ac_res=`eval 'as_val=${'$as_ac_var'}
68609                  $as_echo "$as_val"'`
68610                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68611 $as_echo "$ac_res" >&6; }
68612 as_val=`eval 'as_val=${'$as_ac_var'}
68613                  $as_echo "$as_val"'`
68614    if test "x$as_val" = x""yes; then
68615   cat >>confdefs.h <<_ACEOF
68616 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68617 _ACEOF
68618  ice_have_setpgid=yes
68619 fi
68620 done
68621
68622 if test "${ice_have_setpgid}" = yes; then
68623 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
68624 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
68625 if test "${ice_cv_have_setpgid_decl+set}" = set; then
68626   $as_echo_n "(cached) " >&6
68627 else
68628
68629 ice_cv_have_setpgid_decl=no
68630 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68631 ice_re_word='(^|[^a-zA-Z0-9_])'
68632 for header in sys/types.h unistd.h; do
68633 # Check for ordinary declaration
68634 cat >conftest.$ac_ext <<_ACEOF
68635 /* confdefs.h.  */
68636 _ACEOF
68637 cat confdefs.h >>conftest.$ac_ext
68638 cat >>conftest.$ac_ext <<_ACEOF
68639 /* end confdefs.h.  */
68640 #include <$header>
68641
68642 _ACEOF
68643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68644   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
68645   ice_cv_have_setpgid_decl=yes
68646 fi
68647 rm -f conftest*
68648
68649 if test "$ice_cv_have_setpgid_decl" = yes; then
68650         break
68651 fi
68652 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68653 cat >conftest.$ac_ext <<_ACEOF
68654 /* confdefs.h.  */
68655 _ACEOF
68656 cat confdefs.h >>conftest.$ac_ext
68657 cat >>conftest.$ac_ext <<_ACEOF
68658 /* end confdefs.h.  */
68659 #include <$header>
68660
68661 _ACEOF
68662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68663   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68664   ice_cv_have_setpgid_decl=yes
68665 fi
68666 rm -f conftest*
68667
68668 if test "$ice_cv_have_setpgid_decl" = yes; then
68669         break
68670 fi
68671 done
68672
68673 fi
68674
68675 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
68676 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
68677 if test "$ice_cv_have_setpgid_decl" = yes; then
68678
68679 cat >>confdefs.h <<_ACEOF
68680 #define HAVE_SETPGID_DECL 1
68681 _ACEOF
68682
68683 fi
68684 fi
68685
68686
68687 fi
68688
68689
68690 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
68691 $as_echo_n "checking for setpgrp... " >&6; }
68692 if test "${ac_cv_func_setpgrp+set}" = set; then
68693   $as_echo_n "(cached) " >&6
68694 else
68695   cat >conftest.$ac_ext <<_ACEOF
68696 /* confdefs.h.  */
68697 _ACEOF
68698 cat confdefs.h >>conftest.$ac_ext
68699 cat >>conftest.$ac_ext <<_ACEOF
68700 /* end confdefs.h.  */
68701 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
68702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68703 #define setpgrp innocuous_setpgrp
68704
68705 /* System header to define __stub macros and hopefully few prototypes,
68706     which can conflict with char setpgrp (); below.
68707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68708     <limits.h> exists even on freestanding compilers.  */
68709
68710 #ifdef __STDC__
68711 # include <limits.h>
68712 #else
68713 # include <assert.h>
68714 #endif
68715
68716 #undef setpgrp
68717
68718 /* Override any GCC internal prototype to avoid an error.
68719    Use char because int might match the return type of a GCC
68720    builtin and then its argument prototype would still apply.  */
68721 #ifdef __cplusplus
68722 extern "C"
68723 #endif
68724 char setpgrp ();
68725 /* The GNU C library defines this for functions which it implements
68726     to always fail with ENOSYS.  Some functions are actually named
68727     something starting with __ and the normal name is an alias.  */
68728 #if defined __stub_setpgrp || defined __stub___setpgrp
68729 choke me
68730 #endif
68731
68732 int
68733 main ()
68734 {
68735 return setpgrp ();
68736   ;
68737   return 0;
68738 }
68739 _ACEOF
68740 rm -f conftest.$ac_objext conftest$ac_exeext
68741 if { (ac_try="$ac_link"
68742 case "(($ac_try" in
68743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68744   *) ac_try_echo=$ac_try;;
68745 esac
68746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68747 $as_echo "$ac_try_echo") >&5
68748   (eval "$ac_link") 2>conftest.er1
68749   ac_status=$?
68750   grep -v '^ *+' conftest.er1 >conftest.err
68751   rm -f conftest.er1
68752   cat conftest.err >&5
68753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68754   (exit $ac_status); } && {
68755          test -z "$ac_c_werror_flag" ||
68756          test ! -s conftest.err
68757        } && test -s conftest$ac_exeext && {
68758          test "$cross_compiling" = yes ||
68759          $as_test_x conftest$ac_exeext
68760        }; then
68761   ac_cv_func_setpgrp=yes
68762 else
68763   $as_echo "$as_me: failed program was:" >&5
68764 sed 's/^/| /' conftest.$ac_ext >&5
68765
68766         ac_cv_func_setpgrp=no
68767 fi
68768
68769 rm -rf conftest.dSYM
68770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68771       conftest$ac_exeext conftest.$ac_ext
68772 fi
68773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
68774 $as_echo "$ac_cv_func_setpgrp" >&6; }
68775 if test "x$ac_cv_func_setpgrp" = x""yes; then
68776   { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
68777 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
68778 if test "${ac_cv_func_setpgrp_void+set}" = set; then
68779   $as_echo_n "(cached) " >&6
68780 else
68781   if test "$cross_compiling" = yes; then
68782   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
68783 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
68784    { (exit 1); exit 1; }; }
68785 else
68786   cat >conftest.$ac_ext <<_ACEOF
68787 /* confdefs.h.  */
68788 _ACEOF
68789 cat confdefs.h >>conftest.$ac_ext
68790 cat >>conftest.$ac_ext <<_ACEOF
68791 /* end confdefs.h.  */
68792 $ac_includes_default
68793 int
68794 main ()
68795 {
68796 /* If this system has a BSD-style setpgrp which takes arguments,
68797   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
68798   exit successfully. */
68799   return setpgrp (1,1) != -1;
68800   ;
68801   return 0;
68802 }
68803 _ACEOF
68804 rm -f conftest$ac_exeext
68805 if { (ac_try="$ac_link"
68806 case "(($ac_try" in
68807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68808   *) ac_try_echo=$ac_try;;
68809 esac
68810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68811 $as_echo "$ac_try_echo") >&5
68812   (eval "$ac_link") 2>&5
68813   ac_status=$?
68814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
68816   { (case "(($ac_try" in
68817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68818   *) ac_try_echo=$ac_try;;
68819 esac
68820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68821 $as_echo "$ac_try_echo") >&5
68822   (eval "$ac_try") 2>&5
68823   ac_status=$?
68824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68825   (exit $ac_status); }; }; then
68826   ac_cv_func_setpgrp_void=no
68827 else
68828   $as_echo "$as_me: program exited with status $ac_status" >&5
68829 $as_echo "$as_me: failed program was:" >&5
68830 sed 's/^/| /' conftest.$ac_ext >&5
68831
68832 ( exit $ac_status )
68833 ac_cv_func_setpgrp_void=yes
68834 fi
68835 rm -rf conftest.dSYM
68836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
68837 fi
68838
68839
68840 fi
68841 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
68842 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
68843 if test $ac_cv_func_setpgrp_void = yes; then
68844
68845 cat >>confdefs.h <<\_ACEOF
68846 #define SETPGRP_VOID 1
68847 _ACEOF
68848
68849 fi
68850
68851 fi
68852
68853
68854 ice_have_setpgrp=no
68855
68856 for ac_func in setpgrp
68857 do
68858 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68859 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68860 $as_echo_n "checking for $ac_func... " >&6; }
68861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68862   $as_echo_n "(cached) " >&6
68863 else
68864   cat >conftest.$ac_ext <<_ACEOF
68865 /* confdefs.h.  */
68866 _ACEOF
68867 cat confdefs.h >>conftest.$ac_ext
68868 cat >>conftest.$ac_ext <<_ACEOF
68869 /* end confdefs.h.  */
68870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68872 #define $ac_func innocuous_$ac_func
68873
68874 /* System header to define __stub macros and hopefully few prototypes,
68875     which can conflict with char $ac_func (); below.
68876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68877     <limits.h> exists even on freestanding compilers.  */
68878
68879 #ifdef __STDC__
68880 # include <limits.h>
68881 #else
68882 # include <assert.h>
68883 #endif
68884
68885 #undef $ac_func
68886
68887 /* Override any GCC internal prototype to avoid an error.
68888    Use char because int might match the return type of a GCC
68889    builtin and then its argument prototype would still apply.  */
68890 #ifdef __cplusplus
68891 extern "C"
68892 #endif
68893 char $ac_func ();
68894 /* The GNU C library defines this for functions which it implements
68895     to always fail with ENOSYS.  Some functions are actually named
68896     something starting with __ and the normal name is an alias.  */
68897 #if defined __stub_$ac_func || defined __stub___$ac_func
68898 choke me
68899 #endif
68900
68901 int
68902 main ()
68903 {
68904 return $ac_func ();
68905   ;
68906   return 0;
68907 }
68908 _ACEOF
68909 rm -f conftest.$ac_objext conftest$ac_exeext
68910 if { (ac_try="$ac_link"
68911 case "(($ac_try" in
68912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68913   *) ac_try_echo=$ac_try;;
68914 esac
68915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68916 $as_echo "$ac_try_echo") >&5
68917   (eval "$ac_link") 2>conftest.er1
68918   ac_status=$?
68919   grep -v '^ *+' conftest.er1 >conftest.err
68920   rm -f conftest.er1
68921   cat conftest.err >&5
68922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68923   (exit $ac_status); } && {
68924          test -z "$ac_c_werror_flag" ||
68925          test ! -s conftest.err
68926        } && test -s conftest$ac_exeext && {
68927          test "$cross_compiling" = yes ||
68928          $as_test_x conftest$ac_exeext
68929        }; then
68930   eval "$as_ac_var=yes"
68931 else
68932   $as_echo "$as_me: failed program was:" >&5
68933 sed 's/^/| /' conftest.$ac_ext >&5
68934
68935         eval "$as_ac_var=no"
68936 fi
68937
68938 rm -rf conftest.dSYM
68939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68940       conftest$ac_exeext conftest.$ac_ext
68941 fi
68942 ac_res=`eval 'as_val=${'$as_ac_var'}
68943                  $as_echo "$as_val"'`
68944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68945 $as_echo "$ac_res" >&6; }
68946 as_val=`eval 'as_val=${'$as_ac_var'}
68947                  $as_echo "$as_val"'`
68948    if test "x$as_val" = x""yes; then
68949   cat >>confdefs.h <<_ACEOF
68950 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68951 _ACEOF
68952  ice_have_setpgrp=yes
68953 fi
68954 done
68955
68956 if test "${ice_have_setpgrp}" = yes; then
68957 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
68958 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
68959 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
68960   $as_echo_n "(cached) " >&6
68961 else
68962
68963 ice_cv_have_setpgrp_decl=no
68964 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68965 ice_re_word='(^|[^a-zA-Z0-9_])'
68966 for header in sys/types.h unistd.h libc.h; do
68967 # Check for ordinary declaration
68968 cat >conftest.$ac_ext <<_ACEOF
68969 /* confdefs.h.  */
68970 _ACEOF
68971 cat confdefs.h >>conftest.$ac_ext
68972 cat >>conftest.$ac_ext <<_ACEOF
68973 /* end confdefs.h.  */
68974 #include <$header>
68975
68976 _ACEOF
68977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68978   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
68979   ice_cv_have_setpgrp_decl=yes
68980 fi
68981 rm -f conftest*
68982
68983 if test "$ice_cv_have_setpgrp_decl" = yes; then
68984         break
68985 fi
68986 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68987 cat >conftest.$ac_ext <<_ACEOF
68988 /* confdefs.h.  */
68989 _ACEOF
68990 cat confdefs.h >>conftest.$ac_ext
68991 cat >>conftest.$ac_ext <<_ACEOF
68992 /* end confdefs.h.  */
68993 #include <$header>
68994
68995 _ACEOF
68996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68997   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68998   ice_cv_have_setpgrp_decl=yes
68999 fi
69000 rm -f conftest*
69001
69002 if test "$ice_cv_have_setpgrp_decl" = yes; then
69003         break
69004 fi
69005 done
69006
69007 fi
69008
69009 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
69010 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
69011 if test "$ice_cv_have_setpgrp_decl" = yes; then
69012
69013 cat >>confdefs.h <<_ACEOF
69014 #define HAVE_SETPGRP_DECL 1
69015 _ACEOF
69016
69017 fi
69018 fi
69019
69020
69021 ice_have_setsockopt=no
69022
69023 for ac_func in setsockopt
69024 do
69025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69026 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69027 $as_echo_n "checking for $ac_func... " >&6; }
69028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69029   $as_echo_n "(cached) " >&6
69030 else
69031   cat >conftest.$ac_ext <<_ACEOF
69032 /* confdefs.h.  */
69033 _ACEOF
69034 cat confdefs.h >>conftest.$ac_ext
69035 cat >>conftest.$ac_ext <<_ACEOF
69036 /* end confdefs.h.  */
69037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69039 #define $ac_func innocuous_$ac_func
69040
69041 /* System header to define __stub macros and hopefully few prototypes,
69042     which can conflict with char $ac_func (); below.
69043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69044     <limits.h> exists even on freestanding compilers.  */
69045
69046 #ifdef __STDC__
69047 # include <limits.h>
69048 #else
69049 # include <assert.h>
69050 #endif
69051
69052 #undef $ac_func
69053
69054 /* Override any GCC internal prototype to avoid an error.
69055    Use char because int might match the return type of a GCC
69056    builtin and then its argument prototype would still apply.  */
69057 #ifdef __cplusplus
69058 extern "C"
69059 #endif
69060 char $ac_func ();
69061 /* The GNU C library defines this for functions which it implements
69062     to always fail with ENOSYS.  Some functions are actually named
69063     something starting with __ and the normal name is an alias.  */
69064 #if defined __stub_$ac_func || defined __stub___$ac_func
69065 choke me
69066 #endif
69067
69068 int
69069 main ()
69070 {
69071 return $ac_func ();
69072   ;
69073   return 0;
69074 }
69075 _ACEOF
69076 rm -f conftest.$ac_objext conftest$ac_exeext
69077 if { (ac_try="$ac_link"
69078 case "(($ac_try" in
69079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69080   *) ac_try_echo=$ac_try;;
69081 esac
69082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69083 $as_echo "$ac_try_echo") >&5
69084   (eval "$ac_link") 2>conftest.er1
69085   ac_status=$?
69086   grep -v '^ *+' conftest.er1 >conftest.err
69087   rm -f conftest.er1
69088   cat conftest.err >&5
69089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69090   (exit $ac_status); } && {
69091          test -z "$ac_c_werror_flag" ||
69092          test ! -s conftest.err
69093        } && test -s conftest$ac_exeext && {
69094          test "$cross_compiling" = yes ||
69095          $as_test_x conftest$ac_exeext
69096        }; then
69097   eval "$as_ac_var=yes"
69098 else
69099   $as_echo "$as_me: failed program was:" >&5
69100 sed 's/^/| /' conftest.$ac_ext >&5
69101
69102         eval "$as_ac_var=no"
69103 fi
69104
69105 rm -rf conftest.dSYM
69106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69107       conftest$ac_exeext conftest.$ac_ext
69108 fi
69109 ac_res=`eval 'as_val=${'$as_ac_var'}
69110                  $as_echo "$as_val"'`
69111                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69112 $as_echo "$ac_res" >&6; }
69113 as_val=`eval 'as_val=${'$as_ac_var'}
69114                  $as_echo "$as_val"'`
69115    if test "x$as_val" = x""yes; then
69116   cat >>confdefs.h <<_ACEOF
69117 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69118 _ACEOF
69119  ice_have_setsockopt=yes
69120 fi
69121 done
69122
69123 if test "${ice_have_setsockopt}" = yes; then
69124 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
69125 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
69126 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
69127   $as_echo_n "(cached) " >&6
69128 else
69129
69130 ice_cv_have_setsockopt_decl=no
69131 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69132 ice_re_word='(^|[^a-zA-Z0-9_])'
69133 for header in sys/types.h sys/socket.h; do
69134 # Check for ordinary declaration
69135 cat >conftest.$ac_ext <<_ACEOF
69136 /* confdefs.h.  */
69137 _ACEOF
69138 cat confdefs.h >>conftest.$ac_ext
69139 cat >>conftest.$ac_ext <<_ACEOF
69140 /* end confdefs.h.  */
69141 #include <$header>
69142
69143 _ACEOF
69144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69145   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
69146   ice_cv_have_setsockopt_decl=yes
69147 fi
69148 rm -f conftest*
69149
69150 if test "$ice_cv_have_setsockopt_decl" = yes; then
69151         break
69152 fi
69153 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69154 cat >conftest.$ac_ext <<_ACEOF
69155 /* confdefs.h.  */
69156 _ACEOF
69157 cat confdefs.h >>conftest.$ac_ext
69158 cat >>conftest.$ac_ext <<_ACEOF
69159 /* end confdefs.h.  */
69160 #include <$header>
69161
69162 _ACEOF
69163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69164   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69165   ice_cv_have_setsockopt_decl=yes
69166 fi
69167 rm -f conftest*
69168
69169 if test "$ice_cv_have_setsockopt_decl" = yes; then
69170         break
69171 fi
69172 done
69173
69174 fi
69175
69176 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
69177 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
69178 if test "$ice_cv_have_setsockopt_decl" = yes; then
69179
69180 cat >>confdefs.h <<_ACEOF
69181 #define HAVE_SETSOCKOPT_DECL 1
69182 _ACEOF
69183
69184 fi
69185 fi
69186
69187
69188
69189
69190 for ac_func in sigaction sigemptyset sigvec
69191 do
69192 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69193 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69194 $as_echo_n "checking for $ac_func... " >&6; }
69195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69196   $as_echo_n "(cached) " >&6
69197 else
69198   cat >conftest.$ac_ext <<_ACEOF
69199 /* confdefs.h.  */
69200 _ACEOF
69201 cat confdefs.h >>conftest.$ac_ext
69202 cat >>conftest.$ac_ext <<_ACEOF
69203 /* end confdefs.h.  */
69204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69206 #define $ac_func innocuous_$ac_func
69207
69208 /* System header to define __stub macros and hopefully few prototypes,
69209     which can conflict with char $ac_func (); below.
69210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69211     <limits.h> exists even on freestanding compilers.  */
69212
69213 #ifdef __STDC__
69214 # include <limits.h>
69215 #else
69216 # include <assert.h>
69217 #endif
69218
69219 #undef $ac_func
69220
69221 /* Override any GCC internal prototype to avoid an error.
69222    Use char because int might match the return type of a GCC
69223    builtin and then its argument prototype would still apply.  */
69224 #ifdef __cplusplus
69225 extern "C"
69226 #endif
69227 char $ac_func ();
69228 /* The GNU C library defines this for functions which it implements
69229     to always fail with ENOSYS.  Some functions are actually named
69230     something starting with __ and the normal name is an alias.  */
69231 #if defined __stub_$ac_func || defined __stub___$ac_func
69232 choke me
69233 #endif
69234
69235 int
69236 main ()
69237 {
69238 return $ac_func ();
69239   ;
69240   return 0;
69241 }
69242 _ACEOF
69243 rm -f conftest.$ac_objext conftest$ac_exeext
69244 if { (ac_try="$ac_link"
69245 case "(($ac_try" in
69246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69247   *) ac_try_echo=$ac_try;;
69248 esac
69249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69250 $as_echo "$ac_try_echo") >&5
69251   (eval "$ac_link") 2>conftest.er1
69252   ac_status=$?
69253   grep -v '^ *+' conftest.er1 >conftest.err
69254   rm -f conftest.er1
69255   cat conftest.err >&5
69256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69257   (exit $ac_status); } && {
69258          test -z "$ac_c_werror_flag" ||
69259          test ! -s conftest.err
69260        } && test -s conftest$ac_exeext && {
69261          test "$cross_compiling" = yes ||
69262          $as_test_x conftest$ac_exeext
69263        }; then
69264   eval "$as_ac_var=yes"
69265 else
69266   $as_echo "$as_me: failed program was:" >&5
69267 sed 's/^/| /' conftest.$ac_ext >&5
69268
69269         eval "$as_ac_var=no"
69270 fi
69271
69272 rm -rf conftest.dSYM
69273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69274       conftest$ac_exeext conftest.$ac_ext
69275 fi
69276 ac_res=`eval 'as_val=${'$as_ac_var'}
69277                  $as_echo "$as_val"'`
69278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69279 $as_echo "$ac_res" >&6; }
69280 as_val=`eval 'as_val=${'$as_ac_var'}
69281                  $as_echo "$as_val"'`
69282    if test "x$as_val" = x""yes; then
69283   cat >>confdefs.h <<_ACEOF
69284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69285 _ACEOF
69286
69287 fi
69288 done
69289
69290
69291 ice_have_socket=no
69292
69293 for ac_func in socket
69294 do
69295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69297 $as_echo_n "checking for $ac_func... " >&6; }
69298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69299   $as_echo_n "(cached) " >&6
69300 else
69301   cat >conftest.$ac_ext <<_ACEOF
69302 /* confdefs.h.  */
69303 _ACEOF
69304 cat confdefs.h >>conftest.$ac_ext
69305 cat >>conftest.$ac_ext <<_ACEOF
69306 /* end confdefs.h.  */
69307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69309 #define $ac_func innocuous_$ac_func
69310
69311 /* System header to define __stub macros and hopefully few prototypes,
69312     which can conflict with char $ac_func (); below.
69313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69314     <limits.h> exists even on freestanding compilers.  */
69315
69316 #ifdef __STDC__
69317 # include <limits.h>
69318 #else
69319 # include <assert.h>
69320 #endif
69321
69322 #undef $ac_func
69323
69324 /* Override any GCC internal prototype to avoid an error.
69325    Use char because int might match the return type of a GCC
69326    builtin and then its argument prototype would still apply.  */
69327 #ifdef __cplusplus
69328 extern "C"
69329 #endif
69330 char $ac_func ();
69331 /* The GNU C library defines this for functions which it implements
69332     to always fail with ENOSYS.  Some functions are actually named
69333     something starting with __ and the normal name is an alias.  */
69334 #if defined __stub_$ac_func || defined __stub___$ac_func
69335 choke me
69336 #endif
69337
69338 int
69339 main ()
69340 {
69341 return $ac_func ();
69342   ;
69343   return 0;
69344 }
69345 _ACEOF
69346 rm -f conftest.$ac_objext conftest$ac_exeext
69347 if { (ac_try="$ac_link"
69348 case "(($ac_try" in
69349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69350   *) ac_try_echo=$ac_try;;
69351 esac
69352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69353 $as_echo "$ac_try_echo") >&5
69354   (eval "$ac_link") 2>conftest.er1
69355   ac_status=$?
69356   grep -v '^ *+' conftest.er1 >conftest.err
69357   rm -f conftest.er1
69358   cat conftest.err >&5
69359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69360   (exit $ac_status); } && {
69361          test -z "$ac_c_werror_flag" ||
69362          test ! -s conftest.err
69363        } && test -s conftest$ac_exeext && {
69364          test "$cross_compiling" = yes ||
69365          $as_test_x conftest$ac_exeext
69366        }; then
69367   eval "$as_ac_var=yes"
69368 else
69369   $as_echo "$as_me: failed program was:" >&5
69370 sed 's/^/| /' conftest.$ac_ext >&5
69371
69372         eval "$as_ac_var=no"
69373 fi
69374
69375 rm -rf conftest.dSYM
69376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69377       conftest$ac_exeext conftest.$ac_ext
69378 fi
69379 ac_res=`eval 'as_val=${'$as_ac_var'}
69380                  $as_echo "$as_val"'`
69381                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69382 $as_echo "$ac_res" >&6; }
69383 as_val=`eval 'as_val=${'$as_ac_var'}
69384                  $as_echo "$as_val"'`
69385    if test "x$as_val" = x""yes; then
69386   cat >>confdefs.h <<_ACEOF
69387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69388 _ACEOF
69389  ice_have_socket=yes
69390 fi
69391 done
69392
69393 if test "${ice_have_socket}" = yes; then
69394 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
69395 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
69396 if test "${ice_cv_have_socket_decl+set}" = set; then
69397   $as_echo_n "(cached) " >&6
69398 else
69399
69400 ice_cv_have_socket_decl=no
69401 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69402 ice_re_word='(^|[^a-zA-Z0-9_])'
69403 for header in sys/types.h sys/socket.h; do
69404 # Check for ordinary declaration
69405 cat >conftest.$ac_ext <<_ACEOF
69406 /* confdefs.h.  */
69407 _ACEOF
69408 cat confdefs.h >>conftest.$ac_ext
69409 cat >>conftest.$ac_ext <<_ACEOF
69410 /* end confdefs.h.  */
69411 #include <$header>
69412
69413 _ACEOF
69414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69415   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
69416   ice_cv_have_socket_decl=yes
69417 fi
69418 rm -f conftest*
69419
69420 if test "$ice_cv_have_socket_decl" = yes; then
69421         break
69422 fi
69423 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69424 cat >conftest.$ac_ext <<_ACEOF
69425 /* confdefs.h.  */
69426 _ACEOF
69427 cat confdefs.h >>conftest.$ac_ext
69428 cat >>conftest.$ac_ext <<_ACEOF
69429 /* end confdefs.h.  */
69430 #include <$header>
69431
69432 _ACEOF
69433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69434   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69435   ice_cv_have_socket_decl=yes
69436 fi
69437 rm -f conftest*
69438
69439 if test "$ice_cv_have_socket_decl" = yes; then
69440         break
69441 fi
69442 done
69443
69444 fi
69445
69446 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
69447 $as_echo "$ice_cv_have_socket_decl" >&6; }
69448 if test "$ice_cv_have_socket_decl" = yes; then
69449
69450 cat >>confdefs.h <<_ACEOF
69451 #define HAVE_SOCKET_DECL 1
69452 _ACEOF
69453
69454 fi
69455 fi
69456
69457
69458 ice_have_socketpair=no
69459
69460 for ac_func in socketpair
69461 do
69462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69464 $as_echo_n "checking for $ac_func... " >&6; }
69465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69466   $as_echo_n "(cached) " >&6
69467 else
69468   cat >conftest.$ac_ext <<_ACEOF
69469 /* confdefs.h.  */
69470 _ACEOF
69471 cat confdefs.h >>conftest.$ac_ext
69472 cat >>conftest.$ac_ext <<_ACEOF
69473 /* end confdefs.h.  */
69474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69476 #define $ac_func innocuous_$ac_func
69477
69478 /* System header to define __stub macros and hopefully few prototypes,
69479     which can conflict with char $ac_func (); below.
69480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69481     <limits.h> exists even on freestanding compilers.  */
69482
69483 #ifdef __STDC__
69484 # include <limits.h>
69485 #else
69486 # include <assert.h>
69487 #endif
69488
69489 #undef $ac_func
69490
69491 /* Override any GCC internal prototype to avoid an error.
69492    Use char because int might match the return type of a GCC
69493    builtin and then its argument prototype would still apply.  */
69494 #ifdef __cplusplus
69495 extern "C"
69496 #endif
69497 char $ac_func ();
69498 /* The GNU C library defines this for functions which it implements
69499     to always fail with ENOSYS.  Some functions are actually named
69500     something starting with __ and the normal name is an alias.  */
69501 #if defined __stub_$ac_func || defined __stub___$ac_func
69502 choke me
69503 #endif
69504
69505 int
69506 main ()
69507 {
69508 return $ac_func ();
69509   ;
69510   return 0;
69511 }
69512 _ACEOF
69513 rm -f conftest.$ac_objext conftest$ac_exeext
69514 if { (ac_try="$ac_link"
69515 case "(($ac_try" in
69516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69517   *) ac_try_echo=$ac_try;;
69518 esac
69519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69520 $as_echo "$ac_try_echo") >&5
69521   (eval "$ac_link") 2>conftest.er1
69522   ac_status=$?
69523   grep -v '^ *+' conftest.er1 >conftest.err
69524   rm -f conftest.er1
69525   cat conftest.err >&5
69526   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69527   (exit $ac_status); } && {
69528          test -z "$ac_c_werror_flag" ||
69529          test ! -s conftest.err
69530        } && test -s conftest$ac_exeext && {
69531          test "$cross_compiling" = yes ||
69532          $as_test_x conftest$ac_exeext
69533        }; then
69534   eval "$as_ac_var=yes"
69535 else
69536   $as_echo "$as_me: failed program was:" >&5
69537 sed 's/^/| /' conftest.$ac_ext >&5
69538
69539         eval "$as_ac_var=no"
69540 fi
69541
69542 rm -rf conftest.dSYM
69543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69544       conftest$ac_exeext conftest.$ac_ext
69545 fi
69546 ac_res=`eval 'as_val=${'$as_ac_var'}
69547                  $as_echo "$as_val"'`
69548                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69549 $as_echo "$ac_res" >&6; }
69550 as_val=`eval 'as_val=${'$as_ac_var'}
69551                  $as_echo "$as_val"'`
69552    if test "x$as_val" = x""yes; then
69553   cat >>confdefs.h <<_ACEOF
69554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69555 _ACEOF
69556  ice_have_socketpair=yes
69557 fi
69558 done
69559
69560 if test "${ice_have_socketpair}" = yes; then
69561 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
69562 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
69563 if test "${ice_cv_have_socketpair_decl+set}" = set; then
69564   $as_echo_n "(cached) " >&6
69565 else
69566
69567 ice_cv_have_socketpair_decl=no
69568 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69569 ice_re_word='(^|[^a-zA-Z0-9_])'
69570 for header in sys/types.h sys/socket.h; do
69571 # Check for ordinary declaration
69572 cat >conftest.$ac_ext <<_ACEOF
69573 /* confdefs.h.  */
69574 _ACEOF
69575 cat confdefs.h >>conftest.$ac_ext
69576 cat >>conftest.$ac_ext <<_ACEOF
69577 /* end confdefs.h.  */
69578 #include <$header>
69579
69580 _ACEOF
69581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69582   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
69583   ice_cv_have_socketpair_decl=yes
69584 fi
69585 rm -f conftest*
69586
69587 if test "$ice_cv_have_socketpair_decl" = yes; then
69588         break
69589 fi
69590 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69591 cat >conftest.$ac_ext <<_ACEOF
69592 /* confdefs.h.  */
69593 _ACEOF
69594 cat confdefs.h >>conftest.$ac_ext
69595 cat >>conftest.$ac_ext <<_ACEOF
69596 /* end confdefs.h.  */
69597 #include <$header>
69598
69599 _ACEOF
69600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69601   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69602   ice_cv_have_socketpair_decl=yes
69603 fi
69604 rm -f conftest*
69605
69606 if test "$ice_cv_have_socketpair_decl" = yes; then
69607         break
69608 fi
69609 done
69610
69611 fi
69612
69613 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
69614 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
69615 if test "$ice_cv_have_socketpair_decl" = yes; then
69616
69617 cat >>confdefs.h <<_ACEOF
69618 #define HAVE_SOCKETPAIR_DECL 1
69619 _ACEOF
69620
69621 fi
69622 fi
69623
69624
69625 ice_have_sscanf=no
69626
69627 for ac_func in sscanf
69628 do
69629 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69630 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69631 $as_echo_n "checking for $ac_func... " >&6; }
69632 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69633   $as_echo_n "(cached) " >&6
69634 else
69635   cat >conftest.$ac_ext <<_ACEOF
69636 /* confdefs.h.  */
69637 _ACEOF
69638 cat confdefs.h >>conftest.$ac_ext
69639 cat >>conftest.$ac_ext <<_ACEOF
69640 /* end confdefs.h.  */
69641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69643 #define $ac_func innocuous_$ac_func
69644
69645 /* System header to define __stub macros and hopefully few prototypes,
69646     which can conflict with char $ac_func (); below.
69647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69648     <limits.h> exists even on freestanding compilers.  */
69649
69650 #ifdef __STDC__
69651 # include <limits.h>
69652 #else
69653 # include <assert.h>
69654 #endif
69655
69656 #undef $ac_func
69657
69658 /* Override any GCC internal prototype to avoid an error.
69659    Use char because int might match the return type of a GCC
69660    builtin and then its argument prototype would still apply.  */
69661 #ifdef __cplusplus
69662 extern "C"
69663 #endif
69664 char $ac_func ();
69665 /* The GNU C library defines this for functions which it implements
69666     to always fail with ENOSYS.  Some functions are actually named
69667     something starting with __ and the normal name is an alias.  */
69668 #if defined __stub_$ac_func || defined __stub___$ac_func
69669 choke me
69670 #endif
69671
69672 int
69673 main ()
69674 {
69675 return $ac_func ();
69676   ;
69677   return 0;
69678 }
69679 _ACEOF
69680 rm -f conftest.$ac_objext conftest$ac_exeext
69681 if { (ac_try="$ac_link"
69682 case "(($ac_try" in
69683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69684   *) ac_try_echo=$ac_try;;
69685 esac
69686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69687 $as_echo "$ac_try_echo") >&5
69688   (eval "$ac_link") 2>conftest.er1
69689   ac_status=$?
69690   grep -v '^ *+' conftest.er1 >conftest.err
69691   rm -f conftest.er1
69692   cat conftest.err >&5
69693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69694   (exit $ac_status); } && {
69695          test -z "$ac_c_werror_flag" ||
69696          test ! -s conftest.err
69697        } && test -s conftest$ac_exeext && {
69698          test "$cross_compiling" = yes ||
69699          $as_test_x conftest$ac_exeext
69700        }; then
69701   eval "$as_ac_var=yes"
69702 else
69703   $as_echo "$as_me: failed program was:" >&5
69704 sed 's/^/| /' conftest.$ac_ext >&5
69705
69706         eval "$as_ac_var=no"
69707 fi
69708
69709 rm -rf conftest.dSYM
69710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69711       conftest$ac_exeext conftest.$ac_ext
69712 fi
69713 ac_res=`eval 'as_val=${'$as_ac_var'}
69714                  $as_echo "$as_val"'`
69715                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69716 $as_echo "$ac_res" >&6; }
69717 as_val=`eval 'as_val=${'$as_ac_var'}
69718                  $as_echo "$as_val"'`
69719    if test "x$as_val" = x""yes; then
69720   cat >>confdefs.h <<_ACEOF
69721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69722 _ACEOF
69723  ice_have_sscanf=yes
69724 fi
69725 done
69726
69727 if test "${ice_have_sscanf}" = yes; then
69728 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
69729 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
69730 if test "${ice_cv_have_sscanf_decl+set}" = set; then
69731   $as_echo_n "(cached) " >&6
69732 else
69733
69734 ice_cv_have_sscanf_decl=no
69735 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69736 ice_re_word='(^|[^a-zA-Z0-9_])'
69737 for header in stdio.h; do
69738 # Check for ordinary declaration
69739 cat >conftest.$ac_ext <<_ACEOF
69740 /* confdefs.h.  */
69741 _ACEOF
69742 cat confdefs.h >>conftest.$ac_ext
69743 cat >>conftest.$ac_ext <<_ACEOF
69744 /* end confdefs.h.  */
69745 #include <$header>
69746
69747 _ACEOF
69748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69749   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
69750   ice_cv_have_sscanf_decl=yes
69751 fi
69752 rm -f conftest*
69753
69754 if test "$ice_cv_have_sscanf_decl" = yes; then
69755         break
69756 fi
69757 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69758 cat >conftest.$ac_ext <<_ACEOF
69759 /* confdefs.h.  */
69760 _ACEOF
69761 cat confdefs.h >>conftest.$ac_ext
69762 cat >>conftest.$ac_ext <<_ACEOF
69763 /* end confdefs.h.  */
69764 #include <$header>
69765
69766 _ACEOF
69767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69768   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69769   ice_cv_have_sscanf_decl=yes
69770 fi
69771 rm -f conftest*
69772
69773 if test "$ice_cv_have_sscanf_decl" = yes; then
69774         break
69775 fi
69776 done
69777
69778 fi
69779
69780 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
69781 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
69782 if test "$ice_cv_have_sscanf_decl" = yes; then
69783
69784 cat >>confdefs.h <<_ACEOF
69785 #define HAVE_SSCANF_DECL 1
69786 _ACEOF
69787
69788 fi
69789 fi
69790
69791
69792 ice_have_strerror=no
69793
69794 for ac_func in strerror
69795 do
69796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69797 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69798 $as_echo_n "checking for $ac_func... " >&6; }
69799 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69800   $as_echo_n "(cached) " >&6
69801 else
69802   cat >conftest.$ac_ext <<_ACEOF
69803 /* confdefs.h.  */
69804 _ACEOF
69805 cat confdefs.h >>conftest.$ac_ext
69806 cat >>conftest.$ac_ext <<_ACEOF
69807 /* end confdefs.h.  */
69808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69810 #define $ac_func innocuous_$ac_func
69811
69812 /* System header to define __stub macros and hopefully few prototypes,
69813     which can conflict with char $ac_func (); below.
69814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69815     <limits.h> exists even on freestanding compilers.  */
69816
69817 #ifdef __STDC__
69818 # include <limits.h>
69819 #else
69820 # include <assert.h>
69821 #endif
69822
69823 #undef $ac_func
69824
69825 /* Override any GCC internal prototype to avoid an error.
69826    Use char because int might match the return type of a GCC
69827    builtin and then its argument prototype would still apply.  */
69828 #ifdef __cplusplus
69829 extern "C"
69830 #endif
69831 char $ac_func ();
69832 /* The GNU C library defines this for functions which it implements
69833     to always fail with ENOSYS.  Some functions are actually named
69834     something starting with __ and the normal name is an alias.  */
69835 #if defined __stub_$ac_func || defined __stub___$ac_func
69836 choke me
69837 #endif
69838
69839 int
69840 main ()
69841 {
69842 return $ac_func ();
69843   ;
69844   return 0;
69845 }
69846 _ACEOF
69847 rm -f conftest.$ac_objext conftest$ac_exeext
69848 if { (ac_try="$ac_link"
69849 case "(($ac_try" in
69850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69851   *) ac_try_echo=$ac_try;;
69852 esac
69853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69854 $as_echo "$ac_try_echo") >&5
69855   (eval "$ac_link") 2>conftest.er1
69856   ac_status=$?
69857   grep -v '^ *+' conftest.er1 >conftest.err
69858   rm -f conftest.er1
69859   cat conftest.err >&5
69860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69861   (exit $ac_status); } && {
69862          test -z "$ac_c_werror_flag" ||
69863          test ! -s conftest.err
69864        } && test -s conftest$ac_exeext && {
69865          test "$cross_compiling" = yes ||
69866          $as_test_x conftest$ac_exeext
69867        }; then
69868   eval "$as_ac_var=yes"
69869 else
69870   $as_echo "$as_me: failed program was:" >&5
69871 sed 's/^/| /' conftest.$ac_ext >&5
69872
69873         eval "$as_ac_var=no"
69874 fi
69875
69876 rm -rf conftest.dSYM
69877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69878       conftest$ac_exeext conftest.$ac_ext
69879 fi
69880 ac_res=`eval 'as_val=${'$as_ac_var'}
69881                  $as_echo "$as_val"'`
69882                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69883 $as_echo "$ac_res" >&6; }
69884 as_val=`eval 'as_val=${'$as_ac_var'}
69885                  $as_echo "$as_val"'`
69886    if test "x$as_val" = x""yes; then
69887   cat >>confdefs.h <<_ACEOF
69888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69889 _ACEOF
69890  ice_have_strerror=yes
69891 fi
69892 done
69893
69894 if test "${ice_have_strerror}" = yes; then
69895 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
69896 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
69897 if test "${ice_cv_have_strerror_decl+set}" = set; then
69898   $as_echo_n "(cached) " >&6
69899 else
69900
69901 ice_cv_have_strerror_decl=no
69902 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69903 ice_re_word='(^|[^a-zA-Z0-9_])'
69904 for header in string.h strings.h; do
69905 # Check for ordinary declaration
69906 cat >conftest.$ac_ext <<_ACEOF
69907 /* confdefs.h.  */
69908 _ACEOF
69909 cat confdefs.h >>conftest.$ac_ext
69910 cat >>conftest.$ac_ext <<_ACEOF
69911 /* end confdefs.h.  */
69912 #include <$header>
69913
69914 _ACEOF
69915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69916   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
69917   ice_cv_have_strerror_decl=yes
69918 fi
69919 rm -f conftest*
69920
69921 if test "$ice_cv_have_strerror_decl" = yes; then
69922         break
69923 fi
69924 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69925 cat >conftest.$ac_ext <<_ACEOF
69926 /* confdefs.h.  */
69927 _ACEOF
69928 cat confdefs.h >>conftest.$ac_ext
69929 cat >>conftest.$ac_ext <<_ACEOF
69930 /* end confdefs.h.  */
69931 #include <$header>
69932
69933 _ACEOF
69934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69935   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69936   ice_cv_have_strerror_decl=yes
69937 fi
69938 rm -f conftest*
69939
69940 if test "$ice_cv_have_strerror_decl" = yes; then
69941         break
69942 fi
69943 done
69944
69945 fi
69946
69947 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
69948 $as_echo "$ice_cv_have_strerror_decl" >&6; }
69949 if test "$ice_cv_have_strerror_decl" = yes; then
69950
69951 cat >>confdefs.h <<_ACEOF
69952 #define HAVE_STRERROR_DECL 1
69953 _ACEOF
69954
69955 fi
69956 fi
69957
69958
69959 for ac_func in strftime
69960 do
69961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69962 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69963 $as_echo_n "checking for $ac_func... " >&6; }
69964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69965   $as_echo_n "(cached) " >&6
69966 else
69967   cat >conftest.$ac_ext <<_ACEOF
69968 /* confdefs.h.  */
69969 _ACEOF
69970 cat confdefs.h >>conftest.$ac_ext
69971 cat >>conftest.$ac_ext <<_ACEOF
69972 /* end confdefs.h.  */
69973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69975 #define $ac_func innocuous_$ac_func
69976
69977 /* System header to define __stub macros and hopefully few prototypes,
69978     which can conflict with char $ac_func (); below.
69979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69980     <limits.h> exists even on freestanding compilers.  */
69981
69982 #ifdef __STDC__
69983 # include <limits.h>
69984 #else
69985 # include <assert.h>
69986 #endif
69987
69988 #undef $ac_func
69989
69990 /* Override any GCC internal prototype to avoid an error.
69991    Use char because int might match the return type of a GCC
69992    builtin and then its argument prototype would still apply.  */
69993 #ifdef __cplusplus
69994 extern "C"
69995 #endif
69996 char $ac_func ();
69997 /* The GNU C library defines this for functions which it implements
69998     to always fail with ENOSYS.  Some functions are actually named
69999     something starting with __ and the normal name is an alias.  */
70000 #if defined __stub_$ac_func || defined __stub___$ac_func
70001 choke me
70002 #endif
70003
70004 int
70005 main ()
70006 {
70007 return $ac_func ();
70008   ;
70009   return 0;
70010 }
70011 _ACEOF
70012 rm -f conftest.$ac_objext conftest$ac_exeext
70013 if { (ac_try="$ac_link"
70014 case "(($ac_try" in
70015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70016   *) ac_try_echo=$ac_try;;
70017 esac
70018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70019 $as_echo "$ac_try_echo") >&5
70020   (eval "$ac_link") 2>conftest.er1
70021   ac_status=$?
70022   grep -v '^ *+' conftest.er1 >conftest.err
70023   rm -f conftest.er1
70024   cat conftest.err >&5
70025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70026   (exit $ac_status); } && {
70027          test -z "$ac_c_werror_flag" ||
70028          test ! -s conftest.err
70029        } && test -s conftest$ac_exeext && {
70030          test "$cross_compiling" = yes ||
70031          $as_test_x conftest$ac_exeext
70032        }; then
70033   eval "$as_ac_var=yes"
70034 else
70035   $as_echo "$as_me: failed program was:" >&5
70036 sed 's/^/| /' conftest.$ac_ext >&5
70037
70038         eval "$as_ac_var=no"
70039 fi
70040
70041 rm -rf conftest.dSYM
70042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70043       conftest$ac_exeext conftest.$ac_ext
70044 fi
70045 ac_res=`eval 'as_val=${'$as_ac_var'}
70046                  $as_echo "$as_val"'`
70047                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70048 $as_echo "$ac_res" >&6; }
70049 as_val=`eval 'as_val=${'$as_ac_var'}
70050                  $as_echo "$as_val"'`
70051    if test "x$as_val" = x""yes; then
70052   cat >>confdefs.h <<_ACEOF
70053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70054 _ACEOF
70055
70056 else
70057   # strftime is in -lintl on SCO UNIX.
70058 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
70059 $as_echo_n "checking for strftime in -lintl... " >&6; }
70060 if test "${ac_cv_lib_intl_strftime+set}" = set; then
70061   $as_echo_n "(cached) " >&6
70062 else
70063   ac_check_lib_save_LIBS=$LIBS
70064 LIBS="-lintl  $LIBS"
70065 cat >conftest.$ac_ext <<_ACEOF
70066 /* confdefs.h.  */
70067 _ACEOF
70068 cat confdefs.h >>conftest.$ac_ext
70069 cat >>conftest.$ac_ext <<_ACEOF
70070 /* end confdefs.h.  */
70071
70072 /* Override any GCC internal prototype to avoid an error.
70073    Use char because int might match the return type of a GCC
70074    builtin and then its argument prototype would still apply.  */
70075 #ifdef __cplusplus
70076 extern "C"
70077 #endif
70078 char strftime ();
70079 int
70080 main ()
70081 {
70082 return strftime ();
70083   ;
70084   return 0;
70085 }
70086 _ACEOF
70087 rm -f conftest.$ac_objext conftest$ac_exeext
70088 if { (ac_try="$ac_link"
70089 case "(($ac_try" in
70090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70091   *) ac_try_echo=$ac_try;;
70092 esac
70093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70094 $as_echo "$ac_try_echo") >&5
70095   (eval "$ac_link") 2>conftest.er1
70096   ac_status=$?
70097   grep -v '^ *+' conftest.er1 >conftest.err
70098   rm -f conftest.er1
70099   cat conftest.err >&5
70100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70101   (exit $ac_status); } && {
70102          test -z "$ac_c_werror_flag" ||
70103          test ! -s conftest.err
70104        } && test -s conftest$ac_exeext && {
70105          test "$cross_compiling" = yes ||
70106          $as_test_x conftest$ac_exeext
70107        }; then
70108   ac_cv_lib_intl_strftime=yes
70109 else
70110   $as_echo "$as_me: failed program was:" >&5
70111 sed 's/^/| /' conftest.$ac_ext >&5
70112
70113         ac_cv_lib_intl_strftime=no
70114 fi
70115
70116 rm -rf conftest.dSYM
70117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70118       conftest$ac_exeext conftest.$ac_ext
70119 LIBS=$ac_check_lib_save_LIBS
70120 fi
70121 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
70122 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
70123 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
70124   cat >>confdefs.h <<\_ACEOF
70125 #define HAVE_STRFTIME 1
70126 _ACEOF
70127
70128 LIBS="-lintl $LIBS"
70129 fi
70130
70131 fi
70132 done
70133
70134
70135 ice_have_strftime=no
70136
70137 for ac_func in strftime
70138 do
70139 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70140 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70141 $as_echo_n "checking for $ac_func... " >&6; }
70142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70143   $as_echo_n "(cached) " >&6
70144 else
70145   cat >conftest.$ac_ext <<_ACEOF
70146 /* confdefs.h.  */
70147 _ACEOF
70148 cat confdefs.h >>conftest.$ac_ext
70149 cat >>conftest.$ac_ext <<_ACEOF
70150 /* end confdefs.h.  */
70151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70153 #define $ac_func innocuous_$ac_func
70154
70155 /* System header to define __stub macros and hopefully few prototypes,
70156     which can conflict with char $ac_func (); below.
70157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70158     <limits.h> exists even on freestanding compilers.  */
70159
70160 #ifdef __STDC__
70161 # include <limits.h>
70162 #else
70163 # include <assert.h>
70164 #endif
70165
70166 #undef $ac_func
70167
70168 /* Override any GCC internal prototype to avoid an error.
70169    Use char because int might match the return type of a GCC
70170    builtin and then its argument prototype would still apply.  */
70171 #ifdef __cplusplus
70172 extern "C"
70173 #endif
70174 char $ac_func ();
70175 /* The GNU C library defines this for functions which it implements
70176     to always fail with ENOSYS.  Some functions are actually named
70177     something starting with __ and the normal name is an alias.  */
70178 #if defined __stub_$ac_func || defined __stub___$ac_func
70179 choke me
70180 #endif
70181
70182 int
70183 main ()
70184 {
70185 return $ac_func ();
70186   ;
70187   return 0;
70188 }
70189 _ACEOF
70190 rm -f conftest.$ac_objext conftest$ac_exeext
70191 if { (ac_try="$ac_link"
70192 case "(($ac_try" in
70193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70194   *) ac_try_echo=$ac_try;;
70195 esac
70196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70197 $as_echo "$ac_try_echo") >&5
70198   (eval "$ac_link") 2>conftest.er1
70199   ac_status=$?
70200   grep -v '^ *+' conftest.er1 >conftest.err
70201   rm -f conftest.er1
70202   cat conftest.err >&5
70203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70204   (exit $ac_status); } && {
70205          test -z "$ac_c_werror_flag" ||
70206          test ! -s conftest.err
70207        } && test -s conftest$ac_exeext && {
70208          test "$cross_compiling" = yes ||
70209          $as_test_x conftest$ac_exeext
70210        }; then
70211   eval "$as_ac_var=yes"
70212 else
70213   $as_echo "$as_me: failed program was:" >&5
70214 sed 's/^/| /' conftest.$ac_ext >&5
70215
70216         eval "$as_ac_var=no"
70217 fi
70218
70219 rm -rf conftest.dSYM
70220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70221       conftest$ac_exeext conftest.$ac_ext
70222 fi
70223 ac_res=`eval 'as_val=${'$as_ac_var'}
70224                  $as_echo "$as_val"'`
70225                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70226 $as_echo "$ac_res" >&6; }
70227 as_val=`eval 'as_val=${'$as_ac_var'}
70228                  $as_echo "$as_val"'`
70229    if test "x$as_val" = x""yes; then
70230   cat >>confdefs.h <<_ACEOF
70231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70232 _ACEOF
70233  ice_have_strftime=yes
70234 fi
70235 done
70236
70237 if test "${ice_have_strftime}" = yes; then
70238 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
70239 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
70240 if test "${ice_cv_have_strftime_decl+set}" = set; then
70241   $as_echo_n "(cached) " >&6
70242 else
70243
70244 ice_cv_have_strftime_decl=no
70245 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70246 ice_re_word='(^|[^a-zA-Z0-9_])'
70247 for header in time.h sys/time.h; do
70248 # Check for ordinary declaration
70249 cat >conftest.$ac_ext <<_ACEOF
70250 /* confdefs.h.  */
70251 _ACEOF
70252 cat confdefs.h >>conftest.$ac_ext
70253 cat >>conftest.$ac_ext <<_ACEOF
70254 /* end confdefs.h.  */
70255 #include <$header>
70256
70257 _ACEOF
70258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70259   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
70260   ice_cv_have_strftime_decl=yes
70261 fi
70262 rm -f conftest*
70263
70264 if test "$ice_cv_have_strftime_decl" = yes; then
70265         break
70266 fi
70267 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70268 cat >conftest.$ac_ext <<_ACEOF
70269 /* confdefs.h.  */
70270 _ACEOF
70271 cat confdefs.h >>conftest.$ac_ext
70272 cat >>conftest.$ac_ext <<_ACEOF
70273 /* end confdefs.h.  */
70274 #include <$header>
70275
70276 _ACEOF
70277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70278   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70279   ice_cv_have_strftime_decl=yes
70280 fi
70281 rm -f conftest*
70282
70283 if test "$ice_cv_have_strftime_decl" = yes; then
70284         break
70285 fi
70286 done
70287
70288 fi
70289
70290 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
70291 $as_echo "$ice_cv_have_strftime_decl" >&6; }
70292 if test "$ice_cv_have_strftime_decl" = yes; then
70293
70294 cat >>confdefs.h <<_ACEOF
70295 #define HAVE_STRFTIME_DECL 1
70296 _ACEOF
70297
70298 fi
70299 fi
70300
70301
70302 ice_have_strncasecmp=no
70303
70304 for ac_func in strncasecmp
70305 do
70306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70307 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70308 $as_echo_n "checking for $ac_func... " >&6; }
70309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70310   $as_echo_n "(cached) " >&6
70311 else
70312   cat >conftest.$ac_ext <<_ACEOF
70313 /* confdefs.h.  */
70314 _ACEOF
70315 cat confdefs.h >>conftest.$ac_ext
70316 cat >>conftest.$ac_ext <<_ACEOF
70317 /* end confdefs.h.  */
70318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70320 #define $ac_func innocuous_$ac_func
70321
70322 /* System header to define __stub macros and hopefully few prototypes,
70323     which can conflict with char $ac_func (); below.
70324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70325     <limits.h> exists even on freestanding compilers.  */
70326
70327 #ifdef __STDC__
70328 # include <limits.h>
70329 #else
70330 # include <assert.h>
70331 #endif
70332
70333 #undef $ac_func
70334
70335 /* Override any GCC internal prototype to avoid an error.
70336    Use char because int might match the return type of a GCC
70337    builtin and then its argument prototype would still apply.  */
70338 #ifdef __cplusplus
70339 extern "C"
70340 #endif
70341 char $ac_func ();
70342 /* The GNU C library defines this for functions which it implements
70343     to always fail with ENOSYS.  Some functions are actually named
70344     something starting with __ and the normal name is an alias.  */
70345 #if defined __stub_$ac_func || defined __stub___$ac_func
70346 choke me
70347 #endif
70348
70349 int
70350 main ()
70351 {
70352 return $ac_func ();
70353   ;
70354   return 0;
70355 }
70356 _ACEOF
70357 rm -f conftest.$ac_objext conftest$ac_exeext
70358 if { (ac_try="$ac_link"
70359 case "(($ac_try" in
70360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70361   *) ac_try_echo=$ac_try;;
70362 esac
70363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70364 $as_echo "$ac_try_echo") >&5
70365   (eval "$ac_link") 2>conftest.er1
70366   ac_status=$?
70367   grep -v '^ *+' conftest.er1 >conftest.err
70368   rm -f conftest.er1
70369   cat conftest.err >&5
70370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70371   (exit $ac_status); } && {
70372          test -z "$ac_c_werror_flag" ||
70373          test ! -s conftest.err
70374        } && test -s conftest$ac_exeext && {
70375          test "$cross_compiling" = yes ||
70376          $as_test_x conftest$ac_exeext
70377        }; then
70378   eval "$as_ac_var=yes"
70379 else
70380   $as_echo "$as_me: failed program was:" >&5
70381 sed 's/^/| /' conftest.$ac_ext >&5
70382
70383         eval "$as_ac_var=no"
70384 fi
70385
70386 rm -rf conftest.dSYM
70387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70388       conftest$ac_exeext conftest.$ac_ext
70389 fi
70390 ac_res=`eval 'as_val=${'$as_ac_var'}
70391                  $as_echo "$as_val"'`
70392                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70393 $as_echo "$ac_res" >&6; }
70394 as_val=`eval 'as_val=${'$as_ac_var'}
70395                  $as_echo "$as_val"'`
70396    if test "x$as_val" = x""yes; then
70397   cat >>confdefs.h <<_ACEOF
70398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70399 _ACEOF
70400  ice_have_strncasecmp=yes
70401 fi
70402 done
70403
70404 if test "${ice_have_strncasecmp}" = yes; then
70405 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
70406 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
70407 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
70408   $as_echo_n "(cached) " >&6
70409 else
70410
70411 ice_cv_have_strncasecmp_decl=no
70412 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70413 ice_re_word='(^|[^a-zA-Z0-9_])'
70414 for header in string.h strings.h; do
70415 # Check for ordinary declaration
70416 cat >conftest.$ac_ext <<_ACEOF
70417 /* confdefs.h.  */
70418 _ACEOF
70419 cat confdefs.h >>conftest.$ac_ext
70420 cat >>conftest.$ac_ext <<_ACEOF
70421 /* end confdefs.h.  */
70422 #include <$header>
70423
70424 _ACEOF
70425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70426   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
70427   ice_cv_have_strncasecmp_decl=yes
70428 fi
70429 rm -f conftest*
70430
70431 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70432         break
70433 fi
70434 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70435 cat >conftest.$ac_ext <<_ACEOF
70436 /* confdefs.h.  */
70437 _ACEOF
70438 cat confdefs.h >>conftest.$ac_ext
70439 cat >>conftest.$ac_ext <<_ACEOF
70440 /* end confdefs.h.  */
70441 #include <$header>
70442
70443 _ACEOF
70444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70445   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70446   ice_cv_have_strncasecmp_decl=yes
70447 fi
70448 rm -f conftest*
70449
70450 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70451         break
70452 fi
70453 done
70454
70455 fi
70456
70457 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
70458 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
70459 if test "$ice_cv_have_strncasecmp_decl" = yes; then
70460
70461 cat >>confdefs.h <<_ACEOF
70462 #define HAVE_STRNCASECMP_DECL 1
70463 _ACEOF
70464
70465 fi
70466 fi
70467
70468
70469 ice_have_syslog=no
70470
70471 for ac_func in syslog
70472 do
70473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70475 $as_echo_n "checking for $ac_func... " >&6; }
70476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70477   $as_echo_n "(cached) " >&6
70478 else
70479   cat >conftest.$ac_ext <<_ACEOF
70480 /* confdefs.h.  */
70481 _ACEOF
70482 cat confdefs.h >>conftest.$ac_ext
70483 cat >>conftest.$ac_ext <<_ACEOF
70484 /* end confdefs.h.  */
70485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70487 #define $ac_func innocuous_$ac_func
70488
70489 /* System header to define __stub macros and hopefully few prototypes,
70490     which can conflict with char $ac_func (); below.
70491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70492     <limits.h> exists even on freestanding compilers.  */
70493
70494 #ifdef __STDC__
70495 # include <limits.h>
70496 #else
70497 # include <assert.h>
70498 #endif
70499
70500 #undef $ac_func
70501
70502 /* Override any GCC internal prototype to avoid an error.
70503    Use char because int might match the return type of a GCC
70504    builtin and then its argument prototype would still apply.  */
70505 #ifdef __cplusplus
70506 extern "C"
70507 #endif
70508 char $ac_func ();
70509 /* The GNU C library defines this for functions which it implements
70510     to always fail with ENOSYS.  Some functions are actually named
70511     something starting with __ and the normal name is an alias.  */
70512 #if defined __stub_$ac_func || defined __stub___$ac_func
70513 choke me
70514 #endif
70515
70516 int
70517 main ()
70518 {
70519 return $ac_func ();
70520   ;
70521   return 0;
70522 }
70523 _ACEOF
70524 rm -f conftest.$ac_objext conftest$ac_exeext
70525 if { (ac_try="$ac_link"
70526 case "(($ac_try" in
70527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70528   *) ac_try_echo=$ac_try;;
70529 esac
70530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70531 $as_echo "$ac_try_echo") >&5
70532   (eval "$ac_link") 2>conftest.er1
70533   ac_status=$?
70534   grep -v '^ *+' conftest.er1 >conftest.err
70535   rm -f conftest.er1
70536   cat conftest.err >&5
70537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70538   (exit $ac_status); } && {
70539          test -z "$ac_c_werror_flag" ||
70540          test ! -s conftest.err
70541        } && test -s conftest$ac_exeext && {
70542          test "$cross_compiling" = yes ||
70543          $as_test_x conftest$ac_exeext
70544        }; then
70545   eval "$as_ac_var=yes"
70546 else
70547   $as_echo "$as_me: failed program was:" >&5
70548 sed 's/^/| /' conftest.$ac_ext >&5
70549
70550         eval "$as_ac_var=no"
70551 fi
70552
70553 rm -rf conftest.dSYM
70554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70555       conftest$ac_exeext conftest.$ac_ext
70556 fi
70557 ac_res=`eval 'as_val=${'$as_ac_var'}
70558                  $as_echo "$as_val"'`
70559                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70560 $as_echo "$ac_res" >&6; }
70561 as_val=`eval 'as_val=${'$as_ac_var'}
70562                  $as_echo "$as_val"'`
70563    if test "x$as_val" = x""yes; then
70564   cat >>confdefs.h <<_ACEOF
70565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70566 _ACEOF
70567  ice_have_syslog=yes
70568 fi
70569 done
70570
70571 if test "${ice_have_syslog}" = yes; then
70572 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
70573 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
70574 if test "${ice_cv_have_syslog_decl+set}" = set; then
70575   $as_echo_n "(cached) " >&6
70576 else
70577
70578 ice_cv_have_syslog_decl=no
70579 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70580 ice_re_word='(^|[^a-zA-Z0-9_])'
70581 for header in syslog.h; do
70582 # Check for ordinary declaration
70583 cat >conftest.$ac_ext <<_ACEOF
70584 /* confdefs.h.  */
70585 _ACEOF
70586 cat confdefs.h >>conftest.$ac_ext
70587 cat >>conftest.$ac_ext <<_ACEOF
70588 /* end confdefs.h.  */
70589 #include <$header>
70590
70591 _ACEOF
70592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70593   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
70594   ice_cv_have_syslog_decl=yes
70595 fi
70596 rm -f conftest*
70597
70598 if test "$ice_cv_have_syslog_decl" = yes; then
70599         break
70600 fi
70601 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70602 cat >conftest.$ac_ext <<_ACEOF
70603 /* confdefs.h.  */
70604 _ACEOF
70605 cat confdefs.h >>conftest.$ac_ext
70606 cat >>conftest.$ac_ext <<_ACEOF
70607 /* end confdefs.h.  */
70608 #include <$header>
70609
70610 _ACEOF
70611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70612   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70613   ice_cv_have_syslog_decl=yes
70614 fi
70615 rm -f conftest*
70616
70617 if test "$ice_cv_have_syslog_decl" = yes; then
70618         break
70619 fi
70620 done
70621
70622 fi
70623
70624 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
70625 $as_echo "$ice_cv_have_syslog_decl" >&6; }
70626 if test "$ice_cv_have_syslog_decl" = yes; then
70627
70628 cat >>confdefs.h <<_ACEOF
70629 #define HAVE_SYSLOG_DECL 1
70630 _ACEOF
70631
70632 fi
70633 fi
70634
70635
70636 ice_have_system=no
70637
70638 for ac_func in system
70639 do
70640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70641 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70642 $as_echo_n "checking for $ac_func... " >&6; }
70643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70644   $as_echo_n "(cached) " >&6
70645 else
70646   cat >conftest.$ac_ext <<_ACEOF
70647 /* confdefs.h.  */
70648 _ACEOF
70649 cat confdefs.h >>conftest.$ac_ext
70650 cat >>conftest.$ac_ext <<_ACEOF
70651 /* end confdefs.h.  */
70652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70654 #define $ac_func innocuous_$ac_func
70655
70656 /* System header to define __stub macros and hopefully few prototypes,
70657     which can conflict with char $ac_func (); below.
70658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70659     <limits.h> exists even on freestanding compilers.  */
70660
70661 #ifdef __STDC__
70662 # include <limits.h>
70663 #else
70664 # include <assert.h>
70665 #endif
70666
70667 #undef $ac_func
70668
70669 /* Override any GCC internal prototype to avoid an error.
70670    Use char because int might match the return type of a GCC
70671    builtin and then its argument prototype would still apply.  */
70672 #ifdef __cplusplus
70673 extern "C"
70674 #endif
70675 char $ac_func ();
70676 /* The GNU C library defines this for functions which it implements
70677     to always fail with ENOSYS.  Some functions are actually named
70678     something starting with __ and the normal name is an alias.  */
70679 #if defined __stub_$ac_func || defined __stub___$ac_func
70680 choke me
70681 #endif
70682
70683 int
70684 main ()
70685 {
70686 return $ac_func ();
70687   ;
70688   return 0;
70689 }
70690 _ACEOF
70691 rm -f conftest.$ac_objext conftest$ac_exeext
70692 if { (ac_try="$ac_link"
70693 case "(($ac_try" in
70694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70695   *) ac_try_echo=$ac_try;;
70696 esac
70697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70698 $as_echo "$ac_try_echo") >&5
70699   (eval "$ac_link") 2>conftest.er1
70700   ac_status=$?
70701   grep -v '^ *+' conftest.er1 >conftest.err
70702   rm -f conftest.er1
70703   cat conftest.err >&5
70704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70705   (exit $ac_status); } && {
70706          test -z "$ac_c_werror_flag" ||
70707          test ! -s conftest.err
70708        } && test -s conftest$ac_exeext && {
70709          test "$cross_compiling" = yes ||
70710          $as_test_x conftest$ac_exeext
70711        }; then
70712   eval "$as_ac_var=yes"
70713 else
70714   $as_echo "$as_me: failed program was:" >&5
70715 sed 's/^/| /' conftest.$ac_ext >&5
70716
70717         eval "$as_ac_var=no"
70718 fi
70719
70720 rm -rf conftest.dSYM
70721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70722       conftest$ac_exeext conftest.$ac_ext
70723 fi
70724 ac_res=`eval 'as_val=${'$as_ac_var'}
70725                  $as_echo "$as_val"'`
70726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70727 $as_echo "$ac_res" >&6; }
70728 as_val=`eval 'as_val=${'$as_ac_var'}
70729                  $as_echo "$as_val"'`
70730    if test "x$as_val" = x""yes; then
70731   cat >>confdefs.h <<_ACEOF
70732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70733 _ACEOF
70734  ice_have_system=yes
70735 fi
70736 done
70737
70738 if test "${ice_have_system}" = yes; then
70739 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
70740 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
70741 if test "${ice_cv_have_system_decl+set}" = set; then
70742   $as_echo_n "(cached) " >&6
70743 else
70744
70745 ice_cv_have_system_decl=no
70746 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70747 ice_re_word='(^|[^a-zA-Z0-9_])'
70748 for header in stdlib.h; do
70749 # Check for ordinary declaration
70750 cat >conftest.$ac_ext <<_ACEOF
70751 /* confdefs.h.  */
70752 _ACEOF
70753 cat confdefs.h >>conftest.$ac_ext
70754 cat >>conftest.$ac_ext <<_ACEOF
70755 /* end confdefs.h.  */
70756 #include <$header>
70757
70758 _ACEOF
70759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70760   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
70761   ice_cv_have_system_decl=yes
70762 fi
70763 rm -f conftest*
70764
70765 if test "$ice_cv_have_system_decl" = yes; then
70766         break
70767 fi
70768 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70769 cat >conftest.$ac_ext <<_ACEOF
70770 /* confdefs.h.  */
70771 _ACEOF
70772 cat confdefs.h >>conftest.$ac_ext
70773 cat >>conftest.$ac_ext <<_ACEOF
70774 /* end confdefs.h.  */
70775 #include <$header>
70776
70777 _ACEOF
70778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70779   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70780   ice_cv_have_system_decl=yes
70781 fi
70782 rm -f conftest*
70783
70784 if test "$ice_cv_have_system_decl" = yes; then
70785         break
70786 fi
70787 done
70788
70789 fi
70790
70791 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
70792 $as_echo "$ice_cv_have_system_decl" >&6; }
70793 if test "$ice_cv_have_system_decl" = yes; then
70794
70795 cat >>confdefs.h <<_ACEOF
70796 #define HAVE_SYSTEM_DECL 1
70797 _ACEOF
70798
70799 fi
70800 fi
70801
70802
70803 ice_have_time=no
70804
70805 for ac_func in time
70806 do
70807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70808 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70809 $as_echo_n "checking for $ac_func... " >&6; }
70810 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70811   $as_echo_n "(cached) " >&6
70812 else
70813   cat >conftest.$ac_ext <<_ACEOF
70814 /* confdefs.h.  */
70815 _ACEOF
70816 cat confdefs.h >>conftest.$ac_ext
70817 cat >>conftest.$ac_ext <<_ACEOF
70818 /* end confdefs.h.  */
70819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70820    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70821 #define $ac_func innocuous_$ac_func
70822
70823 /* System header to define __stub macros and hopefully few prototypes,
70824     which can conflict with char $ac_func (); below.
70825     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70826     <limits.h> exists even on freestanding compilers.  */
70827
70828 #ifdef __STDC__
70829 # include <limits.h>
70830 #else
70831 # include <assert.h>
70832 #endif
70833
70834 #undef $ac_func
70835
70836 /* Override any GCC internal prototype to avoid an error.
70837    Use char because int might match the return type of a GCC
70838    builtin and then its argument prototype would still apply.  */
70839 #ifdef __cplusplus
70840 extern "C"
70841 #endif
70842 char $ac_func ();
70843 /* The GNU C library defines this for functions which it implements
70844     to always fail with ENOSYS.  Some functions are actually named
70845     something starting with __ and the normal name is an alias.  */
70846 #if defined __stub_$ac_func || defined __stub___$ac_func
70847 choke me
70848 #endif
70849
70850 int
70851 main ()
70852 {
70853 return $ac_func ();
70854   ;
70855   return 0;
70856 }
70857 _ACEOF
70858 rm -f conftest.$ac_objext conftest$ac_exeext
70859 if { (ac_try="$ac_link"
70860 case "(($ac_try" in
70861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70862   *) ac_try_echo=$ac_try;;
70863 esac
70864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70865 $as_echo "$ac_try_echo") >&5
70866   (eval "$ac_link") 2>conftest.er1
70867   ac_status=$?
70868   grep -v '^ *+' conftest.er1 >conftest.err
70869   rm -f conftest.er1
70870   cat conftest.err >&5
70871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70872   (exit $ac_status); } && {
70873          test -z "$ac_c_werror_flag" ||
70874          test ! -s conftest.err
70875        } && test -s conftest$ac_exeext && {
70876          test "$cross_compiling" = yes ||
70877          $as_test_x conftest$ac_exeext
70878        }; then
70879   eval "$as_ac_var=yes"
70880 else
70881   $as_echo "$as_me: failed program was:" >&5
70882 sed 's/^/| /' conftest.$ac_ext >&5
70883
70884         eval "$as_ac_var=no"
70885 fi
70886
70887 rm -rf conftest.dSYM
70888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70889       conftest$ac_exeext conftest.$ac_ext
70890 fi
70891 ac_res=`eval 'as_val=${'$as_ac_var'}
70892                  $as_echo "$as_val"'`
70893                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70894 $as_echo "$ac_res" >&6; }
70895 as_val=`eval 'as_val=${'$as_ac_var'}
70896                  $as_echo "$as_val"'`
70897    if test "x$as_val" = x""yes; then
70898   cat >>confdefs.h <<_ACEOF
70899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70900 _ACEOF
70901  ice_have_time=yes
70902 fi
70903 done
70904
70905 if test "${ice_have_time}" = yes; then
70906 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
70907 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
70908 if test "${ice_cv_have_time_decl+set}" = set; then
70909   $as_echo_n "(cached) " >&6
70910 else
70911
70912 ice_cv_have_time_decl=no
70913 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70914 ice_re_word='(^|[^a-zA-Z0-9_])'
70915 for header in time.h sys/time.h; do
70916 # Check for ordinary declaration
70917 cat >conftest.$ac_ext <<_ACEOF
70918 /* confdefs.h.  */
70919 _ACEOF
70920 cat confdefs.h >>conftest.$ac_ext
70921 cat >>conftest.$ac_ext <<_ACEOF
70922 /* end confdefs.h.  */
70923 #include <$header>
70924
70925 _ACEOF
70926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70927   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
70928   ice_cv_have_time_decl=yes
70929 fi
70930 rm -f conftest*
70931
70932 if test "$ice_cv_have_time_decl" = yes; then
70933         break
70934 fi
70935 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70936 cat >conftest.$ac_ext <<_ACEOF
70937 /* confdefs.h.  */
70938 _ACEOF
70939 cat confdefs.h >>conftest.$ac_ext
70940 cat >>conftest.$ac_ext <<_ACEOF
70941 /* end confdefs.h.  */
70942 #include <$header>
70943
70944 _ACEOF
70945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70946   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70947   ice_cv_have_time_decl=yes
70948 fi
70949 rm -f conftest*
70950
70951 if test "$ice_cv_have_time_decl" = yes; then
70952         break
70953 fi
70954 done
70955
70956 fi
70957
70958 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
70959 $as_echo "$ice_cv_have_time_decl" >&6; }
70960 if test "$ice_cv_have_time_decl" = yes; then
70961
70962 cat >>confdefs.h <<_ACEOF
70963 #define HAVE_TIME_DECL 1
70964 _ACEOF
70965
70966 fi
70967 fi
70968
70969
70970 ice_have_tolower=no
70971
70972 for ac_func in tolower
70973 do
70974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70976 $as_echo_n "checking for $ac_func... " >&6; }
70977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70978   $as_echo_n "(cached) " >&6
70979 else
70980   cat >conftest.$ac_ext <<_ACEOF
70981 /* confdefs.h.  */
70982 _ACEOF
70983 cat confdefs.h >>conftest.$ac_ext
70984 cat >>conftest.$ac_ext <<_ACEOF
70985 /* end confdefs.h.  */
70986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70988 #define $ac_func innocuous_$ac_func
70989
70990 /* System header to define __stub macros and hopefully few prototypes,
70991     which can conflict with char $ac_func (); below.
70992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70993     <limits.h> exists even on freestanding compilers.  */
70994
70995 #ifdef __STDC__
70996 # include <limits.h>
70997 #else
70998 # include <assert.h>
70999 #endif
71000
71001 #undef $ac_func
71002
71003 /* Override any GCC internal prototype to avoid an error.
71004    Use char because int might match the return type of a GCC
71005    builtin and then its argument prototype would still apply.  */
71006 #ifdef __cplusplus
71007 extern "C"
71008 #endif
71009 char $ac_func ();
71010 /* The GNU C library defines this for functions which it implements
71011     to always fail with ENOSYS.  Some functions are actually named
71012     something starting with __ and the normal name is an alias.  */
71013 #if defined __stub_$ac_func || defined __stub___$ac_func
71014 choke me
71015 #endif
71016
71017 int
71018 main ()
71019 {
71020 return $ac_func ();
71021   ;
71022   return 0;
71023 }
71024 _ACEOF
71025 rm -f conftest.$ac_objext conftest$ac_exeext
71026 if { (ac_try="$ac_link"
71027 case "(($ac_try" in
71028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71029   *) ac_try_echo=$ac_try;;
71030 esac
71031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71032 $as_echo "$ac_try_echo") >&5
71033   (eval "$ac_link") 2>conftest.er1
71034   ac_status=$?
71035   grep -v '^ *+' conftest.er1 >conftest.err
71036   rm -f conftest.er1
71037   cat conftest.err >&5
71038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71039   (exit $ac_status); } && {
71040          test -z "$ac_c_werror_flag" ||
71041          test ! -s conftest.err
71042        } && test -s conftest$ac_exeext && {
71043          test "$cross_compiling" = yes ||
71044          $as_test_x conftest$ac_exeext
71045        }; then
71046   eval "$as_ac_var=yes"
71047 else
71048   $as_echo "$as_me: failed program was:" >&5
71049 sed 's/^/| /' conftest.$ac_ext >&5
71050
71051         eval "$as_ac_var=no"
71052 fi
71053
71054 rm -rf conftest.dSYM
71055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71056       conftest$ac_exeext conftest.$ac_ext
71057 fi
71058 ac_res=`eval 'as_val=${'$as_ac_var'}
71059                  $as_echo "$as_val"'`
71060                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71061 $as_echo "$ac_res" >&6; }
71062 as_val=`eval 'as_val=${'$as_ac_var'}
71063                  $as_echo "$as_val"'`
71064    if test "x$as_val" = x""yes; then
71065   cat >>confdefs.h <<_ACEOF
71066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71067 _ACEOF
71068  ice_have_tolower=yes
71069 fi
71070 done
71071
71072 if test "${ice_have_tolower}" = yes; then
71073 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
71074 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
71075 if test "${ice_cv_have_tolower_decl+set}" = set; then
71076   $as_echo_n "(cached) " >&6
71077 else
71078
71079 ice_cv_have_tolower_decl=no
71080 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71081 ice_re_word='(^|[^a-zA-Z0-9_])'
71082 for header in ctype.h; do
71083 # Check for ordinary declaration
71084 cat >conftest.$ac_ext <<_ACEOF
71085 /* confdefs.h.  */
71086 _ACEOF
71087 cat confdefs.h >>conftest.$ac_ext
71088 cat >>conftest.$ac_ext <<_ACEOF
71089 /* end confdefs.h.  */
71090 #include <$header>
71091
71092 _ACEOF
71093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71094   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
71095   ice_cv_have_tolower_decl=yes
71096 fi
71097 rm -f conftest*
71098
71099 if test "$ice_cv_have_tolower_decl" = yes; then
71100         break
71101 fi
71102 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71103 cat >conftest.$ac_ext <<_ACEOF
71104 /* confdefs.h.  */
71105 _ACEOF
71106 cat confdefs.h >>conftest.$ac_ext
71107 cat >>conftest.$ac_ext <<_ACEOF
71108 /* end confdefs.h.  */
71109 #include <$header>
71110
71111 _ACEOF
71112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71113   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71114   ice_cv_have_tolower_decl=yes
71115 fi
71116 rm -f conftest*
71117
71118 if test "$ice_cv_have_tolower_decl" = yes; then
71119         break
71120 fi
71121 done
71122
71123 fi
71124
71125 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
71126 $as_echo "$ice_cv_have_tolower_decl" >&6; }
71127 if test "$ice_cv_have_tolower_decl" = yes; then
71128
71129 cat >>confdefs.h <<_ACEOF
71130 #define HAVE_TOLOWER_DECL 1
71131 _ACEOF
71132
71133 fi
71134 fi
71135
71136
71137 ice_have_toupper=no
71138
71139 for ac_func in toupper
71140 do
71141 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71142 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71143 $as_echo_n "checking for $ac_func... " >&6; }
71144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71145   $as_echo_n "(cached) " >&6
71146 else
71147   cat >conftest.$ac_ext <<_ACEOF
71148 /* confdefs.h.  */
71149 _ACEOF
71150 cat confdefs.h >>conftest.$ac_ext
71151 cat >>conftest.$ac_ext <<_ACEOF
71152 /* end confdefs.h.  */
71153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71155 #define $ac_func innocuous_$ac_func
71156
71157 /* System header to define __stub macros and hopefully few prototypes,
71158     which can conflict with char $ac_func (); below.
71159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71160     <limits.h> exists even on freestanding compilers.  */
71161
71162 #ifdef __STDC__
71163 # include <limits.h>
71164 #else
71165 # include <assert.h>
71166 #endif
71167
71168 #undef $ac_func
71169
71170 /* Override any GCC internal prototype to avoid an error.
71171    Use char because int might match the return type of a GCC
71172    builtin and then its argument prototype would still apply.  */
71173 #ifdef __cplusplus
71174 extern "C"
71175 #endif
71176 char $ac_func ();
71177 /* The GNU C library defines this for functions which it implements
71178     to always fail with ENOSYS.  Some functions are actually named
71179     something starting with __ and the normal name is an alias.  */
71180 #if defined __stub_$ac_func || defined __stub___$ac_func
71181 choke me
71182 #endif
71183
71184 int
71185 main ()
71186 {
71187 return $ac_func ();
71188   ;
71189   return 0;
71190 }
71191 _ACEOF
71192 rm -f conftest.$ac_objext conftest$ac_exeext
71193 if { (ac_try="$ac_link"
71194 case "(($ac_try" in
71195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71196   *) ac_try_echo=$ac_try;;
71197 esac
71198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71199 $as_echo "$ac_try_echo") >&5
71200   (eval "$ac_link") 2>conftest.er1
71201   ac_status=$?
71202   grep -v '^ *+' conftest.er1 >conftest.err
71203   rm -f conftest.er1
71204   cat conftest.err >&5
71205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71206   (exit $ac_status); } && {
71207          test -z "$ac_c_werror_flag" ||
71208          test ! -s conftest.err
71209        } && test -s conftest$ac_exeext && {
71210          test "$cross_compiling" = yes ||
71211          $as_test_x conftest$ac_exeext
71212        }; then
71213   eval "$as_ac_var=yes"
71214 else
71215   $as_echo "$as_me: failed program was:" >&5
71216 sed 's/^/| /' conftest.$ac_ext >&5
71217
71218         eval "$as_ac_var=no"
71219 fi
71220
71221 rm -rf conftest.dSYM
71222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71223       conftest$ac_exeext conftest.$ac_ext
71224 fi
71225 ac_res=`eval 'as_val=${'$as_ac_var'}
71226                  $as_echo "$as_val"'`
71227                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71228 $as_echo "$ac_res" >&6; }
71229 as_val=`eval 'as_val=${'$as_ac_var'}
71230                  $as_echo "$as_val"'`
71231    if test "x$as_val" = x""yes; then
71232   cat >>confdefs.h <<_ACEOF
71233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71234 _ACEOF
71235  ice_have_toupper=yes
71236 fi
71237 done
71238
71239 if test "${ice_have_toupper}" = yes; then
71240 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
71241 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
71242 if test "${ice_cv_have_toupper_decl+set}" = set; then
71243   $as_echo_n "(cached) " >&6
71244 else
71245
71246 ice_cv_have_toupper_decl=no
71247 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71248 ice_re_word='(^|[^a-zA-Z0-9_])'
71249 for header in ctype.h; do
71250 # Check for ordinary declaration
71251 cat >conftest.$ac_ext <<_ACEOF
71252 /* confdefs.h.  */
71253 _ACEOF
71254 cat confdefs.h >>conftest.$ac_ext
71255 cat >>conftest.$ac_ext <<_ACEOF
71256 /* end confdefs.h.  */
71257 #include <$header>
71258
71259 _ACEOF
71260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71261   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
71262   ice_cv_have_toupper_decl=yes
71263 fi
71264 rm -f conftest*
71265
71266 if test "$ice_cv_have_toupper_decl" = yes; then
71267         break
71268 fi
71269 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71270 cat >conftest.$ac_ext <<_ACEOF
71271 /* confdefs.h.  */
71272 _ACEOF
71273 cat confdefs.h >>conftest.$ac_ext
71274 cat >>conftest.$ac_ext <<_ACEOF
71275 /* end confdefs.h.  */
71276 #include <$header>
71277
71278 _ACEOF
71279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71280   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71281   ice_cv_have_toupper_decl=yes
71282 fi
71283 rm -f conftest*
71284
71285 if test "$ice_cv_have_toupper_decl" = yes; then
71286         break
71287 fi
71288 done
71289
71290 fi
71291
71292 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
71293 $as_echo "$ice_cv_have_toupper_decl" >&6; }
71294 if test "$ice_cv_have_toupper_decl" = yes; then
71295
71296 cat >>confdefs.h <<_ACEOF
71297 #define HAVE_TOUPPER_DECL 1
71298 _ACEOF
71299
71300 fi
71301 fi
71302
71303
71304 ice_have_ungetc=no
71305
71306 for ac_func in ungetc
71307 do
71308 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71309 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71310 $as_echo_n "checking for $ac_func... " >&6; }
71311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71312   $as_echo_n "(cached) " >&6
71313 else
71314   cat >conftest.$ac_ext <<_ACEOF
71315 /* confdefs.h.  */
71316 _ACEOF
71317 cat confdefs.h >>conftest.$ac_ext
71318 cat >>conftest.$ac_ext <<_ACEOF
71319 /* end confdefs.h.  */
71320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71322 #define $ac_func innocuous_$ac_func
71323
71324 /* System header to define __stub macros and hopefully few prototypes,
71325     which can conflict with char $ac_func (); below.
71326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71327     <limits.h> exists even on freestanding compilers.  */
71328
71329 #ifdef __STDC__
71330 # include <limits.h>
71331 #else
71332 # include <assert.h>
71333 #endif
71334
71335 #undef $ac_func
71336
71337 /* Override any GCC internal prototype to avoid an error.
71338    Use char because int might match the return type of a GCC
71339    builtin and then its argument prototype would still apply.  */
71340 #ifdef __cplusplus
71341 extern "C"
71342 #endif
71343 char $ac_func ();
71344 /* The GNU C library defines this for functions which it implements
71345     to always fail with ENOSYS.  Some functions are actually named
71346     something starting with __ and the normal name is an alias.  */
71347 #if defined __stub_$ac_func || defined __stub___$ac_func
71348 choke me
71349 #endif
71350
71351 int
71352 main ()
71353 {
71354 return $ac_func ();
71355   ;
71356   return 0;
71357 }
71358 _ACEOF
71359 rm -f conftest.$ac_objext conftest$ac_exeext
71360 if { (ac_try="$ac_link"
71361 case "(($ac_try" in
71362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71363   *) ac_try_echo=$ac_try;;
71364 esac
71365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71366 $as_echo "$ac_try_echo") >&5
71367   (eval "$ac_link") 2>conftest.er1
71368   ac_status=$?
71369   grep -v '^ *+' conftest.er1 >conftest.err
71370   rm -f conftest.er1
71371   cat conftest.err >&5
71372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71373   (exit $ac_status); } && {
71374          test -z "$ac_c_werror_flag" ||
71375          test ! -s conftest.err
71376        } && test -s conftest$ac_exeext && {
71377          test "$cross_compiling" = yes ||
71378          $as_test_x conftest$ac_exeext
71379        }; then
71380   eval "$as_ac_var=yes"
71381 else
71382   $as_echo "$as_me: failed program was:" >&5
71383 sed 's/^/| /' conftest.$ac_ext >&5
71384
71385         eval "$as_ac_var=no"
71386 fi
71387
71388 rm -rf conftest.dSYM
71389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71390       conftest$ac_exeext conftest.$ac_ext
71391 fi
71392 ac_res=`eval 'as_val=${'$as_ac_var'}
71393                  $as_echo "$as_val"'`
71394                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71395 $as_echo "$ac_res" >&6; }
71396 as_val=`eval 'as_val=${'$as_ac_var'}
71397                  $as_echo "$as_val"'`
71398    if test "x$as_val" = x""yes; then
71399   cat >>confdefs.h <<_ACEOF
71400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71401 _ACEOF
71402  ice_have_ungetc=yes
71403 fi
71404 done
71405
71406 if test "${ice_have_ungetc}" = yes; then
71407 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
71408 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
71409 if test "${ice_cv_have_ungetc_decl+set}" = set; then
71410   $as_echo_n "(cached) " >&6
71411 else
71412
71413 ice_cv_have_ungetc_decl=no
71414 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71415 ice_re_word='(^|[^a-zA-Z0-9_])'
71416 for header in stdio.h; do
71417 # Check for ordinary declaration
71418 cat >conftest.$ac_ext <<_ACEOF
71419 /* confdefs.h.  */
71420 _ACEOF
71421 cat confdefs.h >>conftest.$ac_ext
71422 cat >>conftest.$ac_ext <<_ACEOF
71423 /* end confdefs.h.  */
71424 #include <$header>
71425
71426 _ACEOF
71427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71428   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
71429   ice_cv_have_ungetc_decl=yes
71430 fi
71431 rm -f conftest*
71432
71433 if test "$ice_cv_have_ungetc_decl" = yes; then
71434         break
71435 fi
71436 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71437 cat >conftest.$ac_ext <<_ACEOF
71438 /* confdefs.h.  */
71439 _ACEOF
71440 cat confdefs.h >>conftest.$ac_ext
71441 cat >>conftest.$ac_ext <<_ACEOF
71442 /* end confdefs.h.  */
71443 #include <$header>
71444
71445 _ACEOF
71446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71447   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71448   ice_cv_have_ungetc_decl=yes
71449 fi
71450 rm -f conftest*
71451
71452 if test "$ice_cv_have_ungetc_decl" = yes; then
71453         break
71454 fi
71455 done
71456
71457 fi
71458
71459 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
71460 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
71461 if test "$ice_cv_have_ungetc_decl" = yes; then
71462
71463 cat >>confdefs.h <<_ACEOF
71464 #define HAVE_UNGETC_DECL 1
71465 _ACEOF
71466
71467 fi
71468 fi
71469
71470
71471 for ac_func in unsetenv
71472 do
71473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71474 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71475 $as_echo_n "checking for $ac_func... " >&6; }
71476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71477   $as_echo_n "(cached) " >&6
71478 else
71479   cat >conftest.$ac_ext <<_ACEOF
71480 /* confdefs.h.  */
71481 _ACEOF
71482 cat confdefs.h >>conftest.$ac_ext
71483 cat >>conftest.$ac_ext <<_ACEOF
71484 /* end confdefs.h.  */
71485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71486    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71487 #define $ac_func innocuous_$ac_func
71488
71489 /* System header to define __stub macros and hopefully few prototypes,
71490     which can conflict with char $ac_func (); below.
71491     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71492     <limits.h> exists even on freestanding compilers.  */
71493
71494 #ifdef __STDC__
71495 # include <limits.h>
71496 #else
71497 # include <assert.h>
71498 #endif
71499
71500 #undef $ac_func
71501
71502 /* Override any GCC internal prototype to avoid an error.
71503    Use char because int might match the return type of a GCC
71504    builtin and then its argument prototype would still apply.  */
71505 #ifdef __cplusplus
71506 extern "C"
71507 #endif
71508 char $ac_func ();
71509 /* The GNU C library defines this for functions which it implements
71510     to always fail with ENOSYS.  Some functions are actually named
71511     something starting with __ and the normal name is an alias.  */
71512 #if defined __stub_$ac_func || defined __stub___$ac_func
71513 choke me
71514 #endif
71515
71516 int
71517 main ()
71518 {
71519 return $ac_func ();
71520   ;
71521   return 0;
71522 }
71523 _ACEOF
71524 rm -f conftest.$ac_objext conftest$ac_exeext
71525 if { (ac_try="$ac_link"
71526 case "(($ac_try" in
71527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71528   *) ac_try_echo=$ac_try;;
71529 esac
71530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71531 $as_echo "$ac_try_echo") >&5
71532   (eval "$ac_link") 2>conftest.er1
71533   ac_status=$?
71534   grep -v '^ *+' conftest.er1 >conftest.err
71535   rm -f conftest.er1
71536   cat conftest.err >&5
71537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71538   (exit $ac_status); } && {
71539          test -z "$ac_c_werror_flag" ||
71540          test ! -s conftest.err
71541        } && test -s conftest$ac_exeext && {
71542          test "$cross_compiling" = yes ||
71543          $as_test_x conftest$ac_exeext
71544        }; then
71545   eval "$as_ac_var=yes"
71546 else
71547   $as_echo "$as_me: failed program was:" >&5
71548 sed 's/^/| /' conftest.$ac_ext >&5
71549
71550         eval "$as_ac_var=no"
71551 fi
71552
71553 rm -rf conftest.dSYM
71554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71555       conftest$ac_exeext conftest.$ac_ext
71556 fi
71557 ac_res=`eval 'as_val=${'$as_ac_var'}
71558                  $as_echo "$as_val"'`
71559                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71560 $as_echo "$ac_res" >&6; }
71561 as_val=`eval 'as_val=${'$as_ac_var'}
71562                  $as_echo "$as_val"'`
71563    if test "x$as_val" = x""yes; then
71564   cat >>confdefs.h <<_ACEOF
71565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71566 _ACEOF
71567
71568 fi
71569 done
71570
71571
71572 ice_have_vfprintf=no
71573
71574 for ac_func in vfprintf
71575 do
71576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71577 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71578 $as_echo_n "checking for $ac_func... " >&6; }
71579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71580   $as_echo_n "(cached) " >&6
71581 else
71582   cat >conftest.$ac_ext <<_ACEOF
71583 /* confdefs.h.  */
71584 _ACEOF
71585 cat confdefs.h >>conftest.$ac_ext
71586 cat >>conftest.$ac_ext <<_ACEOF
71587 /* end confdefs.h.  */
71588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71590 #define $ac_func innocuous_$ac_func
71591
71592 /* System header to define __stub macros and hopefully few prototypes,
71593     which can conflict with char $ac_func (); below.
71594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71595     <limits.h> exists even on freestanding compilers.  */
71596
71597 #ifdef __STDC__
71598 # include <limits.h>
71599 #else
71600 # include <assert.h>
71601 #endif
71602
71603 #undef $ac_func
71604
71605 /* Override any GCC internal prototype to avoid an error.
71606    Use char because int might match the return type of a GCC
71607    builtin and then its argument prototype would still apply.  */
71608 #ifdef __cplusplus
71609 extern "C"
71610 #endif
71611 char $ac_func ();
71612 /* The GNU C library defines this for functions which it implements
71613     to always fail with ENOSYS.  Some functions are actually named
71614     something starting with __ and the normal name is an alias.  */
71615 #if defined __stub_$ac_func || defined __stub___$ac_func
71616 choke me
71617 #endif
71618
71619 int
71620 main ()
71621 {
71622 return $ac_func ();
71623   ;
71624   return 0;
71625 }
71626 _ACEOF
71627 rm -f conftest.$ac_objext conftest$ac_exeext
71628 if { (ac_try="$ac_link"
71629 case "(($ac_try" in
71630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71631   *) ac_try_echo=$ac_try;;
71632 esac
71633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71634 $as_echo "$ac_try_echo") >&5
71635   (eval "$ac_link") 2>conftest.er1
71636   ac_status=$?
71637   grep -v '^ *+' conftest.er1 >conftest.err
71638   rm -f conftest.er1
71639   cat conftest.err >&5
71640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71641   (exit $ac_status); } && {
71642          test -z "$ac_c_werror_flag" ||
71643          test ! -s conftest.err
71644        } && test -s conftest$ac_exeext && {
71645          test "$cross_compiling" = yes ||
71646          $as_test_x conftest$ac_exeext
71647        }; then
71648   eval "$as_ac_var=yes"
71649 else
71650   $as_echo "$as_me: failed program was:" >&5
71651 sed 's/^/| /' conftest.$ac_ext >&5
71652
71653         eval "$as_ac_var=no"
71654 fi
71655
71656 rm -rf conftest.dSYM
71657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71658       conftest$ac_exeext conftest.$ac_ext
71659 fi
71660 ac_res=`eval 'as_val=${'$as_ac_var'}
71661                  $as_echo "$as_val"'`
71662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71663 $as_echo "$ac_res" >&6; }
71664 as_val=`eval 'as_val=${'$as_ac_var'}
71665                  $as_echo "$as_val"'`
71666    if test "x$as_val" = x""yes; then
71667   cat >>confdefs.h <<_ACEOF
71668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71669 _ACEOF
71670  ice_have_vfprintf=yes
71671 fi
71672 done
71673
71674 if test "${ice_have_vfprintf}" = yes; then
71675 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
71676 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
71677 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
71678   $as_echo_n "(cached) " >&6
71679 else
71680
71681 ice_cv_have_vfprintf_decl=no
71682 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71683 ice_re_word='(^|[^a-zA-Z0-9_])'
71684 for header in stdio.h stdlib.h; do
71685 # Check for ordinary declaration
71686 cat >conftest.$ac_ext <<_ACEOF
71687 /* confdefs.h.  */
71688 _ACEOF
71689 cat confdefs.h >>conftest.$ac_ext
71690 cat >>conftest.$ac_ext <<_ACEOF
71691 /* end confdefs.h.  */
71692 #include <$header>
71693
71694 _ACEOF
71695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71696   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
71697   ice_cv_have_vfprintf_decl=yes
71698 fi
71699 rm -f conftest*
71700
71701 if test "$ice_cv_have_vfprintf_decl" = yes; then
71702         break
71703 fi
71704 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71705 cat >conftest.$ac_ext <<_ACEOF
71706 /* confdefs.h.  */
71707 _ACEOF
71708 cat confdefs.h >>conftest.$ac_ext
71709 cat >>conftest.$ac_ext <<_ACEOF
71710 /* end confdefs.h.  */
71711 #include <$header>
71712
71713 _ACEOF
71714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71715   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71716   ice_cv_have_vfprintf_decl=yes
71717 fi
71718 rm -f conftest*
71719
71720 if test "$ice_cv_have_vfprintf_decl" = yes; then
71721         break
71722 fi
71723 done
71724
71725 fi
71726
71727 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
71728 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
71729 if test "$ice_cv_have_vfprintf_decl" = yes; then
71730
71731 cat >>confdefs.h <<_ACEOF
71732 #define HAVE_VFPRINTF_DECL 1
71733 _ACEOF
71734
71735 fi
71736 fi
71737
71738
71739 ice_have_vprintf=no
71740
71741 for ac_func in vprintf
71742 do
71743 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71744 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71745 $as_echo_n "checking for $ac_func... " >&6; }
71746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71747   $as_echo_n "(cached) " >&6
71748 else
71749   cat >conftest.$ac_ext <<_ACEOF
71750 /* confdefs.h.  */
71751 _ACEOF
71752 cat confdefs.h >>conftest.$ac_ext
71753 cat >>conftest.$ac_ext <<_ACEOF
71754 /* end confdefs.h.  */
71755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71757 #define $ac_func innocuous_$ac_func
71758
71759 /* System header to define __stub macros and hopefully few prototypes,
71760     which can conflict with char $ac_func (); below.
71761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71762     <limits.h> exists even on freestanding compilers.  */
71763
71764 #ifdef __STDC__
71765 # include <limits.h>
71766 #else
71767 # include <assert.h>
71768 #endif
71769
71770 #undef $ac_func
71771
71772 /* Override any GCC internal prototype to avoid an error.
71773    Use char because int might match the return type of a GCC
71774    builtin and then its argument prototype would still apply.  */
71775 #ifdef __cplusplus
71776 extern "C"
71777 #endif
71778 char $ac_func ();
71779 /* The GNU C library defines this for functions which it implements
71780     to always fail with ENOSYS.  Some functions are actually named
71781     something starting with __ and the normal name is an alias.  */
71782 #if defined __stub_$ac_func || defined __stub___$ac_func
71783 choke me
71784 #endif
71785
71786 int
71787 main ()
71788 {
71789 return $ac_func ();
71790   ;
71791   return 0;
71792 }
71793 _ACEOF
71794 rm -f conftest.$ac_objext conftest$ac_exeext
71795 if { (ac_try="$ac_link"
71796 case "(($ac_try" in
71797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71798   *) ac_try_echo=$ac_try;;
71799 esac
71800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71801 $as_echo "$ac_try_echo") >&5
71802   (eval "$ac_link") 2>conftest.er1
71803   ac_status=$?
71804   grep -v '^ *+' conftest.er1 >conftest.err
71805   rm -f conftest.er1
71806   cat conftest.err >&5
71807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71808   (exit $ac_status); } && {
71809          test -z "$ac_c_werror_flag" ||
71810          test ! -s conftest.err
71811        } && test -s conftest$ac_exeext && {
71812          test "$cross_compiling" = yes ||
71813          $as_test_x conftest$ac_exeext
71814        }; then
71815   eval "$as_ac_var=yes"
71816 else
71817   $as_echo "$as_me: failed program was:" >&5
71818 sed 's/^/| /' conftest.$ac_ext >&5
71819
71820         eval "$as_ac_var=no"
71821 fi
71822
71823 rm -rf conftest.dSYM
71824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71825       conftest$ac_exeext conftest.$ac_ext
71826 fi
71827 ac_res=`eval 'as_val=${'$as_ac_var'}
71828                  $as_echo "$as_val"'`
71829                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71830 $as_echo "$ac_res" >&6; }
71831 as_val=`eval 'as_val=${'$as_ac_var'}
71832                  $as_echo "$as_val"'`
71833    if test "x$as_val" = x""yes; then
71834   cat >>confdefs.h <<_ACEOF
71835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71836 _ACEOF
71837  ice_have_vprintf=yes
71838 fi
71839 done
71840
71841 if test "${ice_have_vprintf}" = yes; then
71842 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
71843 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
71844 if test "${ice_cv_have_vprintf_decl+set}" = set; then
71845   $as_echo_n "(cached) " >&6
71846 else
71847
71848 ice_cv_have_vprintf_decl=no
71849 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71850 ice_re_word='(^|[^a-zA-Z0-9_])'
71851 for header in stdio.h stdlib.h; do
71852 # Check for ordinary declaration
71853 cat >conftest.$ac_ext <<_ACEOF
71854 /* confdefs.h.  */
71855 _ACEOF
71856 cat confdefs.h >>conftest.$ac_ext
71857 cat >>conftest.$ac_ext <<_ACEOF
71858 /* end confdefs.h.  */
71859 #include <$header>
71860
71861 _ACEOF
71862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71863   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
71864   ice_cv_have_vprintf_decl=yes
71865 fi
71866 rm -f conftest*
71867
71868 if test "$ice_cv_have_vprintf_decl" = yes; then
71869         break
71870 fi
71871 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71872 cat >conftest.$ac_ext <<_ACEOF
71873 /* confdefs.h.  */
71874 _ACEOF
71875 cat confdefs.h >>conftest.$ac_ext
71876 cat >>conftest.$ac_ext <<_ACEOF
71877 /* end confdefs.h.  */
71878 #include <$header>
71879
71880 _ACEOF
71881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71882   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71883   ice_cv_have_vprintf_decl=yes
71884 fi
71885 rm -f conftest*
71886
71887 if test "$ice_cv_have_vprintf_decl" = yes; then
71888         break
71889 fi
71890 done
71891
71892 fi
71893
71894 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
71895 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
71896 if test "$ice_cv_have_vprintf_decl" = yes; then
71897
71898 cat >>confdefs.h <<_ACEOF
71899 #define HAVE_VPRINTF_DECL 1
71900 _ACEOF
71901
71902 fi
71903 fi
71904
71905 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
71906 $as_echo_n "checking for wait4... " >&6; }
71907 if test "${ac_cv_func_wait4+set}" = set; then
71908   $as_echo_n "(cached) " >&6
71909 else
71910   cat >conftest.$ac_ext <<_ACEOF
71911 /* confdefs.h.  */
71912 _ACEOF
71913 cat confdefs.h >>conftest.$ac_ext
71914 cat >>conftest.$ac_ext <<_ACEOF
71915 /* end confdefs.h.  */
71916 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
71917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71918 #define wait4 innocuous_wait4
71919
71920 /* System header to define __stub macros and hopefully few prototypes,
71921     which can conflict with char wait4 (); below.
71922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71923     <limits.h> exists even on freestanding compilers.  */
71924
71925 #ifdef __STDC__
71926 # include <limits.h>
71927 #else
71928 # include <assert.h>
71929 #endif
71930
71931 #undef wait4
71932
71933 /* Override any GCC internal prototype to avoid an error.
71934    Use char because int might match the return type of a GCC
71935    builtin and then its argument prototype would still apply.  */
71936 #ifdef __cplusplus
71937 extern "C"
71938 #endif
71939 char wait4 ();
71940 /* The GNU C library defines this for functions which it implements
71941     to always fail with ENOSYS.  Some functions are actually named
71942     something starting with __ and the normal name is an alias.  */
71943 #if defined __stub_wait4 || defined __stub___wait4
71944 choke me
71945 #endif
71946
71947 int
71948 main ()
71949 {
71950 return wait4 ();
71951   ;
71952   return 0;
71953 }
71954 _ACEOF
71955 rm -f conftest.$ac_objext conftest$ac_exeext
71956 if { (ac_try="$ac_link"
71957 case "(($ac_try" in
71958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71959   *) ac_try_echo=$ac_try;;
71960 esac
71961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71962 $as_echo "$ac_try_echo") >&5
71963   (eval "$ac_link") 2>conftest.er1
71964   ac_status=$?
71965   grep -v '^ *+' conftest.er1 >conftest.err
71966   rm -f conftest.er1
71967   cat conftest.err >&5
71968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71969   (exit $ac_status); } && {
71970          test -z "$ac_c_werror_flag" ||
71971          test ! -s conftest.err
71972        } && test -s conftest$ac_exeext && {
71973          test "$cross_compiling" = yes ||
71974          $as_test_x conftest$ac_exeext
71975        }; then
71976   ac_cv_func_wait4=yes
71977 else
71978   $as_echo "$as_me: failed program was:" >&5
71979 sed 's/^/| /' conftest.$ac_ext >&5
71980
71981         ac_cv_func_wait4=no
71982 fi
71983
71984 rm -rf conftest.dSYM
71985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71986       conftest$ac_exeext conftest.$ac_ext
71987 fi
71988 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
71989 $as_echo "$ac_cv_func_wait4" >&6; }
71990
71991
71992 ice_have_writev=no
71993
71994 for ac_func in writev
71995 do
71996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71998 $as_echo_n "checking for $ac_func... " >&6; }
71999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72000   $as_echo_n "(cached) " >&6
72001 else
72002   cat >conftest.$ac_ext <<_ACEOF
72003 /* confdefs.h.  */
72004 _ACEOF
72005 cat confdefs.h >>conftest.$ac_ext
72006 cat >>conftest.$ac_ext <<_ACEOF
72007 /* end confdefs.h.  */
72008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72010 #define $ac_func innocuous_$ac_func
72011
72012 /* System header to define __stub macros and hopefully few prototypes,
72013     which can conflict with char $ac_func (); below.
72014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72015     <limits.h> exists even on freestanding compilers.  */
72016
72017 #ifdef __STDC__
72018 # include <limits.h>
72019 #else
72020 # include <assert.h>
72021 #endif
72022
72023 #undef $ac_func
72024
72025 /* Override any GCC internal prototype to avoid an error.
72026    Use char because int might match the return type of a GCC
72027    builtin and then its argument prototype would still apply.  */
72028 #ifdef __cplusplus
72029 extern "C"
72030 #endif
72031 char $ac_func ();
72032 /* The GNU C library defines this for functions which it implements
72033     to always fail with ENOSYS.  Some functions are actually named
72034     something starting with __ and the normal name is an alias.  */
72035 #if defined __stub_$ac_func || defined __stub___$ac_func
72036 choke me
72037 #endif
72038
72039 int
72040 main ()
72041 {
72042 return $ac_func ();
72043   ;
72044   return 0;
72045 }
72046 _ACEOF
72047 rm -f conftest.$ac_objext conftest$ac_exeext
72048 if { (ac_try="$ac_link"
72049 case "(($ac_try" in
72050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72051   *) ac_try_echo=$ac_try;;
72052 esac
72053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72054 $as_echo "$ac_try_echo") >&5
72055   (eval "$ac_link") 2>conftest.er1
72056   ac_status=$?
72057   grep -v '^ *+' conftest.er1 >conftest.err
72058   rm -f conftest.er1
72059   cat conftest.err >&5
72060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72061   (exit $ac_status); } && {
72062          test -z "$ac_c_werror_flag" ||
72063          test ! -s conftest.err
72064        } && test -s conftest$ac_exeext && {
72065          test "$cross_compiling" = yes ||
72066          $as_test_x conftest$ac_exeext
72067        }; then
72068   eval "$as_ac_var=yes"
72069 else
72070   $as_echo "$as_me: failed program was:" >&5
72071 sed 's/^/| /' conftest.$ac_ext >&5
72072
72073         eval "$as_ac_var=no"
72074 fi
72075
72076 rm -rf conftest.dSYM
72077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72078       conftest$ac_exeext conftest.$ac_ext
72079 fi
72080 ac_res=`eval 'as_val=${'$as_ac_var'}
72081                  $as_echo "$as_val"'`
72082                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72083 $as_echo "$ac_res" >&6; }
72084 as_val=`eval 'as_val=${'$as_ac_var'}
72085                  $as_echo "$as_val"'`
72086    if test "x$as_val" = x""yes; then
72087   cat >>confdefs.h <<_ACEOF
72088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72089 _ACEOF
72090  ice_have_writev=yes
72091 fi
72092 done
72093
72094 if test "${ice_have_writev}" = yes; then
72095 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
72096 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
72097 if test "${ice_cv_have_writev_decl+set}" = set; then
72098   $as_echo_n "(cached) " >&6
72099 else
72100
72101 ice_cv_have_writev_decl=no
72102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72103 ice_re_word='(^|[^a-zA-Z0-9_])'
72104 for header in unistd.h sys/uio.h; do
72105 # Check for ordinary declaration
72106 cat >conftest.$ac_ext <<_ACEOF
72107 /* confdefs.h.  */
72108 _ACEOF
72109 cat confdefs.h >>conftest.$ac_ext
72110 cat >>conftest.$ac_ext <<_ACEOF
72111 /* end confdefs.h.  */
72112 #include <$header>
72113
72114 _ACEOF
72115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72116   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
72117   ice_cv_have_writev_decl=yes
72118 fi
72119 rm -f conftest*
72120
72121 if test "$ice_cv_have_writev_decl" = yes; then
72122         break
72123 fi
72124 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72125 cat >conftest.$ac_ext <<_ACEOF
72126 /* confdefs.h.  */
72127 _ACEOF
72128 cat confdefs.h >>conftest.$ac_ext
72129 cat >>conftest.$ac_ext <<_ACEOF
72130 /* end confdefs.h.  */
72131 #include <$header>
72132
72133 _ACEOF
72134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72135   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72136   ice_cv_have_writev_decl=yes
72137 fi
72138 rm -f conftest*
72139
72140 if test "$ice_cv_have_writev_decl" = yes; then
72141         break
72142 fi
72143 done
72144
72145 fi
72146
72147 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
72148 $as_echo "$ice_cv_have_writev_decl" >&6; }
72149 if test "$ice_cv_have_writev_decl" = yes; then
72150
72151 cat >>confdefs.h <<_ACEOF
72152 #define HAVE_WRITEV_DECL 1
72153 _ACEOF
72154
72155 fi
72156 fi
72157
72158
72159 ice_have_strcasecmp=no
72160
72161 for ac_func in strcasecmp
72162 do
72163 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72164 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72165 $as_echo_n "checking for $ac_func... " >&6; }
72166 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72167   $as_echo_n "(cached) " >&6
72168 else
72169   cat >conftest.$ac_ext <<_ACEOF
72170 /* confdefs.h.  */
72171 _ACEOF
72172 cat confdefs.h >>conftest.$ac_ext
72173 cat >>conftest.$ac_ext <<_ACEOF
72174 /* end confdefs.h.  */
72175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72177 #define $ac_func innocuous_$ac_func
72178
72179 /* System header to define __stub macros and hopefully few prototypes,
72180     which can conflict with char $ac_func (); below.
72181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72182     <limits.h> exists even on freestanding compilers.  */
72183
72184 #ifdef __STDC__
72185 # include <limits.h>
72186 #else
72187 # include <assert.h>
72188 #endif
72189
72190 #undef $ac_func
72191
72192 /* Override any GCC internal prototype to avoid an error.
72193    Use char because int might match the return type of a GCC
72194    builtin and then its argument prototype would still apply.  */
72195 #ifdef __cplusplus
72196 extern "C"
72197 #endif
72198 char $ac_func ();
72199 /* The GNU C library defines this for functions which it implements
72200     to always fail with ENOSYS.  Some functions are actually named
72201     something starting with __ and the normal name is an alias.  */
72202 #if defined __stub_$ac_func || defined __stub___$ac_func
72203 choke me
72204 #endif
72205
72206 int
72207 main ()
72208 {
72209 return $ac_func ();
72210   ;
72211   return 0;
72212 }
72213 _ACEOF
72214 rm -f conftest.$ac_objext conftest$ac_exeext
72215 if { (ac_try="$ac_link"
72216 case "(($ac_try" in
72217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72218   *) ac_try_echo=$ac_try;;
72219 esac
72220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72221 $as_echo "$ac_try_echo") >&5
72222   (eval "$ac_link") 2>conftest.er1
72223   ac_status=$?
72224   grep -v '^ *+' conftest.er1 >conftest.err
72225   rm -f conftest.er1
72226   cat conftest.err >&5
72227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72228   (exit $ac_status); } && {
72229          test -z "$ac_c_werror_flag" ||
72230          test ! -s conftest.err
72231        } && test -s conftest$ac_exeext && {
72232          test "$cross_compiling" = yes ||
72233          $as_test_x conftest$ac_exeext
72234        }; then
72235   eval "$as_ac_var=yes"
72236 else
72237   $as_echo "$as_me: failed program was:" >&5
72238 sed 's/^/| /' conftest.$ac_ext >&5
72239
72240         eval "$as_ac_var=no"
72241 fi
72242
72243 rm -rf conftest.dSYM
72244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72245       conftest$ac_exeext conftest.$ac_ext
72246 fi
72247 ac_res=`eval 'as_val=${'$as_ac_var'}
72248                  $as_echo "$as_val"'`
72249                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72250 $as_echo "$ac_res" >&6; }
72251 as_val=`eval 'as_val=${'$as_ac_var'}
72252                  $as_echo "$as_val"'`
72253    if test "x$as_val" = x""yes; then
72254   cat >>confdefs.h <<_ACEOF
72255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72256 _ACEOF
72257  ice_have_strcasecmp=yes
72258 fi
72259 done
72260
72261 if test "${ice_have_strcasecmp}" = yes; then
72262 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
72263 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
72264 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
72265   $as_echo_n "(cached) " >&6
72266 else
72267
72268 ice_cv_have_strcasecmp_decl=no
72269 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72270 ice_re_word='(^|[^a-zA-Z0-9_])'
72271 for header in string.h strings.h; do
72272 # Check for ordinary declaration
72273 cat >conftest.$ac_ext <<_ACEOF
72274 /* confdefs.h.  */
72275 _ACEOF
72276 cat confdefs.h >>conftest.$ac_ext
72277 cat >>conftest.$ac_ext <<_ACEOF
72278 /* end confdefs.h.  */
72279 #include <$header>
72280
72281 _ACEOF
72282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72283   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
72284   ice_cv_have_strcasecmp_decl=yes
72285 fi
72286 rm -f conftest*
72287
72288 if test "$ice_cv_have_strcasecmp_decl" = yes; then
72289         break
72290 fi
72291 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72292 cat >conftest.$ac_ext <<_ACEOF
72293 /* confdefs.h.  */
72294 _ACEOF
72295 cat confdefs.h >>conftest.$ac_ext
72296 cat >>conftest.$ac_ext <<_ACEOF
72297 /* end confdefs.h.  */
72298 #include <$header>
72299
72300 _ACEOF
72301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72302   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72303   ice_cv_have_strcasecmp_decl=yes
72304 fi
72305 rm -f conftest*
72306
72307 if test "$ice_cv_have_strcasecmp_decl" = yes; then
72308         break
72309 fi
72310 done
72311
72312 fi
72313
72314 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
72315 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
72316 if test "$ice_cv_have_strcasecmp_decl" = yes; then
72317
72318 cat >>confdefs.h <<_ACEOF
72319 #define HAVE_STRCASECMP_DECL 1
72320 _ACEOF
72321
72322 fi
72323 fi
72324
72325
72326 #
72327 # Devices
72328 #
72329
72330
72331
72332
72333
72334
72335
72336
72337
72338
72339
72340
72341
72342
72343
72344
72345
72346
72347
72348
72349
72350
72351
72352
72353
72354
72355
72356
72357
72358
72359
72360
72361
72362
72363
72364
72365
72366
72367
72368 # Check whether --with-libcurl was given.
72369 if test "${with_libcurl+set}" = set; then
72370   withval=$with_libcurl; _libcurl_with=$withval
72371 else
72372   _libcurl_with=yes
72373 fi
72374
72375
72376   if test "$_libcurl_with" != "no" ; then
72377
72378      for ac_prog in gawk mawk nawk awk
72379 do
72380   # Extract the first word of "$ac_prog", so it can be a program name with args.
72381 set dummy $ac_prog; ac_word=$2
72382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
72383 $as_echo_n "checking for $ac_word... " >&6; }
72384 if test "${ac_cv_prog_AWK+set}" = set; then
72385   $as_echo_n "(cached) " >&6
72386 else
72387   if test -n "$AWK"; then
72388   ac_cv_prog_AWK="$AWK" # Let the user override the test.
72389 else
72390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72391 for as_dir in $PATH
72392 do
72393   IFS=$as_save_IFS
72394   test -z "$as_dir" && as_dir=.
72395   for ac_exec_ext in '' $ac_executable_extensions; do
72396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72397     ac_cv_prog_AWK="$ac_prog"
72398     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72399     break 2
72400   fi
72401 done
72402 done
72403 IFS=$as_save_IFS
72404
72405 fi
72406 fi
72407 AWK=$ac_cv_prog_AWK
72408 if test -n "$AWK"; then
72409   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
72410 $as_echo "$AWK" >&6; }
72411 else
72412   { $as_echo "$as_me:$LINENO: result: no" >&5
72413 $as_echo "no" >&6; }
72414 fi
72415
72416
72417   test -n "$AWK" && break
72418 done
72419
72420
72421      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
72422
72423      _libcurl_try_link=yes
72424
72425      if test -d "$_libcurl_with" ; then
72426         LIBCURL_CPPFLAGS="-I$withval/include"
72427         _libcurl_ldflags="-L$withval/lib"
72428         # Extract the first word of "curl-config", so it can be a program name with args.
72429 set dummy curl-config; ac_word=$2
72430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
72431 $as_echo_n "checking for $ac_word... " >&6; }
72432 if test "${ac_cv_path__libcurl_config+set}" = set; then
72433   $as_echo_n "(cached) " >&6
72434 else
72435   case $_libcurl_config in
72436   [\\/]* | ?:[\\/]*)
72437   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
72438   ;;
72439   *)
72440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72441 for as_dir in "$withval/bin"
72442 do
72443   IFS=$as_save_IFS
72444   test -z "$as_dir" && as_dir=.
72445   for ac_exec_ext in '' $ac_executable_extensions; do
72446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72447     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
72448     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72449     break 2
72450   fi
72451 done
72452 done
72453 IFS=$as_save_IFS
72454
72455   ;;
72456 esac
72457 fi
72458 _libcurl_config=$ac_cv_path__libcurl_config
72459 if test -n "$_libcurl_config"; then
72460   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
72461 $as_echo "$_libcurl_config" >&6; }
72462 else
72463   { $as_echo "$as_me:$LINENO: result: no" >&5
72464 $as_echo "no" >&6; }
72465 fi
72466
72467
72468      else
72469         # Extract the first word of "curl-config", so it can be a program name with args.
72470 set dummy curl-config; ac_word=$2
72471 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
72472 $as_echo_n "checking for $ac_word... " >&6; }
72473 if test "${ac_cv_path__libcurl_config+set}" = set; then
72474   $as_echo_n "(cached) " >&6
72475 else
72476   case $_libcurl_config in
72477   [\\/]* | ?:[\\/]*)
72478   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
72479   ;;
72480   *)
72481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72482 for as_dir in $PATH
72483 do
72484   IFS=$as_save_IFS
72485   test -z "$as_dir" && as_dir=.
72486   for ac_exec_ext in '' $ac_executable_extensions; do
72487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72488     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
72489     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72490     break 2
72491   fi
72492 done
72493 done
72494 IFS=$as_save_IFS
72495
72496   ;;
72497 esac
72498 fi
72499 _libcurl_config=$ac_cv_path__libcurl_config
72500 if test -n "$_libcurl_config"; then
72501   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
72502 $as_echo "$_libcurl_config" >&6; }
72503 else
72504   { $as_echo "$as_me:$LINENO: result: no" >&5
72505 $as_echo "no" >&6; }
72506 fi
72507
72508
72509      fi
72510
72511      if test x$_libcurl_config != "x" ; then
72512         { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
72513 $as_echo_n "checking for the version of libcurl... " >&6; }
72514 if test "${libcurl_cv_lib_curl_version+set}" = set; then
72515   $as_echo_n "(cached) " >&6
72516 else
72517   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
72518 fi
72519 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
72520 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
72521
72522         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
72523         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
72524
72525         if test $_libcurl_wanted -gt 0 ; then
72526            { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
72527 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
72528 if test "${libcurl_cv_lib_version_ok+set}" = set; then
72529   $as_echo_n "(cached) " >&6
72530 else
72531
72532               if test $_libcurl_version -ge $_libcurl_wanted ; then
72533                  libcurl_cv_lib_version_ok=yes
72534               else
72535                  libcurl_cv_lib_version_ok=no
72536               fi
72537
72538 fi
72539 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
72540 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
72541         fi
72542
72543         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
72544            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
72545               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
72546            fi
72547            if test x"$LIBCURL" = "x" ; then
72548               LIBCURL=`$_libcurl_config --libs`
72549
72550               # This is so silly, but Apple actually has a bug in their
72551               # curl-config script.  Fixed in Tiger, but there are still
72552               # lots of Panther installs around.
72553               case "${host}" in
72554                  powerpc-apple-darwin7*)
72555                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
72556                  ;;
72557               esac
72558            fi
72559
72560            # All curl-config scripts support --feature
72561            _libcurl_features=`$_libcurl_config --feature`
72562
72563            # Is it modern enough to have --protocols? (7.12.4)
72564            if test $_libcurl_version -ge 461828 ; then
72565               _libcurl_protocols=`$_libcurl_config --protocols`
72566            fi
72567         else
72568            _libcurl_try_link=no
72569         fi
72570
72571         unset _libcurl_wanted
72572      fi
72573
72574      if test $_libcurl_try_link = yes ; then
72575
72576         # we didn't find curl-config, so let's see if the user-supplied
72577         # link line (or failing that, "-lcurl") is enough.
72578         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
72579
72580         { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
72581 $as_echo_n "checking whether libcurl is usable... " >&6; }
72582 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
72583   $as_echo_n "(cached) " >&6
72584 else
72585
72586            _libcurl_save_cppflags=$CPPFLAGS
72587            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
72588            _libcurl_save_libs=$LIBS
72589            LIBS="$LIBCURL $LIBS"
72590
72591            cat >conftest.$ac_ext <<_ACEOF
72592 /* confdefs.h.  */
72593 _ACEOF
72594 cat confdefs.h >>conftest.$ac_ext
72595 cat >>conftest.$ac_ext <<_ACEOF
72596 /* end confdefs.h.  */
72597 #include <curl/curl.h>
72598 int
72599 main ()
72600 {
72601
72602 /* Try and use a few common options to force a failure if we are
72603    missing symbols or can't link. */
72604 int x;
72605 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
72606 x=CURL_ERROR_SIZE;
72607 x=CURLOPT_WRITEFUNCTION;
72608 x=CURLOPT_FILE;
72609 x=CURLOPT_ERRORBUFFER;
72610 x=CURLOPT_STDERR;
72611 x=CURLOPT_VERBOSE;
72612
72613   ;
72614   return 0;
72615 }
72616 _ACEOF
72617 rm -f conftest.$ac_objext conftest$ac_exeext
72618 if { (ac_try="$ac_link"
72619 case "(($ac_try" in
72620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72621   *) ac_try_echo=$ac_try;;
72622 esac
72623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72624 $as_echo "$ac_try_echo") >&5
72625   (eval "$ac_link") 2>conftest.er1
72626   ac_status=$?
72627   grep -v '^ *+' conftest.er1 >conftest.err
72628   rm -f conftest.er1
72629   cat conftest.err >&5
72630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72631   (exit $ac_status); } && {
72632          test -z "$ac_c_werror_flag" ||
72633          test ! -s conftest.err
72634        } && test -s conftest$ac_exeext && {
72635          test "$cross_compiling" = yes ||
72636          $as_test_x conftest$ac_exeext
72637        }; then
72638   libcurl_cv_lib_curl_usable=yes
72639 else
72640   $as_echo "$as_me: failed program was:" >&5
72641 sed 's/^/| /' conftest.$ac_ext >&5
72642
72643         libcurl_cv_lib_curl_usable=no
72644 fi
72645
72646 rm -rf conftest.dSYM
72647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72648       conftest$ac_exeext conftest.$ac_ext
72649
72650            CPPFLAGS=$_libcurl_save_cppflags
72651            LIBS=$_libcurl_save_libs
72652            unset _libcurl_save_cppflags
72653            unset _libcurl_save_libs
72654
72655 fi
72656 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
72657 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
72658
72659         if test $libcurl_cv_lib_curl_usable = yes ; then
72660
72661            # Does curl_free() exist in this version of libcurl?
72662            # If not, fake it with free()
72663
72664            _libcurl_save_cppflags=$CPPFLAGS
72665            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
72666            _libcurl_save_libs=$LIBS
72667            LIBS="$LIBS $LIBCURL"
72668
72669            { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
72670 $as_echo_n "checking for curl_free... " >&6; }
72671 if test "${ac_cv_func_curl_free+set}" = set; then
72672   $as_echo_n "(cached) " >&6
72673 else
72674   cat >conftest.$ac_ext <<_ACEOF
72675 /* confdefs.h.  */
72676 _ACEOF
72677 cat confdefs.h >>conftest.$ac_ext
72678 cat >>conftest.$ac_ext <<_ACEOF
72679 /* end confdefs.h.  */
72680 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
72681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72682 #define curl_free innocuous_curl_free
72683
72684 /* System header to define __stub macros and hopefully few prototypes,
72685     which can conflict with char curl_free (); below.
72686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72687     <limits.h> exists even on freestanding compilers.  */
72688
72689 #ifdef __STDC__
72690 # include <limits.h>
72691 #else
72692 # include <assert.h>
72693 #endif
72694
72695 #undef curl_free
72696
72697 /* Override any GCC internal prototype to avoid an error.
72698    Use char because int might match the return type of a GCC
72699    builtin and then its argument prototype would still apply.  */
72700 #ifdef __cplusplus
72701 extern "C"
72702 #endif
72703 char curl_free ();
72704 /* The GNU C library defines this for functions which it implements
72705     to always fail with ENOSYS.  Some functions are actually named
72706     something starting with __ and the normal name is an alias.  */
72707 #if defined __stub_curl_free || defined __stub___curl_free
72708 choke me
72709 #endif
72710
72711 int
72712 main ()
72713 {
72714 return curl_free ();
72715   ;
72716   return 0;
72717 }
72718 _ACEOF
72719 rm -f conftest.$ac_objext conftest$ac_exeext
72720 if { (ac_try="$ac_link"
72721 case "(($ac_try" in
72722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72723   *) ac_try_echo=$ac_try;;
72724 esac
72725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72726 $as_echo "$ac_try_echo") >&5
72727   (eval "$ac_link") 2>conftest.er1
72728   ac_status=$?
72729   grep -v '^ *+' conftest.er1 >conftest.err
72730   rm -f conftest.er1
72731   cat conftest.err >&5
72732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72733   (exit $ac_status); } && {
72734          test -z "$ac_c_werror_flag" ||
72735          test ! -s conftest.err
72736        } && test -s conftest$ac_exeext && {
72737          test "$cross_compiling" = yes ||
72738          $as_test_x conftest$ac_exeext
72739        }; then
72740   ac_cv_func_curl_free=yes
72741 else
72742   $as_echo "$as_me: failed program was:" >&5
72743 sed 's/^/| /' conftest.$ac_ext >&5
72744
72745         ac_cv_func_curl_free=no
72746 fi
72747
72748 rm -rf conftest.dSYM
72749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72750       conftest$ac_exeext conftest.$ac_ext
72751 fi
72752 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
72753 $as_echo "$ac_cv_func_curl_free" >&6; }
72754 if test "x$ac_cv_func_curl_free" = x""yes; then
72755   :
72756 else
72757
72758 cat >>confdefs.h <<\_ACEOF
72759 #define curl_free free
72760 _ACEOF
72761
72762 fi
72763
72764
72765            CPPFLAGS=$_libcurl_save_cppflags
72766            LIBS=$_libcurl_save_libs
72767            unset _libcurl_save_cppflags
72768            unset _libcurl_save_libs
72769
72770
72771 cat >>confdefs.h <<\_ACEOF
72772 #define HAVE_LIBCURL 1
72773 _ACEOF
72774
72775
72776
72777
72778            for _libcurl_feature in $_libcurl_features ; do
72779               cat >>confdefs.h <<_ACEOF
72780 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
72781 _ACEOF
72782
72783               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
72784            done
72785
72786            if test "x$_libcurl_protocols" = "x" ; then
72787
72788               # We don't have --protocols, so just assume that all
72789               # protocols are available
72790               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
72791
72792               if test x$libcurl_feature_SSL = xyes ; then
72793                  _libcurl_protocols="$_libcurl_protocols HTTPS"
72794
72795                  # FTPS wasn't standards-compliant until version
72796                  # 7.11.0
72797                  if test $_libcurl_version -ge 461568; then
72798                     _libcurl_protocols="$_libcurl_protocols FTPS"
72799                  fi
72800               fi
72801            fi
72802
72803            for _libcurl_protocol in $_libcurl_protocols ; do
72804               cat >>confdefs.h <<_ACEOF
72805 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
72806 _ACEOF
72807
72808               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
72809            done
72810         else
72811            unset LIBCURL
72812            unset LIBCURL_CPPFLAGS
72813         fi
72814      fi
72815
72816      unset _libcurl_try_link
72817      unset _libcurl_version_parse
72818      unset _libcurl_config
72819      unset _libcurl_feature
72820      unset _libcurl_features
72821      unset _libcurl_protocol
72822      unset _libcurl_protocols
72823      unset _libcurl_version
72824      unset _libcurl_ldflags
72825   fi
72826
72827   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
72828      # This is the IF-NO path
72829      HAVE_CURL=no
72830   else
72831      # This is the IF-YES path
72832      HAVE_CURL=yes
72833   fi
72834
72835   unset _libcurl_with
72836
72837     if test x"$HAVE_CURL" = x"yes"; then
72838         LIBS="$LIBCURL $LIBS"
72839
72840         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
72841
72842
72843
72844
72845     { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
72846 $as_echo_n "checking for curl_off_t... " >&6; }
72847 if test "${ac_cv_type_curl_off_t+set}" = set; then
72848   $as_echo_n "(cached) " >&6
72849 else
72850   ac_cv_type_curl_off_t=no
72851 cat >conftest.$ac_ext <<_ACEOF
72852 /* confdefs.h.  */
72853 _ACEOF
72854 cat confdefs.h >>conftest.$ac_ext
72855 cat >>conftest.$ac_ext <<_ACEOF
72856 /* end confdefs.h.  */
72857
72858 #ifdef HAVE_SYS_TYPES_H
72859 #include <sys/types.h>
72860 #endif
72861 #ifdef STDC_HEADERS
72862 #include <stdlib.h>
72863 #include <stddef.h>
72864 #endif
72865 #include <curl/curl.h>
72866
72867
72868
72869 int
72870 main ()
72871 {
72872 if (sizeof (curl_off_t))
72873        return 0;
72874   ;
72875   return 0;
72876 }
72877 _ACEOF
72878 rm -f conftest.$ac_objext
72879 if { (ac_try="$ac_compile"
72880 case "(($ac_try" in
72881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72882   *) ac_try_echo=$ac_try;;
72883 esac
72884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72885 $as_echo "$ac_try_echo") >&5
72886   (eval "$ac_compile") 2>conftest.er1
72887   ac_status=$?
72888   grep -v '^ *+' conftest.er1 >conftest.err
72889   rm -f conftest.er1
72890   cat conftest.err >&5
72891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72892   (exit $ac_status); } && {
72893          test -z "$ac_c_werror_flag" ||
72894          test ! -s conftest.err
72895        } && test -s conftest.$ac_objext; then
72896   cat >conftest.$ac_ext <<_ACEOF
72897 /* confdefs.h.  */
72898 _ACEOF
72899 cat confdefs.h >>conftest.$ac_ext
72900 cat >>conftest.$ac_ext <<_ACEOF
72901 /* end confdefs.h.  */
72902
72903 #ifdef HAVE_SYS_TYPES_H
72904 #include <sys/types.h>
72905 #endif
72906 #ifdef STDC_HEADERS
72907 #include <stdlib.h>
72908 #include <stddef.h>
72909 #endif
72910 #include <curl/curl.h>
72911
72912
72913
72914 int
72915 main ()
72916 {
72917 if (sizeof ((curl_off_t)))
72918           return 0;
72919   ;
72920   return 0;
72921 }
72922 _ACEOF
72923 rm -f conftest.$ac_objext
72924 if { (ac_try="$ac_compile"
72925 case "(($ac_try" in
72926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72927   *) ac_try_echo=$ac_try;;
72928 esac
72929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72930 $as_echo "$ac_try_echo") >&5
72931   (eval "$ac_compile") 2>conftest.er1
72932   ac_status=$?
72933   grep -v '^ *+' conftest.er1 >conftest.err
72934   rm -f conftest.er1
72935   cat conftest.err >&5
72936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72937   (exit $ac_status); } && {
72938          test -z "$ac_c_werror_flag" ||
72939          test ! -s conftest.err
72940        } && test -s conftest.$ac_objext; then
72941   :
72942 else
72943   $as_echo "$as_me: failed program was:" >&5
72944 sed 's/^/| /' conftest.$ac_ext >&5
72945
72946         ac_cv_type_curl_off_t=yes
72947 fi
72948
72949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72950 else
72951   $as_echo "$as_me: failed program was:" >&5
72952 sed 's/^/| /' conftest.$ac_ext >&5
72953
72954
72955 fi
72956
72957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
72958 fi
72959 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
72960 $as_echo "$ac_cv_type_curl_off_t" >&6; }
72961 if test "x$ac_cv_type_curl_off_t" = x""yes; then
72962   :
72963 else
72964
72965
72966 cat >>confdefs.h <<\_ACEOF
72967 #define curl_off_t off_t
72968 _ACEOF
72969
72970
72971 fi
72972
72973
72974         case "$host" in
72975             *sun-solaris2*) # Solaris, all versions.
72976             # we extract the -L flags and translate them to -R flags, as required
72977             # by the runtime linker.
72978             if test -n "$_libcurl_config"; then
72979                 curlflags=`$_libcurl_config --libs 2>/dev/null`
72980                 for flag in curlflags; do
72981                     case $flag in
72982                         -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
72983                     esac
72984                 done
72985             fi
72986             ;;
72987         esac
72988     fi
72989
72990
72991
72992     HAVE_HMAC=yes
72993
72994 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
72995 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
72996 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
72997   $as_echo_n "(cached) " >&6
72998 else
72999   ac_check_lib_save_LIBS=$LIBS
73000 LIBS="-lcrypto  $LIBS"
73001 cat >conftest.$ac_ext <<_ACEOF
73002 /* confdefs.h.  */
73003 _ACEOF
73004 cat confdefs.h >>conftest.$ac_ext
73005 cat >>conftest.$ac_ext <<_ACEOF
73006 /* end confdefs.h.  */
73007
73008 /* Override any GCC internal prototype to avoid an error.
73009    Use char because int might match the return type of a GCC
73010    builtin and then its argument prototype would still apply.  */
73011 #ifdef __cplusplus
73012 extern "C"
73013 #endif
73014 char HMAC_CTX_init ();
73015 int
73016 main ()
73017 {
73018 return HMAC_CTX_init ();
73019   ;
73020   return 0;
73021 }
73022 _ACEOF
73023 rm -f conftest.$ac_objext conftest$ac_exeext
73024 if { (ac_try="$ac_link"
73025 case "(($ac_try" in
73026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73027   *) ac_try_echo=$ac_try;;
73028 esac
73029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73030 $as_echo "$ac_try_echo") >&5
73031   (eval "$ac_link") 2>conftest.er1
73032   ac_status=$?
73033   grep -v '^ *+' conftest.er1 >conftest.err
73034   rm -f conftest.er1
73035   cat conftest.err >&5
73036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73037   (exit $ac_status); } && {
73038          test -z "$ac_c_werror_flag" ||
73039          test ! -s conftest.err
73040        } && test -s conftest$ac_exeext && {
73041          test "$cross_compiling" = yes ||
73042          $as_test_x conftest$ac_exeext
73043        }; then
73044   ac_cv_lib_crypto_HMAC_CTX_init=yes
73045 else
73046   $as_echo "$as_me: failed program was:" >&5
73047 sed 's/^/| /' conftest.$ac_ext >&5
73048
73049         ac_cv_lib_crypto_HMAC_CTX_init=no
73050 fi
73051
73052 rm -rf conftest.dSYM
73053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73054       conftest$ac_exeext conftest.$ac_ext
73055 LIBS=$ac_check_lib_save_LIBS
73056 fi
73057 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
73058 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
73059 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
73060   cat >>confdefs.h <<_ACEOF
73061 #define HAVE_LIBCRYPTO 1
73062 _ACEOF
73063
73064   LIBS="-lcrypto $LIBS"
73065
73066 else
73067   HAVE_HMAC=no
73068 fi
73069
73070
73071     found_hmac_h=no
73072
73073
73074
73075 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
73076 do
73077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
73078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73079   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73080 $as_echo_n "checking for $ac_header... " >&6; }
73081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73082   $as_echo_n "(cached) " >&6
73083 fi
73084 ac_res=`eval 'as_val=${'$as_ac_Header'}
73085                  $as_echo "$as_val"'`
73086                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73087 $as_echo "$ac_res" >&6; }
73088 else
73089   # Is the header compilable?
73090 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
73091 $as_echo_n "checking $ac_header usability... " >&6; }
73092 cat >conftest.$ac_ext <<_ACEOF
73093 /* confdefs.h.  */
73094 _ACEOF
73095 cat confdefs.h >>conftest.$ac_ext
73096 cat >>conftest.$ac_ext <<_ACEOF
73097 /* end confdefs.h.  */
73098 $ac_includes_default
73099 #include <$ac_header>
73100 _ACEOF
73101 rm -f conftest.$ac_objext
73102 if { (ac_try="$ac_compile"
73103 case "(($ac_try" in
73104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73105   *) ac_try_echo=$ac_try;;
73106 esac
73107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73108 $as_echo "$ac_try_echo") >&5
73109   (eval "$ac_compile") 2>conftest.er1
73110   ac_status=$?
73111   grep -v '^ *+' conftest.er1 >conftest.err
73112   rm -f conftest.er1
73113   cat conftest.err >&5
73114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73115   (exit $ac_status); } && {
73116          test -z "$ac_c_werror_flag" ||
73117          test ! -s conftest.err
73118        } && test -s conftest.$ac_objext; then
73119   ac_header_compiler=yes
73120 else
73121   $as_echo "$as_me: failed program was:" >&5
73122 sed 's/^/| /' conftest.$ac_ext >&5
73123
73124         ac_header_compiler=no
73125 fi
73126
73127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73128 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73129 $as_echo "$ac_header_compiler" >&6; }
73130
73131 # Is the header present?
73132 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
73133 $as_echo_n "checking $ac_header presence... " >&6; }
73134 cat >conftest.$ac_ext <<_ACEOF
73135 /* confdefs.h.  */
73136 _ACEOF
73137 cat confdefs.h >>conftest.$ac_ext
73138 cat >>conftest.$ac_ext <<_ACEOF
73139 /* end confdefs.h.  */
73140 #include <$ac_header>
73141 _ACEOF
73142 if { (ac_try="$ac_cpp conftest.$ac_ext"
73143 case "(($ac_try" in
73144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73145   *) ac_try_echo=$ac_try;;
73146 esac
73147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73148 $as_echo "$ac_try_echo") >&5
73149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
73150   ac_status=$?
73151   grep -v '^ *+' conftest.er1 >conftest.err
73152   rm -f conftest.er1
73153   cat conftest.err >&5
73154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73155   (exit $ac_status); } >/dev/null && {
73156          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
73157          test ! -s conftest.err
73158        }; then
73159   ac_header_preproc=yes
73160 else
73161   $as_echo "$as_me: failed program was:" >&5
73162 sed 's/^/| /' conftest.$ac_ext >&5
73163
73164   ac_header_preproc=no
73165 fi
73166
73167 rm -f conftest.err conftest.$ac_ext
73168 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
73169 $as_echo "$ac_header_preproc" >&6; }
73170
73171 # So?  What about this header?
73172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
73173   yes:no: )
73174     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
73175 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
73176     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
73177 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
73178     ac_header_preproc=yes
73179     ;;
73180   no:yes:* )
73181     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
73182 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
73183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
73184 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
73185     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
73186 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
73187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
73188 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
73189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
73190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
73191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
73192 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
73193
73194     ;;
73195 esac
73196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73197 $as_echo_n "checking for $ac_header... " >&6; }
73198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73199   $as_echo_n "(cached) " >&6
73200 else
73201   eval "$as_ac_Header=\$ac_header_preproc"
73202 fi
73203 ac_res=`eval 'as_val=${'$as_ac_Header'}
73204                  $as_echo "$as_val"'`
73205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73206 $as_echo "$ac_res" >&6; }
73207
73208 fi
73209 as_val=`eval 'as_val=${'$as_ac_Header'}
73210                  $as_echo "$as_val"'`
73211    if test "x$as_val" = x""yes; then
73212   cat >>confdefs.h <<_ACEOF
73213 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
73214 _ACEOF
73215  found_hmac_h=yes; break
73216 fi
73217
73218 done
73219
73220     if test x"$found_hmac_h" != x"yes"; then
73221         HAVE_HMAC=no
73222     fi
73223
73224
73225
73226
73227
73228     # Check whether --enable-s3-device was given.
73229 if test "${enable_s3_device+set}" = set; then
73230   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
73231 else
73232    WANT_S3_DEVICE=maybe
73233 fi
73234
73235
73236     { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
73237 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
73238     # if the user didn't specify 'no', then check for support
73239     if test x"$WANT_S3_DEVICE" != x"no"; then
73240         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
73241             WANT_S3_DEVICE=yes
73242         else
73243             # no support -- if the user explicitly enabled the device,
73244             # then this is an error
73245             if test x"$WANT_S3_DEVICE" = x"yes"; then
73246                 { $as_echo "$as_me:$LINENO: result: no" >&5
73247 $as_echo "no" >&6; }
73248                 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
73249 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
73250    { (exit 1); exit 1; }; }
73251             else
73252                 WANT_S3_DEVICE=no
73253             fi
73254         fi
73255     fi
73256     { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
73257 $as_echo "$WANT_S3_DEVICE" >&6; }
73258
73259      if test x"$WANT_S3_DEVICE" = x"yes"; then
73260   WANT_S3_DEVICE_TRUE=
73261   WANT_S3_DEVICE_FALSE='#'
73262 else
73263   WANT_S3_DEVICE_TRUE='#'
73264   WANT_S3_DEVICE_FALSE=
73265 fi
73266
73267
73268     # Now handle any setup for S3, if we want it.
73269     if test x"$WANT_S3_DEVICE" = x"yes"; then
73270
73271 cat >>confdefs.h <<\_ACEOF
73272 #define WANT_S3_DEVICE /**/
73273 _ACEOF
73274
73275     fi
73276
73277
73278
73279
73280
73281 for ac_header in \
73282         linux/zftape.h \
73283         sys/tape.h \
73284         sys/mtio.h \
73285
73286 do
73287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
73288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73289   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73290 $as_echo_n "checking for $ac_header... " >&6; }
73291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73292   $as_echo_n "(cached) " >&6
73293 fi
73294 ac_res=`eval 'as_val=${'$as_ac_Header'}
73295                  $as_echo "$as_val"'`
73296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73297 $as_echo "$ac_res" >&6; }
73298 else
73299   # Is the header compilable?
73300 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
73301 $as_echo_n "checking $ac_header usability... " >&6; }
73302 cat >conftest.$ac_ext <<_ACEOF
73303 /* confdefs.h.  */
73304 _ACEOF
73305 cat confdefs.h >>conftest.$ac_ext
73306 cat >>conftest.$ac_ext <<_ACEOF
73307 /* end confdefs.h.  */
73308 $ac_includes_default
73309 #include <$ac_header>
73310 _ACEOF
73311 rm -f conftest.$ac_objext
73312 if { (ac_try="$ac_compile"
73313 case "(($ac_try" in
73314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73315   *) ac_try_echo=$ac_try;;
73316 esac
73317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73318 $as_echo "$ac_try_echo") >&5
73319   (eval "$ac_compile") 2>conftest.er1
73320   ac_status=$?
73321   grep -v '^ *+' conftest.er1 >conftest.err
73322   rm -f conftest.er1
73323   cat conftest.err >&5
73324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73325   (exit $ac_status); } && {
73326          test -z "$ac_c_werror_flag" ||
73327          test ! -s conftest.err
73328        } && test -s conftest.$ac_objext; then
73329   ac_header_compiler=yes
73330 else
73331   $as_echo "$as_me: failed program was:" >&5
73332 sed 's/^/| /' conftest.$ac_ext >&5
73333
73334         ac_header_compiler=no
73335 fi
73336
73337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
73339 $as_echo "$ac_header_compiler" >&6; }
73340
73341 # Is the header present?
73342 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
73343 $as_echo_n "checking $ac_header presence... " >&6; }
73344 cat >conftest.$ac_ext <<_ACEOF
73345 /* confdefs.h.  */
73346 _ACEOF
73347 cat confdefs.h >>conftest.$ac_ext
73348 cat >>conftest.$ac_ext <<_ACEOF
73349 /* end confdefs.h.  */
73350 #include <$ac_header>
73351 _ACEOF
73352 if { (ac_try="$ac_cpp conftest.$ac_ext"
73353 case "(($ac_try" in
73354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73355   *) ac_try_echo=$ac_try;;
73356 esac
73357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73358 $as_echo "$ac_try_echo") >&5
73359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
73360   ac_status=$?
73361   grep -v '^ *+' conftest.er1 >conftest.err
73362   rm -f conftest.er1
73363   cat conftest.err >&5
73364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73365   (exit $ac_status); } >/dev/null && {
73366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
73367          test ! -s conftest.err
73368        }; then
73369   ac_header_preproc=yes
73370 else
73371   $as_echo "$as_me: failed program was:" >&5
73372 sed 's/^/| /' conftest.$ac_ext >&5
73373
73374   ac_header_preproc=no
73375 fi
73376
73377 rm -f conftest.err conftest.$ac_ext
73378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
73379 $as_echo "$ac_header_preproc" >&6; }
73380
73381 # So?  What about this header?
73382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
73383   yes:no: )
73384     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
73385 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
73386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
73387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
73388     ac_header_preproc=yes
73389     ;;
73390   no:yes:* )
73391     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
73392 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
73393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
73394 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
73395     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
73396 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
73397     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
73398 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
73399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
73400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
73401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
73402 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
73403
73404     ;;
73405 esac
73406 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
73407 $as_echo_n "checking for $ac_header... " >&6; }
73408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73409   $as_echo_n "(cached) " >&6
73410 else
73411   eval "$as_ac_Header=\$ac_header_preproc"
73412 fi
73413 ac_res=`eval 'as_val=${'$as_ac_Header'}
73414                  $as_echo "$as_val"'`
73415                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73416 $as_echo "$ac_res" >&6; }
73417
73418 fi
73419 as_val=`eval 'as_val=${'$as_ac_Header'}
73420                  $as_echo "$as_val"'`
73421    if test "x$as_val" = x""yes; then
73422   cat >>confdefs.h <<_ACEOF
73423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
73424 _ACEOF
73425
73426 fi
73427
73428 done
73429
73430
73431     # check for MTIOCTOP, an indicator of POSIX tape support
73432     { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
73433 $as_echo_n "checking for MTIOCTOP... " >&6; }
73434 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
73435   $as_echo_n "(cached) " >&6
73436 else
73437
73438         cat >conftest.$ac_ext <<_ACEOF
73439 /* confdefs.h.  */
73440 _ACEOF
73441 cat confdefs.h >>conftest.$ac_ext
73442 cat >>conftest.$ac_ext <<_ACEOF
73443 /* end confdefs.h.  */
73444
73445 #ifdef HAVE_SYS_TAPE_H
73446 # include <sys/tape.h>
73447 #endif
73448 #ifdef HAVE_SYS_MTIO_H
73449 # include <sys/mtio.h>
73450 #endif
73451 #ifndef MTIOCTOP
73452 #error MTIOCTOP not defined
73453 #endif
73454
73455 int
73456 main ()
73457 {
73458  int dummy = 0;
73459   ;
73460   return 0;
73461 }
73462 _ACEOF
73463 rm -f conftest.$ac_objext
73464 if { (ac_try="$ac_compile"
73465 case "(($ac_try" in
73466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73467   *) ac_try_echo=$ac_try;;
73468 esac
73469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73470 $as_echo "$ac_try_echo") >&5
73471   (eval "$ac_compile") 2>conftest.er1
73472   ac_status=$?
73473   grep -v '^ *+' conftest.er1 >conftest.err
73474   rm -f conftest.er1
73475   cat conftest.err >&5
73476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73477   (exit $ac_status); } && {
73478          test -z "$ac_c_werror_flag" ||
73479          test ! -s conftest.err
73480        } && test -s conftest.$ac_objext; then
73481   amanda_cv_HAVE_MTIOCTOP=yes
73482 else
73483   $as_echo "$as_me: failed program was:" >&5
73484 sed 's/^/| /' conftest.$ac_ext >&5
73485
73486         amanda_cv_HAVE_MTIOCTOP=no
73487 fi
73488
73489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73490
73491         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
73492
73493 fi
73494 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
73495 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
73496
73497     # maybe we have no tape device at all (e.g., Mac OS X)?
73498     if test x"$HAVE_MTIOCTOP" = x"yes"; then
73499         want_tape_device=yes
73500
73501 cat >>confdefs.h <<\_ACEOF
73502 #define WANT_TAPE_DEVICE 1
73503 _ACEOF
73504
73505     fi
73506      if test -n "$want_tape_device"; then
73507   WANT_TAPE_DEVICE_TRUE=
73508   WANT_TAPE_DEVICE_FALSE='#'
73509 else
73510   WANT_TAPE_DEVICE_TRUE='#'
73511   WANT_TAPE_DEVICE_FALSE=
73512 fi
73513
73514
73515     #
73516     # Check for various "mt status" related structure elements.
73517     #
73518     { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
73519 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
73520     cat >conftest.$ac_ext <<_ACEOF
73521 /* confdefs.h.  */
73522 _ACEOF
73523 cat confdefs.h >>conftest.$ac_ext
73524 cat >>conftest.$ac_ext <<_ACEOF
73525 /* end confdefs.h.  */
73526
73527 #include <stdio.h>
73528 #include <sys/types.h>
73529 #include <sys/mtio.h>
73530
73531 int
73532 main ()
73533 {
73534
73535             struct mtget buf;
73536             long ds;
73537
73538             ds = buf.mt_flags;
73539
73540   ;
73541   return 0;
73542 }
73543 _ACEOF
73544 rm -f conftest.$ac_objext
73545 if { (ac_try="$ac_compile"
73546 case "(($ac_try" in
73547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73548   *) ac_try_echo=$ac_try;;
73549 esac
73550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73551 $as_echo "$ac_try_echo") >&5
73552   (eval "$ac_compile") 2>conftest.er1
73553   ac_status=$?
73554   grep -v '^ *+' conftest.er1 >conftest.err
73555   rm -f conftest.er1
73556   cat conftest.err >&5
73557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73558   (exit $ac_status); } && {
73559          test -z "$ac_c_werror_flag" ||
73560          test ! -s conftest.err
73561        } && test -s conftest.$ac_objext; then
73562
73563             { $as_echo "$as_me:$LINENO: result: yes" >&5
73564 $as_echo "yes" >&6; }
73565
73566 cat >>confdefs.h <<\_ACEOF
73567 #define HAVE_MT_FLAGS 1
73568 _ACEOF
73569
73570
73571 else
73572   $as_echo "$as_me: failed program was:" >&5
73573 sed 's/^/| /' conftest.$ac_ext >&5
73574
73575
73576             { $as_echo "$as_me:$LINENO: result: no" >&5
73577 $as_echo "no" >&6; }
73578
73579 fi
73580
73581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73582
73583     { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
73584 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
73585     mt_fileno_result="found"
73586     cat >conftest.$ac_ext <<_ACEOF
73587 /* confdefs.h.  */
73588 _ACEOF
73589 cat confdefs.h >>conftest.$ac_ext
73590 cat >>conftest.$ac_ext <<_ACEOF
73591 /* end confdefs.h.  */
73592
73593 #include <stdio.h>
73594 #include <sys/types.h>
73595 #include <sys/mtio.h>
73596
73597 int
73598 main ()
73599 {
73600
73601             struct mtget buf;
73602             long ds;
73603
73604             ds = buf.mt_fileno;
73605
73606   ;
73607   return 0;
73608 }
73609 _ACEOF
73610 rm -f conftest.$ac_objext
73611 if { (ac_try="$ac_compile"
73612 case "(($ac_try" in
73613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73614   *) ac_try_echo=$ac_try;;
73615 esac
73616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73617 $as_echo "$ac_try_echo") >&5
73618   (eval "$ac_compile") 2>conftest.er1
73619   ac_status=$?
73620   grep -v '^ *+' conftest.er1 >conftest.err
73621   rm -f conftest.er1
73622   cat conftest.err >&5
73623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73624   (exit $ac_status); } && {
73625          test -z "$ac_c_werror_flag" ||
73626          test ! -s conftest.err
73627        } && test -s conftest.$ac_objext; then
73628
73629             { $as_echo "$as_me:$LINENO: result: yes" >&5
73630 $as_echo "yes" >&6; }
73631
73632 cat >>confdefs.h <<\_ACEOF
73633 #define HAVE_MT_FILENO 1
73634 _ACEOF
73635
73636
73637 else
73638   $as_echo "$as_me: failed program was:" >&5
73639 sed 's/^/| /' conftest.$ac_ext >&5
73640
73641
73642             { $as_echo "$as_me:$LINENO: result: no" >&5
73643 $as_echo "no" >&6; }
73644
73645 fi
73646
73647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73648
73649     { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
73650 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
73651     cat >conftest.$ac_ext <<_ACEOF
73652 /* confdefs.h.  */
73653 _ACEOF
73654 cat confdefs.h >>conftest.$ac_ext
73655 cat >>conftest.$ac_ext <<_ACEOF
73656 /* end confdefs.h.  */
73657
73658 #include <stdio.h>
73659 #include <sys/types.h>
73660 #include <sys/mtio.h>
73661
73662 int
73663 main ()
73664 {
73665
73666             struct mtget buf;
73667             long ds;
73668
73669             ds = buf.mt_blkno;
73670
73671   ;
73672   return 0;
73673 }
73674 _ACEOF
73675 rm -f conftest.$ac_objext
73676 if { (ac_try="$ac_compile"
73677 case "(($ac_try" in
73678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73679   *) ac_try_echo=$ac_try;;
73680 esac
73681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73682 $as_echo "$ac_try_echo") >&5
73683   (eval "$ac_compile") 2>conftest.er1
73684   ac_status=$?
73685   grep -v '^ *+' conftest.er1 >conftest.err
73686   rm -f conftest.er1
73687   cat conftest.err >&5
73688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73689   (exit $ac_status); } && {
73690          test -z "$ac_c_werror_flag" ||
73691          test ! -s conftest.err
73692        } && test -s conftest.$ac_objext; then
73693
73694             { $as_echo "$as_me:$LINENO: result: yes" >&5
73695 $as_echo "yes" >&6; }
73696
73697 cat >>confdefs.h <<\_ACEOF
73698 #define HAVE_MT_BLKNO 1
73699 _ACEOF
73700
73701
73702 else
73703   $as_echo "$as_me: failed program was:" >&5
73704 sed 's/^/| /' conftest.$ac_ext >&5
73705
73706
73707             { $as_echo "$as_me:$LINENO: result: no" >&5
73708 $as_echo "no" >&6; }
73709
73710 fi
73711
73712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73713
73714     { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
73715 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
73716     cat >conftest.$ac_ext <<_ACEOF
73717 /* confdefs.h.  */
73718 _ACEOF
73719 cat confdefs.h >>conftest.$ac_ext
73720 cat >>conftest.$ac_ext <<_ACEOF
73721 /* end confdefs.h.  */
73722
73723 #include <stdio.h>
73724 #include <sys/types.h>
73725 #include <sys/mtio.h>
73726
73727 int
73728 main ()
73729 {
73730
73731             struct mtget buf;
73732             long ds;
73733
73734             ds = buf.mt_dsreg;
73735
73736   ;
73737   return 0;
73738 }
73739 _ACEOF
73740 rm -f conftest.$ac_objext
73741 if { (ac_try="$ac_compile"
73742 case "(($ac_try" in
73743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73744   *) ac_try_echo=$ac_try;;
73745 esac
73746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73747 $as_echo "$ac_try_echo") >&5
73748   (eval "$ac_compile") 2>conftest.er1
73749   ac_status=$?
73750   grep -v '^ *+' conftest.er1 >conftest.err
73751   rm -f conftest.er1
73752   cat conftest.err >&5
73753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73754   (exit $ac_status); } && {
73755          test -z "$ac_c_werror_flag" ||
73756          test ! -s conftest.err
73757        } && test -s conftest.$ac_objext; then
73758
73759             { $as_echo "$as_me:$LINENO: result: yes" >&5
73760 $as_echo "yes" >&6; }
73761
73762 cat >>confdefs.h <<\_ACEOF
73763 #define HAVE_MT_DSREG 1
73764 _ACEOF
73765
73766
73767 else
73768   $as_echo "$as_me: failed program was:" >&5
73769 sed 's/^/| /' conftest.$ac_ext >&5
73770
73771
73772             { $as_echo "$as_me:$LINENO: result: no" >&5
73773 $as_echo "no" >&6; }
73774
73775 fi
73776
73777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73778
73779     { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
73780 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
73781     cat >conftest.$ac_ext <<_ACEOF
73782 /* confdefs.h.  */
73783 _ACEOF
73784 cat confdefs.h >>conftest.$ac_ext
73785 cat >>conftest.$ac_ext <<_ACEOF
73786 /* end confdefs.h.  */
73787
73788 #include <stdio.h>
73789 #include <sys/types.h>
73790 #include <sys/mtio.h>
73791
73792 int
73793 main ()
73794 {
73795
73796             struct mtget buf;
73797             long ds;
73798
73799             ds = buf.mt_erreg;
73800
73801   ;
73802   return 0;
73803 }
73804 _ACEOF
73805 rm -f conftest.$ac_objext
73806 if { (ac_try="$ac_compile"
73807 case "(($ac_try" in
73808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73809   *) ac_try_echo=$ac_try;;
73810 esac
73811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73812 $as_echo "$ac_try_echo") >&5
73813   (eval "$ac_compile") 2>conftest.er1
73814   ac_status=$?
73815   grep -v '^ *+' conftest.er1 >conftest.err
73816   rm -f conftest.er1
73817   cat conftest.err >&5
73818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73819   (exit $ac_status); } && {
73820          test -z "$ac_c_werror_flag" ||
73821          test ! -s conftest.err
73822        } && test -s conftest.$ac_objext; then
73823
73824             { $as_echo "$as_me:$LINENO: result: yes" >&5
73825 $as_echo "yes" >&6; }
73826
73827 cat >>confdefs.h <<\_ACEOF
73828 #define HAVE_MT_ERREG 1
73829 _ACEOF
73830
73831
73832 else
73833   $as_echo "$as_me: failed program was:" >&5
73834 sed 's/^/| /' conftest.$ac_ext >&5
73835
73836
73837             { $as_echo "$as_me:$LINENO: result: no" >&5
73838 $as_echo "no" >&6; }
73839
73840 fi
73841
73842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
73843
73844     case "$host" in
73845         *linux*)
73846 cat >>confdefs.h <<\_ACEOF
73847 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
73848 _ACEOF
73849 ;;
73850     esac
73851
73852
73853         # Check whether --enable-dvdrw-device was given.
73854 if test "${enable_dvdrw_device+set}" = set; then
73855   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
73856 else
73857    WANT_DVDRW_DEVICE=yes
73858 fi
73859
73860
73861         { $as_echo "$as_me:$LINENO: checking whether to include the DVD-RW device" >&5
73862 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
73863         { $as_echo "$as_me:$LINENO: result: $WANT_DVDRW_DEVICE" >&5
73864 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
73865
73866          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
73867   WANT_DVDRW_DEVICE_TRUE=
73868   WANT_DVDRW_DEVICE_FALSE='#'
73869 else
73870   WANT_DVDRW_DEVICE_TRUE='#'
73871   WANT_DVDRW_DEVICE_FALSE=
73872 fi
73873
73874
73875         # Now handle any setup for DVDRW, if we want it.
73876         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
73877
73878 cat >>confdefs.h <<\_ACEOF
73879 #define WANT_DVDRW_DEVICE /**/
73880 _ACEOF
73881
73882         fi
73883
73884
73885
73886
73887     # Check whether --enable-ndmp-device was given.
73888 if test "${enable_ndmp_device+set}" = set; then
73889   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
73890 else
73891    WANT_NDMP_DEVICE=$WANT_NDMP
73892 fi
73893
73894
73895     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
73896         { { $as_echo "$as_me:$LINENO: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&5
73897 $as_echo "$as_me: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&2;}
73898    { (exit 1); exit 1; }; }
73899     fi
73900
73901     if test x"$WANT_NDMP_DEVICE" = x"true"; then
73902
73903 cat >>confdefs.h <<\_ACEOF
73904 #define WANT_NDMP_DEVICE 1
73905 _ACEOF
73906
73907     fi
73908
73909      if test x"$WANT_NDMP_DEVICE" = x"true"; then
73910   WANT_NDMP_DEVICE_TRUE=
73911   WANT_NDMP_DEVICE_FALSE='#'
73912 else
73913   WANT_NDMP_DEVICE_TRUE='#'
73914   WANT_NDMP_DEVICE_FALSE=
73915 fi
73916
73917
73918
73919
73920 ac_config_files="$ac_config_files Makefile amandad-src/Makefile amar-src/Makefile amplot/Makefile changer-src/Makefile client-src/Makefile common-src/Makefile config/Makefile device-src/Makefile application-src/Makefile example/Makefile gnulib/Makefile installcheck/Makefile man/Makefile ndmp-src/Makefile oldrecover-src/Makefile packaging/Makefile perl/amglue/Makefile perl/Makefile po/Makefile recover-src/Makefile server-src/Makefile xfer-src/Makefile"
73921
73922
73923 cat >confcache <<\_ACEOF
73924 # This file is a shell script that caches the results of configure
73925 # tests run on this system so they can be shared between configure
73926 # scripts and configure runs, see configure's option --config-cache.
73927 # It is not useful on other systems.  If it contains results you don't
73928 # want to keep, you may remove or edit it.
73929 #
73930 # config.status only pays attention to the cache file if you give it
73931 # the --recheck option to rerun configure.
73932 #
73933 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73934 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73935 # following values.
73936
73937 _ACEOF
73938
73939 # The following way of writing the cache mishandles newlines in values,
73940 # but we know of no workaround that is simple, portable, and efficient.
73941 # So, we kill variables containing newlines.
73942 # Ultrix sh set writes to stderr and can't be redirected directly,
73943 # and sets the high bit in the cache file unless we assign to the vars.
73944 (
73945   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
73946     eval ac_val=\$$ac_var
73947     case $ac_val in #(
73948     *${as_nl}*)
73949       case $ac_var in #(
73950       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
73951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
73952       esac
73953       case $ac_var in #(
73954       _ | IFS | as_nl) ;; #(
73955       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
73956       *) $as_unset $ac_var ;;
73957       esac ;;
73958     esac
73959   done
73960
73961   (set) 2>&1 |
73962     case $as_nl`(ac_space=' '; set) 2>&1` in #(
73963     *${as_nl}ac_space=\ *)
73964       # `set' does not quote correctly, so add quotes (double-quote
73965       # substitution turns \\\\ into \\, and sed turns \\ into \).
73966       sed -n \
73967         "s/'/'\\\\''/g;
73968           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73969       ;; #(
73970     *)
73971       # `set' quotes correctly as required by POSIX, so do not add quotes.
73972       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
73973       ;;
73974     esac |
73975     sort
73976 ) |
73977   sed '
73978      /^ac_cv_env_/b end
73979      t clear
73980      :clear
73981      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73982      t end
73983      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73984      :end' >>confcache
73985 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
73986   if test -w "$cache_file"; then
73987     test "x$cache_file" != "x/dev/null" &&
73988       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
73989 $as_echo "$as_me: updating cache $cache_file" >&6;}
73990     cat confcache >$cache_file
73991   else
73992     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
73993 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
73994   fi
73995 fi
73996 rm -f confcache
73997
73998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73999 # Let make expand exec_prefix.
74000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
74001
74002 DEFS=-DHAVE_CONFIG_H
74003
74004 ac_libobjs=
74005 ac_ltlibobjs=
74006 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
74007   # 1. Remove the extension, and $U if already installed.
74008   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
74009   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
74010   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
74011   #    will be set to the directory where LIBOBJS objects are built.
74012   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
74013   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
74014 done
74015 LIBOBJS=$ac_libobjs
74016
74017 LTLIBOBJS=$ac_ltlibobjs
74018
74019
74020  if test -n "$EXEEXT"; then
74021   am__EXEEXT_TRUE=
74022   am__EXEEXT_FALSE='#'
74023 else
74024   am__EXEEXT_TRUE='#'
74025   am__EXEEXT_FALSE=
74026 fi
74027
74028 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
74029   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
74030 Usually this means the macro was only invoked conditionally." >&5
74031 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
74032 Usually this means the macro was only invoked conditionally." >&2;}
74033    { (exit 1); exit 1; }; }
74034 fi
74035 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
74036   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
74037 Usually this means the macro was only invoked conditionally." >&5
74038 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
74039 Usually this means the macro was only invoked conditionally." >&2;}
74040    { (exit 1); exit 1; }; }
74041 fi
74042 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
74043   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
74044 Usually this means the macro was only invoked conditionally." >&5
74045 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
74046 Usually this means the macro was only invoked conditionally." >&2;}
74047    { (exit 1); exit 1; }; }
74048 fi
74049
74050     gl_libobjs=
74051     gl_ltlibobjs=
74052     if test -n "$gl_LIBOBJS"; then
74053       # Remove the extension.
74054       sed_drop_objext='s/\.o$//;s/\.obj$//'
74055       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
74056         gl_libobjs="$gl_libobjs $i.$ac_objext"
74057         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
74058       done
74059     fi
74060     gl_LIBOBJS=$gl_libobjs
74061
74062     gl_LTLIBOBJS=$gl_ltlibobjs
74063
74064
74065
74066     gltests_libobjs=
74067     gltests_ltlibobjs=
74068     if test -n "$gltests_LIBOBJS"; then
74069       # Remove the extension.
74070       sed_drop_objext='s/\.o$//;s/\.obj$//'
74071       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
74072         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
74073         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
74074       done
74075     fi
74076     gltests_LIBOBJS=$gltests_libobjs
74077
74078     gltests_LTLIBOBJS=$gltests_ltlibobjs
74079
74080
74081 if test -z "${WANT_AS_NEEDED_TRUE}" && test -z "${WANT_AS_NEEDED_FALSE}"; then
74082   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AS_NEEDED\" was never defined.
74083 Usually this means the macro was only invoked conditionally." >&5
74084 $as_echo "$as_me: error: conditional \"WANT_AS_NEEDED\" was never defined.
74085 Usually this means the macro was only invoked conditionally." >&2;}
74086    { (exit 1); exit 1; }; }
74087 fi
74088 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
74089   { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_USERID\" was never defined.
74090 Usually this means the macro was only invoked conditionally." >&5
74091 $as_echo "$as_me: error: conditional \"CHECK_USERID\" was never defined.
74092 Usually this means the macro was only invoked conditionally." >&2;}
74093    { (exit 1); exit 1; }; }
74094 fi
74095 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
74096   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
74097 Usually this means the macro was only invoked conditionally." >&5
74098 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
74099 Usually this means the macro was only invoked conditionally." >&2;}
74100    { (exit 1); exit 1; }; }
74101 fi
74102 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
74103   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
74104 Usually this means the macro was only invoked conditionally." >&5
74105 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
74106 Usually this means the macro was only invoked conditionally." >&2;}
74107    { (exit 1); exit 1; }; }
74108 fi
74109 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
74110   { { $as_echo "$as_me:$LINENO: error: conditional \"SYNTAX_CHECKS\" was never defined.
74111 Usually this means the macro was only invoked conditionally." >&5
74112 $as_echo "$as_me: error: conditional \"SYNTAX_CHECKS\" was never defined.
74113 Usually this means the macro was only invoked conditionally." >&2;}
74114    { (exit 1); exit 1; }; }
74115 fi
74116 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
74117   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
74118 Usually this means the macro was only invoked conditionally." >&5
74119 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
74120 Usually this means the macro was only invoked conditionally." >&2;}
74121    { (exit 1); exit 1; }; }
74122 fi
74123 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
74124   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
74125 Usually this means the macro was only invoked conditionally." >&5
74126 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
74127 Usually this means the macro was only invoked conditionally." >&2;}
74128    { (exit 1); exit 1; }; }
74129 fi
74130 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
74131   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
74132 Usually this means the macro was only invoked conditionally." >&5
74133 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
74134 Usually this means the macro was only invoked conditionally." >&2;}
74135    { (exit 1); exit 1; }; }
74136 fi
74137 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
74138   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
74139 Usually this means the macro was only invoked conditionally." >&5
74140 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
74141 Usually this means the macro was only invoked conditionally." >&2;}
74142    { (exit 1); exit 1; }; }
74143 fi
74144 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
74145   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP\" was never defined.
74146 Usually this means the macro was only invoked conditionally." >&5
74147 $as_echo "$as_me: error: conditional \"WANT_NDMP\" was never defined.
74148 Usually this means the macro was only invoked conditionally." >&2;}
74149    { (exit 1); exit 1; }; }
74150 fi
74151 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
74152   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
74153 Usually this means the macro was only invoked conditionally." >&5
74154 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
74155 Usually this means the macro was only invoked conditionally." >&2;}
74156    { (exit 1); exit 1; }; }
74157 fi
74158 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
74159   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
74160 Usually this means the macro was only invoked conditionally." >&5
74161 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
74162 Usually this means the macro was only invoked conditionally." >&2;}
74163    { (exit 1); exit 1; }; }
74164 fi
74165 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
74166   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
74167 Usually this means the macro was only invoked conditionally." >&5
74168 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
74169 Usually this means the macro was only invoked conditionally." >&2;}
74170    { (exit 1); exit 1; }; }
74171 fi
74172 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
74173   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
74174 Usually this means the macro was only invoked conditionally." >&5
74175 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
74176 Usually this means the macro was only invoked conditionally." >&2;}
74177    { (exit 1); exit 1; }; }
74178 fi
74179 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
74180   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
74181 Usually this means the macro was only invoked conditionally." >&5
74182 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
74183 Usually this means the macro was only invoked conditionally." >&2;}
74184    { (exit 1); exit 1; }; }
74185 fi
74186 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
74187   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74188 Usually this means the macro was only invoked conditionally." >&5
74189 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74190 Usually this means the macro was only invoked conditionally." >&2;}
74191    { (exit 1); exit 1; }; }
74192 fi
74193 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
74194   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74195 Usually this means the macro was only invoked conditionally." >&5
74196 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74197 Usually this means the macro was only invoked conditionally." >&2;}
74198    { (exit 1); exit 1; }; }
74199 fi
74200 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
74201   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74202 Usually this means the macro was only invoked conditionally." >&5
74203 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74204 Usually this means the macro was only invoked conditionally." >&2;}
74205    { (exit 1); exit 1; }; }
74206 fi
74207 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
74208   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74209 Usually this means the macro was only invoked conditionally." >&5
74210 $as_echo "$as_me: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74211 Usually this means the macro was only invoked conditionally." >&2;}
74212    { (exit 1); exit 1; }; }
74213 fi
74214 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
74215   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74216 Usually this means the macro was only invoked conditionally." >&5
74217 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74218 Usually this means the macro was only invoked conditionally." >&2;}
74219    { (exit 1); exit 1; }; }
74220 fi
74221 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
74222   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74223 Usually this means the macro was only invoked conditionally." >&5
74224 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74225 Usually this means the macro was only invoked conditionally." >&2;}
74226    { (exit 1); exit 1; }; }
74227 fi
74228 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
74229   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74230 Usually this means the macro was only invoked conditionally." >&5
74231 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74232 Usually this means the macro was only invoked conditionally." >&2;}
74233    { (exit 1); exit 1; }; }
74234 fi
74235 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
74236   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74237 Usually this means the macro was only invoked conditionally." >&5
74238 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74239 Usually this means the macro was only invoked conditionally." >&2;}
74240    { (exit 1); exit 1; }; }
74241 fi
74242 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
74243   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74244 Usually this means the macro was only invoked conditionally." >&5
74245 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74246 Usually this means the macro was only invoked conditionally." >&2;}
74247    { (exit 1); exit 1; }; }
74248 fi
74249 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
74250   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74251 Usually this means the macro was only invoked conditionally." >&5
74252 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74253 Usually this means the macro was only invoked conditionally." >&2;}
74254    { (exit 1); exit 1; }; }
74255 fi
74256 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
74257   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
74258 Usually this means the macro was only invoked conditionally." >&5
74259 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
74260 Usually this means the macro was only invoked conditionally." >&2;}
74261    { (exit 1); exit 1; }; }
74262 fi
74263
74264 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
74265   { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
74266 Usually this means the macro was only invoked conditionally." >&5
74267 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
74268 Usually this means the macro was only invoked conditionally." >&2;}
74269    { (exit 1); exit 1; }; }
74270 fi
74271 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
74272   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
74273 Usually this means the macro was only invoked conditionally." >&5
74274 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
74275 Usually this means the macro was only invoked conditionally." >&2;}
74276    { (exit 1); exit 1; }; }
74277 fi
74278 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
74279   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74280 Usually this means the macro was only invoked conditionally." >&5
74281 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74282 Usually this means the macro was only invoked conditionally." >&2;}
74283    { (exit 1); exit 1; }; }
74284 fi
74285 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
74286   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74287 Usually this means the macro was only invoked conditionally." >&5
74288 $as_echo "$as_me: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74289 Usually this means the macro was only invoked conditionally." >&2;}
74290    { (exit 1); exit 1; }; }
74291 fi
74292 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
74293   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74294 Usually this means the macro was only invoked conditionally." >&5
74295 $as_echo "$as_me: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74296 Usually this means the macro was only invoked conditionally." >&2;}
74297    { (exit 1); exit 1; }; }
74298 fi
74299
74300 : ${CONFIG_STATUS=./config.status}
74301 ac_write_fail=0
74302 ac_clean_files_save=$ac_clean_files
74303 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
74304 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
74305 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
74306 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74307 #! $SHELL
74308 # Generated by $as_me.
74309 # Run this file to recreate the current configuration.
74310 # Compiler output produced by configure, useful for debugging
74311 # configure, is in config.log if it exists.
74312
74313 debug=false
74314 ac_cs_recheck=false
74315 ac_cs_silent=false
74316 SHELL=\${CONFIG_SHELL-$SHELL}
74317 _ACEOF
74318
74319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74320 ## --------------------- ##
74321 ## M4sh Initialization.  ##
74322 ## --------------------- ##
74323
74324 # Be more Bourne compatible
74325 DUALCASE=1; export DUALCASE # for MKS sh
74326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
74327   emulate sh
74328   NULLCMD=:
74329   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
74330   # is contrary to our usage.  Disable this feature.
74331   alias -g '${1+"$@"}'='"$@"'
74332   setopt NO_GLOB_SUBST
74333 else
74334   case `(set -o) 2>/dev/null` in
74335   *posix*) set -o posix ;;
74336 esac
74337
74338 fi
74339
74340
74341
74342
74343 # PATH needs CR
74344 # Avoid depending upon Character Ranges.
74345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
74346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
74347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
74348 as_cr_digits='0123456789'
74349 as_cr_alnum=$as_cr_Letters$as_cr_digits
74350
74351 as_nl='
74352 '
74353 export as_nl
74354 # Printing a long string crashes Solaris 7 /usr/bin/printf.
74355 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
74356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
74357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
74358 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
74359   as_echo='printf %s\n'
74360   as_echo_n='printf %s'
74361 else
74362   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74363     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
74364     as_echo_n='/usr/ucb/echo -n'
74365   else
74366     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
74367     as_echo_n_body='eval
74368       arg=$1;
74369       case $arg in
74370       *"$as_nl"*)
74371         expr "X$arg" : "X\\(.*\\)$as_nl";
74372         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74373       esac;
74374       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74375     '
74376     export as_echo_n_body
74377     as_echo_n='sh -c $as_echo_n_body as_echo'
74378   fi
74379   export as_echo_body
74380   as_echo='sh -c $as_echo_body as_echo'
74381 fi
74382
74383 # The user is always right.
74384 if test "${PATH_SEPARATOR+set}" != set; then
74385   PATH_SEPARATOR=:
74386   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
74387     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74388       PATH_SEPARATOR=';'
74389   }
74390 fi
74391
74392 # Support unset when possible.
74393 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
74394   as_unset=unset
74395 else
74396   as_unset=false
74397 fi
74398
74399
74400 # IFS
74401 # We need space, tab and new line, in precisely that order.  Quoting is
74402 # there to prevent editors from complaining about space-tab.
74403 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
74404 # splitting by setting IFS to empty value.)
74405 IFS=" ""        $as_nl"
74406
74407 # Find who we are.  Look in the path if we contain no directory separator.
74408 case $0 in
74409   *[\\/]* ) as_myself=$0 ;;
74410   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74411 for as_dir in $PATH
74412 do
74413   IFS=$as_save_IFS
74414   test -z "$as_dir" && as_dir=.
74415   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
74416 done
74417 IFS=$as_save_IFS
74418
74419      ;;
74420 esac
74421 # We did not find ourselves, most probably we were run as `sh COMMAND'
74422 # in which case we are not to be found in the path.
74423 if test "x$as_myself" = x; then
74424   as_myself=$0
74425 fi
74426 if test ! -f "$as_myself"; then
74427   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
74428   { (exit 1); exit 1; }
74429 fi
74430
74431 # Work around bugs in pre-3.0 UWIN ksh.
74432 for as_var in ENV MAIL MAILPATH
74433 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
74434 done
74435 PS1='$ '
74436 PS2='> '
74437 PS4='+ '
74438
74439 # NLS nuisances.
74440 LC_ALL=C
74441 export LC_ALL
74442 LANGUAGE=C
74443 export LANGUAGE
74444
74445 # Required to use basename.
74446 if expr a : '\(a\)' >/dev/null 2>&1 &&
74447    test "X`expr 00001 : '.*\(...\)'`" = X001; then
74448   as_expr=expr
74449 else
74450   as_expr=false
74451 fi
74452
74453 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
74454   as_basename=basename
74455 else
74456   as_basename=false
74457 fi
74458
74459
74460 # Name of the executable.
74461 as_me=`$as_basename -- "$0" ||
74462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74463          X"$0" : 'X\(//\)$' \| \
74464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
74465 $as_echo X/"$0" |
74466     sed '/^.*\/\([^/][^/]*\)\/*$/{
74467             s//\1/
74468             q
74469           }
74470           /^X\/\(\/\/\)$/{
74471             s//\1/
74472             q
74473           }
74474           /^X\/\(\/\).*/{
74475             s//\1/
74476             q
74477           }
74478           s/.*/./; q'`
74479
74480 # CDPATH.
74481 $as_unset CDPATH
74482
74483
74484
74485   as_lineno_1=$LINENO
74486   as_lineno_2=$LINENO
74487   test "x$as_lineno_1" != "x$as_lineno_2" &&
74488   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
74489
74490   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
74491   # uniformly replaced by the line number.  The first 'sed' inserts a
74492   # line-number line after each line using $LINENO; the second 'sed'
74493   # does the real work.  The second script uses 'N' to pair each
74494   # line-number line with the line containing $LINENO, and appends
74495   # trailing '-' during substitution so that $LINENO is not a special
74496   # case at line end.
74497   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
74498   # scripts with optimization help from Paolo Bonzini.  Blame Lee
74499   # E. McMahon (1931-1989) for sed's syntax.  :-)
74500   sed -n '
74501     p
74502     /[$]LINENO/=
74503   ' <$as_myself |
74504     sed '
74505       s/[$]LINENO.*/&-/
74506       t lineno
74507       b
74508       :lineno
74509       N
74510       :loop
74511       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
74512       t loop
74513       s/-\n.*//
74514     ' >$as_me.lineno &&
74515   chmod +x "$as_me.lineno" ||
74516     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
74517    { (exit 1); exit 1; }; }
74518
74519   # Don't try to exec as it changes $[0], causing all sort of problems
74520   # (the dirname of $[0] is not the place where we might find the
74521   # original and so on.  Autoconf is especially sensitive to this).
74522   . "./$as_me.lineno"
74523   # Exit status is that of the last command.
74524   exit
74525 }
74526
74527
74528 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
74529   as_dirname=dirname
74530 else
74531   as_dirname=false
74532 fi
74533
74534 ECHO_C= ECHO_N= ECHO_T=
74535 case `echo -n x` in
74536 -n*)
74537   case `echo 'x\c'` in
74538   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
74539   *)   ECHO_C='\c';;
74540   esac;;
74541 *)
74542   ECHO_N='-n';;
74543 esac
74544 if expr a : '\(a\)' >/dev/null 2>&1 &&
74545    test "X`expr 00001 : '.*\(...\)'`" = X001; then
74546   as_expr=expr
74547 else
74548   as_expr=false
74549 fi
74550
74551 rm -f conf$$ conf$$.exe conf$$.file
74552 if test -d conf$$.dir; then
74553   rm -f conf$$.dir/conf$$.file
74554 else
74555   rm -f conf$$.dir
74556   mkdir conf$$.dir 2>/dev/null
74557 fi
74558 if (echo >conf$$.file) 2>/dev/null; then
74559   if ln -s conf$$.file conf$$ 2>/dev/null; then
74560     as_ln_s='ln -s'
74561     # ... but there are two gotchas:
74562     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
74563     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
74564     # In both cases, we have to default to `cp -p'.
74565     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
74566       as_ln_s='cp -p'
74567   elif ln conf$$.file conf$$ 2>/dev/null; then
74568     as_ln_s=ln
74569   else
74570     as_ln_s='cp -p'
74571   fi
74572 else
74573   as_ln_s='cp -p'
74574 fi
74575 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
74576 rmdir conf$$.dir 2>/dev/null
74577
74578 if mkdir -p . 2>/dev/null; then
74579   as_mkdir_p=:
74580 else
74581   test -d ./-p && rmdir ./-p
74582   as_mkdir_p=false
74583 fi
74584
74585 if test -x / >/dev/null 2>&1; then
74586   as_test_x='test -x'
74587 else
74588   if ls -dL / >/dev/null 2>&1; then
74589     as_ls_L_option=L
74590   else
74591     as_ls_L_option=
74592   fi
74593   as_test_x='
74594     eval sh -c '\''
74595       if test -d "$1"; then
74596         test -d "$1/.";
74597       else
74598         case $1 in
74599         -*)set "./$1";;
74600         esac;
74601         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
74602         ???[sx]*):;;*)false;;esac;fi
74603     '\'' sh
74604   '
74605 fi
74606 as_executable_p=$as_test_x
74607
74608 # Sed expression to map a string onto a valid CPP name.
74609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
74610
74611 # Sed expression to map a string onto a valid variable name.
74612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
74613
74614
74615 exec 6>&1
74616
74617 # Save the log message, to keep $[0] and so on meaningful, and to
74618 # report actual input values of CONFIG_FILES etc. instead of their
74619 # values after options handling.
74620 ac_log="
74621 This file was extended by $as_me, which was
74622 generated by GNU Autoconf 2.63.  Invocation command line was
74623
74624   CONFIG_FILES    = $CONFIG_FILES
74625   CONFIG_HEADERS  = $CONFIG_HEADERS
74626   CONFIG_LINKS    = $CONFIG_LINKS
74627   CONFIG_COMMANDS = $CONFIG_COMMANDS
74628   $ $0 $@
74629
74630 on `(hostname || uname -n) 2>/dev/null | sed 1q`
74631 "
74632
74633 _ACEOF
74634
74635 case $ac_config_files in *"
74636 "*) set x $ac_config_files; shift; ac_config_files=$*;;
74637 esac
74638
74639 case $ac_config_headers in *"
74640 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
74641 esac
74642
74643
74644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74645 # Files that config.status was made for.
74646 config_files="$ac_config_files"
74647 config_headers="$ac_config_headers"
74648 config_commands="$ac_config_commands"
74649
74650 _ACEOF
74651
74652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74653 ac_cs_usage="\
74654 \`$as_me' instantiates files from templates according to the
74655 current configuration.
74656
74657 Usage: $0 [OPTION]... [FILE]...
74658
74659   -h, --help       print this help, then exit
74660   -V, --version    print version number and configuration settings, then exit
74661   -q, --quiet, --silent
74662                    do not print progress messages
74663   -d, --debug      don't remove temporary files
74664       --recheck    update $as_me by reconfiguring in the same conditions
74665       --file=FILE[:TEMPLATE]
74666                    instantiate the configuration file FILE
74667       --header=FILE[:TEMPLATE]
74668                    instantiate the configuration header FILE
74669
74670 Configuration files:
74671 $config_files
74672
74673 Configuration headers:
74674 $config_headers
74675
74676 Configuration commands:
74677 $config_commands
74678
74679 Report bugs to <bug-autoconf@gnu.org>."
74680
74681 _ACEOF
74682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74683 ac_cs_version="\\
74684 config.status
74685 configured by $0, generated by GNU Autoconf 2.63,
74686   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
74687
74688 Copyright (C) 2008 Free Software Foundation, Inc.
74689 This config.status script is free software; the Free Software Foundation
74690 gives unlimited permission to copy, distribute and modify it."
74691
74692 ac_pwd='$ac_pwd'
74693 srcdir='$srcdir'
74694 INSTALL='$INSTALL'
74695 MKDIR_P='$MKDIR_P'
74696 AWK='$AWK'
74697 test -n "\$AWK" || AWK=awk
74698 _ACEOF
74699
74700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74701 # The default lists apply if the user does not specify any file.
74702 ac_need_defaults=:
74703 while test $# != 0
74704 do
74705   case $1 in
74706   --*=*)
74707     ac_option=`expr "X$1" : 'X\([^=]*\)='`
74708     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
74709     ac_shift=:
74710     ;;
74711   *)
74712     ac_option=$1
74713     ac_optarg=$2
74714     ac_shift=shift
74715     ;;
74716   esac
74717
74718   case $ac_option in
74719   # Handling of the options.
74720   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
74721     ac_cs_recheck=: ;;
74722   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
74723     $as_echo "$ac_cs_version"; exit ;;
74724   --debug | --debu | --deb | --de | --d | -d )
74725     debug=: ;;
74726   --file | --fil | --fi | --f )
74727     $ac_shift
74728     case $ac_optarg in
74729     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74730     esac
74731     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
74732     ac_need_defaults=false;;
74733   --header | --heade | --head | --hea )
74734     $ac_shift
74735     case $ac_optarg in
74736     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74737     esac
74738     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
74739     ac_need_defaults=false;;
74740   --he | --h)
74741     # Conflict between --help and --header
74742     { $as_echo "$as_me: error: ambiguous option: $1
74743 Try \`$0 --help' for more information." >&2
74744    { (exit 1); exit 1; }; };;
74745   --help | --hel | -h )
74746     $as_echo "$ac_cs_usage"; exit ;;
74747   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
74748   | -silent | --silent | --silen | --sile | --sil | --si | --s)
74749     ac_cs_silent=: ;;
74750
74751   # This is an error.
74752   -*) { $as_echo "$as_me: error: unrecognized option: $1
74753 Try \`$0 --help' for more information." >&2
74754    { (exit 1); exit 1; }; } ;;
74755
74756   *) ac_config_targets="$ac_config_targets $1"
74757      ac_need_defaults=false ;;
74758
74759   esac
74760   shift
74761 done
74762
74763 ac_configure_extra_args=
74764
74765 if $ac_cs_silent; then
74766   exec 6>/dev/null
74767   ac_configure_extra_args="$ac_configure_extra_args --silent"
74768 fi
74769
74770 _ACEOF
74771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74772 if \$ac_cs_recheck; then
74773   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
74774   shift
74775   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
74776   CONFIG_SHELL='$SHELL'
74777   export CONFIG_SHELL
74778   exec "\$@"
74779 fi
74780
74781 _ACEOF
74782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74783 exec 5>>config.log
74784 {
74785   echo
74786   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
74787 ## Running $as_me. ##
74788 _ASBOX
74789   $as_echo "$ac_log"
74790 } >&5
74791
74792 _ACEOF
74793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74794 #
74795 # INIT-COMMANDS
74796 #
74797 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
74798 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
74799     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
74800     # from automake < 1.5.
74801     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
74802     # Capture the value of LINGUAS because we need it to compute CATALOGS.
74803     LINGUAS="${LINGUAS-%UNSET%}"
74804
74805
74806
74807 # The HP-UX ksh and POSIX shell print the target directory to stdout
74808 # if CDPATH is set.
74809 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
74810
74811 sed_quote_subst='$sed_quote_subst'
74812 double_quote_subst='$double_quote_subst'
74813 delay_variable_subst='$delay_variable_subst'
74814 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
74815 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
74816 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
74817 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
74818 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
74819 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
74820 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
74821 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
74822 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
74823 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
74824 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
74825 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
74826 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
74827 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
74828 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
74829 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
74830 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
74831 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
74832 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
74833 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
74834 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
74835 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
74836 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
74837 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
74838 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
74839 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
74840 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
74841 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74842 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
74843 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
74844 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
74845 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74846 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
74847 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
74848 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74849 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74850 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74851 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
74852 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74853 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
74854 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
74855 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
74856 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
74857 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"`'
74858 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"`'
74859 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
74860 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
74861 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
74862 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
74863 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
74864 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
74865 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
74866 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
74867 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
74868 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
74869 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
74870 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
74871 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
74872 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
74873 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
74874 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
74875 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74876 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74877 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
74878 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
74879 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74880 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74881 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
74882 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74883 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74884 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74885 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74886 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74887 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74888 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
74889 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74890 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74891 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74892 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
74893 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
74894 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
74895 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
74896 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
74897 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74898 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
74899 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
74900 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
74901 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
74902 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
74903 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74904 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74905 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74906 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74907 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
74908 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
74909 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
74910 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
74911 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
74912 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74913 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74914 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
74915 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74916 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
74917 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74918 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74919 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74920 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74921 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
74922 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
74923 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74924 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74925 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
74926 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
74927 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
74928 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
74929 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
74930 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
74931
74932 LTCC='$LTCC'
74933 LTCFLAGS='$LTCFLAGS'
74934 compiler='$compiler_DEFAULT'
74935
74936 # Quote evaled strings.
74937 for var in SED \
74938 GREP \
74939 EGREP \
74940 FGREP \
74941 LD \
74942 NM \
74943 LN_S \
74944 lt_SP2NL \
74945 lt_NL2SP \
74946 reload_flag \
74947 deplibs_check_method \
74948 file_magic_cmd \
74949 AR \
74950 AR_FLAGS \
74951 STRIP \
74952 RANLIB \
74953 CC \
74954 CFLAGS \
74955 compiler \
74956 lt_cv_sys_global_symbol_pipe \
74957 lt_cv_sys_global_symbol_to_cdecl \
74958 lt_cv_sys_global_symbol_to_c_name_address \
74959 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
74960 SHELL \
74961 ECHO \
74962 lt_prog_compiler_no_builtin_flag \
74963 lt_prog_compiler_wl \
74964 lt_prog_compiler_pic \
74965 lt_prog_compiler_static \
74966 lt_cv_prog_compiler_c_o \
74967 need_locks \
74968 DSYMUTIL \
74969 NMEDIT \
74970 LIPO \
74971 OTOOL \
74972 OTOOL64 \
74973 shrext_cmds \
74974 export_dynamic_flag_spec \
74975 whole_archive_flag_spec \
74976 compiler_needs_object \
74977 with_gnu_ld \
74978 allow_undefined_flag \
74979 no_undefined_flag \
74980 hardcode_libdir_flag_spec \
74981 hardcode_libdir_flag_spec_ld \
74982 hardcode_libdir_separator \
74983 fix_srcfile_path \
74984 exclude_expsyms \
74985 include_expsyms \
74986 file_list_spec \
74987 variables_saved_for_relink \
74988 libname_spec \
74989 library_names_spec \
74990 soname_spec \
74991 finish_eval \
74992 old_striplib \
74993 striplib; do
74994     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74995     *[\\\\\\\`\\"\\\$]*)
74996       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
74997       ;;
74998     *)
74999       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
75000       ;;
75001     esac
75002 done
75003
75004 # Double-quote double-evaled strings.
75005 for var in reload_cmds \
75006 old_postinstall_cmds \
75007 old_postuninstall_cmds \
75008 old_archive_cmds \
75009 extract_expsyms_cmds \
75010 old_archive_from_new_cmds \
75011 old_archive_from_expsyms_cmds \
75012 archive_cmds \
75013 archive_expsym_cmds \
75014 module_cmds \
75015 module_expsym_cmds \
75016 export_symbols_cmds \
75017 prelink_cmds \
75018 postinstall_cmds \
75019 postuninstall_cmds \
75020 finish_cmds \
75021 sys_lib_search_path_spec \
75022 sys_lib_dlsearch_path_spec; do
75023     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
75024     *[\\\\\\\`\\"\\\$]*)
75025       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
75026       ;;
75027     *)
75028       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
75029       ;;
75030     esac
75031 done
75032
75033 # Fix-up fallback echo if it was mangled by the above quoting rules.
75034 case \$lt_ECHO in
75035 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
75036   ;;
75037 esac
75038
75039 ac_aux_dir='$ac_aux_dir'
75040 xsi_shell='$xsi_shell'
75041 lt_shell_append='$lt_shell_append'
75042
75043 # See if we are running on zsh, and set the options which allow our
75044 # commands through without removal of \ escapes INIT.
75045 if test -n "\${ZSH_VERSION+set}" ; then
75046    setopt NO_GLOB_SUBST
75047 fi
75048
75049
75050     PACKAGE='$PACKAGE'
75051     VERSION='$VERSION'
75052     TIMESTAMP='$TIMESTAMP'
75053     RM='$RM'
75054     ofile='$ofile'
75055
75056
75057
75058
75059 _ACEOF
75060
75061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75062
75063 # Handling of arguments.
75064 for ac_config_target in $ac_config_targets
75065 do
75066   case $ac_config_target in
75067     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
75068     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
75069     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
75070     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
75071     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
75072     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
75073     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
75074     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
75075     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
75076     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
75077     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
75078     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
75079     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
75080     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
75081     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
75082     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
75083     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
75084     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
75085     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
75086     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
75087     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
75088     "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
75089     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
75090     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75091     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
75092     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
75093     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
75094
75095   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
75096 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
75097    { (exit 1); exit 1; }; };;
75098   esac
75099 done
75100
75101
75102 # If the user did not use the arguments to specify the items to instantiate,
75103 # then the envvar interface is used.  Set only those that are not.
75104 # We use the long form for the default assignment because of an extremely
75105 # bizarre bug on SunOS 4.1.3.
75106 if $ac_need_defaults; then
75107   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
75108   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
75109   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
75110 fi
75111
75112 # Have a temporary directory for convenience.  Make it in the build tree
75113 # simply because there is no reason against having it here, and in addition,
75114 # creating and moving files from /tmp can sometimes cause problems.
75115 # Hook for its removal unless debugging.
75116 # Note that there is a small window in which the directory will not be cleaned:
75117 # after its creation but before its name has been assigned to `$tmp'.
75118 $debug ||
75119 {
75120   tmp=
75121   trap 'exit_status=$?
75122   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
75123 ' 0
75124   trap '{ (exit 1); exit 1; }' 1 2 13 15
75125 }
75126 # Create a (secure) tmp directory for tmp files.
75127
75128 {
75129   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
75130   test -n "$tmp" && test -d "$tmp"
75131 }  ||
75132 {
75133   tmp=./conf$$-$RANDOM
75134   (umask 077 && mkdir "$tmp")
75135 } ||
75136 {
75137    $as_echo "$as_me: cannot create a temporary directory in ." >&2
75138    { (exit 1); exit 1; }
75139 }
75140
75141 # Set up the scripts for CONFIG_FILES section.
75142 # No need to generate them if there are no CONFIG_FILES.
75143 # This happens for instance with `./config.status config.h'.
75144 if test -n "$CONFIG_FILES"; then
75145
75146
75147 ac_cr='\r'
75148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
75149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
75150   ac_cs_awk_cr='\\r'
75151 else
75152   ac_cs_awk_cr=$ac_cr
75153 fi
75154
75155 echo 'BEGIN {' >"$tmp/subs1.awk" &&
75156 _ACEOF
75157
75158
75159 {
75160   echo "cat >conf$$subs.awk <<_ACEOF" &&
75161   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
75162   echo "_ACEOF"
75163 } >conf$$subs.sh ||
75164   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75165 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75166    { (exit 1); exit 1; }; }
75167 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
75168 ac_delim='%!_!# '
75169 for ac_last_try in false false false false false :; do
75170   . ./conf$$subs.sh ||
75171     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75172 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75173    { (exit 1); exit 1; }; }
75174
75175   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
75176   if test $ac_delim_n = $ac_delim_num; then
75177     break
75178   elif $ac_last_try; then
75179     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75180 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75181    { (exit 1); exit 1; }; }
75182   else
75183     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75184   fi
75185 done
75186 rm -f conf$$subs.sh
75187
75188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75189 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
75190 _ACEOF
75191 sed -n '
75192 h
75193 s/^/S["/; s/!.*/"]=/
75194 p
75195 g
75196 s/^[^!]*!//
75197 :repl
75198 t repl
75199 s/'"$ac_delim"'$//
75200 t delim
75201 :nl
75202 h
75203 s/\(.\{148\}\).*/\1/
75204 t more1
75205 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
75206 p
75207 n
75208 b repl
75209 :more1
75210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75211 p
75212 g
75213 s/.\{148\}//
75214 t nl
75215 :delim
75216 h
75217 s/\(.\{148\}\).*/\1/
75218 t more2
75219 s/["\\]/\\&/g; s/^/"/; s/$/"/
75220 p
75221 b
75222 :more2
75223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75224 p
75225 g
75226 s/.\{148\}//
75227 t delim
75228 ' <conf$$subs.awk | sed '
75229 /^[^""]/{
75230   N
75231   s/\n//
75232 }
75233 ' >>$CONFIG_STATUS || ac_write_fail=1
75234 rm -f conf$$subs.awk
75235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75236 _ACAWK
75237 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
75238   for (key in S) S_is_set[key] = 1
75239   FS = "\a"
75240
75241 }
75242 {
75243   line = $ 0
75244   nfields = split(line, field, "@")
75245   substed = 0
75246   len = length(field[1])
75247   for (i = 2; i < nfields; i++) {
75248     key = field[i]
75249     keylen = length(key)
75250     if (S_is_set[key]) {
75251       value = S[key]
75252       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
75253       len += length(value) + length(field[++i])
75254       substed = 1
75255     } else
75256       len += 1 + keylen
75257   }
75258
75259   print line
75260 }
75261
75262 _ACAWK
75263 _ACEOF
75264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75265 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
75266   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
75267 else
75268   cat
75269 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
75270   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
75271 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
75272    { (exit 1); exit 1; }; }
75273 _ACEOF
75274
75275 # VPATH may cause trouble with some makes, so we remove $(srcdir),
75276 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
75277 # trailing colons and then remove the whole line if VPATH becomes empty
75278 # (actually we leave an empty line to preserve line numbers).
75279 if test "x$srcdir" = x.; then
75280   ac_vpsub='/^[  ]*VPATH[        ]*=/{
75281 s/:*\$(srcdir):*/:/
75282 s/:*\${srcdir}:*/:/
75283 s/:*@srcdir@:*/:/
75284 s/^\([^=]*=[     ]*\):*/\1/
75285 s/:*$//
75286 s/^[^=]*=[       ]*$//
75287 }'
75288 fi
75289
75290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75291 fi # test -n "$CONFIG_FILES"
75292
75293 # Set up the scripts for CONFIG_HEADERS section.
75294 # No need to generate them if there are no CONFIG_HEADERS.
75295 # This happens for instance with `./config.status Makefile'.
75296 if test -n "$CONFIG_HEADERS"; then
75297 cat >"$tmp/defines.awk" <<\_ACAWK ||
75298 BEGIN {
75299 _ACEOF
75300
75301 # Transform confdefs.h into an awk script `defines.awk', embedded as
75302 # here-document in config.status, that substitutes the proper values into
75303 # config.h.in to produce config.h.
75304
75305 # Create a delimiter string that does not exist in confdefs.h, to ease
75306 # handling of long lines.
75307 ac_delim='%!_!# '
75308 for ac_last_try in false false :; do
75309   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
75310   if test -z "$ac_t"; then
75311     break
75312   elif $ac_last_try; then
75313     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
75314 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
75315    { (exit 1); exit 1; }; }
75316   else
75317     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75318   fi
75319 done
75320
75321 # For the awk script, D is an array of macro values keyed by name,
75322 # likewise P contains macro parameters if any.  Preserve backslash
75323 # newline sequences.
75324
75325 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
75326 sed -n '
75327 s/.\{148\}/&'"$ac_delim"'/g
75328 t rset
75329 :rset
75330 s/^[     ]*#[    ]*define[       ][      ]*/ /
75331 t def
75332 d
75333 :def
75334 s/\\$//
75335 t bsnl
75336 s/["\\]/\\&/g
75337 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
75338 D["\1"]=" \3"/p
75339 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
75340 d
75341 :bsnl
75342 s/["\\]/\\&/g
75343 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
75344 D["\1"]=" \3\\\\\\n"\\/p
75345 t cont
75346 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
75347 t cont
75348 d
75349 :cont
75350 n
75351 s/.\{148\}/&'"$ac_delim"'/g
75352 t clear
75353 :clear
75354 s/\\$//
75355 t bsnlc
75356 s/["\\]/\\&/g; s/^/"/; s/$/"/p
75357 d
75358 :bsnlc
75359 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
75360 b cont
75361 ' <confdefs.h | sed '
75362 s/'"$ac_delim"'/"\\\
75363 "/g' >>$CONFIG_STATUS || ac_write_fail=1
75364
75365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75366   for (key in D) D_is_set[key] = 1
75367   FS = "\a"
75368 }
75369 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
75370   line = \$ 0
75371   split(line, arg, " ")
75372   if (arg[1] == "#") {
75373     defundef = arg[2]
75374     mac1 = arg[3]
75375   } else {
75376     defundef = substr(arg[1], 2)
75377     mac1 = arg[2]
75378   }
75379   split(mac1, mac2, "(") #)
75380   macro = mac2[1]
75381   prefix = substr(line, 1, index(line, defundef) - 1)
75382   if (D_is_set[macro]) {
75383     # Preserve the white space surrounding the "#".
75384     print prefix "define", macro P[macro] D[macro]
75385     next
75386   } else {
75387     # Replace #undef with comments.  This is necessary, for example,
75388     # in the case of _POSIX_SOURCE, which is predefined and required
75389     # on some systems where configure will not decide to define it.
75390     if (defundef == "undef") {
75391       print "/*", prefix defundef, macro, "*/"
75392       next
75393     }
75394   }
75395 }
75396 { print }
75397 _ACAWK
75398 _ACEOF
75399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75400   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
75401 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
75402    { (exit 1); exit 1; }; }
75403 fi # test -n "$CONFIG_HEADERS"
75404
75405
75406 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
75407 shift
75408 for ac_tag
75409 do
75410   case $ac_tag in
75411   :[FHLC]) ac_mode=$ac_tag; continue;;
75412   esac
75413   case $ac_mode$ac_tag in
75414   :[FHL]*:*);;
75415   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
75416 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
75417    { (exit 1); exit 1; }; };;
75418   :[FH]-) ac_tag=-:-;;
75419   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
75420   esac
75421   ac_save_IFS=$IFS
75422   IFS=:
75423   set x $ac_tag
75424   IFS=$ac_save_IFS
75425   shift
75426   ac_file=$1
75427   shift
75428
75429   case $ac_mode in
75430   :L) ac_source=$1;;
75431   :[FH])
75432     ac_file_inputs=
75433     for ac_f
75434     do
75435       case $ac_f in
75436       -) ac_f="$tmp/stdin";;
75437       *) # Look for the file first in the build tree, then in the source tree
75438          # (if the path is not absolute).  The absolute path cannot be DOS-style,
75439          # because $ac_f cannot contain `:'.
75440          test -f "$ac_f" ||
75441            case $ac_f in
75442            [\\/$]*) false;;
75443            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
75444            esac ||
75445            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
75446 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
75447    { (exit 1); exit 1; }; };;
75448       esac
75449       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
75450       ac_file_inputs="$ac_file_inputs '$ac_f'"
75451     done
75452
75453     # Let's still pretend it is `configure' which instantiates (i.e., don't
75454     # use $as_me), people would be surprised to read:
75455     #    /* config.h.  Generated by config.status.  */
75456     configure_input='Generated from '`
75457           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
75458         `' by configure.'
75459     if test x"$ac_file" != x-; then
75460       configure_input="$ac_file.  $configure_input"
75461       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
75462 $as_echo "$as_me: creating $ac_file" >&6;}
75463     fi
75464     # Neutralize special characters interpreted by sed in replacement strings.
75465     case $configure_input in #(
75466     *\&* | *\|* | *\\* )
75467        ac_sed_conf_input=`$as_echo "$configure_input" |
75468        sed 's/[\\\\&|]/\\\\&/g'`;; #(
75469     *) ac_sed_conf_input=$configure_input;;
75470     esac
75471
75472     case $ac_tag in
75473     *:-:* | *:-) cat >"$tmp/stdin" \
75474       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75475 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75476    { (exit 1); exit 1; }; } ;;
75477     esac
75478     ;;
75479   esac
75480
75481   ac_dir=`$as_dirname -- "$ac_file" ||
75482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75483          X"$ac_file" : 'X\(//\)[^/]' \| \
75484          X"$ac_file" : 'X\(//\)$' \| \
75485          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
75486 $as_echo X"$ac_file" |
75487     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75488             s//\1/
75489             q
75490           }
75491           /^X\(\/\/\)[^/].*/{
75492             s//\1/
75493             q
75494           }
75495           /^X\(\/\/\)$/{
75496             s//\1/
75497             q
75498           }
75499           /^X\(\/\).*/{
75500             s//\1/
75501             q
75502           }
75503           s/.*/./; q'`
75504   { as_dir="$ac_dir"
75505   case $as_dir in #(
75506   -*) as_dir=./$as_dir;;
75507   esac
75508   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75509     as_dirs=
75510     while :; do
75511       case $as_dir in #(
75512       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75513       *) as_qdir=$as_dir;;
75514       esac
75515       as_dirs="'$as_qdir' $as_dirs"
75516       as_dir=`$as_dirname -- "$as_dir" ||
75517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75518          X"$as_dir" : 'X\(//\)[^/]' \| \
75519          X"$as_dir" : 'X\(//\)$' \| \
75520          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75521 $as_echo X"$as_dir" |
75522     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75523             s//\1/
75524             q
75525           }
75526           /^X\(\/\/\)[^/].*/{
75527             s//\1/
75528             q
75529           }
75530           /^X\(\/\/\)$/{
75531             s//\1/
75532             q
75533           }
75534           /^X\(\/\).*/{
75535             s//\1/
75536             q
75537           }
75538           s/.*/./; q'`
75539       test -d "$as_dir" && break
75540     done
75541     test -z "$as_dirs" || eval "mkdir $as_dirs"
75542   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75543 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75544    { (exit 1); exit 1; }; }; }
75545   ac_builddir=.
75546
75547 case "$ac_dir" in
75548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
75549 *)
75550   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
75551   # A ".." for each directory in $ac_dir_suffix.
75552   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
75553   case $ac_top_builddir_sub in
75554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
75555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
75556   esac ;;
75557 esac
75558 ac_abs_top_builddir=$ac_pwd
75559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
75560 # for backward compatibility:
75561 ac_top_builddir=$ac_top_build_prefix
75562
75563 case $srcdir in
75564   .)  # We are building in place.
75565     ac_srcdir=.
75566     ac_top_srcdir=$ac_top_builddir_sub
75567     ac_abs_top_srcdir=$ac_pwd ;;
75568   [\\/]* | ?:[\\/]* )  # Absolute name.
75569     ac_srcdir=$srcdir$ac_dir_suffix;
75570     ac_top_srcdir=$srcdir
75571     ac_abs_top_srcdir=$srcdir ;;
75572   *) # Relative name.
75573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
75574     ac_top_srcdir=$ac_top_build_prefix$srcdir
75575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
75576 esac
75577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
75578
75579
75580   case $ac_mode in
75581   :F)
75582   #
75583   # CONFIG_FILE
75584   #
75585
75586   case $INSTALL in
75587   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
75588   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
75589   esac
75590   ac_MKDIR_P=$MKDIR_P
75591   case $MKDIR_P in
75592   [\\/$]* | ?:[\\/]* ) ;;
75593   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
75594   esac
75595 _ACEOF
75596
75597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75598 # If the template does not know about datarootdir, expand it.
75599 # FIXME: This hack should be removed a few years after 2.60.
75600 ac_datarootdir_hack=; ac_datarootdir_seen=
75601
75602 ac_sed_dataroot='
75603 /datarootdir/ {
75604   p
75605   q
75606 }
75607 /@datadir@/p
75608 /@docdir@/p
75609 /@infodir@/p
75610 /@localedir@/p
75611 /@mandir@/p
75612 '
75613 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
75614 *datarootdir*) ac_datarootdir_seen=yes;;
75615 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
75616   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
75617 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
75618 _ACEOF
75619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75620   ac_datarootdir_hack='
75621   s&@datadir@&$datadir&g
75622   s&@docdir@&$docdir&g
75623   s&@infodir@&$infodir&g
75624   s&@localedir@&$localedir&g
75625   s&@mandir@&$mandir&g
75626     s&\\\${datarootdir}&$datarootdir&g' ;;
75627 esac
75628 _ACEOF
75629
75630 # Neutralize VPATH when `$srcdir' = `.'.
75631 # Shell code in configure.ac might set extrasub.
75632 # FIXME: do we really want to maintain this feature?
75633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75634 ac_sed_extra="$ac_vpsub
75635 $extrasub
75636 _ACEOF
75637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75638 :t
75639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
75640 s|@configure_input@|$ac_sed_conf_input|;t t
75641 s&@top_builddir@&$ac_top_builddir_sub&;t t
75642 s&@top_build_prefix@&$ac_top_build_prefix&;t t
75643 s&@srcdir@&$ac_srcdir&;t t
75644 s&@abs_srcdir@&$ac_abs_srcdir&;t t
75645 s&@top_srcdir@&$ac_top_srcdir&;t t
75646 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
75647 s&@builddir@&$ac_builddir&;t t
75648 s&@abs_builddir@&$ac_abs_builddir&;t t
75649 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
75650 s&@INSTALL@&$ac_INSTALL&;t t
75651 s&@MKDIR_P@&$ac_MKDIR_P&;t t
75652 $ac_datarootdir_hack
75653 "
75654 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
75655   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75656 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75657    { (exit 1); exit 1; }; }
75658
75659 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
75660   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
75661   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
75662   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75663 which seems to be undefined.  Please make sure it is defined." >&5
75664 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75665 which seems to be undefined.  Please make sure it is defined." >&2;}
75666
75667   rm -f "$tmp/stdin"
75668   case $ac_file in
75669   -) cat "$tmp/out" && rm -f "$tmp/out";;
75670   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
75671   esac \
75672   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75673 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75674    { (exit 1); exit 1; }; }
75675  ;;
75676   :H)
75677   #
75678   # CONFIG_HEADER
75679   #
75680   if test x"$ac_file" != x-; then
75681     {
75682       $as_echo "/* $configure_input  */" \
75683       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
75684     } >"$tmp/config.h" \
75685       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75686 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75687    { (exit 1); exit 1; }; }
75688     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
75689       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
75690 $as_echo "$as_me: $ac_file is unchanged" >&6;}
75691     else
75692       rm -f "$ac_file"
75693       mv "$tmp/config.h" "$ac_file" \
75694         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75695 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75696    { (exit 1); exit 1; }; }
75697     fi
75698   else
75699     $as_echo "/* $configure_input  */" \
75700       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
75701       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
75702 $as_echo "$as_me: error: could not create -" >&2;}
75703    { (exit 1); exit 1; }; }
75704   fi
75705 # Compute "$ac_file"'s index in $config_headers.
75706 _am_arg="$ac_file"
75707 _am_stamp_count=1
75708 for _am_header in $config_headers :; do
75709   case $_am_header in
75710     $_am_arg | $_am_arg:* )
75711       break ;;
75712     * )
75713       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
75714   esac
75715 done
75716 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
75717 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75718          X"$_am_arg" : 'X\(//\)[^/]' \| \
75719          X"$_am_arg" : 'X\(//\)$' \| \
75720          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
75721 $as_echo X"$_am_arg" |
75722     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75723             s//\1/
75724             q
75725           }
75726           /^X\(\/\/\)[^/].*/{
75727             s//\1/
75728             q
75729           }
75730           /^X\(\/\/\)$/{
75731             s//\1/
75732             q
75733           }
75734           /^X\(\/\).*/{
75735             s//\1/
75736             q
75737           }
75738           s/.*/./; q'`/stamp-h$_am_stamp_count
75739  ;;
75740
75741   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
75742 $as_echo "$as_me: executing $ac_file commands" >&6;}
75743  ;;
75744   esac
75745
75746
75747   case $ac_file$ac_mode in
75748     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
75749   # Autoconf 2.62 quotes --file arguments for eval, but not when files
75750   # are listed without --file.  Let's play safe and only enable the eval
75751   # if we detect the quoting.
75752   case $CONFIG_FILES in
75753   *\'*) eval set x "$CONFIG_FILES" ;;
75754   *)   set x $CONFIG_FILES ;;
75755   esac
75756   shift
75757   for mf
75758   do
75759     # Strip MF so we end up with the name of the file.
75760     mf=`echo "$mf" | sed -e 's/:.*$//'`
75761     # Check whether this is an Automake generated Makefile or not.
75762     # We used to match only the files named `Makefile.in', but
75763     # some people rename them; so instead we look at the file content.
75764     # Grep'ing the first line is not enough: some people post-process
75765     # each Makefile.in and add a new line on top of each file to say so.
75766     # Grep'ing the whole file is not good either: AIX grep has a line
75767     # limit of 2048, but all sed's we know have understand at least 4000.
75768     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
75769       dirpart=`$as_dirname -- "$mf" ||
75770 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75771          X"$mf" : 'X\(//\)[^/]' \| \
75772          X"$mf" : 'X\(//\)$' \| \
75773          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
75774 $as_echo X"$mf" |
75775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75776             s//\1/
75777             q
75778           }
75779           /^X\(\/\/\)[^/].*/{
75780             s//\1/
75781             q
75782           }
75783           /^X\(\/\/\)$/{
75784             s//\1/
75785             q
75786           }
75787           /^X\(\/\).*/{
75788             s//\1/
75789             q
75790           }
75791           s/.*/./; q'`
75792     else
75793       continue
75794     fi
75795     # Extract the definition of DEPDIR, am__include, and am__quote
75796     # from the Makefile without running `make'.
75797     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
75798     test -z "$DEPDIR" && continue
75799     am__include=`sed -n 's/^am__include = //p' < "$mf"`
75800     test -z "am__include" && continue
75801     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
75802     # When using ansi2knr, U may be empty or an underscore; expand it
75803     U=`sed -n 's/^U = //p' < "$mf"`
75804     # Find all dependency output files, they are included files with
75805     # $(DEPDIR) in their names.  We invoke sed twice because it is the
75806     # simplest approach to changing $(DEPDIR) to its actual value in the
75807     # expansion.
75808     for file in `sed -n "
75809       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
75810          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
75811       # Make sure the directory exists.
75812       test -f "$dirpart/$file" && continue
75813       fdir=`$as_dirname -- "$file" ||
75814 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75815          X"$file" : 'X\(//\)[^/]' \| \
75816          X"$file" : 'X\(//\)$' \| \
75817          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
75818 $as_echo X"$file" |
75819     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75820             s//\1/
75821             q
75822           }
75823           /^X\(\/\/\)[^/].*/{
75824             s//\1/
75825             q
75826           }
75827           /^X\(\/\/\)$/{
75828             s//\1/
75829             q
75830           }
75831           /^X\(\/\).*/{
75832             s//\1/
75833             q
75834           }
75835           s/.*/./; q'`
75836       { as_dir=$dirpart/$fdir
75837   case $as_dir in #(
75838   -*) as_dir=./$as_dir;;
75839   esac
75840   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75841     as_dirs=
75842     while :; do
75843       case $as_dir in #(
75844       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75845       *) as_qdir=$as_dir;;
75846       esac
75847       as_dirs="'$as_qdir' $as_dirs"
75848       as_dir=`$as_dirname -- "$as_dir" ||
75849 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75850          X"$as_dir" : 'X\(//\)[^/]' \| \
75851          X"$as_dir" : 'X\(//\)$' \| \
75852          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75853 $as_echo X"$as_dir" |
75854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75855             s//\1/
75856             q
75857           }
75858           /^X\(\/\/\)[^/].*/{
75859             s//\1/
75860             q
75861           }
75862           /^X\(\/\/\)$/{
75863             s//\1/
75864             q
75865           }
75866           /^X\(\/\).*/{
75867             s//\1/
75868             q
75869           }
75870           s/.*/./; q'`
75871       test -d "$as_dir" && break
75872     done
75873     test -z "$as_dirs" || eval "mkdir $as_dirs"
75874   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75875 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75876    { (exit 1); exit 1; }; }; }
75877       # echo "creating $dirpart/$file"
75878       echo '# dummy' > "$dirpart/$file"
75879     done
75880   done
75881 }
75882  ;;
75883     "po-directories":C)
75884     for ac_file in $CONFIG_FILES; do
75885       # Support "outfile[:infile[:infile...]]"
75886       case "$ac_file" in
75887         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
75888       esac
75889       # PO directories have a Makefile.in generated from Makefile.in.in.
75890       case "$ac_file" in */Makefile.in)
75891         # Adjust a relative srcdir.
75892         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
75893         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
75894         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
75895         # In autoconf-2.13 it is called $ac_given_srcdir.
75896         # In autoconf-2.50 it is called $srcdir.
75897         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
75898         case "$ac_given_srcdir" in
75899           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
75900           /*) top_srcdir="$ac_given_srcdir" ;;
75901           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
75902         esac
75903         # Treat a directory as a PO directory if and only if it has a
75904         # POTFILES.in file. This allows packages to have multiple PO
75905         # directories under different names or in different locations.
75906         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
75907           rm -f "$ac_dir/POTFILES"
75908           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
75909           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
75910           POMAKEFILEDEPS="POTFILES.in"
75911           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
75912           # on $ac_dir but don't depend on user-specified configuration
75913           # parameters.
75914           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
75915             # The LINGUAS file contains the set of available languages.
75916             if test -n "$OBSOLETE_ALL_LINGUAS"; then
75917               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
75918             fi
75919             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
75920             # Hide the ALL_LINGUAS assigment from automake < 1.5.
75921             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
75922             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
75923           else
75924             # The set of available languages was given in configure.in.
75925             # Hide the ALL_LINGUAS assigment from automake < 1.5.
75926             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
75927           fi
75928           # Compute POFILES
75929           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
75930           # Compute UPDATEPOFILES
75931           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
75932           # Compute DUMMYPOFILES
75933           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
75934           # Compute GMOFILES
75935           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
75936           case "$ac_given_srcdir" in
75937             .) srcdirpre= ;;
75938             *) srcdirpre='$(srcdir)/' ;;
75939           esac
75940           POFILES=
75941           UPDATEPOFILES=
75942           DUMMYPOFILES=
75943           GMOFILES=
75944           for lang in $ALL_LINGUAS; do
75945             POFILES="$POFILES $srcdirpre$lang.po"
75946             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
75947             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
75948             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
75949           done
75950           # CATALOGS depends on both $ac_dir and the user's LINGUAS
75951           # environment variable.
75952           INST_LINGUAS=
75953           if test -n "$ALL_LINGUAS"; then
75954             for presentlang in $ALL_LINGUAS; do
75955               useit=no
75956               if test "%UNSET%" != "$LINGUAS"; then
75957                 desiredlanguages="$LINGUAS"
75958               else
75959                 desiredlanguages="$ALL_LINGUAS"
75960               fi
75961               for desiredlang in $desiredlanguages; do
75962                 # Use the presentlang catalog if desiredlang is
75963                 #   a. equal to presentlang, or
75964                 #   b. a variant of presentlang (because in this case,
75965                 #      presentlang can be used as a fallback for messages
75966                 #      which are not translated in the desiredlang catalog).
75967                 case "$desiredlang" in
75968                   "$presentlang"*) useit=yes;;
75969                 esac
75970               done
75971               if test $useit = yes; then
75972                 INST_LINGUAS="$INST_LINGUAS $presentlang"
75973               fi
75974             done
75975           fi
75976           CATALOGS=
75977           if test -n "$INST_LINGUAS"; then
75978             for lang in $INST_LINGUAS; do
75979               CATALOGS="$CATALOGS $lang.gmo"
75980             done
75981           fi
75982           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
75983           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"
75984           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
75985             if test -f "$f"; then
75986               case "$f" in
75987                 *.orig | *.bak | *~) ;;
75988                 *) cat "$f" >> "$ac_dir/Makefile" ;;
75989               esac
75990             fi
75991           done
75992         fi
75993         ;;
75994       esac
75995     done ;;
75996     "libtool":C)
75997
75998     # See if we are running on zsh, and set the options which allow our
75999     # commands through without removal of \ escapes.
76000     if test -n "${ZSH_VERSION+set}" ; then
76001       setopt NO_GLOB_SUBST
76002     fi
76003
76004     cfgfile="${ofile}T"
76005     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
76006     $RM "$cfgfile"
76007
76008     cat <<_LT_EOF >> "$cfgfile"
76009 #! $SHELL
76010
76011 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
76012 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
76013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
76014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
76015 #
76016 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
76017 #                 2006, 2007, 2008 Free Software Foundation, Inc.
76018 #   Written by Gordon Matzigkeit, 1996
76019 #
76020 #   This file is part of GNU Libtool.
76021 #
76022 # GNU Libtool is free software; you can redistribute it and/or
76023 # modify it under the terms of the GNU General Public License as
76024 # published by the Free Software Foundation; either version 2 of
76025 # the License, or (at your option) any later version.
76026 #
76027 # As a special exception to the GNU General Public License,
76028 # if you distribute this file as part of a program or library that
76029 # is built using GNU Libtool, you may include this file under the
76030 # same distribution terms that you use for the rest of that program.
76031 #
76032 # GNU Libtool is distributed in the hope that it will be useful,
76033 # but WITHOUT ANY WARRANTY; without even the implied warranty of
76034 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
76035 # GNU General Public License for more details.
76036 #
76037 # You should have received a copy of the GNU General Public License
76038 # along with GNU Libtool; see the file COPYING.  If not, a copy
76039 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
76040 # obtained by writing to the Free Software Foundation, Inc.,
76041 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
76042
76043
76044 # The names of the tagged configurations supported by this script.
76045 available_tags=""
76046
76047 # ### BEGIN LIBTOOL CONFIG
76048
76049 # Which release of libtool.m4 was used?
76050 macro_version=$macro_version
76051 macro_revision=$macro_revision
76052
76053 # Whether or not to build shared libraries.
76054 build_libtool_libs=$enable_shared
76055
76056 # Whether or not to build static libraries.
76057 build_old_libs=$enable_static
76058
76059 # What type of objects to build.
76060 pic_mode=$pic_mode
76061
76062 # Whether or not to optimize for fast installation.
76063 fast_install=$enable_fast_install
76064
76065 # The host system.
76066 host_alias=$host_alias
76067 host=$host
76068 host_os=$host_os
76069
76070 # The build system.
76071 build_alias=$build_alias
76072 build=$build
76073 build_os=$build_os
76074
76075 # A sed program that does not truncate output.
76076 SED=$lt_SED
76077
76078 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
76079 Xsed="\$SED -e 1s/^X//"
76080
76081 # A grep program that handles long lines.
76082 GREP=$lt_GREP
76083
76084 # An ERE matcher.
76085 EGREP=$lt_EGREP
76086
76087 # A literal string matcher.
76088 FGREP=$lt_FGREP
76089
76090 # A BSD- or MS-compatible name lister.
76091 NM=$lt_NM
76092
76093 # Whether we need soft or hard links.
76094 LN_S=$lt_LN_S
76095
76096 # What is the maximum length of a command?
76097 max_cmd_len=$max_cmd_len
76098
76099 # Object file suffix (normally "o").
76100 objext=$ac_objext
76101
76102 # Executable file suffix (normally "").
76103 exeext=$exeext
76104
76105 # whether the shell understands "unset".
76106 lt_unset=$lt_unset
76107
76108 # turn spaces into newlines.
76109 SP2NL=$lt_lt_SP2NL
76110
76111 # turn newlines into spaces.
76112 NL2SP=$lt_lt_NL2SP
76113
76114 # How to create reloadable object files.
76115 reload_flag=$lt_reload_flag
76116 reload_cmds=$lt_reload_cmds
76117
76118 # Method to check whether dependent libraries are shared objects.
76119 deplibs_check_method=$lt_deplibs_check_method
76120
76121 # Command to use when deplibs_check_method == "file_magic".
76122 file_magic_cmd=$lt_file_magic_cmd
76123
76124 # The archiver.
76125 AR=$lt_AR
76126 AR_FLAGS=$lt_AR_FLAGS
76127
76128 # A symbol stripping program.
76129 STRIP=$lt_STRIP
76130
76131 # Commands used to install an old-style archive.
76132 RANLIB=$lt_RANLIB
76133 old_postinstall_cmds=$lt_old_postinstall_cmds
76134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
76135
76136 # A C compiler.
76137 LTCC=$lt_CC
76138
76139 # LTCC compiler flags.
76140 LTCFLAGS=$lt_CFLAGS
76141
76142 # Take the output of nm and produce a listing of raw symbols and C names.
76143 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
76144
76145 # Transform the output of nm in a proper C declaration.
76146 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
76147
76148 # Transform the output of nm in a C name address pair.
76149 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
76150
76151 # Transform the output of nm in a C name address pair when lib prefix is needed.
76152 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
76153
76154 # The name of the directory that contains temporary libtool files.
76155 objdir=$objdir
76156
76157 # Shell to use when invoking shell scripts.
76158 SHELL=$lt_SHELL
76159
76160 # An echo program that does not interpret backslashes.
76161 ECHO=$lt_ECHO
76162
76163 # Used to examine libraries when file_magic_cmd begins with "file".
76164 MAGIC_CMD=$MAGIC_CMD
76165
76166 # Must we lock files when doing compilation?
76167 need_locks=$lt_need_locks
76168
76169 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
76170 DSYMUTIL=$lt_DSYMUTIL
76171
76172 # Tool to change global to local symbols on Mac OS X.
76173 NMEDIT=$lt_NMEDIT
76174
76175 # Tool to manipulate fat objects and archives on Mac OS X.
76176 LIPO=$lt_LIPO
76177
76178 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
76179 OTOOL=$lt_OTOOL
76180
76181 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
76182 OTOOL64=$lt_OTOOL64
76183
76184 # Old archive suffix (normally "a").
76185 libext=$libext
76186
76187 # Shared library suffix (normally ".so").
76188 shrext_cmds=$lt_shrext_cmds
76189
76190 # The commands to extract the exported symbol list from a shared archive.
76191 extract_expsyms_cmds=$lt_extract_expsyms_cmds
76192
76193 # Variables whose values should be saved in libtool wrapper scripts and
76194 # restored at link time.
76195 variables_saved_for_relink=$lt_variables_saved_for_relink
76196
76197 # Do we need the "lib" prefix for modules?
76198 need_lib_prefix=$need_lib_prefix
76199
76200 # Do we need a version for libraries?
76201 need_version=$need_version
76202
76203 # Library versioning type.
76204 version_type=$version_type
76205
76206 # Shared library runtime path variable.
76207 runpath_var=$runpath_var
76208
76209 # Shared library path variable.
76210 shlibpath_var=$shlibpath_var
76211
76212 # Is shlibpath searched before the hard-coded library search path?
76213 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
76214
76215 # Format of library name prefix.
76216 libname_spec=$lt_libname_spec
76217
76218 # List of archive names.  First name is the real one, the rest are links.
76219 # The last name is the one that the linker finds with -lNAME
76220 library_names_spec=$lt_library_names_spec
76221
76222 # The coded name of the library, if different from the real name.
76223 soname_spec=$lt_soname_spec
76224
76225 # Command to use after installation of a shared archive.
76226 postinstall_cmds=$lt_postinstall_cmds
76227
76228 # Command to use after uninstallation of a shared archive.
76229 postuninstall_cmds=$lt_postuninstall_cmds
76230
76231 # Commands used to finish a libtool library installation in a directory.
76232 finish_cmds=$lt_finish_cmds
76233
76234 # As "finish_cmds", except a single script fragment to be evaled but
76235 # not shown.
76236 finish_eval=$lt_finish_eval
76237
76238 # Whether we should hardcode library paths into libraries.
76239 hardcode_into_libs=$hardcode_into_libs
76240
76241 # Compile-time system search path for libraries.
76242 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
76243
76244 # Run-time system search path for libraries.
76245 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
76246
76247 # Whether dlopen is supported.
76248 dlopen_support=$enable_dlopen
76249
76250 # Whether dlopen of programs is supported.
76251 dlopen_self=$enable_dlopen_self
76252
76253 # Whether dlopen of statically linked programs is supported.
76254 dlopen_self_static=$enable_dlopen_self_static
76255
76256 # Commands to strip libraries.
76257 old_striplib=$lt_old_striplib
76258 striplib=$lt_striplib
76259
76260
76261 # The linker used to build libraries.
76262 LD=$lt_LD
76263
76264 # Commands used to build an old-style archive.
76265 old_archive_cmds=$lt_old_archive_cmds
76266
76267 # A language specific compiler.
76268 CC=$lt_compiler
76269
76270 # Is the compiler the GNU compiler?
76271 with_gcc=$GCC
76272
76273 # Compiler flag to turn off builtin functions.
76274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
76275
76276 # How to pass a linker flag through the compiler.
76277 wl=$lt_lt_prog_compiler_wl
76278
76279 # Additional compiler flags for building library objects.
76280 pic_flag=$lt_lt_prog_compiler_pic
76281
76282 # Compiler flag to prevent dynamic linking.
76283 link_static_flag=$lt_lt_prog_compiler_static
76284
76285 # Does compiler simultaneously support -c and -o options?
76286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
76287
76288 # Whether or not to add -lc for building shared libraries.
76289 build_libtool_need_lc=$archive_cmds_need_lc
76290
76291 # Whether or not to disallow shared libs when runtime libs are static.
76292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
76293
76294 # Compiler flag to allow reflexive dlopens.
76295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
76296
76297 # Compiler flag to generate shared objects directly from archives.
76298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
76299
76300 # Whether the compiler copes with passing no objects directly.
76301 compiler_needs_object=$lt_compiler_needs_object
76302
76303 # Create an old-style archive from a shared archive.
76304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
76305
76306 # Create a temporary old-style archive to link instead of a shared archive.
76307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
76308
76309 # Commands used to build a shared archive.
76310 archive_cmds=$lt_archive_cmds
76311 archive_expsym_cmds=$lt_archive_expsym_cmds
76312
76313 # Commands used to build a loadable module if different from building
76314 # a shared archive.
76315 module_cmds=$lt_module_cmds
76316 module_expsym_cmds=$lt_module_expsym_cmds
76317
76318 # Whether we are building with GNU ld or not.
76319 with_gnu_ld=$lt_with_gnu_ld
76320
76321 # Flag that allows shared libraries with undefined symbols to be built.
76322 allow_undefined_flag=$lt_allow_undefined_flag
76323
76324 # Flag that enforces no undefined symbols.
76325 no_undefined_flag=$lt_no_undefined_flag
76326
76327 # Flag to hardcode \$libdir into a binary during linking.
76328 # This must work even if \$libdir does not exist
76329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
76330
76331 # If ld is used when linking, flag to hardcode \$libdir into a binary
76332 # during linking.  This must work even if \$libdir does not exist.
76333 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
76334
76335 # Whether we need a single "-rpath" flag with a separated argument.
76336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
76337
76338 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76339 # DIR into the resulting binary.
76340 hardcode_direct=$hardcode_direct
76341
76342 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76343 # DIR into the resulting binary and the resulting library dependency is
76344 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
76345 # library is relocated.
76346 hardcode_direct_absolute=$hardcode_direct_absolute
76347
76348 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
76349 # into the resulting binary.
76350 hardcode_minus_L=$hardcode_minus_L
76351
76352 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
76353 # into the resulting binary.
76354 hardcode_shlibpath_var=$hardcode_shlibpath_var
76355
76356 # Set to "yes" if building a shared library automatically hardcodes DIR
76357 # into the library and all subsequent libraries and executables linked
76358 # against it.
76359 hardcode_automatic=$hardcode_automatic
76360
76361 # Set to yes if linker adds runtime paths of dependent libraries
76362 # to runtime path list.
76363 inherit_rpath=$inherit_rpath
76364
76365 # Whether libtool must link a program against all its dependency libraries.
76366 link_all_deplibs=$link_all_deplibs
76367
76368 # Fix the shell variable \$srcfile for the compiler.
76369 fix_srcfile_path=$lt_fix_srcfile_path
76370
76371 # Set to "yes" if exported symbols are required.
76372 always_export_symbols=$always_export_symbols
76373
76374 # The commands to list exported symbols.
76375 export_symbols_cmds=$lt_export_symbols_cmds
76376
76377 # Symbols that should not be listed in the preloaded symbols.
76378 exclude_expsyms=$lt_exclude_expsyms
76379
76380 # Symbols that must always be exported.
76381 include_expsyms=$lt_include_expsyms
76382
76383 # Commands necessary for linking programs (against libraries) with templates.
76384 prelink_cmds=$lt_prelink_cmds
76385
76386 # Specify filename containing input files.
76387 file_list_spec=$lt_file_list_spec
76388
76389 # How to hardcode a shared library path into an executable.
76390 hardcode_action=$hardcode_action
76391
76392 # ### END LIBTOOL CONFIG
76393
76394 _LT_EOF
76395
76396   case $host_os in
76397   aix3*)
76398     cat <<\_LT_EOF >> "$cfgfile"
76399 # AIX sometimes has problems with the GCC collect2 program.  For some
76400 # reason, if we set the COLLECT_NAMES environment variable, the problems
76401 # vanish in a puff of smoke.
76402 if test "X${COLLECT_NAMES+set}" != Xset; then
76403   COLLECT_NAMES=
76404   export COLLECT_NAMES
76405 fi
76406 _LT_EOF
76407     ;;
76408   esac
76409
76410
76411 ltmain="$ac_aux_dir/ltmain.sh"
76412
76413
76414   # We use sed instead of cat because bash on DJGPP gets confused if
76415   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
76416   # text mode, it properly converts lines to CR/LF.  This bash problem
76417   # is reportedly fixed, but why not run on old versions too?
76418   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
76419     || (rm -f "$cfgfile"; exit 1)
76420
76421   case $xsi_shell in
76422   yes)
76423     cat << \_LT_EOF >> "$cfgfile"
76424
76425 # func_dirname file append nondir_replacement
76426 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
76427 # otherwise set result to NONDIR_REPLACEMENT.
76428 func_dirname ()
76429 {
76430   case ${1} in
76431     */*) func_dirname_result="${1%/*}${2}" ;;
76432     *  ) func_dirname_result="${3}" ;;
76433   esac
76434 }
76435
76436 # func_basename file
76437 func_basename ()
76438 {
76439   func_basename_result="${1##*/}"
76440 }
76441
76442 # func_dirname_and_basename file append nondir_replacement
76443 # perform func_basename and func_dirname in a single function
76444 # call:
76445 #   dirname:  Compute the dirname of FILE.  If nonempty,
76446 #             add APPEND to the result, otherwise set result
76447 #             to NONDIR_REPLACEMENT.
76448 #             value returned in "$func_dirname_result"
76449 #   basename: Compute filename of FILE.
76450 #             value retuned in "$func_basename_result"
76451 # Implementation must be kept synchronized with func_dirname
76452 # and func_basename. For efficiency, we do not delegate to
76453 # those functions but instead duplicate the functionality here.
76454 func_dirname_and_basename ()
76455 {
76456   case ${1} in
76457     */*) func_dirname_result="${1%/*}${2}" ;;
76458     *  ) func_dirname_result="${3}" ;;
76459   esac
76460   func_basename_result="${1##*/}"
76461 }
76462
76463 # func_stripname prefix suffix name
76464 # strip PREFIX and SUFFIX off of NAME.
76465 # PREFIX and SUFFIX must not contain globbing or regex special
76466 # characters, hashes, percent signs, but SUFFIX may contain a leading
76467 # dot (in which case that matches only a dot).
76468 func_stripname ()
76469 {
76470   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
76471   # positional parameters, so assign one to ordinary parameter first.
76472   func_stripname_result=${3}
76473   func_stripname_result=${func_stripname_result#"${1}"}
76474   func_stripname_result=${func_stripname_result%"${2}"}
76475 }
76476
76477 # func_opt_split
76478 func_opt_split ()
76479 {
76480   func_opt_split_opt=${1%%=*}
76481   func_opt_split_arg=${1#*=}
76482 }
76483
76484 # func_lo2o object
76485 func_lo2o ()
76486 {
76487   case ${1} in
76488     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
76489     *)    func_lo2o_result=${1} ;;
76490   esac
76491 }
76492
76493 # func_xform libobj-or-source
76494 func_xform ()
76495 {
76496   func_xform_result=${1%.*}.lo
76497 }
76498
76499 # func_arith arithmetic-term...
76500 func_arith ()
76501 {
76502   func_arith_result=$(( $* ))
76503 }
76504
76505 # func_len string
76506 # STRING may not start with a hyphen.
76507 func_len ()
76508 {
76509   func_len_result=${#1}
76510 }
76511
76512 _LT_EOF
76513     ;;
76514   *) # Bourne compatible functions.
76515     cat << \_LT_EOF >> "$cfgfile"
76516
76517 # func_dirname file append nondir_replacement
76518 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
76519 # otherwise set result to NONDIR_REPLACEMENT.
76520 func_dirname ()
76521 {
76522   # Extract subdirectory from the argument.
76523   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
76524   if test "X$func_dirname_result" = "X${1}"; then
76525     func_dirname_result="${3}"
76526   else
76527     func_dirname_result="$func_dirname_result${2}"
76528   fi
76529 }
76530
76531 # func_basename file
76532 func_basename ()
76533 {
76534   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
76535 }
76536
76537
76538 # func_stripname prefix suffix name
76539 # strip PREFIX and SUFFIX off of NAME.
76540 # PREFIX and SUFFIX must not contain globbing or regex special
76541 # characters, hashes, percent signs, but SUFFIX may contain a leading
76542 # dot (in which case that matches only a dot).
76543 # func_strip_suffix prefix name
76544 func_stripname ()
76545 {
76546   case ${2} in
76547     .*) func_stripname_result=`$ECHO "X${3}" \
76548            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
76549     *)  func_stripname_result=`$ECHO "X${3}" \
76550            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
76551   esac
76552 }
76553
76554 # sed scripts:
76555 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
76556 my_sed_long_arg='1s/^-[^=]*=//'
76557
76558 # func_opt_split
76559 func_opt_split ()
76560 {
76561   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
76562   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
76563 }
76564
76565 # func_lo2o object
76566 func_lo2o ()
76567 {
76568   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
76569 }
76570
76571 # func_xform libobj-or-source
76572 func_xform ()
76573 {
76574   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
76575 }
76576
76577 # func_arith arithmetic-term...
76578 func_arith ()
76579 {
76580   func_arith_result=`expr "$@"`
76581 }
76582
76583 # func_len string
76584 # STRING may not start with a hyphen.
76585 func_len ()
76586 {
76587   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
76588 }
76589
76590 _LT_EOF
76591 esac
76592
76593 case $lt_shell_append in
76594   yes)
76595     cat << \_LT_EOF >> "$cfgfile"
76596
76597 # func_append var value
76598 # Append VALUE to the end of shell variable VAR.
76599 func_append ()
76600 {
76601   eval "$1+=\$2"
76602 }
76603 _LT_EOF
76604     ;;
76605   *)
76606     cat << \_LT_EOF >> "$cfgfile"
76607
76608 # func_append var value
76609 # Append VALUE to the end of shell variable VAR.
76610 func_append ()
76611 {
76612   eval "$1=\$$1\$2"
76613 }
76614
76615 _LT_EOF
76616     ;;
76617   esac
76618
76619
76620   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
76621     || (rm -f "$cfgfile"; exit 1)
76622
76623   mv -f "$cfgfile" "$ofile" ||
76624     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
76625   chmod +x "$ofile"
76626
76627  ;;
76628
76629   esac
76630 done # for ac_tag
76631
76632
76633 { (exit 0); exit 0; }
76634 _ACEOF
76635 chmod +x $CONFIG_STATUS
76636 ac_clean_files=$ac_clean_files_save
76637
76638 test $ac_write_fail = 0 ||
76639   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
76640 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
76641    { (exit 1); exit 1; }; }
76642
76643
76644 # configure is writing to config.log, and then calls config.status.
76645 # config.status does its own redirection, appending to config.log.
76646 # Unfortunately, on DOS this fails, as config.log is still kept open
76647 # by configure, so config.status won't be able to write to it; its
76648 # output is simply discarded.  So we exec the FD to /dev/null,
76649 # effectively closing config.log, so it can be properly (re)opened and
76650 # appended to by config.status.  When coming back to configure, we
76651 # need to make the FD available again.
76652 if test "$no_create" != yes; then
76653   ac_cs_success=:
76654   ac_config_status_args=
76655   test "$silent" = yes &&
76656     ac_config_status_args="$ac_config_status_args --quiet"
76657   exec 5>/dev/null
76658   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
76659   exec 5>>config.log
76660   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
76661   # would make configure fail if this is the last instruction.
76662   $ac_cs_success || { (exit 1); exit 1; }
76663 fi
76664 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
76665   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
76666 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
76667 fi
76668
76669
76670
76671     echo "Compiler Flags:"
76672     echo "  CFLAGS: ${CFLAGS-(none)}"
76673     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
76674     echo "  LDFLAGS: ${LDFLAGS-(none)}"
76675     echo "  LIBS: ${LIBS-(none)}"
76676
76677
76678     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
76679
76680
76681     echo "Working IPv6:" $WORKING_IPV6
76682
76683
76684     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
76685
76686
76687     echo "Directories:"
76688     echo "  Application: $APPLICATION_DIR"
76689     echo "  Configuration: $CONFIG_DIR"
76690     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
76691     echo "  Perl modules (amperldir): $amperldir"
76692     echo "  Template and example data files (amdatadir): $amdatadir"
76693     echo "  Temporary: $AMANDA_TMPDIR"
76694
76695     if test -f config.warnings; then
76696         echo "WARNINGS:"
76697         cat config.warnings | sed -e 's/^/  /g'
76698         rm config.warnings
76699     fi
76700