mention the S3 storage enablement in the changelog
[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 READLINE_LIBS
801 PKG_CONFIG
802 GLIB_MKENUMS
803 GOBJECT_QUERY
804 GLIB_GENMARSHAL
805 GLIB_LIBS
806 GLIB_CFLAGS
807 AMANDA_STATIC_LDFLAGS
808 LIBTOOL_DEPS
809 OTOOL64
810 OTOOL
811 LIPO
812 NMEDIT
813 DSYMUTIL
814 lt_ECHO
815 LN_S
816 NM
817 ac_ct_DUMPBIN
818 DUMPBIN
819 LD
820 FGREP
821 SED
822 LIBTOOL
823 AMANDA_SWIG_PERL_CFLAGS
824 GCC_COMPILER_FALSE
825 GCC_COMPILER_TRUE
826 RPCGEN
827 PS_ARGUMENT_ARGS
828 PS_ARGUMENT
829 PS
830 LPRFLAG
831 LPR
832 MTX
833 MT_FILE_FLAG
834 MT
835 DEFAULT_MAILER
836 MAILER
837 SORT
838 BASH
839 DD
840 YFLAGS
841 YACC
842 AR
843 LEXLIB
844 LEX_OUTPUT_ROOT
845 LEX
846 AMLINTFLAGS
847 AMLINT
848 USE_RUNDUMP
849 WANT_SAMBA_FALSE
850 WANT_SAMBA_TRUE
851 SAMBA_CLIENT
852 STAR
853 GNUTAR
854 DUMP_RETURNS_1
855 AIX_BACKUP
856 RESTORE
857 DUMP
858 VRESTORE
859 VDUMP
860 VXRESTORE
861 VXDUMP
862 XFSRESTORE
863 XFSDUMP
864 KRB5_SECURITY
865 WANT_KRB5_SECURITY_FALSE
866 WANT_KRB5_SECURITY_TRUE
867 SSH_SECURITY
868 WANT_SSH_SECURITY_FALSE
869 WANT_SSH_SECURITY_TRUE
870 SSH
871 RSH_SECURITY
872 WANT_RSH_SECURITY_FALSE
873 WANT_RSH_SECURITY_TRUE
874 BSDUDP_SECURITY
875 WANT_BSDUDP_SECURITY_FALSE
876 WANT_BSDUDP_SECURITY_TRUE
877 BSDTCP_SECURITY
878 WANT_BSDTCP_SECURITY_FALSE
879 WANT_BSDTCP_SECURITY_TRUE
880 USE_AMANDAHOSTS
881 BSD_SECURITY
882 WANT_BSD_SECURITY_FALSE
883 WANT_BSD_SECURITY_TRUE
884 WANT_NDMP_DEVICE_FALSE
885 WANT_NDMP_DEVICE_TRUE
886 WANT_DVDRW_DEVICE_FALSE
887 WANT_DVDRW_DEVICE_TRUE
888 WANT_TAPE_DEVICE_FALSE
889 WANT_TAPE_DEVICE_TRUE
890 WANT_S3_DEVICE_FALSE
891 WANT_S3_DEVICE_TRUE
892 LIBCURL
893 LIBCURL_CPPFLAGS
894 _libcurl_config
895 CURL_CONFIG
896 POSUB
897 INTLLIBS
898 LTLIBICONV
899 LIBICONV
900 INTL_MACOSX_LIBS
901 MSGMERGE
902 XGETTEXT_015
903 XGETTEXT
904 GMSGFMT_015
905 MSGFMT_015
906 GMSGFMT
907 USE_NLS
908 GETTEXT
909 MSGFMT
910 amdatadir
911 APPLICATION_DIR
912 amperldir
913 amincludedir
914 amlibexecdir
915 amlibdir
916 CLIENT_SCRIPTS_OPT
917 HAVE_GZIP
918 UNCOMPRESS_OPT
919 UNCOMPRESS_PATH
920 COMPRESS_BEST_OPT
921 COMPRESS_FAST_OPT
922 COMPRESS_SUFFIX
923 COMPRESS_PATH
924 CAT
925 PERLEXTLIBS
926 WANT_MANDATORY_THREAD_CHECK_FALSE
927 WANT_MANDATORY_THREAD_CHECK_TRUE
928 WANT_CYGWIN_COPY_PERL_DLL_FALSE
929 WANT_CYGWIN_COPY_PERL_DLL_TRUE
930 PERL_INC
931 PERL
932 SWIG_LIB
933 SWIG
934 LOCKING
935 WANT_AMFLOCK_LNLOCK_FALSE
936 WANT_AMFLOCK_LNLOCK_TRUE
937 WANT_AMFLOCK_LOCKF_FALSE
938 WANT_AMFLOCK_LOCKF_TRUE
939 WANT_AMFLOCK_FLOCK_FALSE
940 WANT_AMFLOCK_FLOCK_TRUE
941 WANT_AMFLOCK_POSIX_FALSE
942 WANT_AMFLOCK_POSIX_TRUE
943 GETCONF
944 DEFAULT_AMANDATES_FILE
945 EXAMPLE_TAPEDEV
946 DEFAULT_TAPE_DEVICE
947 DEFAULT_TAPE_SERVER
948 DEFAULT_CONFIG
949 DEFAULT_SERVER
950 CONFIG_CLOBBER_MY_CONFIG
951 DOC_BUILD_DATE
952 XSLREL
953 ENABLE_MANPAGE_BUILD_FALSE
954 ENABLE_MANPAGE_BUILD_TRUE
955 XSLTPROC
956 XSLTPROC_FLAGS
957 WANT_AMPLOT_FALSE
958 WANT_AMPLOT_TRUE
959 AMPLOT_CAT_PACK
960 AMPLOT_CAT_COMPRESS
961 AMPLOT_CAT_GZIP
962 AMPLOT_COMPRESS
963 GZIP
964 COMPRESS
965 PCAT
966 GNUPLOT
967 AMANDA_COMPONENTS
968 WANT_TAPE_FALSE
969 WANT_TAPE_TRUE
970 WANT_NDMP_FALSE
971 WANT_NDMP_TRUE
972 WANT_RECOVER_FALSE
973 WANT_RECOVER_TRUE
974 WANT_SERVER_FALSE
975 WANT_SERVER_TRUE
976 WANT_RESTORE_FALSE
977 WANT_RESTORE_TRUE
978 WANT_CLIENT_FALSE
979 WANT_CLIENT_TRUE
980 SYNTAX_CHECKS_FALSE
981 SYNTAX_CHECKS_TRUE
982 WANT_INSTALLPERMS_FALSE
983 WANT_INSTALLPERMS_TRUE
984 WANT_SETUID_CLIENT_FALSE
985 WANT_SETUID_CLIENT_TRUE
986 SERVICE_SUFFIX
987 AMANDA_DEBUG_DAYS
988 AMANDA_DBGDIR
989 ASSERTIONS
990 LOW_TCPPORTRANGE
991 TCPPORTRANGE
992 UDPPORTRANGE
993 BINARY_OWNER
994 CHECK_USERID_FALSE
995 CHECK_USERID_TRUE
996 CHECK_USERID
997 AMANDA_TMPDIR
998 GNUTAR_LISTED_INCREMENTAL_DIR
999 CONFIG_DIR
1000 SETUID_GROUP
1001 CLIENT_LOGIN
1002 AMANDA_WARNING_CFLAGS
1003 gltests_WITNESS
1004 REPLACE_ISWCNTRL
1005 HAVE_WCTYPE_H
1006 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
1007 NEXT_WCTYPE_H
1008 REPLACE_ISWBLANK
1009 HAVE_ISWBLANK
1010 HAVE_ISWCNTRL
1011 HAVE_WINT_T
1012 HAVE_WCHAR_H
1013 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
1014 NEXT_WCHAR_H
1015 HAVE_UNISTD_H
1016 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
1017 NEXT_UNISTD_H
1018 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
1019 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
1020 TIME_H_DEFINES_STRUCT_TIMESPEC
1021 NEXT_AS_FIRST_DIRECTIVE_TIME_H
1022 NEXT_TIME_H
1023 REPLACE_TIMEGM
1024 REPLACE_NANOSLEEP
1025 REPLACE_MKTIME
1026 REPLACE_LOCALTIME_R
1027 HAVE_TIMEGM
1028 HAVE_STRPTIME
1029 HAVE_NANOSLEEP
1030 HAVE_LOCALTIME_R
1031 GNULIB_TIME_R
1032 GNULIB_TIMEGM
1033 GNULIB_STRPTIME
1034 GNULIB_NANOSLEEP
1035 GNULIB_MKTIME
1036 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1037 NEXT_SYS_STAT_H
1038 NEXT_AS_FIRST_DIRECTIVE_STRING_H
1039 NEXT_STRING_H
1040 HAVE_RANDOM_H
1041 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
1042 NEXT_STDLIB_H
1043 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
1044 NEXT_STDIO_H
1045 ASM_SYMBOL_PREFIX
1046 STDINT_H
1047 WINT_T_SUFFIX
1048 WCHAR_T_SUFFIX
1049 SIG_ATOMIC_T_SUFFIX
1050 SIZE_T_SUFFIX
1051 PTRDIFF_T_SUFFIX
1052 HAVE_SIGNED_WINT_T
1053 HAVE_SIGNED_WCHAR_T
1054 HAVE_SIGNED_SIG_ATOMIC_T
1055 BITSIZEOF_WINT_T
1056 BITSIZEOF_WCHAR_T
1057 BITSIZEOF_SIG_ATOMIC_T
1058 BITSIZEOF_SIZE_T
1059 BITSIZEOF_PTRDIFF_T
1060 HAVE_SYS_BITYPES_H
1061 HAVE_SYS_INTTYPES_H
1062 HAVE_STDINT_H
1063 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1064 NEXT_STDINT_H
1065 HAVE_SYS_TYPES_H
1066 HAVE_INTTYPES_H
1067 HAVE_UNSIGNED_LONG_LONG_INT
1068 HAVE_LONG_LONG_INT
1069 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
1070 NEXT_STDDEF_H
1071 STDDEF_H
1072 HAVE_WCHAR_T
1073 REPLACE_NULL
1074 HAVE__BOOL
1075 STDBOOL_H
1076 NETINET_IN_H
1077 HAVE_NETINET_IN_H
1078 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H
1079 NEXT_NETINET_IN_H
1080 APPLE_UNIVERSAL_BUILD
1081 UNDEFINE_STRTOK_R
1082 REPLACE_STRTOK_R
1083 REPLACE_STRSIGNAL
1084 REPLACE_STRNLEN
1085 REPLACE_STRNDUP
1086 REPLACE_STRNCAT
1087 REPLACE_STRERROR
1088 REPLACE_STRCASESTR
1089 REPLACE_STRSTR
1090 REPLACE_STRDUP
1091 REPLACE_STPNCPY
1092 REPLACE_MEMMEM
1093 REPLACE_MEMCHR
1094 HAVE_STRVERSCMP
1095 HAVE_DECL_STRSIGNAL
1096 HAVE_DECL_STRTOK_R
1097 HAVE_STRCASESTR
1098 HAVE_STRSEP
1099 HAVE_STRPBRK
1100 HAVE_DECL_STRNLEN
1101 HAVE_DECL_STRNDUP
1102 HAVE_DECL_STRDUP
1103 HAVE_STRCHRNUL
1104 HAVE_STPNCPY
1105 HAVE_STPCPY
1106 HAVE_RAWMEMCHR
1107 HAVE_DECL_MEMRCHR
1108 HAVE_MEMPCPY
1109 HAVE_DECL_MEMMEM
1110 HAVE_MEMCHR
1111 HAVE_MBSLEN
1112 GNULIB_STRVERSCMP
1113 GNULIB_STRSIGNAL
1114 GNULIB_STRERROR
1115 GNULIB_MBSTOK_R
1116 GNULIB_MBSSEP
1117 GNULIB_MBSSPN
1118 GNULIB_MBSPBRK
1119 GNULIB_MBSCSPN
1120 GNULIB_MBSCASESTR
1121 GNULIB_MBSPCASECMP
1122 GNULIB_MBSNCASECMP
1123 GNULIB_MBSCASECMP
1124 GNULIB_MBSSTR
1125 GNULIB_MBSRCHR
1126 GNULIB_MBSCHR
1127 GNULIB_MBSNLEN
1128 GNULIB_MBSLEN
1129 GNULIB_STRTOK_R
1130 GNULIB_STRCASESTR
1131 GNULIB_STRSTR
1132 GNULIB_STRSEP
1133 GNULIB_STRPBRK
1134 GNULIB_STRNLEN
1135 GNULIB_STRNDUP
1136 GNULIB_STRNCAT
1137 GNULIB_STRDUP
1138 GNULIB_STRCHRNUL
1139 GNULIB_STPNCPY
1140 GNULIB_STPCPY
1141 GNULIB_RAWMEMCHR
1142 GNULIB_MEMRCHR
1143 GNULIB_MEMPCPY
1144 GNULIB_MEMMEM
1145 GNULIB_MEMCHR
1146 LOCALE_FR_UTF8
1147 LOCALE_ZH_CN
1148 LOCALE_JA
1149 REPLACE_UNSETENV
1150 REPLACE_STRTOD
1151 REPLACE_SETENV
1152 REPLACE_REALPATH
1153 REPLACE_REALLOC
1154 REPLACE_PUTENV
1155 REPLACE_MKSTEMP
1156 REPLACE_MALLOC
1157 REPLACE_CANONICALIZE_FILE_NAME
1158 REPLACE_CALLOC
1159 HAVE_UNSETENV
1160 HAVE_UNLOCKPT
1161 HAVE_SYS_LOADAVG_H
1162 HAVE_STRUCT_RANDOM_DATA
1163 HAVE_STRTOULL
1164 HAVE_STRTOLL
1165 HAVE_STRTOD
1166 HAVE_SETENV
1167 HAVE_RPMATCH
1168 HAVE_REALPATH
1169 HAVE_RANDOM_R
1170 HAVE_PTSNAME
1171 HAVE_MKSTEMPS
1172 HAVE_MKSTEMP
1173 HAVE_MKOSTEMPS
1174 HAVE_MKOSTEMP
1175 HAVE_MKDTEMP
1176 HAVE_GRANTPT
1177 HAVE_GETSUBOPT
1178 HAVE_DECL_GETLOADAVG
1179 HAVE_CANONICALIZE_FILE_NAME
1180 HAVE_ATOLL
1181 HAVE__EXIT
1182 GNULIB_UNSETENV
1183 GNULIB_UNLOCKPT
1184 GNULIB_STRTOULL
1185 GNULIB_STRTOLL
1186 GNULIB_STRTOD
1187 GNULIB_SETENV
1188 GNULIB_RPMATCH
1189 GNULIB_REALPATH
1190 GNULIB_REALLOC_POSIX
1191 GNULIB_RANDOM_R
1192 GNULIB_PUTENV
1193 GNULIB_PTSNAME
1194 GNULIB_MKSTEMPS
1195 GNULIB_MKSTEMP
1196 GNULIB_MKOSTEMPS
1197 GNULIB_MKOSTEMP
1198 GNULIB_MKDTEMP
1199 GNULIB_MALLOC_POSIX
1200 GNULIB_GRANTPT
1201 GNULIB_GETSUBOPT
1202 GNULIB_GETLOADAVG
1203 GNULIB_CANONICALIZE_FILE_NAME
1204 GNULIB_CALLOC_POSIX
1205 GNULIB_ATOLL
1206 GNULIB__EXIT
1207 REPLACE_UTIMENSAT
1208 REPLACE_STAT
1209 REPLACE_MKNOD
1210 REPLACE_MKFIFO
1211 REPLACE_MKDIR
1212 REPLACE_LSTAT
1213 REPLACE_FUTIMENS
1214 REPLACE_FSTATAT
1215 REPLACE_FSTAT
1216 HAVE_UTIMENSAT
1217 HAVE_MKNODAT
1218 HAVE_MKNOD
1219 HAVE_MKFIFOAT
1220 HAVE_MKFIFO
1221 HAVE_MKDIRAT
1222 HAVE_LSTAT
1223 HAVE_LCHMOD
1224 HAVE_FUTIMENS
1225 HAVE_FSTATAT
1226 HAVE_FCHMODAT
1227 GNULIB_UTIMENSAT
1228 GNULIB_STAT
1229 GNULIB_MKNODAT
1230 GNULIB_MKNOD
1231 GNULIB_MKFIFOAT
1232 GNULIB_MKFIFO
1233 GNULIB_MKDIRAT
1234 GNULIB_LSTAT
1235 GNULIB_LCHMOD
1236 GNULIB_FUTIMENS
1237 GNULIB_FSTATAT
1238 GNULIB_FCHMODAT
1239 LTLIBMULTITHREAD
1240 LIBMULTITHREAD
1241 LTLIBTHREAD
1242 LIBTHREAD
1243 LTLIBPTH
1244 LIBPTH
1245 LOCALCHARSET_TESTS_ENVIRONMENT
1246 GLIBC21
1247 HAVE_LANGINFO_ERA
1248 HAVE_LANGINFO_CODESET
1249 HAVE_LANGINFO_H
1250 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
1251 NEXT_LANGINFO_H
1252 REPLACE_NL_LANGINFO
1253 HAVE_NL_LANGINFO
1254 GNULIB_NL_LANGINFO
1255 INET_PTON_LIB
1256 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1257 NEXT_SYS_TIME_H
1258 REPLACE_GETTIMEOFDAY
1259 HAVE_SYS_TIME_H
1260 HAVE_STRUCT_TIMEVAL
1261 HAVE_GETTIMEOFDAY
1262 GNULIB_GETTIMEOFDAY
1263 LTLIBINTL
1264 LIBINTL
1265 GETOPT_H
1266 HAVE_GETOPT_H
1267 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1268 NEXT_GETOPT_H
1269 GETADDRINFO_LIB
1270 INET_NTOP_LIB
1271 SERVENT_LIB
1272 HOSTENT_LIB
1273 HAVE_NETDB_H
1274 NEXT_AS_FIRST_DIRECTIVE_NETDB_H
1275 NEXT_NETDB_H
1276 HAVE_DECL_GETNAMEINFO
1277 HAVE_DECL_GETADDRINFO
1278 HAVE_DECL_GAI_STRERROR
1279 HAVE_DECL_FREEADDRINFO
1280 HAVE_STRUCT_ADDRINFO
1281 GNULIB_GETADDRINFO
1282 HAVE_WINSOCK2_H
1283 HAVE_WS2TCPIP_H
1284 HAVE_SYS_SOCKET_H
1285 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H
1286 NEXT_SYS_SOCKET_H
1287 HAVE_ACCEPT4
1288 HAVE_SA_FAMILY_T
1289 HAVE_STRUCT_SOCKADDR_STORAGE
1290 GNULIB_ACCEPT4
1291 GNULIB_SHUTDOWN
1292 GNULIB_SETSOCKOPT
1293 GNULIB_SENDTO
1294 GNULIB_RECVFROM
1295 GNULIB_SEND
1296 GNULIB_RECV
1297 GNULIB_LISTEN
1298 GNULIB_GETSOCKOPT
1299 GNULIB_GETSOCKNAME
1300 GNULIB_GETPEERNAME
1301 GNULIB_BIND
1302 GNULIB_ACCEPT
1303 GNULIB_CONNECT
1304 GNULIB_SOCKET
1305 REPLACE_VSPRINTF
1306 REPLACE_VSNPRINTF
1307 REPLACE_VPRINTF
1308 REPLACE_VFPRINTF
1309 REPLACE_VDPRINTF
1310 REPLACE_VASPRINTF
1311 REPLACE_TMPFILE
1312 REPLACE_STDIO_WRITE_FUNCS
1313 REPLACE_SPRINTF
1314 REPLACE_SNPRINTF
1315 REPLACE_RENAMEAT
1316 REPLACE_RENAME
1317 REPLACE_REMOVE
1318 REPLACE_PRINTF
1319 REPLACE_POPEN
1320 REPLACE_PERROR
1321 REPLACE_OBSTACK_PRINTF
1322 REPLACE_GETLINE
1323 REPLACE_GETDELIM
1324 REPLACE_FTELLO
1325 REPLACE_FTELL
1326 REPLACE_FSEEKO
1327 REPLACE_FSEEK
1328 REPLACE_FREOPEN
1329 REPLACE_FPURGE
1330 REPLACE_FPRINTF
1331 REPLACE_FOPEN
1332 REPLACE_FFLUSH
1333 REPLACE_FCLOSE
1334 REPLACE_DPRINTF
1335 HAVE_VDPRINTF
1336 HAVE_VASPRINTF
1337 HAVE_RENAMEAT
1338 HAVE_FTELLO
1339 HAVE_FSEEKO
1340 HAVE_DPRINTF
1341 HAVE_DECL_VSNPRINTF
1342 HAVE_DECL_SNPRINTF
1343 HAVE_DECL_OBSTACK_PRINTF
1344 HAVE_DECL_GETLINE
1345 HAVE_DECL_GETDELIM
1346 HAVE_DECL_FPURGE
1347 GNULIB_VSPRINTF_POSIX
1348 GNULIB_VSNPRINTF
1349 GNULIB_VPRINTF_POSIX
1350 GNULIB_VPRINTF
1351 GNULIB_VFPRINTF_POSIX
1352 GNULIB_VFPRINTF
1353 GNULIB_VDPRINTF
1354 GNULIB_VASPRINTF
1355 GNULIB_TMPFILE
1356 GNULIB_STDIO_H_SIGPIPE
1357 GNULIB_SPRINTF_POSIX
1358 GNULIB_SNPRINTF
1359 GNULIB_RENAMEAT
1360 GNULIB_RENAME
1361 GNULIB_REMOVE
1362 GNULIB_PUTS
1363 GNULIB_PUTCHAR
1364 GNULIB_PUTC
1365 GNULIB_PRINTF_POSIX
1366 GNULIB_PRINTF
1367 GNULIB_POPEN
1368 GNULIB_PERROR
1369 GNULIB_OBSTACK_PRINTF_POSIX
1370 GNULIB_OBSTACK_PRINTF
1371 GNULIB_GETLINE
1372 GNULIB_GETDELIM
1373 GNULIB_FWRITE
1374 GNULIB_FTELLO
1375 GNULIB_FTELL
1376 GNULIB_FSEEKO
1377 GNULIB_FSEEK
1378 GNULIB_FREOPEN
1379 GNULIB_FPUTS
1380 GNULIB_FPUTC
1381 GNULIB_FPURGE
1382 GNULIB_FPRINTF_POSIX
1383 GNULIB_FPRINTF
1384 GNULIB_FOPEN
1385 GNULIB_FFLUSH
1386 GNULIB_FCLOSE
1387 GNULIB_DPRINTF
1388 FLOAT_H
1389 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1390 NEXT_FLOAT_H
1391 EOVERFLOW_VALUE
1392 EOVERFLOW_HIDDEN
1393 ENOLINK_VALUE
1394 ENOLINK_HIDDEN
1395 EMULTIHOP_VALUE
1396 EMULTIHOP_HIDDEN
1397 ERRNO_H
1398 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1399 NEXT_ERRNO_H
1400 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1401 UNISTD_H_HAVE_WINSOCK2_H
1402 REPLACE_WRITE
1403 REPLACE_USLEEP
1404 REPLACE_UNLINKAT
1405 REPLACE_UNLINK
1406 REPLACE_TTYNAME_R
1407 REPLACE_SYMLINK
1408 REPLACE_SLEEP
1409 REPLACE_RMDIR
1410 REPLACE_READLINK
1411 REPLACE_PWRITE
1412 REPLACE_PREAD
1413 REPLACE_LSEEK
1414 REPLACE_LINKAT
1415 REPLACE_LINK
1416 REPLACE_LCHOWN
1417 REPLACE_GETPAGESIZE
1418 REPLACE_GETGROUPS
1419 REPLACE_GETCWD
1420 REPLACE_FCHOWNAT
1421 REPLACE_DUP2
1422 REPLACE_DUP
1423 REPLACE_CLOSE
1424 REPLACE_CHOWN
1425 HAVE_SYS_PARAM_H
1426 HAVE_OS_H
1427 HAVE_DECL_GETUSERSHELL
1428 HAVE_DECL_GETPAGESIZE
1429 HAVE_DECL_GETLOGIN_R
1430 HAVE_DECL_ENVIRON
1431 HAVE_USLEEP
1432 HAVE_UNLINKAT
1433 HAVE_TTYNAME_R
1434 HAVE_SYMLINKAT
1435 HAVE_SYMLINK
1436 HAVE_SLEEP
1437 HAVE_READLINKAT
1438 HAVE_READLINK
1439 HAVE_PWRITE
1440 HAVE_PREAD
1441 HAVE_PIPE2
1442 HAVE_LINKAT
1443 HAVE_LINK
1444 HAVE_LCHOWN
1445 HAVE_GETPAGESIZE
1446 HAVE_GETLOGIN
1447 HAVE_GETHOSTNAME
1448 HAVE_GETGROUPS
1449 HAVE_GETDTABLESIZE
1450 HAVE_GETDOMAINNAME
1451 HAVE_FTRUNCATE
1452 HAVE_FSYNC
1453 HAVE_FCHOWNAT
1454 HAVE_FCHDIR
1455 HAVE_FACCESSAT
1456 HAVE_EUIDACCESS
1457 HAVE_DUP3
1458 HAVE_DUP2
1459 HAVE_CHOWN
1460 GNULIB_WRITE
1461 GNULIB_USLEEP
1462 GNULIB_UNLINKAT
1463 GNULIB_UNLINK
1464 GNULIB_UNISTD_H_SIGPIPE
1465 GNULIB_UNISTD_H_GETOPT
1466 GNULIB_TTYNAME_R
1467 GNULIB_SYMLINKAT
1468 GNULIB_SYMLINK
1469 GNULIB_SLEEP
1470 GNULIB_RMDIR
1471 GNULIB_READLINKAT
1472 GNULIB_READLINK
1473 GNULIB_PWRITE
1474 GNULIB_PREAD
1475 GNULIB_PIPE2
1476 GNULIB_LSEEK
1477 GNULIB_LINKAT
1478 GNULIB_LINK
1479 GNULIB_LCHOWN
1480 GNULIB_GETUSERSHELL
1481 GNULIB_GETPAGESIZE
1482 GNULIB_GETLOGIN_R
1483 GNULIB_GETLOGIN
1484 GNULIB_GETHOSTNAME
1485 GNULIB_GETGROUPS
1486 GNULIB_GETDTABLESIZE
1487 GNULIB_GETDOMAINNAME
1488 GNULIB_GETCWD
1489 GNULIB_FTRUNCATE
1490 GNULIB_FSYNC
1491 GNULIB_FCHOWNAT
1492 GNULIB_FCHDIR
1493 GNULIB_FACCESSAT
1494 GNULIB_EUIDACCESS
1495 GNULIB_ENVIRON
1496 GNULIB_DUP3
1497 GNULIB_DUP2
1498 GNULIB_CLOSE
1499 GNULIB_CHOWN
1500 LOCALE_FR
1501 REPLACE_WCWIDTH
1502 REPLACE_WCSNRTOMBS
1503 REPLACE_WCSRTOMBS
1504 REPLACE_WCRTOMB
1505 REPLACE_MBSNRTOWCS
1506 REPLACE_MBSRTOWCS
1507 REPLACE_MBRLEN
1508 REPLACE_MBRTOWC
1509 REPLACE_MBSINIT
1510 REPLACE_WCTOB
1511 REPLACE_BTOWC
1512 REPLACE_MBSTATE_T
1513 HAVE_DECL_WCWIDTH
1514 HAVE_DECL_WCTOB
1515 HAVE_WCSNRTOMBS
1516 HAVE_WCSRTOMBS
1517 HAVE_WCRTOMB
1518 HAVE_MBSNRTOWCS
1519 HAVE_MBSRTOWCS
1520 HAVE_MBRLEN
1521 HAVE_MBRTOWC
1522 HAVE_MBSINIT
1523 HAVE_BTOWC
1524 GNULIB_WCWIDTH
1525 GNULIB_WCSNRTOMBS
1526 GNULIB_WCSRTOMBS
1527 GNULIB_WCRTOMB
1528 GNULIB_MBSNRTOWCS
1529 GNULIB_MBSRTOWCS
1530 GNULIB_MBRLEN
1531 GNULIB_MBRTOWC
1532 GNULIB_MBSINIT
1533 GNULIB_WCTOB
1534 GNULIB_BTOWC
1535 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H
1536 NEXT_ARPA_INET_H
1537 PRAGMA_SYSTEM_HEADER
1538 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1539 INCLUDE_NEXT
1540 HAVE_ARPA_INET_H
1541 HAVE_DECL_INET_PTON
1542 HAVE_DECL_INET_NTOP
1543 GNULIB_INET_PTON
1544 GNULIB_INET_NTOP
1545 ALLOCA_H
1546 ALLOCA
1547 GL_COND_LIBTOOL_FALSE
1548 GL_COND_LIBTOOL_TRUE
1549 EGREP
1550 CPP
1551 RANLIB
1552 am__fastdepCC_FALSE
1553 am__fastdepCC_TRUE
1554 CCDEPMODE
1555 AMDEPBACKSLASH
1556 AMDEP_FALSE
1557 AMDEP_TRUE
1558 am__quote
1559 am__include
1560 DEPDIR
1561 OBJEXT
1562 EXEEXT
1563 ac_ct_CC
1564 CPPFLAGS
1565 LDFLAGS
1566 CFLAGS
1567 CC
1568 VERSION_COMMENT
1569 VERSION_PATCH
1570 VERSION_MINOR
1571 VERSION_MAJOR
1572 SNAPSHOT_STAMP
1573 am__untar
1574 am__tar
1575 AMTAR
1576 am__leading_dot
1577 SET_MAKE
1578 AWK
1579 mkdir_p
1580 MKDIR_P
1581 INSTALL_STRIP_PROGRAM
1582 STRIP
1583 install_sh
1584 MAKEINFO
1585 AUTOHEADER
1586 AUTOMAKE
1587 AUTOCONF
1588 ACLOCAL
1589 VERSION
1590 CYGPATH_W
1591 am__isrc
1592 INSTALL_DATA
1593 INSTALL_SCRIPT
1594 INSTALL_PROGRAM
1595 GIT
1596 SVN
1597 GREP
1598 PACKAGE
1599 host_os
1600 host_vendor
1601 host_cpu
1602 host
1603 build_os
1604 build_vendor
1605 build_cpu
1606 build
1607 target_alias
1608 host_alias
1609 build_alias
1610 LIBS
1611 ECHO_T
1612 ECHO_N
1613 ECHO_C
1614 DEFS
1615 mandir
1616 localedir
1617 libdir
1618 psdir
1619 pdfdir
1620 dvidir
1621 htmldir
1622 infodir
1623 docdir
1624 oldincludedir
1625 includedir
1626 localstatedir
1627 sharedstatedir
1628 sysconfdir
1629 datadir
1630 datarootdir
1631 libexecdir
1632 sbindir
1633 bindir
1634 program_transform_name
1635 prefix
1636 exec_prefix
1637 PACKAGE_BUGREPORT
1638 PACKAGE_STRING
1639 PACKAGE_VERSION
1640 PACKAGE_TARNAME
1641 PACKAGE_NAME
1642 PATH_SEPARATOR
1643 SHELL'
1644 ac_subst_files=''
1645 ac_user_opts='
1646 enable_option_checking
1647 enable_dependency_tracking
1648 enable_threads
1649 with_gnu_ld
1650 enable_rpath
1651 with_libpth_prefix
1652 with_included_regex
1653 enable_largefile
1654 with_cflags
1655 with_includes
1656 with_libraries
1657 with_user
1658 with_group
1659 with_dumperdir
1660 with_configdir
1661 with_indexdir
1662 with_dbdir
1663 with_logdir
1664 with_suffixes
1665 with_gnutar_listdir
1666 with_gnutar_listed_incremental
1667 with_tmpdir
1668 with_force_uid
1669 with_owner
1670 with_fqdn
1671 with_reuseports
1672 with_low_tcpportrange
1673 with_tcpportrange
1674 with_udpportrange
1675 with_buffered_dump
1676 with_maxtapeblocksize
1677 with_assertions
1678 with_debugging
1679 with_debug_days
1680 with_testing
1681 with_single_userid
1682 enable_installperms
1683 enable_syntax_checks
1684 with_server
1685 with_client
1686 with_restore
1687 with_amrecover
1688 with_client_only
1689 with_server_only
1690 with_ndmp
1691 with_gnuplot
1692 enable_manpage_build
1693 with_xsltproc
1694 with_xsltproc_flags
1695 with_index_server
1696 with_config
1697 with_tape_server
1698 with_tape_device
1699 with_changer_device
1700 with_amandates
1701 with_perlextlibs
1702 with_ipv6
1703 with_amlibdir
1704 with_amlibexecdir
1705 with_amperldir
1706 with_amdatadir
1707 enable_nls
1708 with_libiconv_prefix
1709 with_libintl_prefix
1710 with_libcurl
1711 enable_s3_device
1712 enable_dvdrw_device
1713 enable_ndmp_device
1714 with_bsd_security
1715 with_amandahosts
1716 with_bsdtcp_security
1717 with_bsdudp_security
1718 with_rsh_security
1719 with_ssh_security
1720 with_ssh_options
1721 with_krb5_security
1722 with_dump_honor_nodump
1723 with_gnutar
1724 with_star
1725 with_smbclient
1726 with_samba_user
1727 with_rundump
1728 enable_werror
1729 enable_swig_error
1730 enable_shared
1731 enable_static
1732 with_pic
1733 enable_fast_install
1734 enable_libtool_lock
1735 enable_static_binary
1736 enable_glibtest
1737 with_readline
1738 '
1739       ac_precious_vars='build_alias
1740 host_alias
1741 target_alias
1742 CC
1743 CFLAGS
1744 LDFLAGS
1745 LIBS
1746 CPPFLAGS
1747 CPP
1748 GNUPLOT
1749 SWIG
1750 PERL
1751 GNUTAR
1752 STAR
1753 YACC
1754 YFLAGS
1755 MTX
1756 GLIB_CFLAGS
1757 GLIB_LIBS
1758 GLIB_GENMARSHAL
1759 GOBJECT_QUERY
1760 GLIB_MKENUMS
1761 PKG_CONFIG'
1762
1763
1764 # Initialize some variables set by options.
1765 ac_init_help=
1766 ac_init_version=false
1767 ac_unrecognized_opts=
1768 ac_unrecognized_sep=
1769 # The variables have the same names as the options, with
1770 # dashes changed to underlines.
1771 cache_file=/dev/null
1772 exec_prefix=NONE
1773 no_create=
1774 no_recursion=
1775 prefix=NONE
1776 program_prefix=NONE
1777 program_suffix=NONE
1778 program_transform_name=s,x,x,
1779 silent=
1780 site=
1781 srcdir=
1782 verbose=
1783 x_includes=NONE
1784 x_libraries=NONE
1785
1786 # Installation directory options.
1787 # These are left unexpanded so users can "make install exec_prefix=/foo"
1788 # and all the variables that are supposed to be based on exec_prefix
1789 # by default will actually change.
1790 # Use braces instead of parens because sh, perl, etc. also accept them.
1791 # (The list follows the same order as the GNU Coding Standards.)
1792 bindir='${exec_prefix}/bin'
1793 sbindir='${exec_prefix}/sbin'
1794 libexecdir='${exec_prefix}/libexec'
1795 datarootdir='${prefix}/share'
1796 datadir='${datarootdir}'
1797 sysconfdir='${prefix}/etc'
1798 sharedstatedir='${prefix}/com'
1799 localstatedir='${prefix}/var'
1800 includedir='${prefix}/include'
1801 oldincludedir='/usr/include'
1802 docdir='${datarootdir}/doc/${PACKAGE}'
1803 infodir='${datarootdir}/info'
1804 htmldir='${docdir}'
1805 dvidir='${docdir}'
1806 pdfdir='${docdir}'
1807 psdir='${docdir}'
1808 libdir='${exec_prefix}/lib'
1809 localedir='${datarootdir}/locale'
1810 mandir='${datarootdir}/man'
1811
1812 ac_prev=
1813 ac_dashdash=
1814 for ac_option
1815 do
1816   # If the previous option needs an argument, assign it.
1817   if test -n "$ac_prev"; then
1818     eval $ac_prev=\$ac_option
1819     ac_prev=
1820     continue
1821   fi
1822
1823   case $ac_option in
1824   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1825   *)    ac_optarg=yes ;;
1826   esac
1827
1828   # Accept the important Cygnus configure options, so we can diagnose typos.
1829
1830   case $ac_dashdash$ac_option in
1831   --)
1832     ac_dashdash=yes ;;
1833
1834   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1835     ac_prev=bindir ;;
1836   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1837     bindir=$ac_optarg ;;
1838
1839   -build | --build | --buil | --bui | --bu)
1840     ac_prev=build_alias ;;
1841   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1842     build_alias=$ac_optarg ;;
1843
1844   -cache-file | --cache-file | --cache-fil | --cache-fi \
1845   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1846     ac_prev=cache_file ;;
1847   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1848   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1849     cache_file=$ac_optarg ;;
1850
1851   --config-cache | -C)
1852     cache_file=config.cache ;;
1853
1854   -datadir | --datadir | --datadi | --datad)
1855     ac_prev=datadir ;;
1856   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1857     datadir=$ac_optarg ;;
1858
1859   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1860   | --dataroo | --dataro | --datar)
1861     ac_prev=datarootdir ;;
1862   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1863   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1864     datarootdir=$ac_optarg ;;
1865
1866   -disable-* | --disable-*)
1867     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1868     # Reject names that are not valid shell variable names.
1869     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1870       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1871    { (exit 1); exit 1; }; }
1872     ac_useropt_orig=$ac_useropt
1873     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1874     case $ac_user_opts in
1875       *"
1876 "enable_$ac_useropt"
1877 "*) ;;
1878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1879          ac_unrecognized_sep=', ';;
1880     esac
1881     eval enable_$ac_useropt=no ;;
1882
1883   -docdir | --docdir | --docdi | --doc | --do)
1884     ac_prev=docdir ;;
1885   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1886     docdir=$ac_optarg ;;
1887
1888   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1889     ac_prev=dvidir ;;
1890   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1891     dvidir=$ac_optarg ;;
1892
1893   -enable-* | --enable-*)
1894     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1895     # Reject names that are not valid shell variable names.
1896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1897       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1898    { (exit 1); exit 1; }; }
1899     ac_useropt_orig=$ac_useropt
1900     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1901     case $ac_user_opts in
1902       *"
1903 "enable_$ac_useropt"
1904 "*) ;;
1905       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1906          ac_unrecognized_sep=', ';;
1907     esac
1908     eval enable_$ac_useropt=\$ac_optarg ;;
1909
1910   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1911   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1912   | --exec | --exe | --ex)
1913     ac_prev=exec_prefix ;;
1914   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1915   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1916   | --exec=* | --exe=* | --ex=*)
1917     exec_prefix=$ac_optarg ;;
1918
1919   -gas | --gas | --ga | --g)
1920     # Obsolete; use --with-gas.
1921     with_gas=yes ;;
1922
1923   -help | --help | --hel | --he | -h)
1924     ac_init_help=long ;;
1925   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1926     ac_init_help=recursive ;;
1927   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1928     ac_init_help=short ;;
1929
1930   -host | --host | --hos | --ho)
1931     ac_prev=host_alias ;;
1932   -host=* | --host=* | --hos=* | --ho=*)
1933     host_alias=$ac_optarg ;;
1934
1935   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1936     ac_prev=htmldir ;;
1937   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1938   | --ht=*)
1939     htmldir=$ac_optarg ;;
1940
1941   -includedir | --includedir | --includedi | --included | --include \
1942   | --includ | --inclu | --incl | --inc)
1943     ac_prev=includedir ;;
1944   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1945   | --includ=* | --inclu=* | --incl=* | --inc=*)
1946     includedir=$ac_optarg ;;
1947
1948   -infodir | --infodir | --infodi | --infod | --info | --inf)
1949     ac_prev=infodir ;;
1950   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1951     infodir=$ac_optarg ;;
1952
1953   -libdir | --libdir | --libdi | --libd)
1954     ac_prev=libdir ;;
1955   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1956     libdir=$ac_optarg ;;
1957
1958   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1959   | --libexe | --libex | --libe)
1960     ac_prev=libexecdir ;;
1961   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1962   | --libexe=* | --libex=* | --libe=*)
1963     libexecdir=$ac_optarg ;;
1964
1965   -localedir | --localedir | --localedi | --localed | --locale)
1966     ac_prev=localedir ;;
1967   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1968     localedir=$ac_optarg ;;
1969
1970   -localstatedir | --localstatedir | --localstatedi | --localstated \
1971   | --localstate | --localstat | --localsta | --localst | --locals)
1972     ac_prev=localstatedir ;;
1973   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1974   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1975     localstatedir=$ac_optarg ;;
1976
1977   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1978     ac_prev=mandir ;;
1979   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1980     mandir=$ac_optarg ;;
1981
1982   -nfp | --nfp | --nf)
1983     # Obsolete; use --without-fp.
1984     with_fp=no ;;
1985
1986   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1987   | --no-cr | --no-c | -n)
1988     no_create=yes ;;
1989
1990   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1991   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1992     no_recursion=yes ;;
1993
1994   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1995   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1996   | --oldin | --oldi | --old | --ol | --o)
1997     ac_prev=oldincludedir ;;
1998   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1999   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2000   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2001     oldincludedir=$ac_optarg ;;
2002
2003   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2004     ac_prev=prefix ;;
2005   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2006     prefix=$ac_optarg ;;
2007
2008   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2009   | --program-pre | --program-pr | --program-p)
2010     ac_prev=program_prefix ;;
2011   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2012   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2013     program_prefix=$ac_optarg ;;
2014
2015   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2016   | --program-suf | --program-su | --program-s)
2017     ac_prev=program_suffix ;;
2018   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2019   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2020     program_suffix=$ac_optarg ;;
2021
2022   -program-transform-name | --program-transform-name \
2023   | --program-transform-nam | --program-transform-na \
2024   | --program-transform-n | --program-transform- \
2025   | --program-transform | --program-transfor \
2026   | --program-transfo | --program-transf \
2027   | --program-trans | --program-tran \
2028   | --progr-tra | --program-tr | --program-t)
2029     ac_prev=program_transform_name ;;
2030   -program-transform-name=* | --program-transform-name=* \
2031   | --program-transform-nam=* | --program-transform-na=* \
2032   | --program-transform-n=* | --program-transform-=* \
2033   | --program-transform=* | --program-transfor=* \
2034   | --program-transfo=* | --program-transf=* \
2035   | --program-trans=* | --program-tran=* \
2036   | --progr-tra=* | --program-tr=* | --program-t=*)
2037     program_transform_name=$ac_optarg ;;
2038
2039   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2040     ac_prev=pdfdir ;;
2041   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2042     pdfdir=$ac_optarg ;;
2043
2044   -psdir | --psdir | --psdi | --psd | --ps)
2045     ac_prev=psdir ;;
2046   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2047     psdir=$ac_optarg ;;
2048
2049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050   | -silent | --silent | --silen | --sile | --sil)
2051     silent=yes ;;
2052
2053   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2054     ac_prev=sbindir ;;
2055   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2056   | --sbi=* | --sb=*)
2057     sbindir=$ac_optarg ;;
2058
2059   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2060   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2061   | --sharedst | --shareds | --shared | --share | --shar \
2062   | --sha | --sh)
2063     ac_prev=sharedstatedir ;;
2064   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2065   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2066   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2067   | --sha=* | --sh=*)
2068     sharedstatedir=$ac_optarg ;;
2069
2070   -site | --site | --sit)
2071     ac_prev=site ;;
2072   -site=* | --site=* | --sit=*)
2073     site=$ac_optarg ;;
2074
2075   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2076     ac_prev=srcdir ;;
2077   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2078     srcdir=$ac_optarg ;;
2079
2080   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2081   | --syscon | --sysco | --sysc | --sys | --sy)
2082     ac_prev=sysconfdir ;;
2083   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2084   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2085     sysconfdir=$ac_optarg ;;
2086
2087   -target | --target | --targe | --targ | --tar | --ta | --t)
2088     ac_prev=target_alias ;;
2089   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2090     target_alias=$ac_optarg ;;
2091
2092   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2093     verbose=yes ;;
2094
2095   -version | --version | --versio | --versi | --vers | -V)
2096     ac_init_version=: ;;
2097
2098   -with-* | --with-*)
2099     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2100     # Reject names that are not valid shell variable names.
2101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2102       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2103    { (exit 1); exit 1; }; }
2104     ac_useropt_orig=$ac_useropt
2105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2106     case $ac_user_opts in
2107       *"
2108 "with_$ac_useropt"
2109 "*) ;;
2110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2111          ac_unrecognized_sep=', ';;
2112     esac
2113     eval with_$ac_useropt=\$ac_optarg ;;
2114
2115   -without-* | --without-*)
2116     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2117     # Reject names that are not valid shell variable names.
2118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2119       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2120    { (exit 1); exit 1; }; }
2121     ac_useropt_orig=$ac_useropt
2122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2123     case $ac_user_opts in
2124       *"
2125 "with_$ac_useropt"
2126 "*) ;;
2127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2128          ac_unrecognized_sep=', ';;
2129     esac
2130     eval with_$ac_useropt=no ;;
2131
2132   --x)
2133     # Obsolete; use --with-x.
2134     with_x=yes ;;
2135
2136   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2137   | --x-incl | --x-inc | --x-in | --x-i)
2138     ac_prev=x_includes ;;
2139   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2140   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2141     x_includes=$ac_optarg ;;
2142
2143   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2144   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2145     ac_prev=x_libraries ;;
2146   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2147   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2148     x_libraries=$ac_optarg ;;
2149
2150   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2151 Try \`$0 --help' for more information." >&2
2152    { (exit 1); exit 1; }; }
2153     ;;
2154
2155   *=*)
2156     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2157     # Reject names that are not valid shell variable names.
2158     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2159       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2160    { (exit 1); exit 1; }; }
2161     eval $ac_envvar=\$ac_optarg
2162     export $ac_envvar ;;
2163
2164   *)
2165     # FIXME: should be removed in autoconf 3.0.
2166     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2167     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2168       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2169     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2170     ;;
2171
2172   esac
2173 done
2174
2175 if test -n "$ac_prev"; then
2176   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2177   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2178    { (exit 1); exit 1; }; }
2179 fi
2180
2181 if test -n "$ac_unrecognized_opts"; then
2182   case $enable_option_checking in
2183     no) ;;
2184     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
2185    { (exit 1); exit 1; }; } ;;
2186     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2187   esac
2188 fi
2189
2190 # Check all directory arguments for consistency.
2191 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2192                 datadir sysconfdir sharedstatedir localstatedir includedir \
2193                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2194                 libdir localedir mandir
2195 do
2196   eval ac_val=\$$ac_var
2197   # Remove trailing slashes.
2198   case $ac_val in
2199     */ )
2200       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2201       eval $ac_var=\$ac_val;;
2202   esac
2203   # Be sure to have absolute directory names.
2204   case $ac_val in
2205     [\\/$]* | ?:[\\/]* )  continue;;
2206     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2207   esac
2208   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2209    { (exit 1); exit 1; }; }
2210 done
2211
2212 # There might be people who depend on the old broken behavior: `$host'
2213 # used to hold the argument of --host etc.
2214 # FIXME: To remove some day.
2215 build=$build_alias
2216 host=$host_alias
2217 target=$target_alias
2218
2219 # FIXME: To remove some day.
2220 if test "x$host_alias" != x; then
2221   if test "x$build_alias" = x; then
2222     cross_compiling=maybe
2223     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2224     If a cross compiler is detected then cross compile mode will be used." >&2
2225   elif test "x$build_alias" != "x$host_alias"; then
2226     cross_compiling=yes
2227   fi
2228 fi
2229
2230 ac_tool_prefix=
2231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2232
2233 test "$silent" = yes && exec 6>/dev/null
2234
2235
2236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2237 ac_ls_di=`ls -di .` &&
2238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2239   { $as_echo "$as_me: error: working directory cannot be determined" >&2
2240    { (exit 1); exit 1; }; }
2241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2242   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2243    { (exit 1); exit 1; }; }
2244
2245
2246 # Find the source files, if location was not specified.
2247 if test -z "$srcdir"; then
2248   ac_srcdir_defaulted=yes
2249   # Try the directory containing this script, then the parent directory.
2250   ac_confdir=`$as_dirname -- "$as_myself" ||
2251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2252          X"$as_myself" : 'X\(//\)[^/]' \| \
2253          X"$as_myself" : 'X\(//\)$' \| \
2254          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2255 $as_echo X"$as_myself" |
2256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2257             s//\1/
2258             q
2259           }
2260           /^X\(\/\/\)[^/].*/{
2261             s//\1/
2262             q
2263           }
2264           /^X\(\/\/\)$/{
2265             s//\1/
2266             q
2267           }
2268           /^X\(\/\).*/{
2269             s//\1/
2270             q
2271           }
2272           s/.*/./; q'`
2273   srcdir=$ac_confdir
2274   if test ! -r "$srcdir/$ac_unique_file"; then
2275     srcdir=..
2276   fi
2277 else
2278   ac_srcdir_defaulted=no
2279 fi
2280 if test ! -r "$srcdir/$ac_unique_file"; then
2281   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2282   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2283    { (exit 1); exit 1; }; }
2284 fi
2285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2286 ac_abs_confdir=`(
2287         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2288    { (exit 1); exit 1; }; }
2289         pwd)`
2290 # When building in place, set srcdir=.
2291 if test "$ac_abs_confdir" = "$ac_pwd"; then
2292   srcdir=.
2293 fi
2294 # Remove unnecessary trailing slashes from srcdir.
2295 # Double slashes in file names in object file debugging info
2296 # mess up M-x gdb in Emacs.
2297 case $srcdir in
2298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2299 esac
2300 for ac_var in $ac_precious_vars; do
2301   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2302   eval ac_env_${ac_var}_value=\$${ac_var}
2303   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2304   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2305 done
2306
2307 #
2308 # Report the --help message.
2309 #
2310 if test "$ac_init_help" = "long"; then
2311   # Omit some internal or obsolete options to make the list less imposing.
2312   # This message is too long to be a string in the A/UX 3.1 sh.
2313   cat <<_ACEOF
2314 \`configure' configures this package to adapt to many kinds of systems.
2315
2316 Usage: $0 [OPTION]... [VAR=VALUE]...
2317
2318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2319 VAR=VALUE.  See below for descriptions of some of the useful variables.
2320
2321 Defaults for the options are specified in brackets.
2322
2323 Configuration:
2324   -h, --help              display this help and exit
2325       --help=short        display options specific to this package
2326       --help=recursive    display the short help of all the included packages
2327   -V, --version           display version information and exit
2328   -q, --quiet, --silent   do not print \`checking...' messages
2329       --cache-file=FILE   cache test results in FILE [disabled]
2330   -C, --config-cache      alias for \`--cache-file=config.cache'
2331   -n, --no-create         do not create output files
2332       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2333
2334 Installation directories:
2335   --prefix=PREFIX         install architecture-independent files in PREFIX
2336                           [$ac_default_prefix]
2337   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2338                           [PREFIX]
2339
2340 By default, \`make install' will install all the files in
2341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2343 for instance \`--prefix=\$HOME'.
2344
2345 For better control, use the options below.
2346
2347 Fine tuning of the installation directories:
2348   --bindir=DIR            user executables [EPREFIX/bin]
2349   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2350   --libexecdir=DIR        program executables [EPREFIX/libexec]
2351   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2352   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2353   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2354   --libdir=DIR            object code libraries [EPREFIX/lib]
2355   --includedir=DIR        C header files [PREFIX/include]
2356   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2357   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2358   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2359   --infodir=DIR           info documentation [DATAROOTDIR/info]
2360   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2361   --mandir=DIR            man documentation [DATAROOTDIR/man]
2362   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
2363   --htmldir=DIR           html documentation [DOCDIR]
2364   --dvidir=DIR            dvi documentation [DOCDIR]
2365   --pdfdir=DIR            pdf documentation [DOCDIR]
2366   --psdir=DIR             ps documentation [DOCDIR]
2367 _ACEOF
2368
2369   cat <<\_ACEOF
2370
2371 Program names:
2372   --program-prefix=PREFIX            prepend PREFIX to installed program names
2373   --program-suffix=SUFFIX            append SUFFIX to installed program names
2374   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2375
2376 System types:
2377   --build=BUILD     configure for building on BUILD [guessed]
2378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2379 _ACEOF
2380 fi
2381
2382 if test -n "$ac_init_help"; then
2383
2384   cat <<\_ACEOF
2385
2386 Optional Features:
2387   --disable-option-checking  ignore unrecognized --enable/--with options
2388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2390   --disable-dependency-tracking  speeds up one-time build
2391   --enable-dependency-tracking   do not reject slow dependency extractors
2392   --enable-threads={posix|solaris|pth|win32}
2393                           specify multithreading API
2394   --disable-threads       build without multithread safety
2395   --disable-rpath         do not hardcode runtime library paths
2396   --disable-largefile     omit support for large files
2397   --disable-installperms  do not modify ownership and permissions on installed
2398                           files
2399   --enable-syntax-checks  Perform syntax checks when installing - developers
2400                           only
2401   --enable-manpage-build  Build the manpages from their XML source (shipped
2402                           manpages are usually sufficient)
2403   --disable-nls           do not use Native Language Support
2404   --disable-s3-device     disable the S3 device
2405   --disable-dvdrw-device  disable the DVD-RW device
2406   --disable-ndmp-device   disable the NDMP device
2407   --enable-werror         To compile with -Werror compiler flag
2408   --enable-swig-error     To compile swiged C file with -Werror compiler flag
2409   --enable-shared[=PKGS]  build shared libraries [default=yes]
2410   --enable-static[=PKGS]  build static libraries [default=yes]
2411   --enable-fast-install[=PKGS]
2412                           optimize for fast installation [default=yes]
2413   --disable-libtool-lock  avoid locking (might break parallel builds)
2414   --enable-static-binary  To build statically linked binaries
2415   --disable-glibtest      do not try to compile and run a test GLIB program
2416
2417 Optional Packages:
2418   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2419   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2420   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2421   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2422   --without-libpth-prefix     don't search for libpth in includedir and libdir
2423   --without-included-regex
2424                           don't compile regex; this is the default on systems
2425                           with recent-enough versions of the GNU C Library
2426                           (use with caution on other systems).
2427   --with-cflags=FLAGS     deprecated; use ./configure CFLAGS=...
2428   --with-includes=INCLUDE-DIRS
2429                           deprecated; use ./configure CPPFLAGS='-I.. -I..'
2430   --with-libraries=LIBRARY-DIRS
2431                           deprecated; use ./configure LDFLAGS='-L.. -L..' (add
2432                           -R on Solaris, NetBSD)
2433   --with-user=USER        force execution to USER on client systems (REQUIRED)
2434   --with-group=GROUP      group allowed to execute setuid-root programs
2435                           (REQUIRED)
2436   --with-dumperdir=DIR    where we install the dumpers (deprecated)
2437   --with-configdir=DIR    runtime config files in DIR [sysconfdir/amanda]
2438   --with-indexdir         deprecated: use indexdir in amanda.conf
2439   --with-dbdir            deprecated: use infofile in amanda.conf
2440   --with-logdir           deprecated: use logfile in amanda.conf
2441
2442   --with-gnutar-listdir=DIR
2443                           put gnutar directory lists in DIR (default:
2444                           localstatedir/amanda/gnutar-lists)
2445   --with-gnutar-listed-incremental
2446                           deprecated; use --with-gnutar-listdir
2447   --with-tmpdir           directory for temporary and debugging files
2448                           (default: /tmp/amanda)
2449   --without-force-uid     do not check userids when running programs
2450   --with-owner=USER
2451             force ownership of installed files to USER (default same as --with-user)
2452
2453   --with-fqdn             use FQDN's to backup multiple networks
2454   --without-reuseaddr     Don't reuse network connections until full timeout
2455                           period
2456   --with-low-tcpportrange=low,high
2457                           bind reserved TCP server sockets to ports within
2458   --with-tcpportrange=low,high
2459                           bind unreserved TCP server sockets to ports within
2460   --with-udpportrange=low,high
2461                           bind reserved UDP server sockets to ports within
2462   --with-buffered-dump    buffer the dumping sockets on the server for speed
2463 (deprecated)
2464   --with-assertions       compile assertions into code
2465   --with-debugging=DIR
2466             put debug logs in DIR (default same as --with-tmpdir)
2467
2468   --with-debug-days=NN    number of days to keep debugging files (default: 4)
2469   --with-testing[=SUFFIX] use alternate service names with suffix (default
2470                           'test')
2471   --with-single-userid
2472             force amanda to run as a single userid (for testing)
2473
2474   --without-server        do not build server stuff (set --without-restore)
2475   --without-client        do not build client stuff
2476   --without-restore       do not build amrestore nor amidxtaped
2477   --without-amrecover     do not build amrecover
2478   --with-client-only      deprecated: use --without-server
2479   --with-server-only      deprecated: use --without-client
2480   --without-ndmp          do not build ndmp
2481   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
2482   --with-xsltproc[[[=PATH]]]
2483                           Use the xsltproc binary in in PATH.
2484     --with-xsltproc-flags=FLAGS
2485                           Flags to pass to xsltproc (default --nonet)
2486   --with-index-server=HOST
2487                           default amanda index server (default: `uname -n`)
2488   --with-config=CONFIG    default amanda configuration (default: DailySet1)
2489   --with-tape-server=HOST default tape server for restore (default: same as
2490                           index-server)
2491   --with-tape-device=DEVICE
2492                           default device on restore tape server
2493   --with-changer-device=DEV
2494                           (deprecated)
2495   --with-amandates        default location for 'amandates' (default:
2496                           $localstatedir/amanda/amandates)
2497   --with-perlextlibs=libs extra LIBS for Perl extensions
2498   --with-ipv6             enable IPv6 support (default if IPv6 is found)
2499           --without-ipv6          disable IPv6
2500   --with-amlibdir[[[=PATH]]]
2501                           Where library are installed, default: $libdir/amanda
2502           --without-amlibdir      Library are installed in $libdir
2503   --with-amlibexecdir[[[=PATH]]]
2504                           Where amanda own programs are installed, default:
2505                           $libexecdir/amanda
2506           --without-amlibexecdir  Amanda own programs are installed in $libexecdir
2507   --with-amperldir[[[=PATH]]]
2508                           Where amanda's perl modules are installed; default:
2509                           installsitelib
2510           --without-amperldir     Install amanda's perl modules in $amlibdir/perl
2511   --with-amdatadir[[[=PATH]]]
2512                           Where amanda's templates and examples are installed;
2513                           default: $datadir/amanda
2514   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2515   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2516   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2517   --without-libintl-prefix     don't search for libintl in includedir and libdir
2518   --with-libcurl=DIR      look for the curl library in DIR
2519   --without-bsd-security  do not include BSD authentication
2520    --without-amandahosts  use ".rhosts" instead of ".amandahosts"
2521   --with-bsdtcp-security  include BSDTCP authentication
2522   --with-bsdudp-security  include BSDUDP authentication
2523   --with-rsh-security     include RSH authentication
2524   --with-ssh-security     include SSH authentication
2525    --with-ssh-options=[OPTIONS]
2526                           Use these ssh options for ssh security; the default
2527                           should work
2528   --with-krb5-security=DIR
2529                           Location of Kerberos V software [/usr/kerberos
2530                           /usr/cygnus /usr /opt/kerberos]
2531   --with-dump-honor-nodump
2532                           if dump supports -h, use it for level0s too
2533   --with-gnutar=PROG      use PROG as GNU 'tar'
2534   --with-star=PROG        use PROG as 'star'
2535   --with-smbclient=PROG   use PROG as 'smbclient'
2536   --with-samba-user       deprecated; place username in 'amandapass'
2537   --with-rundump          use rundump, a setuid-root wrapper, to invoke dump
2538   --with-pic              try to use only PIC/non-PIC objects [default=use
2539                           both]
2540   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2541   --with-readline         require readline support (for amrecover)
2542   --without-readline      don't search for readline
2543
2544 Some influential environment variables:
2545   CC          C compiler command
2546   CFLAGS      C compiler flags
2547   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2548               nonstandard directory <lib dir>
2549   LIBS        libraries to pass to the linker, e.g. -l<library>
2550   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2551               you have headers in a nonstandard directory <include dir>
2552   CPP         C preprocessor
2553   GNUPLOT     Location of the 'gnuplot' binary
2554   SWIG        Path to the 'swig' binary (developers only)
2555   PERL        Path to the 'perl' binary
2556   GNUTAR      Location of the GNU 'tar' binary
2557   STAR        Location of the 'star' binary
2558   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2559               the first program found out of: `bison -y', `byacc', `yacc'.
2560   YFLAGS      The list of arguments that will be passed by default to $YACC.
2561               This script will default YFLAGS to the empty string to avoid a
2562               default value of `-d' given by some make applications.
2563   MTX         Path to the 'mtx' binary
2564   GLIB_CFLAGS CFLAGS to build with glib; disables use of pkg-config
2565   GLIB_LIBS   libraries to build with glib; disables use of pkg-config
2566   GLIB_GENMARSHAL
2567               genmarshal binary to use with glib; disables use of pkg-config
2568   GOBJECT_QUERY
2569               gobject_query binary to use with glib; disables use of
2570               pkg-config
2571   GLIB_MKENUMS
2572               mkenums binary to use with glib; disables use of pkg-config
2573   PKG_CONFIG  path to pkg-config utility
2574
2575 Use these variables to override the choices made by `configure' or to help
2576 it to find libraries and programs with nonstandard names/locations.
2577
2578 _ACEOF
2579 ac_status=$?
2580 fi
2581
2582 if test "$ac_init_help" = "recursive"; then
2583   # If there are subdirs, report their specific --help.
2584   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2585     test -d "$ac_dir" ||
2586       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2587       continue
2588     ac_builddir=.
2589
2590 case "$ac_dir" in
2591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2592 *)
2593   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2594   # A ".." for each directory in $ac_dir_suffix.
2595   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2596   case $ac_top_builddir_sub in
2597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2599   esac ;;
2600 esac
2601 ac_abs_top_builddir=$ac_pwd
2602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2603 # for backward compatibility:
2604 ac_top_builddir=$ac_top_build_prefix
2605
2606 case $srcdir in
2607   .)  # We are building in place.
2608     ac_srcdir=.
2609     ac_top_srcdir=$ac_top_builddir_sub
2610     ac_abs_top_srcdir=$ac_pwd ;;
2611   [\\/]* | ?:[\\/]* )  # Absolute name.
2612     ac_srcdir=$srcdir$ac_dir_suffix;
2613     ac_top_srcdir=$srcdir
2614     ac_abs_top_srcdir=$srcdir ;;
2615   *) # Relative name.
2616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2617     ac_top_srcdir=$ac_top_build_prefix$srcdir
2618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2619 esac
2620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2621
2622     cd "$ac_dir" || { ac_status=$?; continue; }
2623     # Check for guested configure.
2624     if test -f "$ac_srcdir/configure.gnu"; then
2625       echo &&
2626       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2627     elif test -f "$ac_srcdir/configure"; then
2628       echo &&
2629       $SHELL "$ac_srcdir/configure" --help=recursive
2630     else
2631       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2632     fi || ac_status=$?
2633     cd "$ac_pwd" || { ac_status=$?; break; }
2634   done
2635 fi
2636
2637 test -n "$ac_init_help" && exit $ac_status
2638 if $ac_init_version; then
2639   cat <<\_ACEOF
2640 configure
2641 generated by GNU Autoconf 2.63
2642
2643 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2644 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2645 This configure script is free software; the Free Software Foundation
2646 gives unlimited permission to copy, distribute and modify it.
2647 _ACEOF
2648   exit
2649 fi
2650 cat >config.log <<_ACEOF
2651 This file contains any messages produced by compilers while
2652 running configure, to aid debugging if configure makes a mistake.
2653
2654 It was created by $as_me, which was
2655 generated by GNU Autoconf 2.63.  Invocation command line was
2656
2657   $ $0 $@
2658
2659 _ACEOF
2660 exec 5>>config.log
2661 {
2662 cat <<_ASUNAME
2663 ## --------- ##
2664 ## Platform. ##
2665 ## --------- ##
2666
2667 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2668 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2669 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2670 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2671 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2672
2673 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2674 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2675
2676 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2677 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2678 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2679 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2680 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2681 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2682 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2683
2684 _ASUNAME
2685
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   $as_echo "PATH: $as_dir"
2692 done
2693 IFS=$as_save_IFS
2694
2695 } >&5
2696
2697 cat >&5 <<_ACEOF
2698
2699
2700 ## ----------- ##
2701 ## Core tests. ##
2702 ## ----------- ##
2703
2704 _ACEOF
2705
2706
2707 # Keep a trace of the command line.
2708 # Strip out --no-create and --no-recursion so they do not pile up.
2709 # Strip out --silent because we don't want to record it for future runs.
2710 # Also quote any args containing shell meta-characters.
2711 # Make two passes to allow for proper duplicate-argument suppression.
2712 ac_configure_args=
2713 ac_configure_args0=
2714 ac_configure_args1=
2715 ac_must_keep_next=false
2716 for ac_pass in 1 2
2717 do
2718   for ac_arg
2719   do
2720     case $ac_arg in
2721     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2722     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2723     | -silent | --silent | --silen | --sile | --sil)
2724       continue ;;
2725     *\'*)
2726       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2727     esac
2728     case $ac_pass in
2729     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2730     2)
2731       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2732       if test $ac_must_keep_next = true; then
2733         ac_must_keep_next=false # Got value, back to normal.
2734       else
2735         case $ac_arg in
2736           *=* | --config-cache | -C | -disable-* | --disable-* \
2737           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2738           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2739           | -with-* | --with-* | -without-* | --without-* | --x)
2740             case "$ac_configure_args0 " in
2741               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2742             esac
2743             ;;
2744           -* ) ac_must_keep_next=true ;;
2745         esac
2746       fi
2747       ac_configure_args="$ac_configure_args '$ac_arg'"
2748       ;;
2749     esac
2750   done
2751 done
2752 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2753 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2754
2755 # When interrupted or exit'd, cleanup temporary files, and complete
2756 # config.log.  We remove comments because anyway the quotes in there
2757 # would cause problems or look ugly.
2758 # WARNING: Use '\'' to represent an apostrophe within the trap.
2759 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2760 trap 'exit_status=$?
2761   # Save into config.log some information that might help in debugging.
2762   {
2763     echo
2764
2765     cat <<\_ASBOX
2766 ## ---------------- ##
2767 ## Cache variables. ##
2768 ## ---------------- ##
2769 _ASBOX
2770     echo
2771     # The following way of writing the cache mishandles newlines in values,
2772 (
2773   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2774     eval ac_val=\$$ac_var
2775     case $ac_val in #(
2776     *${as_nl}*)
2777       case $ac_var in #(
2778       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2780       esac
2781       case $ac_var in #(
2782       _ | IFS | as_nl) ;; #(
2783       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2784       *) $as_unset $ac_var ;;
2785       esac ;;
2786     esac
2787   done
2788   (set) 2>&1 |
2789     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2790     *${as_nl}ac_space=\ *)
2791       sed -n \
2792         "s/'\''/'\''\\\\'\'''\''/g;
2793           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2794       ;; #(
2795     *)
2796       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2797       ;;
2798     esac |
2799     sort
2800 )
2801     echo
2802
2803     cat <<\_ASBOX
2804 ## ----------------- ##
2805 ## Output variables. ##
2806 ## ----------------- ##
2807 _ASBOX
2808     echo
2809     for ac_var in $ac_subst_vars
2810     do
2811       eval ac_val=\$$ac_var
2812       case $ac_val in
2813       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2814       esac
2815       $as_echo "$ac_var='\''$ac_val'\''"
2816     done | sort
2817     echo
2818
2819     if test -n "$ac_subst_files"; then
2820       cat <<\_ASBOX
2821 ## ------------------- ##
2822 ## File substitutions. ##
2823 ## ------------------- ##
2824 _ASBOX
2825       echo
2826       for ac_var in $ac_subst_files
2827       do
2828         eval ac_val=\$$ac_var
2829         case $ac_val in
2830         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2831         esac
2832         $as_echo "$ac_var='\''$ac_val'\''"
2833       done | sort
2834       echo
2835     fi
2836
2837     if test -s confdefs.h; then
2838       cat <<\_ASBOX
2839 ## ----------- ##
2840 ## confdefs.h. ##
2841 ## ----------- ##
2842 _ASBOX
2843       echo
2844       cat confdefs.h
2845       echo
2846     fi
2847     test "$ac_signal" != 0 &&
2848       $as_echo "$as_me: caught signal $ac_signal"
2849     $as_echo "$as_me: exit $exit_status"
2850   } >&5
2851   rm -f core *.core core.conftest.* &&
2852     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2853     exit $exit_status
2854 ' 0
2855 for ac_signal in 1 2 13 15; do
2856   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2857 done
2858 ac_signal=0
2859
2860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2861 rm -f -r conftest* confdefs.h
2862
2863 # Predefined preprocessor variables.
2864
2865 cat >>confdefs.h <<_ACEOF
2866 #define PACKAGE_NAME "$PACKAGE_NAME"
2867 _ACEOF
2868
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2872 _ACEOF
2873
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2877 _ACEOF
2878
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_STRING "$PACKAGE_STRING"
2882 _ACEOF
2883
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2887 _ACEOF
2888
2889
2890 # Let the site file select an alternate cache file if it wants to.
2891 # Prefer an explicitly selected file to automatically selected ones.
2892 ac_site_file1=NONE
2893 ac_site_file2=NONE
2894 if test -n "$CONFIG_SITE"; then
2895   ac_site_file1=$CONFIG_SITE
2896 elif test "x$prefix" != xNONE; then
2897   ac_site_file1=$prefix/share/config.site
2898   ac_site_file2=$prefix/etc/config.site
2899 else
2900   ac_site_file1=$ac_default_prefix/share/config.site
2901   ac_site_file2=$ac_default_prefix/etc/config.site
2902 fi
2903 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2904 do
2905   test "x$ac_site_file" = xNONE && continue
2906   if test -r "$ac_site_file"; then
2907     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2908 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2909     sed 's/^/| /' "$ac_site_file" >&5
2910     . "$ac_site_file"
2911   fi
2912 done
2913
2914 if test -r "$cache_file"; then
2915   # Some versions of bash will fail to source /dev/null (special
2916   # files actually), so we avoid doing that.
2917   if test -f "$cache_file"; then
2918     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2919 $as_echo "$as_me: loading cache $cache_file" >&6;}
2920     case $cache_file in
2921       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2922       *)                      . "./$cache_file";;
2923     esac
2924   fi
2925 else
2926   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2927 $as_echo "$as_me: creating cache $cache_file" >&6;}
2928   >$cache_file
2929 fi
2930
2931 gl_header_list="$gl_header_list arpa/inet.h"
2932 gl_func_list="$gl_func_list btowc"
2933 gl_header_list="$gl_header_list errno.h"
2934 gl_header_list="$gl_header_list float.h"
2935 gl_header_list="$gl_header_list sys/param.h"
2936 gl_header_list="$gl_header_list sys/vfs.h"
2937 gl_header_list="$gl_header_list sys/fs_types.h"
2938 gl_func_list="$gl_func_list ftruncate"
2939 gl_header_list="$gl_header_list sys/socket.h"
2940 gl_header_list="$gl_header_list netdb.h"
2941 gl_header_list="$gl_header_list netinet/in.h"
2942 gl_getopt_required=GNU
2943 gl_header_list="$gl_header_list getopt.h"
2944 gl_header_list="$gl_header_list sys/time.h"
2945 gl_func_list="$gl_func_list gettimeofday"
2946 gl_header_list="$gl_header_list langinfo.h"
2947 gl_func_list="$gl_func_list lstat"
2948 gl_func_list="$gl_func_list mbsinit"
2949 gl_func_list="$gl_func_list mbrtowc"
2950 gl_header_list="$gl_header_list sys/mman.h"
2951 gl_func_list="$gl_func_list mprotect"
2952 gl_func_list="$gl_func_list memchr"
2953 gl_func_list="$gl_func_list nl_langinfo"
2954 gl_header_list="$gl_header_list locale.h"
2955 gl_func_list="$gl_func_list isblank"
2956 gl_func_list="$gl_func_list iswctype"
2957 gl_func_list="$gl_func_list wcscoll"
2958 gl_header_list="$gl_header_list stddef.h"
2959 gl_header_list="$gl_header_list stdint.h"
2960 gl_header_list="$gl_header_list wchar.h"
2961 gl_header_list="$gl_header_list stdio.h"
2962 gl_header_list="$gl_header_list stdlib.h"
2963 gl_header_list="$gl_header_list string.h"
2964 gl_header_list="$gl_header_list sys/stat.h"
2965 gl_header_list="$gl_header_list time.h"
2966 gl_header_list="$gl_header_list unistd.h"
2967 gl_func_list="$gl_func_list vasnprintf"
2968 gl_func_list="$gl_func_list wcrtomb"
2969 gl_func_list="$gl_func_list iswcntrl"
2970 gl_func_list="$gl_func_list iswblank"
2971 gl_header_list="$gl_header_list wctype.h"
2972 # Check that the precious variables saved in the cache have kept the same
2973 # value.
2974 ac_cache_corrupted=false
2975 for ac_var in $ac_precious_vars; do
2976   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2977   eval ac_new_set=\$ac_env_${ac_var}_set
2978   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2979   eval ac_new_val=\$ac_env_${ac_var}_value
2980   case $ac_old_set,$ac_new_set in
2981     set,)
2982       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2983 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2984       ac_cache_corrupted=: ;;
2985     ,set)
2986       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2987 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2988       ac_cache_corrupted=: ;;
2989     ,);;
2990     *)
2991       if test "x$ac_old_val" != "x$ac_new_val"; then
2992         # differences in whitespace do not lead to failure.
2993         ac_old_val_w=`echo x $ac_old_val`
2994         ac_new_val_w=`echo x $ac_new_val`
2995         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2996           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2997 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2998           ac_cache_corrupted=:
2999         else
3000           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3001 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3002           eval $ac_var=\$ac_old_val
3003         fi
3004         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
3005 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3006         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
3007 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3008       fi;;
3009   esac
3010   # Pass precious variables to config.status.
3011   if test "$ac_new_set" = set; then
3012     case $ac_new_val in
3013     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3014     *) ac_arg=$ac_var=$ac_new_val ;;
3015     esac
3016     case " $ac_configure_args " in
3017       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3018       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
3019     esac
3020   fi
3021 done
3022 if $ac_cache_corrupted; then
3023   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
3026 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3027   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
3028 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
3029    { (exit 1); exit 1; }; }
3030 fi
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048 ac_ext=c
3049 ac_cpp='$CPP $CPPFLAGS'
3050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053
3054
3055
3056 ac_aux_dir=
3057 for ac_dir in config "$srcdir"/config; do
3058   if test -f "$ac_dir/install-sh"; then
3059     ac_aux_dir=$ac_dir
3060     ac_install_sh="$ac_aux_dir/install-sh -c"
3061     break
3062   elif test -f "$ac_dir/install.sh"; then
3063     ac_aux_dir=$ac_dir
3064     ac_install_sh="$ac_aux_dir/install.sh -c"
3065     break
3066   elif test -f "$ac_dir/shtool"; then
3067     ac_aux_dir=$ac_dir
3068     ac_install_sh="$ac_aux_dir/shtool install -c"
3069     break
3070   fi
3071 done
3072 if test -z "$ac_aux_dir"; then
3073   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
3074 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
3075    { (exit 1); exit 1; }; }
3076 fi
3077
3078 # These three variables are undocumented and unsupported,
3079 # and are intended to be withdrawn in a future Autoconf release.
3080 # They can cause serious problems if a builder's source tree is in a directory
3081 # whose full name contains unusual characters.
3082 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3083 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3084 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3085
3086
3087
3088 # Make sure we can run config.sub.
3089 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3090   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3091 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3092    { (exit 1); exit 1; }; }
3093
3094 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3095 $as_echo_n "checking build system type... " >&6; }
3096 if test "${ac_cv_build+set}" = set; then
3097   $as_echo_n "(cached) " >&6
3098 else
3099   ac_build_alias=$build_alias
3100 test "x$ac_build_alias" = x &&
3101   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3102 test "x$ac_build_alias" = x &&
3103   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3104 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3105    { (exit 1); exit 1; }; }
3106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3107   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3108 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3109    { (exit 1); exit 1; }; }
3110
3111 fi
3112 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3113 $as_echo "$ac_cv_build" >&6; }
3114 case $ac_cv_build in
3115 *-*-*) ;;
3116 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3117 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3118    { (exit 1); exit 1; }; };;
3119 esac
3120 build=$ac_cv_build
3121 ac_save_IFS=$IFS; IFS='-'
3122 set x $ac_cv_build
3123 shift
3124 build_cpu=$1
3125 build_vendor=$2
3126 shift; shift
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3129 build_os=$*
3130 IFS=$ac_save_IFS
3131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3132
3133
3134 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3135 $as_echo_n "checking host system type... " >&6; }
3136 if test "${ac_cv_host+set}" = set; then
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test "x$host_alias" = x; then
3140   ac_cv_host=$ac_cv_build
3141 else
3142   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3143     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3144 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3145    { (exit 1); exit 1; }; }
3146 fi
3147
3148 fi
3149 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3150 $as_echo "$ac_cv_host" >&6; }
3151 case $ac_cv_host in
3152 *-*-*) ;;
3153 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3154 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3155    { (exit 1); exit 1; }; };;
3156 esac
3157 host=$ac_cv_host
3158 ac_save_IFS=$IFS; IFS='-'
3159 set x $ac_cv_host
3160 shift
3161 host_cpu=$1
3162 host_vendor=$2
3163 shift; shift
3164 # Remember, the first character of IFS is used to create $*,
3165 # except with old shells:
3166 host_os=$*
3167 IFS=$ac_save_IFS
3168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3169
3170
3171
3172 PACKAGE=amanda
3173
3174
3175
3176     SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/sfw/bin:/usr/bsd:/etc:/usr/etc"
3177     # expand prefix or exec_prefix in LOCPATH
3178     LOCPATH=`(
3179         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3180         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3181         eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
3182     )`
3183     SYSLOCPATH="$SYSPATH:$LOCPATH"
3184     LOCSYSPATH="$LOCPATH:$SYSPATH"
3185
3186
3187
3188     # Extract the first word of "grep", so it can be a program name with args.
3189 set dummy grep; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_path_GREP+set}" = set; then
3193   $as_echo_n "(cached) " >&6
3194 else
3195   case $GREP in
3196   [\\/]* | ?:[\\/]*)
3197   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3198   ;;
3199   *)
3200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $LOCSYSPATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3208     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
3216   ;;
3217 esac
3218 fi
3219 GREP=$ac_cv_path_GREP
3220 if test -n "$GREP"; then
3221   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
3222 $as_echo "$GREP" >&6; }
3223 else
3224   { $as_echo "$as_me:$LINENO: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229
3230 cat >>confdefs.h <<_ACEOF
3231 #define GREP "$GREP"
3232 _ACEOF
3233
3234
3235
3236
3237
3238
3239
3240     # Extract the first word of "svn", so it can be a program name with args.
3241 set dummy svn; ac_word=$2
3242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_path_SVN+set}" = set; then
3245   $as_echo_n "(cached) " >&6
3246 else
3247   case $SVN in
3248   [\\/]* | ?:[\\/]*)
3249   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
3250   ;;
3251   *)
3252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $LOCSYSPATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257   for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
3260     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264 done
3265 IFS=$as_save_IFS
3266
3267   ;;
3268 esac
3269 fi
3270 SVN=$ac_cv_path_SVN
3271 if test -n "$SVN"; then
3272   { $as_echo "$as_me:$LINENO: result: $SVN" >&5
3273 $as_echo "$SVN" >&6; }
3274 else
3275   { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280     { $as_echo "$as_me:$LINENO: checking Subversion revision information" >&5
3281 $as_echo_n "checking Subversion revision information... " >&6; }
3282     if test -d $srcdir/.svn -a -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
3283         SVN_REV=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
3284         SVN_URL=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3285         SVN_PATH=`$GREP URL: conftemp.svn|cut -d "/" -f 7-`
3286         SVN_TYPE=`echo ${SVN_PATH} |cut -d "/" -f 1`
3287         SVN_BRANCH=`echo "${SVN_PATH}"| cut -d "/" -f 2`
3288         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
3289         ( echo '#define BUILT_REV "'$SVN_REV'"'
3290           echo '#define BUILT_BRANCH "'$SVN_BRANCH'"'
3291         ) > common-src/svn-info.h
3292
3293         { $as_echo "$as_me:$LINENO: result: updated" >&5
3294 $as_echo "updated" >&6; }
3295     else
3296         # Makefiles will be upset if the file doesn't exist, so double-check
3297         if test -f common-src/svn-info.h; then
3298             : # all good
3299             { $as_echo "$as_me:$LINENO: result: not changed" >&5
3300 $as_echo "not changed" >&6; }
3301         else
3302             echo '/* no information available */' > common-src/svn-info.h
3303             { $as_echo "$as_me:$LINENO: result: not available" >&5
3304 $as_echo "not available" >&6; }
3305         fi
3306     fi
3307
3308     rm -f conftemp.svn
3309
3310
3311
3312
3313
3314     # Extract the first word of "git", so it can be a program name with args.
3315 set dummy git; ac_word=$2
3316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if test "${ac_cv_path_GIT+set}" = set; then
3319   $as_echo_n "(cached) " >&6
3320 else
3321   case $GIT in
3322   [\\/]* | ?:[\\/]*)
3323   ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
3324   ;;
3325   *)
3326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $LOCSYSPATH
3328 do
3329   IFS=$as_save_IFS
3330   test -z "$as_dir" && as_dir=.
3331   for ac_exec_ext in '' $ac_executable_extensions; do
3332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
3334     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3335     break 2
3336   fi
3337 done
3338 done
3339 IFS=$as_save_IFS
3340
3341   ;;
3342 esac
3343 fi
3344 GIT=$ac_cv_path_GIT
3345 if test -n "$GIT"; then
3346   { $as_echo "$as_me:$LINENO: result: $GIT" >&5
3347 $as_echo "$GIT" >&6; }
3348 else
3349   { $as_echo "$as_me:$LINENO: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354     { $as_echo "$as_me:$LINENO: checking git revision information" >&5
3355 $as_echo_n "checking git revision information... " >&6; }
3356     if test -d $srcdir/.git -a -n "$GIT"; then
3357         GIT_SHA1=`(cd $srcdir > /dev/null ; $GIT rev-parse HEAD | cut -c -8 )`
3358         if test -n "$GIT_SHA1"; then
3359             { $as_echo "$as_me:$LINENO: result: $GIT_SHA1" >&5
3360 $as_echo "$GIT_SHA1" >&6; }
3361         else
3362             { $as_echo "$as_me:$LINENO: result: 'git rev-parse HEAD' failed" >&5
3363 $as_echo "'git rev-parse HEAD' failed" >&6; }
3364         fi
3365     else
3366         { $as_echo "$as_me:$LINENO: result: not available" >&5
3367 $as_echo "not available" >&6; }
3368     fi
3369
3370     rm -f conftemp.git
3371
3372
3373     if test -f FULL_VERSION; then
3374         VERSION=`cat FULL_VERSION`
3375     else if test -f $srcdir/FULL_VERSION; then
3376         VERSION=`cat $srcdir/FULL_VERSION`
3377     else
3378         VERSION=`cat $srcdir/VERSION`
3379     fi
3380     fi
3381     { $as_echo "$as_me:$LINENO: \"version: $VERSION\"" >&5
3382 $as_echo "$as_me: \"version: $VERSION\"" >&6;}
3383
3384 am__api_version='1.11'
3385
3386 # Find a good install program.  We prefer a C program (faster),
3387 # so one script is as good as another.  But avoid the broken or
3388 # incompatible versions:
3389 # SysV /etc/install, /usr/sbin/install
3390 # SunOS /usr/etc/install
3391 # IRIX /sbin/install
3392 # AIX /bin/install
3393 # AmigaOS /C/install, which installs bootblocks on floppy discs
3394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3397 # OS/2's system install, which has a completely different semantic
3398 # ./install, which can be erroneously created by make from ./install.sh.
3399 # Reject install programs that cannot install multiple files.
3400 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3401 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3402 if test -z "$INSTALL"; then
3403 if test "${ac_cv_path_install+set}" = set; then
3404   $as_echo_n "(cached) " >&6
3405 else
3406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3408 do
3409   IFS=$as_save_IFS
3410   test -z "$as_dir" && as_dir=.
3411   # Account for people who put trailing slashes in PATH elements.
3412 case $as_dir/ in
3413   ./ | .// | /cC/* | \
3414   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3415   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3416   /usr/ucb/* ) ;;
3417   *)
3418     # OSF1 and SCO ODT 3.0 have their own names for install.
3419     # Don't use installbsd from OSF since it installs stuff as root
3420     # by default.
3421     for ac_prog in ginstall scoinst install; do
3422       for ac_exec_ext in '' $ac_executable_extensions; do
3423         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3424           if test $ac_prog = install &&
3425             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3426             # AIX install.  It has an incompatible calling convention.
3427             :
3428           elif test $ac_prog = install &&
3429             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430             # program-specific install script used by HP pwplus--don't use.
3431             :
3432           else
3433             rm -rf conftest.one conftest.two conftest.dir
3434             echo one > conftest.one
3435             echo two > conftest.two
3436             mkdir conftest.dir
3437             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3438               test -s conftest.one && test -s conftest.two &&
3439               test -s conftest.dir/conftest.one &&
3440               test -s conftest.dir/conftest.two
3441             then
3442               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3443               break 3
3444             fi
3445           fi
3446         fi
3447       done
3448     done
3449     ;;
3450 esac
3451
3452 done
3453 IFS=$as_save_IFS
3454
3455 rm -rf conftest.one conftest.two conftest.dir
3456
3457 fi
3458   if test "${ac_cv_path_install+set}" = set; then
3459     INSTALL=$ac_cv_path_install
3460   else
3461     # As a last resort, use the slow shell script.  Don't cache a
3462     # value for INSTALL within a source directory, because that will
3463     # break other packages using the cache if that directory is
3464     # removed, or if the value is a relative name.
3465     INSTALL=$ac_install_sh
3466   fi
3467 fi
3468 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3469 $as_echo "$INSTALL" >&6; }
3470
3471 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3472 # It thinks the first close brace ends the variable substitution.
3473 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3474
3475 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3476
3477 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3478
3479 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3480 $as_echo_n "checking whether build environment is sane... " >&6; }
3481 # Just in case
3482 sleep 1
3483 echo timestamp > conftest.file
3484 # Reject unsafe characters in $srcdir or the absolute working directory
3485 # name.  Accept space and tab only in the latter.
3486 am_lf='
3487 '
3488 case `pwd` in
3489   *[\\\"\#\$\&\'\`$am_lf]*)
3490     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
3491 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
3492    { (exit 1); exit 1; }; };;
3493 esac
3494 case $srcdir in
3495   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3496     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
3497 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
3498    { (exit 1); exit 1; }; };;
3499 esac
3500
3501 # Do `set' in a subshell so we don't clobber the current shell's
3502 # arguments.  Must try -L first in case configure is actually a
3503 # symlink; some systems play weird games with the mod time of symlinks
3504 # (eg FreeBSD returns the mod time of the symlink's containing
3505 # directory).
3506 if (
3507    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3508    if test "$*" = "X"; then
3509       # -L didn't work.
3510       set X `ls -t "$srcdir/configure" conftest.file`
3511    fi
3512    rm -f conftest.file
3513    if test "$*" != "X $srcdir/configure conftest.file" \
3514       && test "$*" != "X conftest.file $srcdir/configure"; then
3515
3516       # If neither matched, then we have a broken ls.  This can happen
3517       # if, for instance, CONFIG_SHELL is bash and it inherits a
3518       # broken ls alias from the environment.  This has actually
3519       # happened.  Such a system could not be considered "sane".
3520       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3521 alias in your environment" >&5
3522 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3523 alias in your environment" >&2;}
3524    { (exit 1); exit 1; }; }
3525    fi
3526
3527    test "$2" = conftest.file
3528    )
3529 then
3530    # Ok.
3531    :
3532 else
3533    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3534 Check your system clock" >&5
3535 $as_echo "$as_me: error: newly created file is older than distributed files!
3536 Check your system clock" >&2;}
3537    { (exit 1); exit 1; }; }
3538 fi
3539 { $as_echo "$as_me:$LINENO: result: yes" >&5
3540 $as_echo "yes" >&6; }
3541 test "$program_prefix" != NONE &&
3542   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3543 # Use a double $ so make ignores it.
3544 test "$program_suffix" != NONE &&
3545   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3546 # Double any \ or $.
3547 # By default was `s,x,x', remove it if useless.
3548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3550
3551 # expand $ac_aux_dir to an absolute path
3552 am_aux_dir=`cd $ac_aux_dir && pwd`
3553
3554 if test x"${MISSING+set}" != xset; then
3555   case $am_aux_dir in
3556   *\ * | *\     *)
3557     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3558   *)
3559     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3560   esac
3561 fi
3562 # Use eval to expand $SHELL
3563 if eval "$MISSING --run true"; then
3564   am_missing_run="$MISSING --run "
3565 else
3566   am_missing_run=
3567   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3568 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3569 fi
3570
3571 if test x"${install_sh}" != xset; then
3572   case $am_aux_dir in
3573   *\ * | *\     *)
3574     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3575   *)
3576     install_sh="\${SHELL} $am_aux_dir/install-sh"
3577   esac
3578 fi
3579
3580 # Installed binaries are usually stripped using `strip' when the user
3581 # run `make install-strip'.  However `strip' might not be the right
3582 # tool to use in cross-compilation environments, therefore Automake
3583 # will honor the `STRIP' environment variable to overrule this program.
3584 if test "$cross_compiling" != no; then
3585   if test -n "$ac_tool_prefix"; then
3586   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}strip; ac_word=$2
3588 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_STRIP+set}" = set; then
3591   $as_echo_n "(cached) " >&6
3592 else
3593   if test -n "$STRIP"; then
3594   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3604     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi
3612 fi
3613 STRIP=$ac_cv_prog_STRIP
3614 if test -n "$STRIP"; then
3615   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3616 $as_echo "$STRIP" >&6; }
3617 else
3618   { $as_echo "$as_me:$LINENO: result: no" >&5
3619 $as_echo "no" >&6; }
3620 fi
3621
3622
3623 fi
3624 if test -z "$ac_cv_prog_STRIP"; then
3625   ac_ct_STRIP=$STRIP
3626   # Extract the first word of "strip", so it can be a program name with args.
3627 set dummy strip; ac_word=$2
3628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3631   $as_echo_n "(cached) " >&6
3632 else
3633   if test -n "$ac_ct_STRIP"; then
3634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643     ac_cv_prog_ac_ct_STRIP="strip"
3644     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3654 if test -n "$ac_ct_STRIP"; then
3655   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3656 $as_echo "$ac_ct_STRIP" >&6; }
3657 else
3658   { $as_echo "$as_me:$LINENO: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662   if test "x$ac_ct_STRIP" = x; then
3663     STRIP=":"
3664   else
3665     case $cross_compiling:$ac_tool_warned in
3666 yes:)
3667 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3670 esac
3671     STRIP=$ac_ct_STRIP
3672   fi
3673 else
3674   STRIP="$ac_cv_prog_STRIP"
3675 fi
3676
3677 fi
3678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3679
3680 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3682 if test -z "$MKDIR_P"; then
3683   if test "${ac_cv_path_mkdir+set}" = set; then
3684   $as_echo_n "(cached) " >&6
3685 else
3686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691   for ac_prog in mkdir gmkdir; do
3692          for ac_exec_ext in '' $ac_executable_extensions; do
3693            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3694            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3695              'mkdir (GNU coreutils) '* | \
3696              'mkdir (coreutils) '* | \
3697              'mkdir (fileutils) '4.1*)
3698                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3699                break 3;;
3700            esac
3701          done
3702        done
3703 done
3704 IFS=$as_save_IFS
3705
3706 fi
3707
3708   if test "${ac_cv_path_mkdir+set}" = set; then
3709     MKDIR_P="$ac_cv_path_mkdir -p"
3710   else
3711     # As a last resort, use the slow shell script.  Don't cache a
3712     # value for MKDIR_P within a source directory, because that will
3713     # break other packages using the cache if that directory is
3714     # removed, or if the value is a relative name.
3715     test -d ./--version && rmdir ./--version
3716     MKDIR_P="$ac_install_sh -d"
3717   fi
3718 fi
3719 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3720 $as_echo "$MKDIR_P" >&6; }
3721
3722
3723 mkdir_p="$MKDIR_P"
3724 case $mkdir_p in
3725   [\\/$]* | ?:[\\/]*) ;;
3726   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3727 esac
3728
3729 for ac_prog in gawk mawk nawk awk
3730 do
3731   # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_AWK+set}" = set; then
3736   $as_echo_n "(cached) " >&6
3737 else
3738   if test -n "$AWK"; then
3739   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748     ac_cv_prog_AWK="$ac_prog"
3749     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 AWK=$ac_cv_prog_AWK
3759 if test -n "$AWK"; then
3760   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3761 $as_echo "$AWK" >&6; }
3762 else
3763   { $as_echo "$as_me:$LINENO: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768   test -n "$AWK" && break
3769 done
3770
3771 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3772 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3773 set x ${MAKE-make}
3774 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3775 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3776   $as_echo_n "(cached) " >&6
3777 else
3778   cat >conftest.make <<\_ACEOF
3779 SHELL = /bin/sh
3780 all:
3781         @echo '@@@%%%=$(MAKE)=@@@%%%'
3782 _ACEOF
3783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3784 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3785   *@@@%%%=?*=@@@%%%*)
3786     eval ac_cv_prog_make_${ac_make}_set=yes;;
3787   *)
3788     eval ac_cv_prog_make_${ac_make}_set=no;;
3789 esac
3790 rm -f conftest.make
3791 fi
3792 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3793   { $as_echo "$as_me:$LINENO: result: yes" >&5
3794 $as_echo "yes" >&6; }
3795   SET_MAKE=
3796 else
3797   { $as_echo "$as_me:$LINENO: result: no" >&5
3798 $as_echo "no" >&6; }
3799   SET_MAKE="MAKE=${MAKE-make}"
3800 fi
3801
3802 rm -rf .tst 2>/dev/null
3803 mkdir .tst 2>/dev/null
3804 if test -d .tst; then
3805   am__leading_dot=.
3806 else
3807   am__leading_dot=_
3808 fi
3809 rmdir .tst 2>/dev/null
3810
3811 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3812   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3813   # is not polluted with repeated "-I."
3814   am__isrc=' -I$(srcdir)'
3815   # test to see if srcdir already configured
3816   if test -f $srcdir/config.status; then
3817     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3818 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3819    { (exit 1); exit 1; }; }
3820   fi
3821 fi
3822
3823 # test whether we have cygpath
3824 if test -z "$CYGPATH_W"; then
3825   if (cygpath --version) >/dev/null 2>/dev/null; then
3826     CYGPATH_W='cygpath -w'
3827   else
3828     CYGPATH_W=echo
3829   fi
3830 fi
3831
3832
3833 # Define the identity of the package.
3834  PACKAGE=amanda
3835  VERSION=$VERSION
3836
3837
3838 cat >>confdefs.h <<_ACEOF
3839 #define PACKAGE "$PACKAGE"
3840 _ACEOF
3841
3842
3843 cat >>confdefs.h <<_ACEOF
3844 #define VERSION "$VERSION"
3845 _ACEOF
3846
3847 # Some tools Automake needs.
3848
3849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3850
3851
3852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3853
3854
3855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3856
3857
3858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3859
3860
3861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3862
3863 # We need awk for the "check" target.  The system "awk" is bad on
3864 # some platforms.
3865 # Always define AMTAR for backward compatibility.
3866
3867 AMTAR=${AMTAR-"${am_missing_run}tar"}
3868
3869 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3870
3871
3872
3873
3874
3875 ac_config_headers="$ac_config_headers config/config.h"
3876
3877
3878
3879
3880 #
3881 # Take care of some early Amanda-specific setup
3882 #
3883
3884     # initialize warnings file
3885     rm -f config.warnings
3886
3887
3888     if test -f "$srcdir/SNAPSHOT"; then
3889       cat < "$srcdir/SNAPSHOT"
3890
3891       snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
3892
3893       test -z "$snapdate" || VERSION="$VERSION-$snapdate"
3894       SNAPSHOT_STAMP=SNAPSHOT
3895     else
3896       SNAPSHOT_STAMP=
3897     fi
3898
3899
3900
3901
3902     VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
3903     VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
3904     if test -z "$VERSION_MINOR"; then
3905         VERSION_MINOR=0
3906         VERSION_PATCH=0
3907         VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\(.*\)'`\"
3908     else
3909         VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
3910         if test -z "$VERSION_PATCH"; then
3911             VERSION_PATCH=0
3912             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\(.*\)'`\"
3913         else
3914             VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
3915         fi
3916     fi
3917
3918
3919
3920
3921
3922
3923
3924
3925 cat >>confdefs.h <<_ACEOF
3926 #define VERSION_MAJOR $VERSION_MAJOR
3927 _ACEOF
3928
3929
3930 cat >>confdefs.h <<_ACEOF
3931 #define VERSION_MINOR $VERSION_MINOR
3932 _ACEOF
3933
3934
3935 cat >>confdefs.h <<_ACEOF
3936 #define VERSION_PATCH $VERSION_PATCH
3937 _ACEOF
3938
3939
3940 cat >>confdefs.h <<_ACEOF
3941 #define VERSION_COMMENT $VERSION_COMMENT
3942 _ACEOF
3943
3944
3945
3946     if test -f config.local; then
3947         echo "running local script ./config.local"
3948         . ./config.local
3949     fi
3950
3951
3952 #
3953 # Set up compiler location, basic flags, and include locations
3954 # and library locations before we start checking the system
3955 # configuration in more detail...
3956 #
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 if test -n "$ac_tool_prefix"; then
3963   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if test "${ac_cv_prog_CC+set}" = set; then
3968   $as_echo_n "(cached) " >&6
3969 else
3970   if test -n "$CC"; then
3971   ac_cv_prog_CC="$CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3980     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3981     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982     break 2
3983   fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3994 else
3995   { $as_echo "$as_me:$LINENO: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 if test -z "$ac_cv_prog_CC"; then
4002   ac_ct_CC=$CC
4003   # Extract the first word of "gcc", so it can be a program name with args.
4004 set dummy gcc; ac_word=$2
4005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4008   $as_echo_n "(cached) " >&6
4009 else
4010   if test -n "$ac_ct_CC"; then
4011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020     ac_cv_prog_ac_ct_CC="gcc"
4021     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025 done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4031 if test -n "$ac_ct_CC"; then
4032   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4033 $as_echo "$ac_ct_CC" >&6; }
4034 else
4035   { $as_echo "$as_me:$LINENO: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039   if test "x$ac_ct_CC" = x; then
4040     CC=""
4041   else
4042     case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048     CC=$ac_ct_CC
4049   fi
4050 else
4051   CC="$ac_cv_prog_CC"
4052 fi
4053
4054 if test -z "$CC"; then
4055           if test -n "$ac_tool_prefix"; then
4056     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4057 set dummy ${ac_tool_prefix}cc; ac_word=$2
4058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if test "${ac_cv_prog_CC+set}" = set; then
4061   $as_echo_n "(cached) " >&6
4062 else
4063   if test -n "$CC"; then
4064   ac_cv_prog_CC="$CC" # Let the user override the test.
4065 else
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 for as_dir in $PATH
4068 do
4069   IFS=$as_save_IFS
4070   test -z "$as_dir" && as_dir=.
4071   for ac_exec_ext in '' $ac_executable_extensions; do
4072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073     ac_cv_prog_CC="${ac_tool_prefix}cc"
4074     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4075     break 2
4076   fi
4077 done
4078 done
4079 IFS=$as_save_IFS
4080
4081 fi
4082 fi
4083 CC=$ac_cv_prog_CC
4084 if test -n "$CC"; then
4085   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4087 else
4088   { $as_echo "$as_me:$LINENO: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093   fi
4094 fi
4095 if test -z "$CC"; then
4096   # Extract the first word of "cc", so it can be a program name with args.
4097 set dummy cc; ac_word=$2
4098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -n "$CC"; then
4104   ac_cv_prog_CC="$CC" # Let the user override the test.
4105 else
4106   ac_prog_rejected=no
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4115        ac_prog_rejected=yes
4116        continue
4117      fi
4118     ac_cv_prog_CC="cc"
4119     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 if test $ac_prog_rejected = yes; then
4127   # We found a bogon in the path, so make sure we never use it.
4128   set dummy $ac_cv_prog_CC
4129   shift
4130   if test $# != 0; then
4131     # We chose a different compiler from the bogus one.
4132     # However, it has the same basename, so the bogon will be chosen
4133     # first if we set CC to just the basename; use the full file name.
4134     shift
4135     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4136   fi
4137 fi
4138 fi
4139 fi
4140 CC=$ac_cv_prog_CC
4141 if test -n "$CC"; then
4142   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4143 $as_echo "$CC" >&6; }
4144 else
4145   { $as_echo "$as_me:$LINENO: result: no" >&5
4146 $as_echo "no" >&6; }
4147 fi
4148
4149
4150 fi
4151 if test -z "$CC"; then
4152   if test -n "$ac_tool_prefix"; then
4153   for ac_prog in cl.exe
4154   do
4155     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_CC+set}" = set; then
4160   $as_echo_n "(cached) " >&6
4161 else
4162   if test -n "$CC"; then
4163   ac_cv_prog_CC="$CC" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4173     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 CC=$ac_cv_prog_CC
4183 if test -n "$CC"; then
4184   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4185 $as_echo "$CC" >&6; }
4186 else
4187   { $as_echo "$as_me:$LINENO: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191
4192     test -n "$CC" && break
4193   done
4194 fi
4195 if test -z "$CC"; then
4196   ac_ct_CC=$CC
4197   for ac_prog in cl.exe
4198 do
4199   # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4204   $as_echo_n "(cached) " >&6
4205 else
4206   if test -n "$ac_ct_CC"; then
4207   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_prog_ac_ct_CC="$ac_prog"
4217     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4227 if test -n "$ac_ct_CC"; then
4228   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4229 $as_echo "$ac_ct_CC" >&6; }
4230 else
4231   { $as_echo "$as_me:$LINENO: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236   test -n "$ac_ct_CC" && break
4237 done
4238
4239   if test "x$ac_ct_CC" = x; then
4240     CC=""
4241   else
4242     case $cross_compiling:$ac_tool_warned in
4243 yes:)
4244 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4247 esac
4248     CC=$ac_ct_CC
4249   fi
4250 fi
4251
4252 fi
4253
4254
4255 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details." >&5
4259 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4260 See \`config.log' for more details." >&2;}
4261    { (exit 1); exit 1; }; }; }
4262
4263 # Provide some information about the compiler.
4264 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4265 set X $ac_compile
4266 ac_compiler=$2
4267 { (ac_try="$ac_compiler --version >&5"
4268 case "(($ac_try" in
4269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270   *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4273 $as_echo "$ac_try_echo") >&5
4274   (eval "$ac_compiler --version >&5") 2>&5
4275   ac_status=$?
4276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }
4278 { (ac_try="$ac_compiler -v >&5"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285   (eval "$ac_compiler -v >&5") 2>&5
4286   ac_status=$?
4287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); }
4289 { (ac_try="$ac_compiler -V >&5"
4290 case "(($ac_try" in
4291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292   *) ac_try_echo=$ac_try;;
4293 esac
4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295 $as_echo "$ac_try_echo") >&5
4296   (eval "$ac_compiler -V >&5") 2>&5
4297   ac_status=$?
4298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }
4300
4301 cat >conftest.$ac_ext <<_ACEOF
4302 /* confdefs.h.  */
4303 _ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h.  */
4307
4308 int
4309 main ()
4310 {
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 ac_clean_files_save=$ac_clean_files
4317 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4318 # Try to create an executable without -o first, disregard a.out.
4319 # It will help us diagnose broken compilers, and finding out an intuition
4320 # of exeext.
4321 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4322 $as_echo_n "checking for C compiler default output file name... " >&6; }
4323 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4324
4325 # The possible output files:
4326 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4327
4328 ac_rmfiles=
4329 for ac_file in $ac_files
4330 do
4331   case $ac_file in
4332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4333     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4334   esac
4335 done
4336 rm -f $ac_rmfiles
4337
4338 if { (ac_try="$ac_link_default"
4339 case "(($ac_try" in
4340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341   *) ac_try_echo=$ac_try;;
4342 esac
4343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344 $as_echo "$ac_try_echo") >&5
4345   (eval "$ac_link_default") 2>&5
4346   ac_status=$?
4347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; then
4349   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4350 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4351 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4352 # so that the user can short-circuit this test for compilers unknown to
4353 # Autoconf.
4354 for ac_file in $ac_files ''
4355 do
4356   test -f "$ac_file" || continue
4357   case $ac_file in
4358     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4359         ;;
4360     [ab].out )
4361         # We found the default executable, but exeext='' is most
4362         # certainly right.
4363         break;;
4364     *.* )
4365         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4366         then :; else
4367            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4368         fi
4369         # We set ac_cv_exeext here because the later test for it is not
4370         # safe: cross compilers may not add the suffix if given an `-o'
4371         # argument, so we may need to know it at that point already.
4372         # Even if this section looks crufty: it has the advantage of
4373         # actually working.
4374         break;;
4375     * )
4376         break;;
4377   esac
4378 done
4379 test "$ac_cv_exeext" = no && ac_cv_exeext=
4380
4381 else
4382   ac_file=''
4383 fi
4384
4385 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4386 $as_echo "$ac_file" >&6; }
4387 if test -z "$ac_file"; then
4388   $as_echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4394 See \`config.log' for more details." >&5
4395 $as_echo "$as_me: error: C compiler cannot create executables
4396 See \`config.log' for more details." >&2;}
4397    { (exit 77); exit 77; }; }; }
4398 fi
4399
4400 ac_exeext=$ac_cv_exeext
4401
4402 # Check that the compiler produces executables we can run.  If not, either
4403 # the compiler is broken, or we cross compile.
4404 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4405 $as_echo_n "checking whether the C compiler works... " >&6; }
4406 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4407 # If not cross compiling, check that we can run a simple program.
4408 if test "$cross_compiling" != yes; then
4409   if { ac_try='./$ac_file'
4410   { (case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4415 $as_echo "$ac_try_echo") >&5
4416   (eval "$ac_try") 2>&5
4417   ac_status=$?
4418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420     cross_compiling=no
4421   else
4422     if test "$cross_compiling" = maybe; then
4423         cross_compiling=yes
4424     else
4425         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4428 If you meant to cross compile, use \`--host'.
4429 See \`config.log' for more details." >&5
4430 $as_echo "$as_me: error: cannot run C compiled programs.
4431 If you meant to cross compile, use \`--host'.
4432 See \`config.log' for more details." >&2;}
4433    { (exit 1); exit 1; }; }; }
4434     fi
4435   fi
4436 fi
4437 { $as_echo "$as_me:$LINENO: result: yes" >&5
4438 $as_echo "yes" >&6; }
4439
4440 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4441 ac_clean_files=$ac_clean_files_save
4442 # Check that the compiler produces executables we can run.  If not, either
4443 # the compiler is broken, or we cross compile.
4444 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4445 $as_echo_n "checking whether we are cross compiling... " >&6; }
4446 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4447 $as_echo "$cross_compiling" >&6; }
4448
4449 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4450 $as_echo_n "checking for suffix of executables... " >&6; }
4451 if { (ac_try="$ac_link"
4452 case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4457 $as_echo "$ac_try_echo") >&5
4458   (eval "$ac_link") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; then
4462   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4463 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4464 # work properly (i.e., refer to `conftest.exe'), while it won't with
4465 # `rm'.
4466 for ac_file in conftest.exe conftest conftest.*; do
4467   test -f "$ac_file" || continue
4468   case $ac_file in
4469     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4470     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4471           break;;
4472     * ) break;;
4473   esac
4474 done
4475 else
4476   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4479 See \`config.log' for more details." >&5
4480 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4481 See \`config.log' for more details." >&2;}
4482    { (exit 1); exit 1; }; }; }
4483 fi
4484
4485 rm -f conftest$ac_cv_exeext
4486 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4487 $as_echo "$ac_cv_exeext" >&6; }
4488
4489 rm -f conftest.$ac_ext
4490 EXEEXT=$ac_cv_exeext
4491 ac_exeext=$EXEEXT
4492 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4493 $as_echo_n "checking for suffix of object files... " >&6; }
4494 if test "${ac_cv_objext+set}" = set; then
4495   $as_echo_n "(cached) " >&6
4496 else
4497   cat >conftest.$ac_ext <<_ACEOF
4498 /* confdefs.h.  */
4499 _ACEOF
4500 cat confdefs.h >>conftest.$ac_ext
4501 cat >>conftest.$ac_ext <<_ACEOF
4502 /* end confdefs.h.  */
4503
4504 int
4505 main ()
4506 {
4507
4508   ;
4509   return 0;
4510 }
4511 _ACEOF
4512 rm -f conftest.o conftest.obj
4513 if { (ac_try="$ac_compile"
4514 case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4519 $as_echo "$ac_try_echo") >&5
4520   (eval "$ac_compile") 2>&5
4521   ac_status=$?
4522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; then
4524   for ac_file in conftest.o conftest.obj conftest.*; do
4525   test -f "$ac_file" || continue;
4526   case $ac_file in
4527     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4528     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4529        break;;
4530   esac
4531 done
4532 else
4533   $as_echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4538 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4539 See \`config.log' for more details." >&5
4540 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4541 See \`config.log' for more details." >&2;}
4542    { (exit 1); exit 1; }; }; }
4543 fi
4544
4545 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4546 fi
4547 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4548 $as_echo "$ac_cv_objext" >&6; }
4549 OBJEXT=$ac_cv_objext
4550 ac_objext=$OBJEXT
4551 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4552 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4553 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4554   $as_echo_n "(cached) " >&6
4555 else
4556   cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h.  */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h.  */
4562
4563 int
4564 main ()
4565 {
4566 #ifndef __GNUC__
4567        choke me
4568 #endif
4569
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (ac_try="$ac_compile"
4576 case "(($ac_try" in
4577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578   *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4581 $as_echo "$ac_try_echo") >&5
4582   (eval "$ac_compile") 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } && {
4589          test -z "$ac_c_werror_flag" ||
4590          test ! -s conftest.err
4591        } && test -s conftest.$ac_objext; then
4592   ac_compiler_gnu=yes
4593 else
4594   $as_echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597         ac_compiler_gnu=no
4598 fi
4599
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4602
4603 fi
4604 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4605 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4606 if test $ac_compiler_gnu = yes; then
4607   GCC=yes
4608 else
4609   GCC=
4610 fi
4611 ac_test_CFLAGS=${CFLAGS+set}
4612 ac_save_CFLAGS=$CFLAGS
4613 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4614 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4615 if test "${ac_cv_prog_cc_g+set}" = set; then
4616   $as_echo_n "(cached) " >&6
4617 else
4618   ac_save_c_werror_flag=$ac_c_werror_flag
4619    ac_c_werror_flag=yes
4620    ac_cv_prog_cc_g=no
4621    CFLAGS="-g"
4622    cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628
4629 int
4630 main ()
4631 {
4632
4633   ;
4634   return 0;
4635 }
4636 _ACEOF
4637 rm -f conftest.$ac_objext
4638 if { (ac_try="$ac_compile"
4639 case "(($ac_try" in
4640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641   *) ac_try_echo=$ac_try;;
4642 esac
4643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644 $as_echo "$ac_try_echo") >&5
4645   (eval "$ac_compile") 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } && {
4652          test -z "$ac_c_werror_flag" ||
4653          test ! -s conftest.err
4654        } && test -s conftest.$ac_objext; then
4655   ac_cv_prog_cc_g=yes
4656 else
4657   $as_echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660         CFLAGS=""
4661       cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4683 $as_echo "$ac_try_echo") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } && {
4691          test -z "$ac_c_werror_flag" ||
4692          test ! -s conftest.err
4693        } && test -s conftest.$ac_objext; then
4694   :
4695 else
4696   $as_echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699         ac_c_werror_flag=$ac_save_c_werror_flag
4700          CFLAGS="-g"
4701          cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h.  */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h.  */
4707
4708 int
4709 main ()
4710 {
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (ac_try="$ac_compile"
4718 case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4723 $as_echo "$ac_try_echo") >&5
4724   (eval "$ac_compile") 2>conftest.er1
4725   ac_status=$?
4726   grep -v '^ *+' conftest.er1 >conftest.err
4727   rm -f conftest.er1
4728   cat conftest.err >&5
4729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); } && {
4731          test -z "$ac_c_werror_flag" ||
4732          test ! -s conftest.err
4733        } && test -s conftest.$ac_objext; then
4734   ac_cv_prog_cc_g=yes
4735 else
4736   $as_echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4738
4739
4740 fi
4741
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 fi
4744
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 fi
4747
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749    ac_c_werror_flag=$ac_save_c_werror_flag
4750 fi
4751 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4752 $as_echo "$ac_cv_prog_cc_g" >&6; }
4753 if test "$ac_test_CFLAGS" = set; then
4754   CFLAGS=$ac_save_CFLAGS
4755 elif test $ac_cv_prog_cc_g = yes; then
4756   if test "$GCC" = yes; then
4757     CFLAGS="-g -O2"
4758   else
4759     CFLAGS="-g"
4760   fi
4761 else
4762   if test "$GCC" = yes; then
4763     CFLAGS="-O2"
4764   else
4765     CFLAGS=
4766   fi
4767 fi
4768 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4770 if test "${ac_cv_prog_cc_c89+set}" = set; then
4771   $as_echo_n "(cached) " >&6
4772 else
4773   ac_cv_prog_cc_c89=no
4774 ac_save_CC=$CC
4775 cat >conftest.$ac_ext <<_ACEOF
4776 /* confdefs.h.  */
4777 _ACEOF
4778 cat confdefs.h >>conftest.$ac_ext
4779 cat >>conftest.$ac_ext <<_ACEOF
4780 /* end confdefs.h.  */
4781 #include <stdarg.h>
4782 #include <stdio.h>
4783 #include <sys/types.h>
4784 #include <sys/stat.h>
4785 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4786 struct buf { int x; };
4787 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4788 static char *e (p, i)
4789      char **p;
4790      int i;
4791 {
4792   return p[i];
4793 }
4794 static char *f (char * (*g) (char **, int), char **p, ...)
4795 {
4796   char *s;
4797   va_list v;
4798   va_start (v,p);
4799   s = g (p, va_arg (v,int));
4800   va_end (v);
4801   return s;
4802 }
4803
4804 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4805    function prototypes and stuff, but not '\xHH' hex character constants.
4806    These don't provoke an error unfortunately, instead are silently treated
4807    as 'x'.  The following induces an error, until -std is added to get
4808    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4809    array size at least.  It's necessary to write '\x00'==0 to get something
4810    that's true only with -std.  */
4811 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4812
4813 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4814    inside strings and character constants.  */
4815 #define FOO(x) 'x'
4816 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4817
4818 int test (int i, double x);
4819 struct s1 {int (*f) (int a);};
4820 struct s2 {int (*f) (double a);};
4821 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4822 int argc;
4823 char **argv;
4824 int
4825 main ()
4826 {
4827 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4833         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4834 do
4835   CC="$ac_save_CC $ac_arg"
4836   rm -f conftest.$ac_objext
4837 if { (ac_try="$ac_compile"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843 $as_echo "$ac_try_echo") >&5
4844   (eval "$ac_compile") 2>conftest.er1
4845   ac_status=$?
4846   grep -v '^ *+' conftest.er1 >conftest.err
4847   rm -f conftest.er1
4848   cat conftest.err >&5
4849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850   (exit $ac_status); } && {
4851          test -z "$ac_c_werror_flag" ||
4852          test ! -s conftest.err
4853        } && test -s conftest.$ac_objext; then
4854   ac_cv_prog_cc_c89=$ac_arg
4855 else
4856   $as_echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859
4860 fi
4861
4862 rm -f core conftest.err conftest.$ac_objext
4863   test "x$ac_cv_prog_cc_c89" != "xno" && break
4864 done
4865 rm -f conftest.$ac_ext
4866 CC=$ac_save_CC
4867
4868 fi
4869 # AC_CACHE_VAL
4870 case "x$ac_cv_prog_cc_c89" in
4871   x)
4872     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4873 $as_echo "none needed" >&6; } ;;
4874   xno)
4875     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4876 $as_echo "unsupported" >&6; } ;;
4877   *)
4878     CC="$CC $ac_cv_prog_cc_c89"
4879     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4880 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4881 esac
4882
4883
4884 ac_ext=c
4885 ac_cpp='$CPP $CPPFLAGS'
4886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889 DEPDIR="${am__leading_dot}deps"
4890
4891 ac_config_commands="$ac_config_commands depfiles"
4892
4893
4894 am_make=${MAKE-make}
4895 cat > confinc << 'END'
4896 am__doit:
4897         @echo this is the am__doit target
4898 .PHONY: am__doit
4899 END
4900 # If we don't find an include directive, just comment out the code.
4901 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4902 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4903 am__include="#"
4904 am__quote=
4905 _am_result=none
4906 # First try GNU make style include.
4907 echo "include confinc" > confmf
4908 # Ignore all kinds of additional output from `make'.
4909 case `$am_make -s -f confmf 2> /dev/null` in #(
4910 *the\ am__doit\ target*)
4911   am__include=include
4912   am__quote=
4913   _am_result=GNU
4914   ;;
4915 esac
4916 # Now try BSD make style include.
4917 if test "$am__include" = "#"; then
4918    echo '.include "confinc"' > confmf
4919    case `$am_make -s -f confmf 2> /dev/null` in #(
4920    *the\ am__doit\ target*)
4921      am__include=.include
4922      am__quote="\""
4923      _am_result=BSD
4924      ;;
4925    esac
4926 fi
4927
4928
4929 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4930 $as_echo "$_am_result" >&6; }
4931 rm -f confinc confmf
4932
4933 # Check whether --enable-dependency-tracking was given.
4934 if test "${enable_dependency_tracking+set}" = set; then
4935   enableval=$enable_dependency_tracking;
4936 fi
4937
4938 if test "x$enable_dependency_tracking" != xno; then
4939   am_depcomp="$ac_aux_dir/depcomp"
4940   AMDEPBACKSLASH='\'
4941 fi
4942  if test "x$enable_dependency_tracking" != xno; then
4943   AMDEP_TRUE=
4944   AMDEP_FALSE='#'
4945 else
4946   AMDEP_TRUE='#'
4947   AMDEP_FALSE=
4948 fi
4949
4950
4951
4952 depcc="$CC"   am_compiler_list=
4953
4954 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4955 $as_echo_n "checking dependency style of $depcc... " >&6; }
4956 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4957   $as_echo_n "(cached) " >&6
4958 else
4959   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4960   # We make a subdir and do the tests there.  Otherwise we can end up
4961   # making bogus files that we don't know about and never remove.  For
4962   # instance it was reported that on HP-UX the gcc test will end up
4963   # making a dummy file named `D' -- because `-MD' means `put the output
4964   # in D'.
4965   mkdir conftest.dir
4966   # Copy depcomp to subdir because otherwise we won't find it if we're
4967   # using a relative directory.
4968   cp "$am_depcomp" conftest.dir
4969   cd conftest.dir
4970   # We will build objects and dependencies in a subdirectory because
4971   # it helps to detect inapplicable dependency modes.  For instance
4972   # both Tru64's cc and ICC support -MD to output dependencies as a
4973   # side effect of compilation, but ICC will put the dependencies in
4974   # the current directory while Tru64 will put them in the object
4975   # directory.
4976   mkdir sub
4977
4978   am_cv_CC_dependencies_compiler_type=none
4979   if test "$am_compiler_list" = ""; then
4980      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4981   fi
4982   am__universal=false
4983   case " $depcc " in #(
4984      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4985      esac
4986
4987   for depmode in $am_compiler_list; do
4988     # Setup a source with many dependencies, because some compilers
4989     # like to wrap large dependency lists on column 80 (with \), and
4990     # we should not choose a depcomp mode which is confused by this.
4991     #
4992     # We need to recreate these files for each test, as the compiler may
4993     # overwrite some of them when testing with obscure command lines.
4994     # This happens at least with the AIX C compiler.
4995     : > sub/conftest.c
4996     for i in 1 2 3 4 5 6; do
4997       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4998       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4999       # Solaris 8's {/usr,}/bin/sh.
5000       touch sub/conftst$i.h
5001     done
5002     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5003
5004     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5005     # mode.  It turns out that the SunPro C++ compiler does not properly
5006     # handle `-M -o', and we need to detect this.  Also, some Intel
5007     # versions had trouble with output in subdirs
5008     am__obj=sub/conftest.${OBJEXT-o}
5009     am__minus_obj="-o $am__obj"
5010     case $depmode in
5011     gcc)
5012       # This depmode causes a compiler race in universal mode.
5013       test "$am__universal" = false || continue
5014       ;;
5015     nosideeffect)
5016       # after this tag, mechanisms are not by side-effect, so they'll
5017       # only be used when explicitly requested
5018       if test "x$enable_dependency_tracking" = xyes; then
5019         continue
5020       else
5021         break
5022       fi
5023       ;;
5024     msvisualcpp | msvcmsys)
5025       # This compiler won't grok `-c -o', but also, the minuso test has
5026       # not run yet.  These depmodes are late enough in the game, and
5027       # so weak that their functioning should not be impacted.
5028       am__obj=conftest.${OBJEXT-o}
5029       am__minus_obj=
5030       ;;
5031     none) break ;;
5032     esac
5033     if depmode=$depmode \
5034        source=sub/conftest.c object=$am__obj \
5035        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5036        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5037          >/dev/null 2>conftest.err &&
5038        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5039        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5040        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5041        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5042       # icc doesn't choke on unknown options, it will just issue warnings
5043       # or remarks (even with -Werror).  So we grep stderr for any message
5044       # that says an option was ignored or not supported.
5045       # When given -MP, icc 7.0 and 7.1 complain thusly:
5046       #   icc: Command line warning: ignoring option '-M'; no argument required
5047       # The diagnosis changed in icc 8.0:
5048       #   icc: Command line remark: option '-MP' not supported
5049       if (grep 'ignoring option' conftest.err ||
5050           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5051         am_cv_CC_dependencies_compiler_type=$depmode
5052         break
5053       fi
5054     fi
5055   done
5056
5057   cd ..
5058   rm -rf conftest.dir
5059 else
5060   am_cv_CC_dependencies_compiler_type=none
5061 fi
5062
5063 fi
5064 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5065 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5066 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5067
5068  if
5069   test "x$enable_dependency_tracking" != xno \
5070   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5071   am__fastdepCC_TRUE=
5072   am__fastdepCC_FALSE='#'
5073 else
5074   am__fastdepCC_TRUE='#'
5075   am__fastdepCC_FALSE=
5076 fi
5077
5078
5079 if test -n "$ac_tool_prefix"; then
5080   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_RANLIB+set}" = set; then
5085   $as_echo_n "(cached) " >&6
5086 else
5087   if test -n "$RANLIB"; then
5088   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5098     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 RANLIB=$ac_cv_prog_RANLIB
5108 if test -n "$RANLIB"; then
5109   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5110 $as_echo "$RANLIB" >&6; }
5111 else
5112   { $as_echo "$as_me:$LINENO: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117 fi
5118 if test -z "$ac_cv_prog_RANLIB"; then
5119   ac_ct_RANLIB=$RANLIB
5120   # Extract the first word of "ranlib", so it can be a program name with args.
5121 set dummy ranlib; ac_word=$2
5122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -n "$ac_ct_RANLIB"; then
5128   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5132 do
5133   IFS=$as_save_IFS
5134   test -z "$as_dir" && as_dir=.
5135   for ac_exec_ext in '' $ac_executable_extensions; do
5136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5137     ac_cv_prog_ac_ct_RANLIB="ranlib"
5138     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139     break 2
5140   fi
5141 done
5142 done
5143 IFS=$as_save_IFS
5144
5145 fi
5146 fi
5147 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5148 if test -n "$ac_ct_RANLIB"; then
5149   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5150 $as_echo "$ac_ct_RANLIB" >&6; }
5151 else
5152   { $as_echo "$as_me:$LINENO: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155
5156   if test "x$ac_ct_RANLIB" = x; then
5157     RANLIB=":"
5158   else
5159     case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165     RANLIB=$ac_ct_RANLIB
5166   fi
5167 else
5168   RANLIB="$ac_cv_prog_RANLIB"
5169 fi
5170
5171 if test "x$CC" != xcc; then
5172   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5173 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5174 else
5175   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5176 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5177 fi
5178 set dummy $CC; ac_cc=`$as_echo "$2" |
5179                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5180 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5181   $as_echo_n "(cached) " >&6
5182 else
5183   cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189
5190 int
5191 main ()
5192 {
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 # Make sure it works both with $CC and with simple cc.
5199 # We do the test twice because some compilers refuse to overwrite an
5200 # existing .o file with -o, though they will create one.
5201 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5202 rm -f conftest2.*
5203 if { (case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209   (eval "$ac_try") 2>&5
5210   ac_status=$?
5211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212   (exit $ac_status); } &&
5213    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5218 $as_echo "$ac_try_echo") >&5
5219   (eval "$ac_try") 2>&5
5220   ac_status=$?
5221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); };
5223 then
5224   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5225   if test "x$CC" != xcc; then
5226     # Test first that cc exists at all.
5227     if { ac_try='cc -c conftest.$ac_ext >&5'
5228   { (case "(($ac_try" in
5229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5230   *) ac_try_echo=$ac_try;;
5231 esac
5232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5233 $as_echo "$ac_try_echo") >&5
5234   (eval "$ac_try") 2>&5
5235   ac_status=$?
5236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; }; then
5238       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5239       rm -f conftest2.*
5240       if { (case "(($ac_try" in
5241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242   *) ac_try_echo=$ac_try;;
5243 esac
5244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245 $as_echo "$ac_try_echo") >&5
5246   (eval "$ac_try") 2>&5
5247   ac_status=$?
5248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); } &&
5250          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252   *) ac_try_echo=$ac_try;;
5253 esac
5254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5255 $as_echo "$ac_try_echo") >&5
5256   (eval "$ac_try") 2>&5
5257   ac_status=$?
5258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); };
5260       then
5261         # cc works too.
5262         :
5263       else
5264         # cc exists but doesn't like -o.
5265         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5266       fi
5267     fi
5268   fi
5269 else
5270   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5271 fi
5272 rm -f core conftest*
5273
5274 fi
5275 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5276   { $as_echo "$as_me:$LINENO: result: yes" >&5
5277 $as_echo "yes" >&6; }
5278 else
5279   { $as_echo "$as_me:$LINENO: result: no" >&5
5280 $as_echo "no" >&6; }
5281
5282 cat >>confdefs.h <<\_ACEOF
5283 #define NO_MINUS_C_MINUS_O 1
5284 _ACEOF
5285
5286 fi
5287
5288 # FIXME: we rely on the cache variable name because
5289 # there is no other way.
5290 set dummy $CC
5291 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5292 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5293 if test "$am_t" != yes; then
5294    # Losing compiler, so override with the script.
5295    # FIXME: It is wrong to rewrite CC.
5296    # But if we don't then we get into trouble of one sort or another.
5297    # A longer-term fix would be to have automake use am__CC in this case,
5298    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5299    CC="$am_aux_dir/compile $CC"
5300 fi
5301
5302
5303
5304 ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5310 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5311 # On Suns, sometimes $CPP names a directory.
5312 if test -n "$CPP" && test -d "$CPP"; then
5313   CPP=
5314 fi
5315 if test -z "$CPP"; then
5316   if test "${ac_cv_prog_CPP+set}" = set; then
5317   $as_echo_n "(cached) " >&6
5318 else
5319       # Double quotes because CPP needs to be expanded
5320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321     do
5322       ac_preproc_ok=false
5323 for ac_c_preproc_warn_flag in '' yes
5324 do
5325   # Use a header file that comes with gcc, so configuring glibc
5326   # with a fresh cross-compiler works.
5327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5328   # <limits.h> exists even on freestanding compilers.
5329   # On the NeXT, cc -E runs the code through the compiler's parser,
5330   # not just through cpp. "Syntax error" is here to catch this case.
5331   cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 #ifdef __STDC__
5338 # include <limits.h>
5339 #else
5340 # include <assert.h>
5341 #endif
5342                      Syntax error
5343 _ACEOF
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5345 case "(($ac_try" in
5346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347   *) ac_try_echo=$ac_try;;
5348 esac
5349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5350 $as_echo "$ac_try_echo") >&5
5351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352   ac_status=$?
5353   grep -v '^ *+' conftest.er1 >conftest.err
5354   rm -f conftest.er1
5355   cat conftest.err >&5
5356   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); } >/dev/null && {
5358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5359          test ! -s conftest.err
5360        }; then
5361   :
5362 else
5363   $as_echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366   # Broken: fails on valid input.
5367 continue
5368 fi
5369
5370 rm -f conftest.err conftest.$ac_ext
5371
5372   # OK, works on sane cases.  Now check whether nonexistent headers
5373   # can be detected and how.
5374   cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 #include <ac_nonexistent.h>
5381 _ACEOF
5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
5383 case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5388 $as_echo "$ac_try_echo") >&5
5389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390   ac_status=$?
5391   grep -v '^ *+' conftest.er1 >conftest.err
5392   rm -f conftest.er1
5393   cat conftest.err >&5
5394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } >/dev/null && {
5396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5397          test ! -s conftest.err
5398        }; then
5399   # Broken: success on invalid input.
5400 continue
5401 else
5402   $as_echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405   # Passes both tests.
5406 ac_preproc_ok=:
5407 break
5408 fi
5409
5410 rm -f conftest.err conftest.$ac_ext
5411
5412 done
5413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414 rm -f conftest.err conftest.$ac_ext
5415 if $ac_preproc_ok; then
5416   break
5417 fi
5418
5419     done
5420     ac_cv_prog_CPP=$CPP
5421
5422 fi
5423   CPP=$ac_cv_prog_CPP
5424 else
5425   ac_cv_prog_CPP=$CPP
5426 fi
5427 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5428 $as_echo "$CPP" >&6; }
5429 ac_preproc_ok=false
5430 for ac_c_preproc_warn_flag in '' yes
5431 do
5432   # Use a header file that comes with gcc, so configuring glibc
5433   # with a fresh cross-compiler works.
5434   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5435   # <limits.h> exists even on freestanding compilers.
5436   # On the NeXT, cc -E runs the code through the compiler's parser,
5437   # not just through cpp. "Syntax error" is here to catch this case.
5438   cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #ifdef __STDC__
5445 # include <limits.h>
5446 #else
5447 # include <assert.h>
5448 #endif
5449                      Syntax error
5450 _ACEOF
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5452 case "(($ac_try" in
5453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454   *) ac_try_echo=$ac_try;;
5455 esac
5456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5457 $as_echo "$ac_try_echo") >&5
5458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459   ac_status=$?
5460   grep -v '^ *+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } >/dev/null && {
5465          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5466          test ! -s conftest.err
5467        }; then
5468   :
5469 else
5470   $as_echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473   # Broken: fails on valid input.
5474 continue
5475 fi
5476
5477 rm -f conftest.err conftest.$ac_ext
5478
5479   # OK, works on sane cases.  Now check whether nonexistent headers
5480   # can be detected and how.
5481   cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h.  */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h.  */
5487 #include <ac_nonexistent.h>
5488 _ACEOF
5489 if { (ac_try="$ac_cpp conftest.$ac_ext"
5490 case "(($ac_try" in
5491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492   *) ac_try_echo=$ac_try;;
5493 esac
5494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5495 $as_echo "$ac_try_echo") >&5
5496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5497   ac_status=$?
5498   grep -v '^ *+' conftest.er1 >conftest.err
5499   rm -f conftest.er1
5500   cat conftest.err >&5
5501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); } >/dev/null && {
5503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5504          test ! -s conftest.err
5505        }; then
5506   # Broken: success on invalid input.
5507 continue
5508 else
5509   $as_echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512   # Passes both tests.
5513 ac_preproc_ok=:
5514 break
5515 fi
5516
5517 rm -f conftest.err conftest.$ac_ext
5518
5519 done
5520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521 rm -f conftest.err conftest.$ac_ext
5522 if $ac_preproc_ok; then
5523   :
5524 else
5525   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5527 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5528 See \`config.log' for more details." >&5
5529 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5530 See \`config.log' for more details." >&2;}
5531    { (exit 1); exit 1; }; }; }
5532 fi
5533
5534 ac_ext=c
5535 ac_cpp='$CPP $CPPFLAGS'
5536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539
5540
5541 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5542 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5543 if test "${ac_cv_path_GREP+set}" = set; then
5544   $as_echo_n "(cached) " >&6
5545 else
5546   if test -z "$GREP"; then
5547   ac_path_GREP_found=false
5548   # Loop through the user's path and test for each of PROGNAME-LIST
5549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_prog in grep ggrep; do
5555     for ac_exec_ext in '' $ac_executable_extensions; do
5556       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5557       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5558 # Check for GNU ac_path_GREP and select it if it is found.
5559   # Check for GNU $ac_path_GREP
5560 case `"$ac_path_GREP" --version 2>&1` in
5561 *GNU*)
5562   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5563 *)
5564   ac_count=0
5565   $as_echo_n 0123456789 >"conftest.in"
5566   while :
5567   do
5568     cat "conftest.in" "conftest.in" >"conftest.tmp"
5569     mv "conftest.tmp" "conftest.in"
5570     cp "conftest.in" "conftest.nl"
5571     $as_echo 'GREP' >> "conftest.nl"
5572     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5573     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5574     ac_count=`expr $ac_count + 1`
5575     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5576       # Best one so far, save it but keep looking for a better one
5577       ac_cv_path_GREP="$ac_path_GREP"
5578       ac_path_GREP_max=$ac_count
5579     fi
5580     # 10*(2^10) chars as input seems more than enough
5581     test $ac_count -gt 10 && break
5582   done
5583   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5584 esac
5585
5586       $ac_path_GREP_found && break 3
5587     done
5588   done
5589 done
5590 IFS=$as_save_IFS
5591   if test -z "$ac_cv_path_GREP"; then
5592     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5593 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5594    { (exit 1); exit 1; }; }
5595   fi
5596 else
5597   ac_cv_path_GREP=$GREP
5598 fi
5599
5600 fi
5601 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5602 $as_echo "$ac_cv_path_GREP" >&6; }
5603  GREP="$ac_cv_path_GREP"
5604
5605
5606 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5607 $as_echo_n "checking for egrep... " >&6; }
5608 if test "${ac_cv_path_EGREP+set}" = set; then
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5612    then ac_cv_path_EGREP="$GREP -E"
5613    else
5614      if test -z "$EGREP"; then
5615   ac_path_EGREP_found=false
5616   # Loop through the user's path and test for each of PROGNAME-LIST
5617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 do
5620   IFS=$as_save_IFS
5621   test -z "$as_dir" && as_dir=.
5622   for ac_prog in egrep; do
5623     for ac_exec_ext in '' $ac_executable_extensions; do
5624       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5625       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5626 # Check for GNU ac_path_EGREP and select it if it is found.
5627   # Check for GNU $ac_path_EGREP
5628 case `"$ac_path_EGREP" --version 2>&1` in
5629 *GNU*)
5630   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5631 *)
5632   ac_count=0
5633   $as_echo_n 0123456789 >"conftest.in"
5634   while :
5635   do
5636     cat "conftest.in" "conftest.in" >"conftest.tmp"
5637     mv "conftest.tmp" "conftest.in"
5638     cp "conftest.in" "conftest.nl"
5639     $as_echo 'EGREP' >> "conftest.nl"
5640     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642     ac_count=`expr $ac_count + 1`
5643     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5644       # Best one so far, save it but keep looking for a better one
5645       ac_cv_path_EGREP="$ac_path_EGREP"
5646       ac_path_EGREP_max=$ac_count
5647     fi
5648     # 10*(2^10) chars as input seems more than enough
5649     test $ac_count -gt 10 && break
5650   done
5651   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 esac
5653
5654       $ac_path_EGREP_found && break 3
5655     done
5656   done
5657 done
5658 IFS=$as_save_IFS
5659   if test -z "$ac_cv_path_EGREP"; then
5660     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5661 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5662    { (exit 1); exit 1; }; }
5663   fi
5664 else
5665   ac_cv_path_EGREP=$EGREP
5666 fi
5667
5668    fi
5669 fi
5670 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5671 $as_echo "$ac_cv_path_EGREP" >&6; }
5672  EGREP="$ac_cv_path_EGREP"
5673
5674
5675 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5676 $as_echo_n "checking for ANSI C header files... " >&6; }
5677 if test "${ac_cv_header_stdc+set}" = set; then
5678   $as_echo_n "(cached) " >&6
5679 else
5680   cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686 #include <stdlib.h>
5687 #include <stdarg.h>
5688 #include <string.h>
5689 #include <float.h>
5690
5691 int
5692 main ()
5693 {
5694
5695   ;
5696   return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (ac_try="$ac_compile"
5701 case "(($ac_try" in
5702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703   *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5706 $as_echo "$ac_try_echo") >&5
5707   (eval "$ac_compile") 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } && {
5714          test -z "$ac_c_werror_flag" ||
5715          test ! -s conftest.err
5716        } && test -s conftest.$ac_objext; then
5717   ac_cv_header_stdc=yes
5718 else
5719   $as_echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722         ac_cv_header_stdc=no
5723 fi
5724
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726
5727 if test $ac_cv_header_stdc = yes; then
5728   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5729   cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735 #include <string.h>
5736
5737 _ACEOF
5738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5739   $EGREP "memchr" >/dev/null 2>&1; then
5740   :
5741 else
5742   ac_cv_header_stdc=no
5743 fi
5744 rm -f conftest*
5745
5746 fi
5747
5748 if test $ac_cv_header_stdc = yes; then
5749   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5750   cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 #include <stdlib.h>
5757
5758 _ACEOF
5759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5760   $EGREP "free" >/dev/null 2>&1; then
5761   :
5762 else
5763   ac_cv_header_stdc=no
5764 fi
5765 rm -f conftest*
5766
5767 fi
5768
5769 if test $ac_cv_header_stdc = yes; then
5770   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5771   if test "$cross_compiling" = yes; then
5772   :
5773 else
5774   cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h.  */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h.  */
5780 #include <ctype.h>
5781 #include <stdlib.h>
5782 #if ((' ' & 0x0FF) == 0x020)
5783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5785 #else
5786 # define ISLOWER(c) \
5787                    (('a' <= (c) && (c) <= 'i') \
5788                      || ('j' <= (c) && (c) <= 'r') \
5789                      || ('s' <= (c) && (c) <= 'z'))
5790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5791 #endif
5792
5793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5794 int
5795 main ()
5796 {
5797   int i;
5798   for (i = 0; i < 256; i++)
5799     if (XOR (islower (i), ISLOWER (i))
5800         || toupper (i) != TOUPPER (i))
5801       return 2;
5802   return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest$ac_exeext
5806 if { (ac_try="$ac_link"
5807 case "(($ac_try" in
5808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809   *) ac_try_echo=$ac_try;;
5810 esac
5811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5812 $as_echo "$ac_try_echo") >&5
5813   (eval "$ac_link") 2>&5
5814   ac_status=$?
5815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5817   { (case "(($ac_try" in
5818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819   *) ac_try_echo=$ac_try;;
5820 esac
5821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823   (eval "$ac_try") 2>&5
5824   ac_status=$?
5825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }; }; then
5827   :
5828 else
5829   $as_echo "$as_me: program exited with status $ac_status" >&5
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833 ( exit $ac_status )
5834 ac_cv_header_stdc=no
5835 fi
5836 rm -rf conftest.dSYM
5837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5838 fi
5839
5840
5841 fi
5842 fi
5843 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5844 $as_echo "$ac_cv_header_stdc" >&6; }
5845 if test $ac_cv_header_stdc = yes; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define STDC_HEADERS 1
5849 _ACEOF
5850
5851 fi
5852
5853 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5864                   inttypes.h stdint.h unistd.h
5865 do
5866 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5868 $as_echo_n "checking for $ac_header... " >&6; }
5869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5870   $as_echo_n "(cached) " >&6
5871 else
5872   cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h.  */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h.  */
5878 $ac_includes_default
5879
5880 #include <$ac_header>
5881 _ACEOF
5882 rm -f conftest.$ac_objext
5883 if { (ac_try="$ac_compile"
5884 case "(($ac_try" in
5885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886   *) ac_try_echo=$ac_try;;
5887 esac
5888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5889 $as_echo "$ac_try_echo") >&5
5890   (eval "$ac_compile") 2>conftest.er1
5891   ac_status=$?
5892   grep -v '^ *+' conftest.er1 >conftest.err
5893   rm -f conftest.er1
5894   cat conftest.err >&5
5895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896   (exit $ac_status); } && {
5897          test -z "$ac_c_werror_flag" ||
5898          test ! -s conftest.err
5899        } && test -s conftest.$ac_objext; then
5900   eval "$as_ac_Header=yes"
5901 else
5902   $as_echo "$as_me: failed program was:" >&5
5903 sed 's/^/| /' conftest.$ac_ext >&5
5904
5905         eval "$as_ac_Header=no"
5906 fi
5907
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 ac_res=`eval 'as_val=${'$as_ac_Header'}
5911                  $as_echo "$as_val"'`
5912                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5913 $as_echo "$ac_res" >&6; }
5914 as_val=`eval 'as_val=${'$as_ac_Header'}
5915                  $as_echo "$as_val"'`
5916    if test "x$as_val" = x""yes; then
5917   cat >>confdefs.h <<_ACEOF
5918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5919 _ACEOF
5920
5921 fi
5922
5923 done
5924
5925
5926
5927
5928
5929   if test "${ac_cv_header_minix_config_h+set}" = set; then
5930   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5931 $as_echo_n "checking for minix/config.h... " >&6; }
5932 if test "${ac_cv_header_minix_config_h+set}" = set; then
5933   $as_echo_n "(cached) " >&6
5934 fi
5935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5936 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5937 else
5938   # Is the header compilable?
5939 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5940 $as_echo_n "checking minix/config.h usability... " >&6; }
5941 cat >conftest.$ac_ext <<_ACEOF
5942 /* confdefs.h.  */
5943 _ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h.  */
5947 $ac_includes_default
5948 #include <minix/config.h>
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5957 $as_echo "$ac_try_echo") >&5
5958   (eval "$ac_compile") 2>conftest.er1
5959   ac_status=$?
5960   grep -v '^ *+' conftest.er1 >conftest.err
5961   rm -f conftest.er1
5962   cat conftest.err >&5
5963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); } && {
5965          test -z "$ac_c_werror_flag" ||
5966          test ! -s conftest.err
5967        } && test -s conftest.$ac_objext; then
5968   ac_header_compiler=yes
5969 else
5970   $as_echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973         ac_header_compiler=no
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5978 $as_echo "$ac_header_compiler" >&6; }
5979
5980 # Is the header present?
5981 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5982 $as_echo_n "checking minix/config.h presence... " >&6; }
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989 #include <minix/config.h>
5990 _ACEOF
5991 if { (ac_try="$ac_cpp conftest.$ac_ext"
5992 case "(($ac_try" in
5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994   *) ac_try_echo=$ac_try;;
5995 esac
5996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5997 $as_echo "$ac_try_echo") >&5
5998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } >/dev/null && {
6005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6006          test ! -s conftest.err
6007        }; then
6008   ac_header_preproc=yes
6009 else
6010   $as_echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013   ac_header_preproc=no
6014 fi
6015
6016 rm -f conftest.err conftest.$ac_ext
6017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6018 $as_echo "$ac_header_preproc" >&6; }
6019
6020 # So?  What about this header?
6021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6022   yes:no: )
6023     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6024 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6025     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6026 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6027     ac_header_preproc=yes
6028     ;;
6029   no:yes:* )
6030     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6031 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6032     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6033 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6034     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6035 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6036     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6037 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6038     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6039 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6040     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6041 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6042
6043     ;;
6044 esac
6045 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6046 $as_echo_n "checking for minix/config.h... " >&6; }
6047 if test "${ac_cv_header_minix_config_h+set}" = set; then
6048   $as_echo_n "(cached) " >&6
6049 else
6050   ac_cv_header_minix_config_h=$ac_header_preproc
6051 fi
6052 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6053 $as_echo "$ac_cv_header_minix_config_h" >&6; }
6054
6055 fi
6056 if test "x$ac_cv_header_minix_config_h" = x""yes; then
6057   MINIX=yes
6058 else
6059   MINIX=
6060 fi
6061
6062
6063   if test "$MINIX" = yes; then
6064
6065 cat >>confdefs.h <<\_ACEOF
6066 #define _POSIX_SOURCE 1
6067 _ACEOF
6068
6069
6070 cat >>confdefs.h <<\_ACEOF
6071 #define _POSIX_1_SOURCE 2
6072 _ACEOF
6073
6074
6075 cat >>confdefs.h <<\_ACEOF
6076 #define _MINIX 1
6077 _ACEOF
6078
6079   fi
6080
6081         case "$host_os" in
6082     hpux*)
6083
6084 cat >>confdefs.h <<\_ACEOF
6085 #define _XOPEN_SOURCE 500
6086 _ACEOF
6087
6088       ;;
6089   esac
6090
6091
6092
6093   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6094 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6095 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6096   $as_echo_n "(cached) " >&6
6097 else
6098   cat >conftest.$ac_ext <<_ACEOF
6099 /* confdefs.h.  */
6100 _ACEOF
6101 cat confdefs.h >>conftest.$ac_ext
6102 cat >>conftest.$ac_ext <<_ACEOF
6103 /* end confdefs.h.  */
6104
6105 #         define __EXTENSIONS__ 1
6106           $ac_includes_default
6107 int
6108 main ()
6109 {
6110
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6117 case "(($ac_try" in
6118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119   *) ac_try_echo=$ac_try;;
6120 esac
6121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123   (eval "$ac_compile") 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } && {
6130          test -z "$ac_c_werror_flag" ||
6131          test ! -s conftest.err
6132        } && test -s conftest.$ac_objext; then
6133   ac_cv_safe_to_define___extensions__=yes
6134 else
6135   $as_echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138         ac_cv_safe_to_define___extensions__=no
6139 fi
6140
6141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6142 fi
6143 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6144 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6145   test $ac_cv_safe_to_define___extensions__ = yes &&
6146     cat >>confdefs.h <<\_ACEOF
6147 #define __EXTENSIONS__ 1
6148 _ACEOF
6149
6150   cat >>confdefs.h <<\_ACEOF
6151 #define _ALL_SOURCE 1
6152 _ACEOF
6153
6154   cat >>confdefs.h <<\_ACEOF
6155 #define _GNU_SOURCE 1
6156 _ACEOF
6157
6158   cat >>confdefs.h <<\_ACEOF
6159 #define _POSIX_PTHREAD_SEMANTICS 1
6160 _ACEOF
6161
6162   cat >>confdefs.h <<\_ACEOF
6163 #define _TANDEM_SOURCE 1
6164 _ACEOF
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6175 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6176 if test "${ac_cv_sys_largefile_source+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179   while :; do
6180   cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186 #include <sys/types.h> /* for off_t */
6187      #include <stdio.h>
6188 int
6189 main ()
6190 {
6191 int (*fp) (FILE *, off_t, int) = fseeko;
6192      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6193   ;
6194   return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest.$ac_objext conftest$ac_exeext
6198 if { (ac_try="$ac_link"
6199 case "(($ac_try" in
6200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201   *) ac_try_echo=$ac_try;;
6202 esac
6203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6204 $as_echo "$ac_try_echo") >&5
6205   (eval "$ac_link") 2>conftest.er1
6206   ac_status=$?
6207   grep -v '^ *+' conftest.er1 >conftest.err
6208   rm -f conftest.er1
6209   cat conftest.err >&5
6210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); } && {
6212          test -z "$ac_c_werror_flag" ||
6213          test ! -s conftest.err
6214        } && test -s conftest$ac_exeext && {
6215          test "$cross_compiling" = yes ||
6216          $as_test_x conftest$ac_exeext
6217        }; then
6218   ac_cv_sys_largefile_source=no; break
6219 else
6220   $as_echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223
6224 fi
6225
6226 rm -rf conftest.dSYM
6227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6228       conftest$ac_exeext conftest.$ac_ext
6229   cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h.  */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h.  */
6235 #define _LARGEFILE_SOURCE 1
6236 #include <sys/types.h> /* for off_t */
6237      #include <stdio.h>
6238 int
6239 main ()
6240 {
6241 int (*fp) (FILE *, off_t, int) = fseeko;
6242      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6243   ;
6244   return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6249 case "(($ac_try" in
6250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251   *) ac_try_echo=$ac_try;;
6252 esac
6253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6254 $as_echo "$ac_try_echo") >&5
6255   (eval "$ac_link") 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } && {
6262          test -z "$ac_c_werror_flag" ||
6263          test ! -s conftest.err
6264        } && test -s conftest$ac_exeext && {
6265          test "$cross_compiling" = yes ||
6266          $as_test_x conftest$ac_exeext
6267        }; then
6268   ac_cv_sys_largefile_source=1; break
6269 else
6270   $as_echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6272
6273
6274 fi
6275
6276 rm -rf conftest.dSYM
6277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6278       conftest$ac_exeext conftest.$ac_ext
6279   ac_cv_sys_largefile_source=unknown
6280   break
6281 done
6282 fi
6283 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
6284 $as_echo "$ac_cv_sys_largefile_source" >&6; }
6285 case $ac_cv_sys_largefile_source in #(
6286   no | unknown) ;;
6287   *)
6288 cat >>confdefs.h <<_ACEOF
6289 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6290 _ACEOF
6291 ;;
6292 esac
6293 rm -rf conftest*
6294
6295 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6296 # in glibc 2.1.3, but that breaks too many other things.
6297 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6298 if test $ac_cv_sys_largefile_source != unknown; then
6299
6300 cat >>confdefs.h <<\_ACEOF
6301 #define HAVE_FSEEKO 1
6302 _ACEOF
6303
6304 fi
6305
6306
6307
6308
6309
6310
6311   # Check whether --enable-threads was given.
6312 if test "${enable_threads+set}" = set; then
6313   enableval=$enable_threads; gl_use_threads=$enableval
6314 else
6315   if test -n "$gl_use_threads_default"; then
6316        gl_use_threads="$gl_use_threads_default"
6317      else
6318        case "$host_os" in
6319                                                                osf*) gl_use_threads=no ;;
6320          cygwin*)
6321                case `uname -r` in
6322                  1.[0-5].*) gl_use_threads=no ;;
6323                  *)         gl_use_threads=yes ;;
6324                esac
6325                ;;
6326          *)    gl_use_threads=yes ;;
6327        esac
6328      fi
6329
6330 fi
6331
6332   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6333     # For using <pthread.h>:
6334     case "$host_os" in
6335       osf*)
6336         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6337         # groks <pthread.h>. cc also understands the flag -pthread, but
6338         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6339         # 2. putting a flag into CPPFLAGS that has an effect on the linker
6340         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
6341         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6342         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6343         ;;
6344     esac
6345     # Some systems optimize for single-threaded programs by default, and
6346     # need special flags to disable these optimizations. For example, the
6347     # definition of 'errno' in <errno.h>.
6348     case "$host_os" in
6349       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6350       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6351     esac
6352   fi
6353
6354
6355
6356
6357   # Code from module alignof:
6358   # Code from module alloca-opt:
6359   # Code from module arg-nonnull:
6360   # Code from module arpa_inet:
6361   # Code from module base64:
6362   # Code from module btowc:
6363   # Code from module c++defs:
6364   # Code from module c-ctype:
6365   # Code from module configmake:
6366   # Code from module environ:
6367   # Code from module errno:
6368   # Code from module extensions:
6369
6370   # Code from module float:
6371   # Code from module fseeko:
6372
6373   # Code from module fsusage:
6374   # Code from module ftello:
6375
6376   # Code from module ftruncate:
6377   # Code from module full-read:
6378   # Code from module full-write:
6379   # Code from module getaddrinfo:
6380   # Code from module getopt-gnu:
6381   # Code from module getopt-posix:
6382   # Code from module gettext-h:
6383   # Code from module gettimeofday:
6384   # Code from module havelib:
6385   # Code from module hostent:
6386   # Code from module include_next:
6387   # Code from module inet_ntop:
6388   # Code from module inet_pton:
6389   # Code from module langinfo:
6390   # Code from module localcharset:
6391   # Code from module lock:
6392   # Code from module lseek:
6393   # Code from module lstat:
6394   # Code from module malloc-gnu:
6395   # Code from module malloc-posix:
6396   # Code from module mbrtowc:
6397   # Code from module mbsinit:
6398   # Code from module memchr:
6399   # Code from module mkdtemp:
6400   # Code from module multiarch:
6401   # Code from module netdb:
6402   # Code from module netinet_in:
6403   # Code from module nl_langinfo:
6404   # Code from module physmem:
6405   # Code from module regex:
6406   # Code from module safe-read:
6407   # Code from module safe-write:
6408   # Code from module servent:
6409   # Code from module size_max:
6410   # Code from module snprintf:
6411   # Code from module socklen:
6412   # Code from module ssize_t:
6413   # Code from module stat:
6414   # Code from module stdbool:
6415   # Code from module stddef:
6416   # Code from module stdint:
6417   # Code from module stdio:
6418   # Code from module stdlib:
6419   # Code from module streq:
6420   # Code from module string:
6421   # Code from module sys_socket:
6422   # Code from module sys_stat:
6423   # Code from module sys_time:
6424   # Code from module tempname:
6425   # Code from module threadlib:
6426
6427
6428
6429   # Code from module time:
6430   # Code from module unistd:
6431   # Code from module vasnprintf:
6432   # Code from module verify:
6433   # Code from module warn-on-use:
6434   # Code from module wchar:
6435   # Code from module wcrtomb:
6436   # Code from module wctype:
6437   # Code from module write:
6438   # Code from module xsize:
6439
6440
6441
6442
6443
6444
6445
6446           LIBC_FATAL_STDERR_=1
6447   export LIBC_FATAL_STDERR_
6448
6449 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6450 # for constant arguments.  Useless!
6451 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6452 $as_echo_n "checking for working alloca.h... " >&6; }
6453 if test "${ac_cv_working_alloca_h+set}" = set; then
6454   $as_echo_n "(cached) " >&6
6455 else
6456   cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <alloca.h>
6463 int
6464 main ()
6465 {
6466 char *p = (char *) alloca (2 * sizeof (int));
6467                           if (p) return 0;
6468   ;
6469   return 0;
6470 }
6471 _ACEOF
6472 rm -f conftest.$ac_objext conftest$ac_exeext
6473 if { (ac_try="$ac_link"
6474 case "(($ac_try" in
6475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6476   *) ac_try_echo=$ac_try;;
6477 esac
6478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479 $as_echo "$ac_try_echo") >&5
6480   (eval "$ac_link") 2>conftest.er1
6481   ac_status=$?
6482   grep -v '^ *+' conftest.er1 >conftest.err
6483   rm -f conftest.er1
6484   cat conftest.err >&5
6485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } && {
6487          test -z "$ac_c_werror_flag" ||
6488          test ! -s conftest.err
6489        } && test -s conftest$ac_exeext && {
6490          test "$cross_compiling" = yes ||
6491          $as_test_x conftest$ac_exeext
6492        }; then
6493   ac_cv_working_alloca_h=yes
6494 else
6495   $as_echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498         ac_cv_working_alloca_h=no
6499 fi
6500
6501 rm -rf conftest.dSYM
6502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503       conftest$ac_exeext conftest.$ac_ext
6504 fi
6505 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6506 $as_echo "$ac_cv_working_alloca_h" >&6; }
6507 if test $ac_cv_working_alloca_h = yes; then
6508
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_ALLOCA_H 1
6511 _ACEOF
6512
6513 fi
6514
6515 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6516 $as_echo_n "checking for alloca... " >&6; }
6517 if test "${ac_cv_func_alloca_works+set}" = set; then
6518   $as_echo_n "(cached) " >&6
6519 else
6520   cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h.  */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h.  */
6526 #ifdef __GNUC__
6527 # define alloca __builtin_alloca
6528 #else
6529 # ifdef _MSC_VER
6530 #  include <malloc.h>
6531 #  define alloca _alloca
6532 # else
6533 #  ifdef HAVE_ALLOCA_H
6534 #   include <alloca.h>
6535 #  else
6536 #   ifdef _AIX
6537  #pragma alloca
6538 #   else
6539 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6540 char *alloca ();
6541 #    endif
6542 #   endif
6543 #  endif
6544 # endif
6545 #endif
6546
6547 int
6548 main ()
6549 {
6550 char *p = (char *) alloca (1);
6551                                     if (p) return 0;
6552   ;
6553   return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext conftest$ac_exeext
6557 if { (ac_try="$ac_link"
6558 case "(($ac_try" in
6559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560   *) ac_try_echo=$ac_try;;
6561 esac
6562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6563 $as_echo "$ac_try_echo") >&5
6564   (eval "$ac_link") 2>conftest.er1
6565   ac_status=$?
6566   grep -v '^ *+' conftest.er1 >conftest.err
6567   rm -f conftest.er1
6568   cat conftest.err >&5
6569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); } && {
6571          test -z "$ac_c_werror_flag" ||
6572          test ! -s conftest.err
6573        } && test -s conftest$ac_exeext && {
6574          test "$cross_compiling" = yes ||
6575          $as_test_x conftest$ac_exeext
6576        }; then
6577   ac_cv_func_alloca_works=yes
6578 else
6579   $as_echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582         ac_cv_func_alloca_works=no
6583 fi
6584
6585 rm -rf conftest.dSYM
6586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6587       conftest$ac_exeext conftest.$ac_ext
6588 fi
6589 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6590 $as_echo "$ac_cv_func_alloca_works" >&6; }
6591
6592 if test $ac_cv_func_alloca_works = yes; then
6593
6594 cat >>confdefs.h <<\_ACEOF
6595 #define HAVE_ALLOCA 1
6596 _ACEOF
6597
6598 else
6599   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6600 # that cause trouble.  Some versions do not even contain alloca or
6601 # contain a buggy version.  If you still want to use their alloca,
6602 # use ar to extract alloca.o from them instead of compiling alloca.c.
6603
6604
6605
6606
6607
6608 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6609
6610 cat >>confdefs.h <<\_ACEOF
6611 #define C_ALLOCA 1
6612 _ACEOF
6613
6614
6615 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6616 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6617 if test "${ac_cv_os_cray+set}" = set; then
6618   $as_echo_n "(cached) " >&6
6619 else
6620   cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h.  */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h.  */
6626 #if defined CRAY && ! defined CRAY2
6627 webecray
6628 #else
6629 wenotbecray
6630 #endif
6631
6632 _ACEOF
6633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6634   $EGREP "webecray" >/dev/null 2>&1; then
6635   ac_cv_os_cray=yes
6636 else
6637   ac_cv_os_cray=no
6638 fi
6639 rm -f conftest*
6640
6641 fi
6642 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6643 $as_echo "$ac_cv_os_cray" >&6; }
6644 if test $ac_cv_os_cray = yes; then
6645   for ac_func in _getb67 GETB67 getb67; do
6646     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6648 $as_echo_n "checking for $ac_func... " >&6; }
6649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6650   $as_echo_n "(cached) " >&6
6651 else
6652   cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h.  */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h.  */
6658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6660 #define $ac_func innocuous_$ac_func
6661
6662 /* System header to define __stub macros and hopefully few prototypes,
6663     which can conflict with char $ac_func (); below.
6664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6665     <limits.h> exists even on freestanding compilers.  */
6666
6667 #ifdef __STDC__
6668 # include <limits.h>
6669 #else
6670 # include <assert.h>
6671 #endif
6672
6673 #undef $ac_func
6674
6675 /* Override any GCC internal prototype to avoid an error.
6676    Use char because int might match the return type of a GCC
6677    builtin and then its argument prototype would still apply.  */
6678 #ifdef __cplusplus
6679 extern "C"
6680 #endif
6681 char $ac_func ();
6682 /* The GNU C library defines this for functions which it implements
6683     to always fail with ENOSYS.  Some functions are actually named
6684     something starting with __ and the normal name is an alias.  */
6685 #if defined __stub_$ac_func || defined __stub___$ac_func
6686 choke me
6687 #endif
6688
6689 int
6690 main ()
6691 {
6692 return $ac_func ();
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705   (eval "$ac_link") 2>conftest.er1
6706   ac_status=$?
6707   grep -v '^ *+' conftest.er1 >conftest.err
6708   rm -f conftest.er1
6709   cat conftest.err >&5
6710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711   (exit $ac_status); } && {
6712          test -z "$ac_c_werror_flag" ||
6713          test ! -s conftest.err
6714        } && test -s conftest$ac_exeext && {
6715          test "$cross_compiling" = yes ||
6716          $as_test_x conftest$ac_exeext
6717        }; then
6718   eval "$as_ac_var=yes"
6719 else
6720   $as_echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723         eval "$as_ac_var=no"
6724 fi
6725
6726 rm -rf conftest.dSYM
6727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728       conftest$ac_exeext conftest.$ac_ext
6729 fi
6730 ac_res=`eval 'as_val=${'$as_ac_var'}
6731                  $as_echo "$as_val"'`
6732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6733 $as_echo "$ac_res" >&6; }
6734 as_val=`eval 'as_val=${'$as_ac_var'}
6735                  $as_echo "$as_val"'`
6736    if test "x$as_val" = x""yes; then
6737
6738 cat >>confdefs.h <<_ACEOF
6739 #define CRAY_STACKSEG_END $ac_func
6740 _ACEOF
6741
6742     break
6743 fi
6744
6745   done
6746 fi
6747
6748 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6749 $as_echo_n "checking stack direction for C alloca... " >&6; }
6750 if test "${ac_cv_c_stack_direction+set}" = set; then
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test "$cross_compiling" = yes; then
6754   ac_cv_c_stack_direction=0
6755 else
6756   cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762 $ac_includes_default
6763 int
6764 find_stack_direction ()
6765 {
6766   static char *addr = 0;
6767   auto char dummy;
6768   if (addr == 0)
6769     {
6770       addr = &dummy;
6771       return find_stack_direction ();
6772     }
6773   else
6774     return (&dummy > addr) ? 1 : -1;
6775 }
6776
6777 int
6778 main ()
6779 {
6780   return find_stack_direction () < 0;
6781 }
6782 _ACEOF
6783 rm -f conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6785 case "(($ac_try" in
6786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787   *) ac_try_echo=$ac_try;;
6788 esac
6789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790 $as_echo "$ac_try_echo") >&5
6791   (eval "$ac_link") 2>&5
6792   ac_status=$?
6793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6795   { (case "(($ac_try" in
6796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797   *) ac_try_echo=$ac_try;;
6798 esac
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801   (eval "$ac_try") 2>&5
6802   ac_status=$?
6803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); }; }; then
6805   ac_cv_c_stack_direction=1
6806 else
6807   $as_echo "$as_me: program exited with status $ac_status" >&5
6808 $as_echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6810
6811 ( exit $ac_status )
6812 ac_cv_c_stack_direction=-1
6813 fi
6814 rm -rf conftest.dSYM
6815 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6816 fi
6817
6818
6819 fi
6820 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6821 $as_echo "$ac_cv_c_stack_direction" >&6; }
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define STACK_DIRECTION $ac_cv_c_stack_direction
6825 _ACEOF
6826
6827
6828 fi
6829
6830
6831   GNULIB_INET_NTOP=0;
6832   GNULIB_INET_PTON=0;
6833     HAVE_DECL_INET_NTOP=1;
6834   HAVE_DECL_INET_PTON=1;
6835
6836
6837
6838
6839
6840
6841 for ac_header in $gl_header_list
6842 do
6843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6845   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6846 $as_echo_n "checking for $ac_header... " >&6; }
6847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6848   $as_echo_n "(cached) " >&6
6849 fi
6850 ac_res=`eval 'as_val=${'$as_ac_Header'}
6851                  $as_echo "$as_val"'`
6852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6854 else
6855   # Is the header compilable?
6856 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6857 $as_echo_n "checking $ac_header usability... " >&6; }
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864 $ac_includes_default
6865 #include <$ac_header>
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (ac_try="$ac_compile"
6869 case "(($ac_try" in
6870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871   *) ac_try_echo=$ac_try;;
6872 esac
6873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6874 $as_echo "$ac_try_echo") >&5
6875   (eval "$ac_compile") 2>conftest.er1
6876   ac_status=$?
6877   grep -v '^ *+' conftest.er1 >conftest.err
6878   rm -f conftest.er1
6879   cat conftest.err >&5
6880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } && {
6882          test -z "$ac_c_werror_flag" ||
6883          test ! -s conftest.err
6884        } && test -s conftest.$ac_objext; then
6885   ac_header_compiler=yes
6886 else
6887   $as_echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6889
6890         ac_header_compiler=no
6891 fi
6892
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6895 $as_echo "$ac_header_compiler" >&6; }
6896
6897 # Is the header present?
6898 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6899 $as_echo_n "checking $ac_header presence... " >&6; }
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h.  */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h.  */
6906 #include <$ac_header>
6907 _ACEOF
6908 if { (ac_try="$ac_cpp conftest.$ac_ext"
6909 case "(($ac_try" in
6910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911   *) ac_try_echo=$ac_try;;
6912 esac
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } >/dev/null && {
6922          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6923          test ! -s conftest.err
6924        }; then
6925   ac_header_preproc=yes
6926 else
6927   $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930   ac_header_preproc=no
6931 fi
6932
6933 rm -f conftest.err conftest.$ac_ext
6934 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6935 $as_echo "$ac_header_preproc" >&6; }
6936
6937 # So?  What about this header?
6938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6939   yes:no: )
6940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6941 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6944     ac_header_preproc=yes
6945     ;;
6946   no:yes:* )
6947     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6948 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6950 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6952 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6953     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6954 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6955     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6957     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6958 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6959
6960     ;;
6961 esac
6962 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 $as_echo_n "checking for $ac_header... " >&6; }
6964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6965   $as_echo_n "(cached) " >&6
6966 else
6967   eval "$as_ac_Header=\$ac_header_preproc"
6968 fi
6969 ac_res=`eval 'as_val=${'$as_ac_Header'}
6970                  $as_echo "$as_val"'`
6971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6972 $as_echo "$ac_res" >&6; }
6973
6974 fi
6975 as_val=`eval 'as_val=${'$as_ac_Header'}
6976                  $as_echo "$as_val"'`
6977    if test "x$as_val" = x""yes; then
6978   cat >>confdefs.h <<_ACEOF
6979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6980 _ACEOF
6981
6982 fi
6983
6984 done
6985
6986
6987
6988
6989
6990
6991
6992
6993   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
6994 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6995 if test "${gl_cv_have_include_next+set}" = set; then
6996   $as_echo_n "(cached) " >&6
6997 else
6998   rm -rf conftestd1a conftestd1b conftestd2
6999      mkdir conftestd1a conftestd1b conftestd2
7000                                                   cat <<EOF > conftestd1a/conftest.h
7001 #define DEFINED_IN_CONFTESTD1
7002 #include_next <conftest.h>
7003 #ifdef DEFINED_IN_CONFTESTD2
7004 int foo;
7005 #else
7006 #error "include_next doesn't work"
7007 #endif
7008 EOF
7009      cat <<EOF > conftestd1b/conftest.h
7010 #define DEFINED_IN_CONFTESTD1
7011 #include <stdio.h>
7012 #include_next <conftest.h>
7013 #ifdef DEFINED_IN_CONFTESTD2
7014 int foo;
7015 #else
7016 #error "include_next doesn't work"
7017 #endif
7018 EOF
7019      cat <<EOF > conftestd2/conftest.h
7020 #ifndef DEFINED_IN_CONFTESTD1
7021 #error "include_next test doesn't work"
7022 #endif
7023 #define DEFINED_IN_CONFTESTD2
7024 EOF
7025      gl_save_CPPFLAGS="$CPPFLAGS"
7026      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7027      cat >conftest.$ac_ext <<_ACEOF
7028 #include <conftest.h>
7029 _ACEOF
7030 rm -f conftest.$ac_objext
7031 if { (ac_try="$ac_compile"
7032 case "(($ac_try" in
7033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034   *) ac_try_echo=$ac_try;;
7035 esac
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038   (eval "$ac_compile") 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } && {
7045          test -z "$ac_c_werror_flag" ||
7046          test ! -s conftest.err
7047        } && test -s conftest.$ac_objext; then
7048   gl_cv_have_include_next=yes
7049 else
7050   $as_echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7054         cat >conftest.$ac_ext <<_ACEOF
7055 #include <conftest.h>
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061   *) ac_try_echo=$ac_try;;
7062 esac
7063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7064 $as_echo "$ac_try_echo") >&5
7065   (eval "$ac_compile") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } && {
7072          test -z "$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        } && test -s conftest.$ac_objext; then
7075   gl_cv_have_include_next=buggy
7076 else
7077   $as_echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080         gl_cv_have_include_next=no
7081 fi
7082
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084
7085 fi
7086
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088      CPPFLAGS="$gl_save_CPPFLAGS"
7089      rm -rf conftestd1a conftestd1b conftestd2
7090
7091 fi
7092 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
7093 $as_echo "$gl_cv_have_include_next" >&6; }
7094   PRAGMA_SYSTEM_HEADER=
7095   if test $gl_cv_have_include_next = yes; then
7096     INCLUDE_NEXT=include_next
7097     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7098     if test -n "$GCC"; then
7099       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7100     fi
7101   else
7102     if test $gl_cv_have_include_next = buggy; then
7103       INCLUDE_NEXT=include
7104       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7105     else
7106       INCLUDE_NEXT=include
7107       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7108     fi
7109   fi
7110
7111
7112
7113
7114 { $as_echo "$as_me:$LINENO: checking for inline" >&5
7115 $as_echo_n "checking for inline... " >&6; }
7116 if test "${ac_cv_c_inline+set}" = set; then
7117   $as_echo_n "(cached) " >&6
7118 else
7119   ac_cv_c_inline=no
7120 for ac_kw in inline __inline__ __inline; do
7121   cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h.  */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h.  */
7127 #ifndef __cplusplus
7128 typedef int foo_t;
7129 static $ac_kw foo_t static_foo () {return 0; }
7130 $ac_kw foo_t foo () {return 0; }
7131 #endif
7132
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138   *) ac_try_echo=$ac_try;;
7139 esac
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142   (eval "$ac_compile") 2>conftest.er1
7143   ac_status=$?
7144   grep -v '^ *+' conftest.er1 >conftest.err
7145   rm -f conftest.er1
7146   cat conftest.err >&5
7147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); } && {
7149          test -z "$ac_c_werror_flag" ||
7150          test ! -s conftest.err
7151        } && test -s conftest.$ac_objext; then
7152   ac_cv_c_inline=$ac_kw
7153 else
7154   $as_echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7156
7157
7158 fi
7159
7160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161   test "$ac_cv_c_inline" != no && break
7162 done
7163
7164 fi
7165 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7166 $as_echo "$ac_cv_c_inline" >&6; }
7167
7168
7169 case $ac_cv_c_inline in
7170   inline | yes) ;;
7171   *)
7172     case $ac_cv_c_inline in
7173       no) ac_val=;;
7174       *) ac_val=$ac_cv_c_inline;;
7175     esac
7176     cat >>confdefs.h <<_ACEOF
7177 #ifndef __cplusplus
7178 #define inline $ac_val
7179 #endif
7180 _ACEOF
7181     ;;
7182 esac
7183
7184 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7185 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7186 if test "${ac_cv_c_restrict+set}" = set; then
7187   $as_echo_n "(cached) " >&6
7188 else
7189   ac_cv_c_restrict=no
7190    # The order here caters to the fact that C++ does not require restrict.
7191    for ac_kw in __restrict __restrict__ _Restrict restrict; do
7192      cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 typedef int * int_ptr;
7199         int foo (int_ptr $ac_kw ip) {
7200         return ip[0];
7201        }
7202 int
7203 main ()
7204 {
7205 int s[1];
7206         int * $ac_kw t = s;
7207         t[0] = 0;
7208         return foo(t)
7209   ;
7210   return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7215 case "(($ac_try" in
7216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217   *) ac_try_echo=$ac_try;;
7218 esac
7219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7220 $as_echo "$ac_try_echo") >&5
7221   (eval "$ac_compile") 2>conftest.er1
7222   ac_status=$?
7223   grep -v '^ *+' conftest.er1 >conftest.err
7224   rm -f conftest.er1
7225   cat conftest.err >&5
7226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); } && {
7228          test -z "$ac_c_werror_flag" ||
7229          test ! -s conftest.err
7230        } && test -s conftest.$ac_objext; then
7231   ac_cv_c_restrict=$ac_kw
7232 else
7233   $as_echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236
7237 fi
7238
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240      test "$ac_cv_c_restrict" != no && break
7241    done
7242
7243 fi
7244 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
7245 $as_echo "$ac_cv_c_restrict" >&6; }
7246
7247
7248  case $ac_cv_c_restrict in
7249    restrict) ;;
7250    no) cat >>confdefs.h <<\_ACEOF
7251 #define restrict /**/
7252 _ACEOF
7253  ;;
7254    *)  cat >>confdefs.h <<_ACEOF
7255 #define restrict $ac_cv_c_restrict
7256 _ACEOF
7257  ;;
7258  esac
7259
7260
7261   GNULIB_BTOWC=0;
7262   GNULIB_WCTOB=0;
7263   GNULIB_MBSINIT=0;
7264   GNULIB_MBRTOWC=0;
7265   GNULIB_MBRLEN=0;
7266   GNULIB_MBSRTOWCS=0;
7267   GNULIB_MBSNRTOWCS=0;
7268   GNULIB_WCRTOMB=0;
7269   GNULIB_WCSRTOMBS=0;
7270   GNULIB_WCSNRTOMBS=0;
7271   GNULIB_WCWIDTH=0;
7272     HAVE_BTOWC=1;
7273   HAVE_MBSINIT=1;
7274   HAVE_MBRTOWC=1;
7275   HAVE_MBRLEN=1;
7276   HAVE_MBSRTOWCS=1;
7277   HAVE_MBSNRTOWCS=1;
7278   HAVE_WCRTOMB=1;
7279   HAVE_WCSRTOMBS=1;
7280   HAVE_WCSNRTOMBS=1;
7281   HAVE_DECL_WCTOB=1;
7282   HAVE_DECL_WCWIDTH=1;
7283   REPLACE_MBSTATE_T=0;
7284   REPLACE_BTOWC=0;
7285   REPLACE_WCTOB=0;
7286   REPLACE_MBSINIT=0;
7287   REPLACE_MBRTOWC=0;
7288   REPLACE_MBRLEN=0;
7289   REPLACE_MBSRTOWCS=0;
7290   REPLACE_MBSNRTOWCS=0;
7291   REPLACE_WCRTOMB=0;
7292   REPLACE_WCSRTOMBS=0;
7293   REPLACE_WCSNRTOMBS=0;
7294   REPLACE_WCWIDTH=0;
7295
7296
7297             { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
7298 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
7299 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
7300   $as_echo_n "(cached) " >&6
7301 else
7302   gl_cv_header_wchar_h_correct_inline=yes
7303      cat >conftest.$ac_ext <<_ACEOF
7304
7305        /* confdefs.h.  */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h.  */
7310 #define wcstod renamed_wcstod
7311 #include <wchar.h>
7312 extern int zero (void);
7313 int main () { return zero(); }
7314
7315 _ACEOF
7316      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317   (eval $ac_compile) 2>&5
7318   ac_status=$?
7319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; then
7321        mv conftest.$ac_objext conftest1.$ac_objext
7322        cat >conftest.$ac_ext <<_ACEOF
7323
7324          /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 #define wcstod renamed_wcstod
7330 #include <wchar.h>
7331 int zero (void) { return 0; }
7332
7333 _ACEOF
7334        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7335   (eval $ac_compile) 2>&5
7336   ac_status=$?
7337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; then
7339          mv conftest.$ac_objext conftest2.$ac_objext
7340          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
7341            :
7342          else
7343            gl_cv_header_wchar_h_correct_inline=no
7344          fi
7345        fi
7346      fi
7347      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
7348
7349 fi
7350 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
7351 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
7352   if test $gl_cv_header_wchar_h_correct_inline = no; then
7353     { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7354 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7355 C99 mode. You have four options:
7356   - Add the flag -fgnu89-inline to CC and reconfigure, or
7357   - Fix your include files, using parts of
7358     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7359   - Use a gcc version older than 4.3, or
7360   - Don't use the flags -std=c99 or -std=gnu99.
7361 Configuration aborted." >&5
7362 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
7363 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
7364 C99 mode. You have four options:
7365   - Add the flag -fgnu89-inline to CC and reconfigure, or
7366   - Fix your include files, using parts of
7367     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
7368   - Use a gcc version older than 4.3, or
7369   - Don't use the flags -std=c99 or -std=gnu99.
7370 Configuration aborted." >&2;}
7371    { (exit 1); exit 1; }; }
7372   fi
7373
7374
7375
7376
7377
7378
7379 for ac_func in $gl_func_list
7380 do
7381 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7382 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7383 $as_echo_n "checking for $ac_func... " >&6; }
7384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7385   $as_echo_n "(cached) " >&6
7386 else
7387   cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7395 #define $ac_func innocuous_$ac_func
7396
7397 /* System header to define __stub macros and hopefully few prototypes,
7398     which can conflict with char $ac_func (); below.
7399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400     <limits.h> exists even on freestanding compilers.  */
7401
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407
7408 #undef $ac_func
7409
7410 /* Override any GCC internal prototype to avoid an error.
7411    Use char because int might match the return type of a GCC
7412    builtin and then its argument prototype would still apply.  */
7413 #ifdef __cplusplus
7414 extern "C"
7415 #endif
7416 char $ac_func ();
7417 /* The GNU C library defines this for functions which it implements
7418     to always fail with ENOSYS.  Some functions are actually named
7419     something starting with __ and the normal name is an alias.  */
7420 #if defined __stub_$ac_func || defined __stub___$ac_func
7421 choke me
7422 #endif
7423
7424 int
7425 main ()
7426 {
7427 return $ac_func ();
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext conftest$ac_exeext
7433 if { (ac_try="$ac_link"
7434 case "(($ac_try" in
7435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436   *) ac_try_echo=$ac_try;;
7437 esac
7438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7439 $as_echo "$ac_try_echo") >&5
7440   (eval "$ac_link") 2>conftest.er1
7441   ac_status=$?
7442   grep -v '^ *+' conftest.er1 >conftest.err
7443   rm -f conftest.er1
7444   cat conftest.err >&5
7445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); } && {
7447          test -z "$ac_c_werror_flag" ||
7448          test ! -s conftest.err
7449        } && test -s conftest$ac_exeext && {
7450          test "$cross_compiling" = yes ||
7451          $as_test_x conftest$ac_exeext
7452        }; then
7453   eval "$as_ac_var=yes"
7454 else
7455   $as_echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458         eval "$as_ac_var=no"
7459 fi
7460
7461 rm -rf conftest.dSYM
7462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7463       conftest$ac_exeext conftest.$ac_ext
7464 fi
7465 ac_res=`eval 'as_val=${'$as_ac_var'}
7466                  $as_echo "$as_val"'`
7467                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7468 $as_echo "$ac_res" >&6; }
7469 as_val=`eval 'as_val=${'$as_ac_var'}
7470                  $as_echo "$as_val"'`
7471    if test "x$as_val" = x""yes; then
7472   cat >>confdefs.h <<_ACEOF
7473 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7474 _ACEOF
7475
7476 fi
7477 done
7478
7479
7480
7481
7482
7483
7484
7485   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7486 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7487 if test "${am_cv_langinfo_codeset+set}" = set; then
7488   $as_echo_n "(cached) " >&6
7489 else
7490   cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h.  */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h.  */
7496 #include <langinfo.h>
7497 int
7498 main ()
7499 {
7500 char* cs = nl_langinfo(CODESET);
7501   ;
7502   return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext conftest$ac_exeext
7506 if { (ac_try="$ac_link"
7507 case "(($ac_try" in
7508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509   *) ac_try_echo=$ac_try;;
7510 esac
7511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512 $as_echo "$ac_try_echo") >&5
7513   (eval "$ac_link") 2>conftest.er1
7514   ac_status=$?
7515   grep -v '^ *+' conftest.er1 >conftest.err
7516   rm -f conftest.er1
7517   cat conftest.err >&5
7518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } && {
7520          test -z "$ac_c_werror_flag" ||
7521          test ! -s conftest.err
7522        } && test -s conftest$ac_exeext && {
7523          test "$cross_compiling" = yes ||
7524          $as_test_x conftest$ac_exeext
7525        }; then
7526   am_cv_langinfo_codeset=yes
7527 else
7528   $as_echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531         am_cv_langinfo_codeset=no
7532 fi
7533
7534 rm -rf conftest.dSYM
7535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7536       conftest$ac_exeext conftest.$ac_ext
7537
7538 fi
7539 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
7540 $as_echo "$am_cv_langinfo_codeset" >&6; }
7541   if test $am_cv_langinfo_codeset = yes; then
7542
7543 cat >>confdefs.h <<\_ACEOF
7544 #define HAVE_LANGINFO_CODESET 1
7545 _ACEOF
7546
7547   fi
7548
7549
7550
7551
7552   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
7553 $as_echo_n "checking for a traditional french locale... " >&6; }
7554 if test "${gt_cv_locale_fr+set}" = set; then
7555   $as_echo_n "(cached) " >&6
7556 else
7557
7558     cat >conftest.$ac_ext <<_ACEOF
7559 /* confdefs.h.  */
7560 _ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h.  */
7564
7565 #include <locale.h>
7566 #include <time.h>
7567 #if HAVE_LANGINFO_CODESET
7568 # include <langinfo.h>
7569 #endif
7570 #include <stdlib.h>
7571 #include <string.h>
7572 struct tm t;
7573 char buf[16];
7574 int main () {
7575   /* Check whether the given locale name is recognized by the system.  */
7576   if (setlocale (LC_ALL, "") == NULL) return 1;
7577   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7578      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7579      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7580      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7581      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7582      some unit tests fail.  */
7583 #if HAVE_LANGINFO_CODESET
7584   {
7585     const char *cs = nl_langinfo (CODESET);
7586     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7587       return 1;
7588   }
7589 #endif
7590 #ifdef __CYGWIN__
7591   /* On Cygwin, avoid locale names without encoding suffix, because the
7592      locale_charset() function relies on the encoding suffix.  Note that
7593      LC_ALL is set on the command line.  */
7594   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7595 #endif
7596   /* Check whether in the abbreviation of the second month, the second
7597      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7598      one byte long. This excludes the UTF-8 encoding.  */
7599   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7600   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7601   /* Check whether the decimal separator is a comma.
7602      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7603      are nl_langinfo(RADIXCHAR) are both ".".  */
7604   if (localeconv () ->decimal_point[0] != ',') return 1;
7605   return 0;
7606 }
7607
7608 _ACEOF
7609     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610   (eval $ac_link) 2>&5
7611   ac_status=$?
7612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); } && test -s conftest$ac_exeext; then
7614       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7615       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
7616       # configure script would override the LC_ALL setting. Likewise for
7617       # LC_CTYPE, which is also set at the beginning of the configure script.
7618       # Test for the usual locale name.
7619       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7620         gt_cv_locale_fr=fr_FR
7621       else
7622         # Test for the locale name with explicit encoding suffix.
7623         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7624           gt_cv_locale_fr=fr_FR.ISO-8859-1
7625         else
7626           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7627           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7628             gt_cv_locale_fr=fr_FR.ISO8859-1
7629           else
7630             # Test for the HP-UX locale name.
7631             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7632               gt_cv_locale_fr=fr_FR.iso88591
7633             else
7634               # Test for the Solaris 7 locale name.
7635               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7636                 gt_cv_locale_fr=fr
7637               else
7638                 # None found.
7639                 gt_cv_locale_fr=none
7640               fi
7641             fi
7642           fi
7643         fi
7644       fi
7645     fi
7646     rm -fr conftest*
7647
7648 fi
7649 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
7650 $as_echo "$gt_cv_locale_fr" >&6; }
7651   LOCALE_FR=$gt_cv_locale_fr
7652
7653
7654
7655   GNULIB_CHOWN=0;
7656   GNULIB_CLOSE=0;
7657   GNULIB_DUP2=0;
7658   GNULIB_DUP3=0;
7659   GNULIB_ENVIRON=0;
7660   GNULIB_EUIDACCESS=0;
7661   GNULIB_FACCESSAT=0;
7662   GNULIB_FCHDIR=0;
7663   GNULIB_FCHOWNAT=0;
7664   GNULIB_FSYNC=0;
7665   GNULIB_FTRUNCATE=0;
7666   GNULIB_GETCWD=0;
7667   GNULIB_GETDOMAINNAME=0;
7668   GNULIB_GETDTABLESIZE=0;
7669   GNULIB_GETGROUPS=0;
7670   GNULIB_GETHOSTNAME=0;
7671   GNULIB_GETLOGIN=0;
7672   GNULIB_GETLOGIN_R=0;
7673   GNULIB_GETPAGESIZE=0;
7674   GNULIB_GETUSERSHELL=0;
7675   GNULIB_LCHOWN=0;
7676   GNULIB_LINK=0;
7677   GNULIB_LINKAT=0;
7678   GNULIB_LSEEK=0;
7679   GNULIB_PIPE2=0;
7680   GNULIB_PREAD=0;
7681   GNULIB_PWRITE=0;
7682   GNULIB_READLINK=0;
7683   GNULIB_READLINKAT=0;
7684   GNULIB_RMDIR=0;
7685   GNULIB_SLEEP=0;
7686   GNULIB_SYMLINK=0;
7687   GNULIB_SYMLINKAT=0;
7688   GNULIB_TTYNAME_R=0;
7689   GNULIB_UNISTD_H_GETOPT=0;
7690   GNULIB_UNISTD_H_SIGPIPE=0;
7691   GNULIB_UNLINK=0;
7692   GNULIB_UNLINKAT=0;
7693   GNULIB_USLEEP=0;
7694   GNULIB_WRITE=0;
7695     HAVE_CHOWN=1;
7696   HAVE_DUP2=1;
7697   HAVE_DUP3=1;
7698   HAVE_EUIDACCESS=1;
7699   HAVE_FACCESSAT=1;
7700   HAVE_FCHDIR=1;
7701   HAVE_FCHOWNAT=1;
7702   HAVE_FSYNC=1;
7703   HAVE_FTRUNCATE=1;
7704   HAVE_GETDOMAINNAME=1;
7705   HAVE_GETDTABLESIZE=1;
7706   HAVE_GETGROUPS=1;
7707   HAVE_GETHOSTNAME=1;
7708   HAVE_GETLOGIN=1;
7709   HAVE_GETPAGESIZE=1;
7710   HAVE_LCHOWN=1;
7711   HAVE_LINK=1;
7712   HAVE_LINKAT=1;
7713   HAVE_PIPE2=1;
7714   HAVE_PREAD=1;
7715   HAVE_PWRITE=1;
7716   HAVE_READLINK=1;
7717   HAVE_READLINKAT=1;
7718   HAVE_SLEEP=1;
7719   HAVE_SYMLINK=1;
7720   HAVE_SYMLINKAT=1;
7721   HAVE_TTYNAME_R=1;
7722   HAVE_UNLINKAT=1;
7723   HAVE_USLEEP=1;
7724   HAVE_DECL_ENVIRON=1;
7725   HAVE_DECL_GETLOGIN_R=1;
7726   HAVE_DECL_GETPAGESIZE=1;
7727   HAVE_DECL_GETUSERSHELL=1;
7728   HAVE_OS_H=0;
7729   HAVE_SYS_PARAM_H=0;
7730   REPLACE_CHOWN=0;
7731   REPLACE_CLOSE=0;
7732   REPLACE_DUP=0;
7733   REPLACE_DUP2=0;
7734   REPLACE_FCHOWNAT=0;
7735   REPLACE_GETCWD=0;
7736   REPLACE_GETGROUPS=0;
7737   REPLACE_GETPAGESIZE=0;
7738   REPLACE_LCHOWN=0;
7739   REPLACE_LINK=0;
7740   REPLACE_LINKAT=0;
7741   REPLACE_LSEEK=0;
7742   REPLACE_PREAD=0;
7743   REPLACE_PWRITE=0;
7744   REPLACE_READLINK=0;
7745   REPLACE_RMDIR=0;
7746   REPLACE_SLEEP=0;
7747   REPLACE_SYMLINK=0;
7748   REPLACE_TTYNAME_R=0;
7749   REPLACE_UNLINK=0;
7750   REPLACE_UNLINKAT=0;
7751   REPLACE_USLEEP=0;
7752   REPLACE_WRITE=0;
7753   UNISTD_H_HAVE_WINSOCK2_H=0;
7754   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7755
7756
7757
7758
7759
7760
7761
7762   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
7763 $as_echo_n "checking if environ is properly declared... " >&6; }
7764   if test "${gt_cv_var_environ_declaration+set}" = set; then
7765   $as_echo_n "(cached) " >&6
7766 else
7767
7768     cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h.  */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h.  */
7774 #include <unistd.h>
7775            extern struct { int foo; } environ;
7776 int
7777 main ()
7778 {
7779 environ.foo = 1;
7780   ;
7781   return 0;
7782 }
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7786 case "(($ac_try" in
7787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788   *) ac_try_echo=$ac_try;;
7789 esac
7790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7791 $as_echo "$ac_try_echo") >&5
7792   (eval "$ac_compile") 2>conftest.er1
7793   ac_status=$?
7794   grep -v '^ *+' conftest.er1 >conftest.err
7795   rm -f conftest.er1
7796   cat conftest.err >&5
7797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); } && {
7799          test -z "$ac_c_werror_flag" ||
7800          test ! -s conftest.err
7801        } && test -s conftest.$ac_objext; then
7802   gt_cv_var_environ_declaration=no
7803 else
7804   $as_echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.$ac_ext >&5
7806
7807         gt_cv_var_environ_declaration=yes
7808 fi
7809
7810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 fi
7812
7813   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
7814 $as_echo "$gt_cv_var_environ_declaration" >&6; }
7815   if test $gt_cv_var_environ_declaration = yes; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define HAVE_ENVIRON_DECL 1
7819 _ACEOF
7820
7821   fi
7822
7823
7824   if test $gt_cv_var_environ_declaration != yes; then
7825     HAVE_DECL_ENVIRON=0
7826   fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
7837 $as_echo_n "checking for complete errno.h... " >&6; }
7838 if test "${gl_cv_header_errno_h_complete+set}" = set; then
7839   $as_echo_n "(cached) " >&6
7840 else
7841
7842     cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h.  */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h.  */
7848
7849 #include <errno.h>
7850 #if !defined ENOMSG
7851 booboo
7852 #endif
7853 #if !defined EIDRM
7854 booboo
7855 #endif
7856 #if !defined ENOLINK
7857 booboo
7858 #endif
7859 #if !defined EPROTO
7860 booboo
7861 #endif
7862 #if !defined EMULTIHOP
7863 booboo
7864 #endif
7865 #if !defined EBADMSG
7866 booboo
7867 #endif
7868 #if !defined EOVERFLOW
7869 booboo
7870 #endif
7871 #if !defined ENOTSUP
7872 booboo
7873 #endif
7874 #if !defined ESTALE
7875 booboo
7876 #endif
7877 #if !defined ECANCELED
7878 booboo
7879 #endif
7880
7881 _ACEOF
7882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883   $EGREP "booboo" >/dev/null 2>&1; then
7884   gl_cv_header_errno_h_complete=no
7885 else
7886   gl_cv_header_errno_h_complete=yes
7887 fi
7888 rm -f conftest*
7889
7890
7891 fi
7892 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
7893 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7894   if test $gl_cv_header_errno_h_complete = yes; then
7895     ERRNO_H=''
7896   else
7897
7898
7899
7900
7901   :
7902
7903
7904
7905
7906
7907
7908
7909      if test $gl_cv_have_include_next = yes; then
7910        gl_cv_next_errno_h='<'errno.h'>'
7911      else
7912        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
7913 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7914 if test "${gl_cv_next_errno_h+set}" = set; then
7915   $as_echo_n "(cached) " >&6
7916 else
7917
7918           if test $ac_cv_header_errno_h = yes; then
7919             cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 #include <errno.h>
7926
7927 _ACEOF
7928                                                                                                 case "$host_os" in
7929               aix*) gl_absname_cpp="$ac_cpp -C" ;;
7930               *)    gl_absname_cpp="$ac_cpp" ;;
7931             esac
7932                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7933                sed -n '\#/errno.h#{
7934                  s#.*"\(.*/errno.h\)".*#\1#
7935                  s#^/[^/]#//&#
7936                  p
7937                  q
7938                }'`'"'
7939           else
7940             gl_cv_next_errno_h='<'errno.h'>'
7941           fi
7942
7943 fi
7944 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7945 $as_echo "$gl_cv_next_errno_h" >&6; }
7946      fi
7947      NEXT_ERRNO_H=$gl_cv_next_errno_h
7948
7949      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7950        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7951        gl_next_as_first_directive='<'errno.h'>'
7952      else
7953        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7954        gl_next_as_first_directive=$gl_cv_next_errno_h
7955      fi
7956      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7957
7958
7959
7960     ERRNO_H='errno.h'
7961   fi
7962
7963
7964   if test -n "$ERRNO_H"; then
7965     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7966 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7967 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7968   $as_echo_n "(cached) " >&6
7969 else
7970
7971       cat >conftest.$ac_ext <<_ACEOF
7972 /* confdefs.h.  */
7973 _ACEOF
7974 cat confdefs.h >>conftest.$ac_ext
7975 cat >>conftest.$ac_ext <<_ACEOF
7976 /* end confdefs.h.  */
7977
7978 #include <errno.h>
7979 #ifdef EMULTIHOP
7980 yes
7981 #endif
7982
7983 _ACEOF
7984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7985   $EGREP "yes" >/dev/null 2>&1; then
7986   gl_cv_header_errno_h_EMULTIHOP=yes
7987 else
7988   gl_cv_header_errno_h_EMULTIHOP=no
7989 fi
7990 rm -f conftest*
7991
7992       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7993         cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000 #define _XOPEN_SOURCE_EXTENDED 1
8001 #include <errno.h>
8002 #ifdef EMULTIHOP
8003 yes
8004 #endif
8005
8006 _ACEOF
8007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8008   $EGREP "yes" >/dev/null 2>&1; then
8009   gl_cv_header_errno_h_EMULTIHOP=hidden
8010 fi
8011 rm -f conftest*
8012
8013         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8014                               if test "$cross_compiling" = yes; then
8015   # Depending upon the size, compute the lo and hi bounds.
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h.  */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h.  */
8022
8023 #define _XOPEN_SOURCE_EXTENDED 1
8024 #include <errno.h>
8025 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8026 #include <stdio.h>
8027 #include <stdlib.h>
8028
8029 int
8030 main ()
8031 {
8032 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
8033 test_array [0] = 0
8034
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8046 $as_echo "$ac_try_echo") >&5
8047   (eval "$ac_compile") 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } && {
8054          test -z "$ac_c_werror_flag" ||
8055          test ! -s conftest.err
8056        } && test -s conftest.$ac_objext; then
8057   ac_lo=0 ac_mid=0
8058   while :; do
8059     cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065
8066 #define _XOPEN_SOURCE_EXTENDED 1
8067 #include <errno.h>
8068 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8069 #include <stdio.h>
8070 #include <stdlib.h>
8071
8072 int
8073 main ()
8074 {
8075 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8076 test_array [0] = 0
8077
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090   (eval "$ac_compile") 2>conftest.er1
8091   ac_status=$?
8092   grep -v '^ *+' conftest.er1 >conftest.err
8093   rm -f conftest.er1
8094   cat conftest.err >&5
8095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } && {
8097          test -z "$ac_c_werror_flag" ||
8098          test ! -s conftest.err
8099        } && test -s conftest.$ac_objext; then
8100   ac_hi=$ac_mid; break
8101 else
8102   $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105         ac_lo=`expr $ac_mid + 1`
8106                         if test $ac_lo -le $ac_mid; then
8107                           ac_lo= ac_hi=
8108                           break
8109                         fi
8110                         ac_mid=`expr 2 '*' $ac_mid + 1`
8111 fi
8112
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114   done
8115 else
8116   $as_echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119         cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125
8126 #define _XOPEN_SOURCE_EXTENDED 1
8127 #include <errno.h>
8128 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8129 #include <stdio.h>
8130 #include <stdlib.h>
8131
8132 int
8133 main ()
8134 {
8135 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
8136 test_array [0] = 0
8137
8138   ;
8139   return 0;
8140 }
8141 _ACEOF
8142 rm -f conftest.$ac_objext
8143 if { (ac_try="$ac_compile"
8144 case "(($ac_try" in
8145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146   *) ac_try_echo=$ac_try;;
8147 esac
8148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8149 $as_echo "$ac_try_echo") >&5
8150   (eval "$ac_compile") 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } && {
8157          test -z "$ac_c_werror_flag" ||
8158          test ! -s conftest.err
8159        } && test -s conftest.$ac_objext; then
8160   ac_hi=-1 ac_mid=-1
8161   while :; do
8162     cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168
8169 #define _XOPEN_SOURCE_EXTENDED 1
8170 #include <errno.h>
8171 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8172 #include <stdio.h>
8173 #include <stdlib.h>
8174
8175 int
8176 main ()
8177 {
8178 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
8179 test_array [0] = 0
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (ac_try="$ac_compile"
8187 case "(($ac_try" in
8188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8189   *) ac_try_echo=$ac_try;;
8190 esac
8191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8192 $as_echo "$ac_try_echo") >&5
8193   (eval "$ac_compile") 2>conftest.er1
8194   ac_status=$?
8195   grep -v '^ *+' conftest.er1 >conftest.err
8196   rm -f conftest.er1
8197   cat conftest.err >&5
8198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199   (exit $ac_status); } && {
8200          test -z "$ac_c_werror_flag" ||
8201          test ! -s conftest.err
8202        } && test -s conftest.$ac_objext; then
8203   ac_lo=$ac_mid; break
8204 else
8205   $as_echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208         ac_hi=`expr '(' $ac_mid ')' - 1`
8209                         if test $ac_mid -le $ac_hi; then
8210                           ac_lo= ac_hi=
8211                           break
8212                         fi
8213                         ac_mid=`expr 2 '*' $ac_mid`
8214 fi
8215
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217   done
8218 else
8219   $as_echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222         ac_lo= ac_hi=
8223 fi
8224
8225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226 fi
8227
8228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8229 # Binary search between lo and hi bounds.
8230 while test "x$ac_lo" != "x$ac_hi"; do
8231   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8232   cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h.  */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h.  */
8238
8239 #define _XOPEN_SOURCE_EXTENDED 1
8240 #include <errno.h>
8241 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8242 #include <stdio.h>
8243 #include <stdlib.h>
8244
8245 int
8246 main ()
8247 {
8248 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
8249 test_array [0] = 0
8250
8251   ;
8252   return 0;
8253 }
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8257 case "(($ac_try" in
8258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8259   *) ac_try_echo=$ac_try;;
8260 esac
8261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8262 $as_echo "$ac_try_echo") >&5
8263   (eval "$ac_compile") 2>conftest.er1
8264   ac_status=$?
8265   grep -v '^ *+' conftest.er1 >conftest.err
8266   rm -f conftest.er1
8267   cat conftest.err >&5
8268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } && {
8270          test -z "$ac_c_werror_flag" ||
8271          test ! -s conftest.err
8272        } && test -s conftest.$ac_objext; then
8273   ac_hi=$ac_mid
8274 else
8275   $as_echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278         ac_lo=`expr '(' $ac_mid ')' + 1`
8279 fi
8280
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 done
8283 case $ac_lo in
8284 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
8285 '')  ;;
8286 esac
8287 else
8288   cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h.  */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h.  */
8294
8295 #define _XOPEN_SOURCE_EXTENDED 1
8296 #include <errno.h>
8297 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8298 #include <stdio.h>
8299 #include <stdlib.h>
8300
8301 static long int longval () { return EMULTIHOP; }
8302 static unsigned long int ulongval () { return EMULTIHOP; }
8303 #include <stdio.h>
8304 #include <stdlib.h>
8305 int
8306 main ()
8307 {
8308
8309   FILE *f = fopen ("conftest.val", "w");
8310   if (! f)
8311     return 1;
8312   if ((EMULTIHOP) < 0)
8313     {
8314       long int i = longval ();
8315       if (i != (EMULTIHOP))
8316         return 1;
8317       fprintf (f, "%ld", i);
8318     }
8319   else
8320     {
8321       unsigned long int i = ulongval ();
8322       if (i != (EMULTIHOP))
8323         return 1;
8324       fprintf (f, "%lu", i);
8325     }
8326   /* Do not output a trailing newline, as this causes \r\n confusion
8327      on some platforms.  */
8328   return ferror (f) || fclose (f) != 0;
8329
8330   ;
8331   return 0;
8332 }
8333 _ACEOF
8334 rm -f conftest$ac_exeext
8335 if { (ac_try="$ac_link"
8336 case "(($ac_try" in
8337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338   *) ac_try_echo=$ac_try;;
8339 esac
8340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8341 $as_echo "$ac_try_echo") >&5
8342   (eval "$ac_link") 2>&5
8343   ac_status=$?
8344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8346   { (case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8351 $as_echo "$ac_try_echo") >&5
8352   (eval "$ac_try") 2>&5
8353   ac_status=$?
8354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; }; then
8356   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
8357 else
8358   $as_echo "$as_me: program exited with status $ac_status" >&5
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8361
8362 fi
8363 rm -rf conftest.dSYM
8364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 rm -f conftest.val
8367         fi
8368       fi
8369
8370 fi
8371 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8372 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8373     case $gl_cv_header_errno_h_EMULTIHOP in
8374       yes | no)
8375         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8376         ;;
8377       *)
8378         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8379         ;;
8380     esac
8381
8382
8383   fi
8384
8385
8386   if test -n "$ERRNO_H"; then
8387     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
8388 $as_echo_n "checking for ENOLINK value... " >&6; }
8389 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
8390   $as_echo_n "(cached) " >&6
8391 else
8392
8393       cat >conftest.$ac_ext <<_ACEOF
8394 /* confdefs.h.  */
8395 _ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h.  */
8399
8400 #include <errno.h>
8401 #ifdef ENOLINK
8402 yes
8403 #endif
8404
8405 _ACEOF
8406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8407   $EGREP "yes" >/dev/null 2>&1; then
8408   gl_cv_header_errno_h_ENOLINK=yes
8409 else
8410   gl_cv_header_errno_h_ENOLINK=no
8411 fi
8412 rm -f conftest*
8413
8414       if test $gl_cv_header_errno_h_ENOLINK = no; then
8415         cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421
8422 #define _XOPEN_SOURCE_EXTENDED 1
8423 #include <errno.h>
8424 #ifdef ENOLINK
8425 yes
8426 #endif
8427
8428 _ACEOF
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430   $EGREP "yes" >/dev/null 2>&1; then
8431   gl_cv_header_errno_h_ENOLINK=hidden
8432 fi
8433 rm -f conftest*
8434
8435         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
8436                               if test "$cross_compiling" = yes; then
8437   # Depending upon the size, compute the lo and hi bounds.
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h.  */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h.  */
8444
8445 #define _XOPEN_SOURCE_EXTENDED 1
8446 #include <errno.h>
8447 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8448 #include <stdio.h>
8449 #include <stdlib.h>
8450
8451 int
8452 main ()
8453 {
8454 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
8455 test_array [0] = 0
8456
8457   ;
8458   return 0;
8459 }
8460 _ACEOF
8461 rm -f conftest.$ac_objext
8462 if { (ac_try="$ac_compile"
8463 case "(($ac_try" in
8464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465   *) ac_try_echo=$ac_try;;
8466 esac
8467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8468 $as_echo "$ac_try_echo") >&5
8469   (eval "$ac_compile") 2>conftest.er1
8470   ac_status=$?
8471   grep -v '^ *+' conftest.er1 >conftest.err
8472   rm -f conftest.er1
8473   cat conftest.err >&5
8474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475   (exit $ac_status); } && {
8476          test -z "$ac_c_werror_flag" ||
8477          test ! -s conftest.err
8478        } && test -s conftest.$ac_objext; then
8479   ac_lo=0 ac_mid=0
8480   while :; do
8481     cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487
8488 #define _XOPEN_SOURCE_EXTENDED 1
8489 #include <errno.h>
8490 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8491 #include <stdio.h>
8492 #include <stdlib.h>
8493
8494 int
8495 main ()
8496 {
8497 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8498 test_array [0] = 0
8499
8500   ;
8501   return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8511 $as_echo "$ac_try_echo") >&5
8512   (eval "$ac_compile") 2>conftest.er1
8513   ac_status=$?
8514   grep -v '^ *+' conftest.er1 >conftest.err
8515   rm -f conftest.er1
8516   cat conftest.err >&5
8517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } && {
8519          test -z "$ac_c_werror_flag" ||
8520          test ! -s conftest.err
8521        } && test -s conftest.$ac_objext; then
8522   ac_hi=$ac_mid; break
8523 else
8524   $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527         ac_lo=`expr $ac_mid + 1`
8528                         if test $ac_lo -le $ac_mid; then
8529                           ac_lo= ac_hi=
8530                           break
8531                         fi
8532                         ac_mid=`expr 2 '*' $ac_mid + 1`
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536   done
8537 else
8538   $as_echo "$as_me: failed program was:" >&5
8539 sed 's/^/| /' conftest.$ac_ext >&5
8540
8541         cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547
8548 #define _XOPEN_SOURCE_EXTENDED 1
8549 #include <errno.h>
8550 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8551 #include <stdio.h>
8552 #include <stdlib.h>
8553
8554 int
8555 main ()
8556 {
8557 static int test_array [1 - 2 * !((ENOLINK) < 0)];
8558 test_array [0] = 0
8559
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (ac_try="$ac_compile"
8566 case "(($ac_try" in
8567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568   *) ac_try_echo=$ac_try;;
8569 esac
8570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8571 $as_echo "$ac_try_echo") >&5
8572   (eval "$ac_compile") 2>conftest.er1
8573   ac_status=$?
8574   grep -v '^ *+' conftest.er1 >conftest.err
8575   rm -f conftest.er1
8576   cat conftest.err >&5
8577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); } && {
8579          test -z "$ac_c_werror_flag" ||
8580          test ! -s conftest.err
8581        } && test -s conftest.$ac_objext; then
8582   ac_hi=-1 ac_mid=-1
8583   while :; do
8584     cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590
8591 #define _XOPEN_SOURCE_EXTENDED 1
8592 #include <errno.h>
8593 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8594 #include <stdio.h>
8595 #include <stdlib.h>
8596
8597 int
8598 main ()
8599 {
8600 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
8601 test_array [0] = 0
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8614 $as_echo "$ac_try_echo") >&5
8615   (eval "$ac_compile") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } && {
8622          test -z "$ac_c_werror_flag" ||
8623          test ! -s conftest.err
8624        } && test -s conftest.$ac_objext; then
8625   ac_lo=$ac_mid; break
8626 else
8627   $as_echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630         ac_hi=`expr '(' $ac_mid ')' - 1`
8631                         if test $ac_mid -le $ac_hi; then
8632                           ac_lo= ac_hi=
8633                           break
8634                         fi
8635                         ac_mid=`expr 2 '*' $ac_mid`
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639   done
8640 else
8641   $as_echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644         ac_lo= ac_hi=
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8651 # Binary search between lo and hi bounds.
8652 while test "x$ac_lo" != "x$ac_hi"; do
8653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8654   cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660
8661 #define _XOPEN_SOURCE_EXTENDED 1
8662 #include <errno.h>
8663 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8664 #include <stdio.h>
8665 #include <stdlib.h>
8666
8667 int
8668 main ()
8669 {
8670 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8671 test_array [0] = 0
8672
8673   ;
8674   return 0;
8675 }
8676 _ACEOF
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8679 case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8684 $as_echo "$ac_try_echo") >&5
8685   (eval "$ac_compile") 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } && {
8692          test -z "$ac_c_werror_flag" ||
8693          test ! -s conftest.err
8694        } && test -s conftest.$ac_objext; then
8695   ac_hi=$ac_mid
8696 else
8697   $as_echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700         ac_lo=`expr '(' $ac_mid ')' + 1`
8701 fi
8702
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 done
8705 case $ac_lo in
8706 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
8707 '')  ;;
8708 esac
8709 else
8710   cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716
8717 #define _XOPEN_SOURCE_EXTENDED 1
8718 #include <errno.h>
8719 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8720 #include <stdio.h>
8721 #include <stdlib.h>
8722
8723 static long int longval () { return ENOLINK; }
8724 static unsigned long int ulongval () { return ENOLINK; }
8725 #include <stdio.h>
8726 #include <stdlib.h>
8727 int
8728 main ()
8729 {
8730
8731   FILE *f = fopen ("conftest.val", "w");
8732   if (! f)
8733     return 1;
8734   if ((ENOLINK) < 0)
8735     {
8736       long int i = longval ();
8737       if (i != (ENOLINK))
8738         return 1;
8739       fprintf (f, "%ld", i);
8740     }
8741   else
8742     {
8743       unsigned long int i = ulongval ();
8744       if (i != (ENOLINK))
8745         return 1;
8746       fprintf (f, "%lu", i);
8747     }
8748   /* Do not output a trailing newline, as this causes \r\n confusion
8749      on some platforms.  */
8750   return ferror (f) || fclose (f) != 0;
8751
8752   ;
8753   return 0;
8754 }
8755 _ACEOF
8756 rm -f conftest$ac_exeext
8757 if { (ac_try="$ac_link"
8758 case "(($ac_try" in
8759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760   *) ac_try_echo=$ac_try;;
8761 esac
8762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8763 $as_echo "$ac_try_echo") >&5
8764   (eval "$ac_link") 2>&5
8765   ac_status=$?
8766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8768   { (case "(($ac_try" in
8769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770   *) ac_try_echo=$ac_try;;
8771 esac
8772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773 $as_echo "$ac_try_echo") >&5
8774   (eval "$ac_try") 2>&5
8775   ac_status=$?
8776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
8779 else
8780   $as_echo "$as_me: program exited with status $ac_status" >&5
8781 $as_echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8783
8784 fi
8785 rm -rf conftest.dSYM
8786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 rm -f conftest.val
8789         fi
8790       fi
8791
8792 fi
8793 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
8794 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8795     case $gl_cv_header_errno_h_ENOLINK in
8796       yes | no)
8797         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8798         ;;
8799       *)
8800         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8801         ;;
8802     esac
8803
8804
8805   fi
8806
8807
8808   if test -n "$ERRNO_H"; then
8809     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
8810 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8811 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
8812   $as_echo_n "(cached) " >&6
8813 else
8814
8815       cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822 #include <errno.h>
8823 #ifdef EOVERFLOW
8824 yes
8825 #endif
8826
8827 _ACEOF
8828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8829   $EGREP "yes" >/dev/null 2>&1; then
8830   gl_cv_header_errno_h_EOVERFLOW=yes
8831 else
8832   gl_cv_header_errno_h_EOVERFLOW=no
8833 fi
8834 rm -f conftest*
8835
8836       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8837         cat >conftest.$ac_ext <<_ACEOF
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843
8844 #define _XOPEN_SOURCE_EXTENDED 1
8845 #include <errno.h>
8846 #ifdef EOVERFLOW
8847 yes
8848 #endif
8849
8850 _ACEOF
8851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8852   $EGREP "yes" >/dev/null 2>&1; then
8853   gl_cv_header_errno_h_EOVERFLOW=hidden
8854 fi
8855 rm -f conftest*
8856
8857         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8858                               if test "$cross_compiling" = yes; then
8859   # Depending upon the size, compute the lo and hi bounds.
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867 #define _XOPEN_SOURCE_EXTENDED 1
8868 #include <errno.h>
8869 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8870 #include <stdio.h>
8871 #include <stdlib.h>
8872
8873 int
8874 main ()
8875 {
8876 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
8877 test_array [0] = 0
8878
8879   ;
8880   return 0;
8881 }
8882 _ACEOF
8883 rm -f conftest.$ac_objext
8884 if { (ac_try="$ac_compile"
8885 case "(($ac_try" in
8886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887   *) ac_try_echo=$ac_try;;
8888 esac
8889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8890 $as_echo "$ac_try_echo") >&5
8891   (eval "$ac_compile") 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } && {
8898          test -z "$ac_c_werror_flag" ||
8899          test ! -s conftest.err
8900        } && test -s conftest.$ac_objext; then
8901   ac_lo=0 ac_mid=0
8902   while :; do
8903     cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909
8910 #define _XOPEN_SOURCE_EXTENDED 1
8911 #include <errno.h>
8912 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8913 #include <stdio.h>
8914 #include <stdlib.h>
8915
8916 int
8917 main ()
8918 {
8919 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8920 test_array [0] = 0
8921
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext
8927 if { (ac_try="$ac_compile"
8928 case "(($ac_try" in
8929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930   *) ac_try_echo=$ac_try;;
8931 esac
8932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8933 $as_echo "$ac_try_echo") >&5
8934   (eval "$ac_compile") 2>conftest.er1
8935   ac_status=$?
8936   grep -v '^ *+' conftest.er1 >conftest.err
8937   rm -f conftest.er1
8938   cat conftest.err >&5
8939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); } && {
8941          test -z "$ac_c_werror_flag" ||
8942          test ! -s conftest.err
8943        } && test -s conftest.$ac_objext; then
8944   ac_hi=$ac_mid; break
8945 else
8946   $as_echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949         ac_lo=`expr $ac_mid + 1`
8950                         if test $ac_lo -le $ac_mid; then
8951                           ac_lo= ac_hi=
8952                           break
8953                         fi
8954                         ac_mid=`expr 2 '*' $ac_mid + 1`
8955 fi
8956
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958   done
8959 else
8960   $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963         cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h.  */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h.  */
8969
8970 #define _XOPEN_SOURCE_EXTENDED 1
8971 #include <errno.h>
8972 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8973 #include <stdio.h>
8974 #include <stdlib.h>
8975
8976 int
8977 main ()
8978 {
8979 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8980 test_array [0] = 0
8981
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext
8987 if { (ac_try="$ac_compile"
8988 case "(($ac_try" in
8989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990   *) ac_try_echo=$ac_try;;
8991 esac
8992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8993 $as_echo "$ac_try_echo") >&5
8994   (eval "$ac_compile") 2>conftest.er1
8995   ac_status=$?
8996   grep -v '^ *+' conftest.er1 >conftest.err
8997   rm -f conftest.er1
8998   cat conftest.err >&5
8999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); } && {
9001          test -z "$ac_c_werror_flag" ||
9002          test ! -s conftest.err
9003        } && test -s conftest.$ac_objext; then
9004   ac_hi=-1 ac_mid=-1
9005   while :; do
9006     cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012
9013 #define _XOPEN_SOURCE_EXTENDED 1
9014 #include <errno.h>
9015 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9016 #include <stdio.h>
9017 #include <stdlib.h>
9018
9019 int
9020 main ()
9021 {
9022 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
9023 test_array [0] = 0
9024
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9031 case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9036 $as_echo "$ac_try_echo") >&5
9037   (eval "$ac_compile") 2>conftest.er1
9038   ac_status=$?
9039   grep -v '^ *+' conftest.er1 >conftest.err
9040   rm -f conftest.er1
9041   cat conftest.err >&5
9042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); } && {
9044          test -z "$ac_c_werror_flag" ||
9045          test ! -s conftest.err
9046        } && test -s conftest.$ac_objext; then
9047   ac_lo=$ac_mid; break
9048 else
9049   $as_echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052         ac_hi=`expr '(' $ac_mid ')' - 1`
9053                         if test $ac_mid -le $ac_hi; then
9054                           ac_lo= ac_hi=
9055                           break
9056                         fi
9057                         ac_mid=`expr 2 '*' $ac_mid`
9058 fi
9059
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061   done
9062 else
9063   $as_echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066         ac_lo= ac_hi=
9067 fi
9068
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 # Binary search between lo and hi bounds.
9074 while test "x$ac_lo" != "x$ac_hi"; do
9075   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9076   cat >conftest.$ac_ext <<_ACEOF
9077 /* confdefs.h.  */
9078 _ACEOF
9079 cat confdefs.h >>conftest.$ac_ext
9080 cat >>conftest.$ac_ext <<_ACEOF
9081 /* end confdefs.h.  */
9082
9083 #define _XOPEN_SOURCE_EXTENDED 1
9084 #include <errno.h>
9085 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9086 #include <stdio.h>
9087 #include <stdlib.h>
9088
9089 int
9090 main ()
9091 {
9092 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
9093 test_array [0] = 0
9094
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (ac_try="$ac_compile"
9101 case "(($ac_try" in
9102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103   *) ac_try_echo=$ac_try;;
9104 esac
9105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106 $as_echo "$ac_try_echo") >&5
9107   (eval "$ac_compile") 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } && {
9114          test -z "$ac_c_werror_flag" ||
9115          test ! -s conftest.err
9116        } && test -s conftest.$ac_objext; then
9117   ac_hi=$ac_mid
9118 else
9119   $as_echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122         ac_lo=`expr '(' $ac_mid ')' + 1`
9123 fi
9124
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126 done
9127 case $ac_lo in
9128 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
9129 '')  ;;
9130 esac
9131 else
9132   cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138
9139 #define _XOPEN_SOURCE_EXTENDED 1
9140 #include <errno.h>
9141 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
9142 #include <stdio.h>
9143 #include <stdlib.h>
9144
9145 static long int longval () { return EOVERFLOW; }
9146 static unsigned long int ulongval () { return EOVERFLOW; }
9147 #include <stdio.h>
9148 #include <stdlib.h>
9149 int
9150 main ()
9151 {
9152
9153   FILE *f = fopen ("conftest.val", "w");
9154   if (! f)
9155     return 1;
9156   if ((EOVERFLOW) < 0)
9157     {
9158       long int i = longval ();
9159       if (i != (EOVERFLOW))
9160         return 1;
9161       fprintf (f, "%ld", i);
9162     }
9163   else
9164     {
9165       unsigned long int i = ulongval ();
9166       if (i != (EOVERFLOW))
9167         return 1;
9168       fprintf (f, "%lu", i);
9169     }
9170   /* Do not output a trailing newline, as this causes \r\n confusion
9171      on some platforms.  */
9172   return ferror (f) || fclose (f) != 0;
9173
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest$ac_exeext
9179 if { (ac_try="$ac_link"
9180 case "(($ac_try" in
9181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182   *) ac_try_echo=$ac_try;;
9183 esac
9184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9185 $as_echo "$ac_try_echo") >&5
9186   (eval "$ac_link") 2>&5
9187   ac_status=$?
9188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9190   { (case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195 $as_echo "$ac_try_echo") >&5
9196   (eval "$ac_try") 2>&5
9197   ac_status=$?
9198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; }; then
9200   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
9201 else
9202   $as_echo "$as_me: program exited with status $ac_status" >&5
9203 $as_echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9205
9206 fi
9207 rm -rf conftest.dSYM
9208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9209 fi
9210 rm -f conftest.val
9211         fi
9212       fi
9213
9214 fi
9215 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9216 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9217     case $gl_cv_header_errno_h_EOVERFLOW in
9218       yes | no)
9219         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9220         ;;
9221       *)
9222         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9223         ;;
9224     esac
9225
9226
9227   fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237   GNULIB_DPRINTF=0;
9238   GNULIB_FCLOSE=0;
9239   GNULIB_FFLUSH=0;
9240   GNULIB_FOPEN=0;
9241   GNULIB_FPRINTF=0;
9242   GNULIB_FPRINTF_POSIX=0;
9243   GNULIB_FPURGE=0;
9244   GNULIB_FPUTC=0;
9245   GNULIB_FPUTS=0;
9246   GNULIB_FREOPEN=0;
9247   GNULIB_FSEEK=0;
9248   GNULIB_FSEEKO=0;
9249   GNULIB_FTELL=0;
9250   GNULIB_FTELLO=0;
9251   GNULIB_FWRITE=0;
9252   GNULIB_GETDELIM=0;
9253   GNULIB_GETLINE=0;
9254   GNULIB_OBSTACK_PRINTF=0;
9255   GNULIB_OBSTACK_PRINTF_POSIX=0;
9256   GNULIB_PERROR=0;
9257   GNULIB_POPEN=0;
9258   GNULIB_PRINTF=0;
9259   GNULIB_PRINTF_POSIX=0;
9260   GNULIB_PUTC=0;
9261   GNULIB_PUTCHAR=0;
9262   GNULIB_PUTS=0;
9263   GNULIB_REMOVE=0;
9264   GNULIB_RENAME=0;
9265   GNULIB_RENAMEAT=0;
9266   GNULIB_SNPRINTF=0;
9267   GNULIB_SPRINTF_POSIX=0;
9268   GNULIB_STDIO_H_SIGPIPE=0;
9269   GNULIB_TMPFILE=0;
9270   GNULIB_VASPRINTF=0;
9271   GNULIB_VDPRINTF=0;
9272   GNULIB_VFPRINTF=0;
9273   GNULIB_VFPRINTF_POSIX=0;
9274   GNULIB_VPRINTF=0;
9275   GNULIB_VPRINTF_POSIX=0;
9276   GNULIB_VSNPRINTF=0;
9277   GNULIB_VSPRINTF_POSIX=0;
9278     HAVE_DECL_FPURGE=1;
9279   HAVE_DECL_GETDELIM=1;
9280   HAVE_DECL_GETLINE=1;
9281   HAVE_DECL_OBSTACK_PRINTF=1;
9282   HAVE_DECL_SNPRINTF=1;
9283   HAVE_DECL_VSNPRINTF=1;
9284   HAVE_DPRINTF=1;
9285   HAVE_FSEEKO=1;
9286   HAVE_FTELLO=1;
9287   HAVE_RENAMEAT=1;
9288   HAVE_VASPRINTF=1;
9289   HAVE_VDPRINTF=1;
9290   REPLACE_DPRINTF=0;
9291   REPLACE_FCLOSE=0;
9292   REPLACE_FFLUSH=0;
9293   REPLACE_FOPEN=0;
9294   REPLACE_FPRINTF=0;
9295   REPLACE_FPURGE=0;
9296   REPLACE_FREOPEN=0;
9297   REPLACE_FSEEK=0;
9298   REPLACE_FSEEKO=0;
9299   REPLACE_FTELL=0;
9300   REPLACE_FTELLO=0;
9301   REPLACE_GETDELIM=0;
9302   REPLACE_GETLINE=0;
9303   REPLACE_OBSTACK_PRINTF=0;
9304   REPLACE_PERROR=0;
9305   REPLACE_POPEN=0;
9306   REPLACE_PRINTF=0;
9307   REPLACE_REMOVE=0;
9308   REPLACE_RENAME=0;
9309   REPLACE_RENAMEAT=0;
9310   REPLACE_SNPRINTF=0;
9311   REPLACE_SPRINTF=0;
9312   REPLACE_STDIO_WRITE_FUNCS=0;
9313   REPLACE_TMPFILE=0;
9314   REPLACE_VASPRINTF=0;
9315   REPLACE_VDPRINTF=0;
9316   REPLACE_VFPRINTF=0;
9317   REPLACE_VPRINTF=0;
9318   REPLACE_VSNPRINTF=0;
9319   REPLACE_VSPRINTF=0;
9320
9321
9322
9323
9324
9325
9326   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
9327 $as_echo_n "checking for fseeko... " >&6; }
9328 if test "${gl_cv_func_fseeko+set}" = set; then
9329   $as_echo_n "(cached) " >&6
9330 else
9331
9332       cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 #include <stdio.h>
9339
9340 int
9341 main ()
9342 {
9343 fseeko (stdin, 0, 0);
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9350 case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9355 $as_echo "$ac_try_echo") >&5
9356   (eval "$ac_link") 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } && {
9363          test -z "$ac_c_werror_flag" ||
9364          test ! -s conftest.err
9365        } && test -s conftest$ac_exeext && {
9366          test "$cross_compiling" = yes ||
9367          $as_test_x conftest$ac_exeext
9368        }; then
9369   gl_cv_func_fseeko=yes
9370 else
9371   $as_echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374         gl_cv_func_fseeko=no
9375 fi
9376
9377 rm -rf conftest.dSYM
9378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9379       conftest$ac_exeext conftest.$ac_ext
9380
9381 fi
9382 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
9383 $as_echo "$gl_cv_func_fseeko" >&6; }
9384
9385
9386     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
9387 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
9388 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
9389   $as_echo_n "(cached) " >&6
9390 else
9391   cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397 #include <stdio.h>
9398 int
9399 main ()
9400 {
9401 #if defined __SL64 && defined __SCLE /* cygwin */
9402   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
9403      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
9404      it is easier to do a version check than building a runtime test.  */
9405 # include <cygwin/version.h>
9406 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
9407   choke me
9408 # endif
9409 #endif
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9416 case "(($ac_try" in
9417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418   *) ac_try_echo=$ac_try;;
9419 esac
9420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9421 $as_echo "$ac_try_echo") >&5
9422   (eval "$ac_link") 2>conftest.er1
9423   ac_status=$?
9424   grep -v '^ *+' conftest.er1 >conftest.err
9425   rm -f conftest.er1
9426   cat conftest.err >&5
9427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428   (exit $ac_status); } && {
9429          test -z "$ac_c_werror_flag" ||
9430          test ! -s conftest.err
9431        } && test -s conftest$ac_exeext && {
9432          test "$cross_compiling" = yes ||
9433          $as_test_x conftest$ac_exeext
9434        }; then
9435   gl_cv_var_stdin_large_offset=yes
9436 else
9437   $as_echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440         gl_cv_var_stdin_large_offset=no
9441 fi
9442
9443 rm -rf conftest.dSYM
9444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9445       conftest$ac_exeext conftest.$ac_ext
9446 fi
9447 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
9448 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475   GNULIB_SOCKET=0;
9476   GNULIB_CONNECT=0;
9477   GNULIB_ACCEPT=0;
9478   GNULIB_BIND=0;
9479   GNULIB_GETPEERNAME=0;
9480   GNULIB_GETSOCKNAME=0;
9481   GNULIB_GETSOCKOPT=0;
9482   GNULIB_LISTEN=0;
9483   GNULIB_RECV=0;
9484   GNULIB_SEND=0;
9485   GNULIB_RECVFROM=0;
9486   GNULIB_SENDTO=0;
9487   GNULIB_SETSOCKOPT=0;
9488   GNULIB_SHUTDOWN=0;
9489   GNULIB_ACCEPT4=0;
9490   HAVE_STRUCT_SOCKADDR_STORAGE=1;
9491   HAVE_SA_FAMILY_T=1;
9492   HAVE_ACCEPT4=1;
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
9505 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
9506 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
9507   $as_echo_n "(cached) " >&6
9508 else
9509
9510       cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 #include <sys/socket.h>
9517 int
9518 main ()
9519 {
9520
9521   ;
9522   return 0;
9523 }
9524 _ACEOF
9525 rm -f conftest.$ac_objext
9526 if { (ac_try="$ac_compile"
9527 case "(($ac_try" in
9528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529   *) ac_try_echo=$ac_try;;
9530 esac
9531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9532 $as_echo "$ac_try_echo") >&5
9533   (eval "$ac_compile") 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } && {
9540          test -z "$ac_c_werror_flag" ||
9541          test ! -s conftest.err
9542        } && test -s conftest.$ac_objext; then
9543   gl_cv_header_sys_socket_h_selfcontained=yes
9544 else
9545   $as_echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548         gl_cv_header_sys_socket_h_selfcontained=no
9549 fi
9550
9551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9552
9553 fi
9554 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
9555 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
9556   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
9557
9558 for ac_func in shutdown
9559 do
9560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9561 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9562 $as_echo_n "checking for $ac_func... " >&6; }
9563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9564   $as_echo_n "(cached) " >&6
9565 else
9566   cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h.  */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h.  */
9572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9574 #define $ac_func innocuous_$ac_func
9575
9576 /* System header to define __stub macros and hopefully few prototypes,
9577     which can conflict with char $ac_func (); below.
9578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9579     <limits.h> exists even on freestanding compilers.  */
9580
9581 #ifdef __STDC__
9582 # include <limits.h>
9583 #else
9584 # include <assert.h>
9585 #endif
9586
9587 #undef $ac_func
9588
9589 /* Override any GCC internal prototype to avoid an error.
9590    Use char because int might match the return type of a GCC
9591    builtin and then its argument prototype would still apply.  */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 char $ac_func ();
9596 /* The GNU C library defines this for functions which it implements
9597     to always fail with ENOSYS.  Some functions are actually named
9598     something starting with __ and the normal name is an alias.  */
9599 #if defined __stub_$ac_func || defined __stub___$ac_func
9600 choke me
9601 #endif
9602
9603 int
9604 main ()
9605 {
9606 return $ac_func ();
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (ac_try="$ac_link"
9613 case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9618 $as_echo "$ac_try_echo") >&5
9619   (eval "$ac_link") 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } && {
9626          test -z "$ac_c_werror_flag" ||
9627          test ! -s conftest.err
9628        } && test -s conftest$ac_exeext && {
9629          test "$cross_compiling" = yes ||
9630          $as_test_x conftest$ac_exeext
9631        }; then
9632   eval "$as_ac_var=yes"
9633 else
9634   $as_echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637         eval "$as_ac_var=no"
9638 fi
9639
9640 rm -rf conftest.dSYM
9641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9642       conftest$ac_exeext conftest.$ac_ext
9643 fi
9644 ac_res=`eval 'as_val=${'$as_ac_var'}
9645                  $as_echo "$as_val"'`
9646                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9647 $as_echo "$ac_res" >&6; }
9648 as_val=`eval 'as_val=${'$as_ac_var'}
9649                  $as_echo "$as_val"'`
9650    if test "x$as_val" = x""yes; then
9651   cat >>confdefs.h <<_ACEOF
9652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9653 _ACEOF
9654
9655 fi
9656 done
9657
9658     if test $ac_cv_func_shutdown = yes; then
9659       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
9660 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
9661 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
9662   $as_echo_n "(cached) " >&6
9663 else
9664
9665           cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671 #include <sys/socket.h>
9672 int
9673 main ()
9674 {
9675 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (ac_try="$ac_compile"
9682 case "(($ac_try" in
9683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684   *) ac_try_echo=$ac_try;;
9685 esac
9686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9687 $as_echo "$ac_try_echo") >&5
9688   (eval "$ac_compile") 2>conftest.er1
9689   ac_status=$?
9690   grep -v '^ *+' conftest.er1 >conftest.err
9691   rm -f conftest.er1
9692   cat conftest.err >&5
9693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } && {
9695          test -z "$ac_c_werror_flag" ||
9696          test ! -s conftest.err
9697        } && test -s conftest.$ac_objext; then
9698   gl_cv_header_sys_socket_h_shut=yes
9699 else
9700   $as_echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703         gl_cv_header_sys_socket_h_shut=no
9704 fi
9705
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9707
9708 fi
9709 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
9710 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
9711       if test $gl_cv_header_sys_socket_h_shut = no; then
9712         SYS_SOCKET_H='sys/socket.h'
9713       fi
9714     fi
9715   fi
9716   # We need to check for ws2tcpip.h now.
9717
9718
9719
9720
9721
9722   :
9723
9724
9725
9726
9727
9728
9729
9730      if test $gl_cv_have_include_next = yes; then
9731        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9732      else
9733        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
9734 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
9735 if test "${gl_cv_next_sys_socket_h+set}" = set; then
9736   $as_echo_n "(cached) " >&6
9737 else
9738
9739           if test $ac_cv_header_sys_socket_h = yes; then
9740             cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746 #include <sys/socket.h>
9747
9748 _ACEOF
9749                                                                                                 case "$host_os" in
9750               aix*) gl_absname_cpp="$ac_cpp -C" ;;
9751               *)    gl_absname_cpp="$ac_cpp" ;;
9752             esac
9753                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9754                sed -n '\#/sys/socket.h#{
9755                  s#.*"\(.*/sys/socket.h\)".*#\1#
9756                  s#^/[^/]#//&#
9757                  p
9758                  q
9759                }'`'"'
9760           else
9761             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
9762           fi
9763
9764 fi
9765 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
9766 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
9767      fi
9768      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
9769
9770      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9771        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9772        gl_next_as_first_directive='<'sys/socket.h'>'
9773      else
9774        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9775        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
9776      fi
9777      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
9778
9779
9780
9781   if test $ac_cv_header_sys_socket_h = yes; then
9782     HAVE_SYS_SOCKET_H=1
9783     HAVE_WS2TCPIP_H=0
9784   else
9785     HAVE_SYS_SOCKET_H=0
9786
9787 for ac_header in ws2tcpip.h
9788 do
9789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 $as_echo_n "checking for $ac_header... " >&6; }
9793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9794   $as_echo_n "(cached) " >&6
9795 fi
9796 ac_res=`eval 'as_val=${'$as_ac_Header'}
9797                  $as_echo "$as_val"'`
9798                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9799 $as_echo "$ac_res" >&6; }
9800 else
9801   # Is the header compilable?
9802 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9803 $as_echo_n "checking $ac_header usability... " >&6; }
9804 cat >conftest.$ac_ext <<_ACEOF
9805 /* confdefs.h.  */
9806 _ACEOF
9807 cat confdefs.h >>conftest.$ac_ext
9808 cat >>conftest.$ac_ext <<_ACEOF
9809 /* end confdefs.h.  */
9810 $ac_includes_default
9811 #include <$ac_header>
9812 _ACEOF
9813 rm -f conftest.$ac_objext
9814 if { (ac_try="$ac_compile"
9815 case "(($ac_try" in
9816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9817   *) ac_try_echo=$ac_try;;
9818 esac
9819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9820 $as_echo "$ac_try_echo") >&5
9821   (eval "$ac_compile") 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } && {
9828          test -z "$ac_c_werror_flag" ||
9829          test ! -s conftest.err
9830        } && test -s conftest.$ac_objext; then
9831   ac_header_compiler=yes
9832 else
9833   $as_echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836         ac_header_compiler=no
9837 fi
9838
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9841 $as_echo "$ac_header_compiler" >&6; }
9842
9843 # Is the header present?
9844 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9845 $as_echo_n "checking $ac_header presence... " >&6; }
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852 #include <$ac_header>
9853 _ACEOF
9854 if { (ac_try="$ac_cpp conftest.$ac_ext"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9860 $as_echo "$ac_try_echo") >&5
9861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } >/dev/null && {
9868          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9869          test ! -s conftest.err
9870        }; then
9871   ac_header_preproc=yes
9872 else
9873   $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876   ac_header_preproc=no
9877 fi
9878
9879 rm -f conftest.err conftest.$ac_ext
9880 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9881 $as_echo "$ac_header_preproc" >&6; }
9882
9883 # So?  What about this header?
9884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9885   yes:no: )
9886     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9887 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9888     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9890     ac_header_preproc=yes
9891     ;;
9892   no:yes:* )
9893     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9894 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9895     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9896 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9897     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9899     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9900 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9901     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9902 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9903     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9904 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9905
9906     ;;
9907 esac
9908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9909 $as_echo_n "checking for $ac_header... " >&6; }
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911   $as_echo_n "(cached) " >&6
9912 else
9913   eval "$as_ac_Header=\$ac_header_preproc"
9914 fi
9915 ac_res=`eval 'as_val=${'$as_ac_Header'}
9916                  $as_echo "$as_val"'`
9917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9918 $as_echo "$ac_res" >&6; }
9919
9920 fi
9921 as_val=`eval 'as_val=${'$as_ac_Header'}
9922                  $as_echo "$as_val"'`
9923    if test "x$as_val" = x""yes; then
9924   cat >>confdefs.h <<_ACEOF
9925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9926 _ACEOF
9927
9928 fi
9929
9930 done
9931
9932     if test $ac_cv_header_ws2tcpip_h = yes; then
9933       HAVE_WS2TCPIP_H=1
9934     else
9935       HAVE_WS2TCPIP_H=0
9936     fi
9937   fi
9938
9939
9940
9941   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
9942 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
9943 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
9944   $as_echo_n "(cached) " >&6
9945 else
9946   ac_cv_type_struct_sockaddr_storage=no
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h.  */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h.  */
9953
9954   /* sys/types.h is not needed according to POSIX, but the
9955      sys/socket.h in i386-unknown-freebsd4.10 and
9956      powerpc-apple-darwin5.5 required it. */
9957 #include <sys/types.h>
9958 #ifdef HAVE_SYS_SOCKET_H
9959 #include <sys/socket.h>
9960 #endif
9961 #ifdef HAVE_WS2TCPIP_H
9962 #include <ws2tcpip.h>
9963 #endif
9964
9965
9966 int
9967 main ()
9968 {
9969 if (sizeof (struct sockaddr_storage))
9970        return 0;
9971   ;
9972   return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext
9976 if { (ac_try="$ac_compile"
9977 case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9982 $as_echo "$ac_try_echo") >&5
9983   (eval "$ac_compile") 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } && {
9990          test -z "$ac_c_werror_flag" ||
9991          test ! -s conftest.err
9992        } && test -s conftest.$ac_objext; then
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999
10000   /* sys/types.h is not needed according to POSIX, but the
10001      sys/socket.h in i386-unknown-freebsd4.10 and
10002      powerpc-apple-darwin5.5 required it. */
10003 #include <sys/types.h>
10004 #ifdef HAVE_SYS_SOCKET_H
10005 #include <sys/socket.h>
10006 #endif
10007 #ifdef HAVE_WS2TCPIP_H
10008 #include <ws2tcpip.h>
10009 #endif
10010
10011
10012 int
10013 main ()
10014 {
10015 if (sizeof ((struct sockaddr_storage)))
10016           return 0;
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (ac_try="$ac_compile"
10023 case "(($ac_try" in
10024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025   *) ac_try_echo=$ac_try;;
10026 esac
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029   (eval "$ac_compile") 2>conftest.er1
10030   ac_status=$?
10031   grep -v '^ *+' conftest.er1 >conftest.err
10032   rm -f conftest.er1
10033   cat conftest.err >&5
10034   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); } && {
10036          test -z "$ac_c_werror_flag" ||
10037          test ! -s conftest.err
10038        } && test -s conftest.$ac_objext; then
10039   :
10040 else
10041   $as_echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10043
10044         ac_cv_type_struct_sockaddr_storage=yes
10045 fi
10046
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10048 else
10049   $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10051
10052
10053 fi
10054
10055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056 fi
10057 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
10058 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
10059 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
10060
10061 cat >>confdefs.h <<_ACEOF
10062 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
10063 _ACEOF
10064
10065
10066 fi
10067 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
10068 $as_echo_n "checking for sa_family_t... " >&6; }
10069 if test "${ac_cv_type_sa_family_t+set}" = set; then
10070   $as_echo_n "(cached) " >&6
10071 else
10072   ac_cv_type_sa_family_t=no
10073 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079
10080   /* sys/types.h is not needed according to POSIX, but the
10081      sys/socket.h in i386-unknown-freebsd4.10 and
10082      powerpc-apple-darwin5.5 required it. */
10083 #include <sys/types.h>
10084 #ifdef HAVE_SYS_SOCKET_H
10085 #include <sys/socket.h>
10086 #endif
10087 #ifdef HAVE_WS2TCPIP_H
10088 #include <ws2tcpip.h>
10089 #endif
10090
10091
10092 int
10093 main ()
10094 {
10095 if (sizeof (sa_family_t))
10096        return 0;
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10108 $as_echo "$ac_try_echo") >&5
10109   (eval "$ac_compile") 2>conftest.er1
10110   ac_status=$?
10111   grep -v '^ *+' conftest.er1 >conftest.err
10112   rm -f conftest.er1
10113   cat conftest.err >&5
10114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } && {
10116          test -z "$ac_c_werror_flag" ||
10117          test ! -s conftest.err
10118        } && test -s conftest.$ac_objext; then
10119   cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125
10126   /* sys/types.h is not needed according to POSIX, but the
10127      sys/socket.h in i386-unknown-freebsd4.10 and
10128      powerpc-apple-darwin5.5 required it. */
10129 #include <sys/types.h>
10130 #ifdef HAVE_SYS_SOCKET_H
10131 #include <sys/socket.h>
10132 #endif
10133 #ifdef HAVE_WS2TCPIP_H
10134 #include <ws2tcpip.h>
10135 #endif
10136
10137
10138 int
10139 main ()
10140 {
10141 if (sizeof ((sa_family_t)))
10142           return 0;
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 rm -f conftest.$ac_objext
10148 if { (ac_try="$ac_compile"
10149 case "(($ac_try" in
10150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151   *) ac_try_echo=$ac_try;;
10152 esac
10153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10154 $as_echo "$ac_try_echo") >&5
10155   (eval "$ac_compile") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } && {
10162          test -z "$ac_c_werror_flag" ||
10163          test ! -s conftest.err
10164        } && test -s conftest.$ac_objext; then
10165   :
10166 else
10167   $as_echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170         ac_cv_type_sa_family_t=yes
10171 fi
10172
10173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10174 else
10175   $as_echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178
10179 fi
10180
10181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 fi
10183 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
10184 $as_echo "$ac_cv_type_sa_family_t" >&6; }
10185 if test "x$ac_cv_type_sa_family_t" = x""yes; then
10186
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_SA_FAMILY_T 1
10189 _ACEOF
10190
10191
10192 fi
10193
10194   if test $ac_cv_type_struct_sockaddr_storage = no; then
10195     HAVE_STRUCT_SOCKADDR_STORAGE=0
10196   fi
10197   if test $ac_cv_type_sa_family_t = no; then
10198     HAVE_SA_FAMILY_T=0
10199   fi
10200
10201
10202
10203
10204   :
10205
10206
10207
10208
10209
10210   if test $ac_cv_header_sys_socket_h != yes; then
10211
10212 for ac_header in winsock2.h
10213 do
10214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10216   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 $as_echo_n "checking for $ac_header... " >&6; }
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219   $as_echo_n "(cached) " >&6
10220 fi
10221 ac_res=`eval 'as_val=${'$as_ac_Header'}
10222                  $as_echo "$as_val"'`
10223                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10224 $as_echo "$ac_res" >&6; }
10225 else
10226   # Is the header compilable?
10227 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10228 $as_echo_n "checking $ac_header usability... " >&6; }
10229 cat >conftest.$ac_ext <<_ACEOF
10230 /* confdefs.h.  */
10231 _ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h.  */
10235 $ac_includes_default
10236 #include <$ac_header>
10237 _ACEOF
10238 rm -f conftest.$ac_objext
10239 if { (ac_try="$ac_compile"
10240 case "(($ac_try" in
10241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242   *) ac_try_echo=$ac_try;;
10243 esac
10244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10245 $as_echo "$ac_try_echo") >&5
10246   (eval "$ac_compile") 2>conftest.er1
10247   ac_status=$?
10248   grep -v '^ *+' conftest.er1 >conftest.err
10249   rm -f conftest.er1
10250   cat conftest.err >&5
10251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); } && {
10253          test -z "$ac_c_werror_flag" ||
10254          test ! -s conftest.err
10255        } && test -s conftest.$ac_objext; then
10256   ac_header_compiler=yes
10257 else
10258   $as_echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10260
10261         ac_header_compiler=no
10262 fi
10263
10264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10266 $as_echo "$ac_header_compiler" >&6; }
10267
10268 # Is the header present?
10269 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10270 $as_echo_n "checking $ac_header presence... " >&6; }
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h.  */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h.  */
10277 #include <$ac_header>
10278 _ACEOF
10279 if { (ac_try="$ac_cpp conftest.$ac_ext"
10280 case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10285 $as_echo "$ac_try_echo") >&5
10286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10287   ac_status=$?
10288   grep -v '^ *+' conftest.er1 >conftest.err
10289   rm -f conftest.er1
10290   cat conftest.err >&5
10291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); } >/dev/null && {
10293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10294          test ! -s conftest.err
10295        }; then
10296   ac_header_preproc=yes
10297 else
10298   $as_echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10300
10301   ac_header_preproc=no
10302 fi
10303
10304 rm -f conftest.err conftest.$ac_ext
10305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10306 $as_echo "$ac_header_preproc" >&6; }
10307
10308 # So?  What about this header?
10309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10310   yes:no: )
10311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10312 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10313     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10315     ac_header_preproc=yes
10316     ;;
10317   no:yes:* )
10318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10319 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10321 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10325 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10328     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10330
10331     ;;
10332 esac
10333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10334 $as_echo_n "checking for $ac_header... " >&6; }
10335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10336   $as_echo_n "(cached) " >&6
10337 else
10338   eval "$as_ac_Header=\$ac_header_preproc"
10339 fi
10340 ac_res=`eval 'as_val=${'$as_ac_Header'}
10341                  $as_echo "$as_val"'`
10342                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10343 $as_echo "$ac_res" >&6; }
10344
10345 fi
10346 as_val=`eval 'as_val=${'$as_ac_Header'}
10347                  $as_echo "$as_val"'`
10348    if test "x$as_val" = x""yes; then
10349   cat >>confdefs.h <<_ACEOF
10350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10351 _ACEOF
10352
10353 fi
10354
10355 done
10356
10357   fi
10358   if test "$ac_cv_header_winsock2_h" = yes; then
10359     HAVE_WINSOCK2_H=1
10360     UNISTD_H_HAVE_WINSOCK2_H=1
10361     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
10362   else
10363     HAVE_WINSOCK2_H=0
10364   fi
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384   for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
10385     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10386     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10387 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10388 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10389   $as_echo_n "(cached) " >&6
10390 else
10391   cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397
10398 /* Some systems require prerequisite headers.  */
10399 #include <sys/types.h>
10400 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
10401 # include <sys/time.h>
10402 #endif
10403 #include <sys/select.h>
10404
10405 int
10406 main ()
10407 {
10408 #undef $gl_func
10409   (void) $gl_func;
10410   ;
10411   return 0;
10412 }
10413 _ACEOF
10414 rm -f conftest.$ac_objext
10415 if { (ac_try="$ac_compile"
10416 case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422   (eval "$ac_compile") 2>conftest.er1
10423   ac_status=$?
10424   grep -v '^ *+' conftest.er1 >conftest.err
10425   rm -f conftest.er1
10426   cat conftest.err >&5
10427   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } && {
10429          test -z "$ac_c_werror_flag" ||
10430          test ! -s conftest.err
10431        } && test -s conftest.$ac_objext; then
10432   eval "$as_gl_Symbol=yes"
10433 else
10434   $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437         eval "$as_gl_Symbol=no"
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 fi
10442 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10443                  $as_echo "$as_val"'`
10444                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10445 $as_echo "$ac_res" >&6; }
10446      as_val=`eval 'as_val=${'$as_gl_Symbol'}
10447                  $as_echo "$as_val"'`
10448    if test "x$as_val" = x""yes; then
10449   cat >>confdefs.h <<_ACEOF
10450 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10451 _ACEOF
10452
10453                      eval ac_cv_have_decl_$gl_func=yes
10454 fi
10455
10456       done
10457
10458
10459
10460   GNULIB_GETADDRINFO=0;
10461     HAVE_STRUCT_ADDRINFO=1;
10462   HAVE_DECL_FREEADDRINFO=1;
10463   HAVE_DECL_GAI_STRERROR=1;
10464   HAVE_DECL_GETADDRINFO=1;
10465   HAVE_DECL_GETNAMEINFO=1;
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476   :
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486   :
10487
10488
10489
10490
10491
10492
10493
10494      if test $gl_cv_have_include_next = yes; then
10495        gl_cv_next_netdb_h='<'netdb.h'>'
10496      else
10497        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
10498 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
10499 if test "${gl_cv_next_netdb_h+set}" = set; then
10500   $as_echo_n "(cached) " >&6
10501 else
10502
10503           if test $ac_cv_header_netdb_h = yes; then
10504             cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510 #include <netdb.h>
10511
10512 _ACEOF
10513                                                                                                 case "$host_os" in
10514               aix*) gl_absname_cpp="$ac_cpp -C" ;;
10515               *)    gl_absname_cpp="$ac_cpp" ;;
10516             esac
10517                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10518                sed -n '\#/netdb.h#{
10519                  s#.*"\(.*/netdb.h\)".*#\1#
10520                  s#^/[^/]#//&#
10521                  p
10522                  q
10523                }'`'"'
10524           else
10525             gl_cv_next_netdb_h='<'netdb.h'>'
10526           fi
10527
10528 fi
10529 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
10530 $as_echo "$gl_cv_next_netdb_h" >&6; }
10531      fi
10532      NEXT_NETDB_H=$gl_cv_next_netdb_h
10533
10534      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10535        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10536        gl_next_as_first_directive='<'netdb.h'>'
10537      else
10538        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10539        gl_next_as_first_directive=$gl_cv_next_netdb_h
10540      fi
10541      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
10542
10543
10544
10545   if test $ac_cv_header_netdb_h = yes; then
10546     HAVE_NETDB_H=1
10547   else
10548     HAVE_NETDB_H=0
10549   fi
10550
10551
10552
10553
10554
10555
10556
10557   for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
10558     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10559     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
10560 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10561 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
10562   $as_echo_n "(cached) " >&6
10563 else
10564   cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h.  */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h.  */
10570 #include <netdb.h>
10571 int
10572 main ()
10573 {
10574 #undef $gl_func
10575   (void) $gl_func;
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (ac_try="$ac_compile"
10582 case "(($ac_try" in
10583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584   *) ac_try_echo=$ac_try;;
10585 esac
10586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10587 $as_echo "$ac_try_echo") >&5
10588   (eval "$ac_compile") 2>conftest.er1
10589   ac_status=$?
10590   grep -v '^ *+' conftest.er1 >conftest.err
10591   rm -f conftest.er1
10592   cat conftest.err >&5
10593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); } && {
10595          test -z "$ac_c_werror_flag" ||
10596          test ! -s conftest.err
10597        } && test -s conftest.$ac_objext; then
10598   eval "$as_gl_Symbol=yes"
10599 else
10600   $as_echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603         eval "$as_gl_Symbol=no"
10604 fi
10605
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 fi
10608 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
10609                  $as_echo "$as_val"'`
10610                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10611 $as_echo "$ac_res" >&6; }
10612      as_val=`eval 'as_val=${'$as_gl_Symbol'}
10613                  $as_echo "$as_val"'`
10614    if test "x$as_val" = x""yes; then
10615   cat >>confdefs.h <<_ACEOF
10616 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10617 _ACEOF
10618
10619                      eval ac_cv_have_decl_$gl_func=yes
10620 fi
10621
10622       done
10623
10624
10625
10626                   HOSTENT_LIB=
10627   gl_saved_libs="$LIBS"
10628   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
10629 $as_echo_n "checking for library containing gethostbyname... " >&6; }
10630 if test "${ac_cv_search_gethostbyname+set}" = set; then
10631   $as_echo_n "(cached) " >&6
10632 else
10633   ac_func_search_save_LIBS=$LIBS
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h.  */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h.  */
10640
10641 /* Override any GCC internal prototype to avoid an error.
10642    Use char because int might match the return type of a GCC
10643    builtin and then its argument prototype would still apply.  */
10644 #ifdef __cplusplus
10645 extern "C"
10646 #endif
10647 char gethostbyname ();
10648 int
10649 main ()
10650 {
10651 return gethostbyname ();
10652   ;
10653   return 0;
10654 }
10655 _ACEOF
10656 for ac_lib in '' nsl network net; do
10657   if test -z "$ac_lib"; then
10658     ac_res="none required"
10659   else
10660     ac_res=-l$ac_lib
10661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10662   fi
10663   rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667   *) ac_try_echo=$ac_try;;
10668 esac
10669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10670 $as_echo "$ac_try_echo") >&5
10671   (eval "$ac_link") 2>conftest.er1
10672   ac_status=$?
10673   grep -v '^ *+' conftest.er1 >conftest.err
10674   rm -f conftest.er1
10675   cat conftest.err >&5
10676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } && {
10678          test -z "$ac_c_werror_flag" ||
10679          test ! -s conftest.err
10680        } && test -s conftest$ac_exeext && {
10681          test "$cross_compiling" = yes ||
10682          $as_test_x conftest$ac_exeext
10683        }; then
10684   ac_cv_search_gethostbyname=$ac_res
10685 else
10686   $as_echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689
10690 fi
10691
10692 rm -rf conftest.dSYM
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694       conftest$ac_exeext
10695   if test "${ac_cv_search_gethostbyname+set}" = set; then
10696   break
10697 fi
10698 done
10699 if test "${ac_cv_search_gethostbyname+set}" = set; then
10700   :
10701 else
10702   ac_cv_search_gethostbyname=no
10703 fi
10704 rm conftest.$ac_ext
10705 LIBS=$ac_func_search_save_LIBS
10706 fi
10707 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
10708 $as_echo "$ac_cv_search_gethostbyname" >&6; }
10709 ac_res=$ac_cv_search_gethostbyname
10710 if test "$ac_res" != no; then
10711   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10712   if test "$ac_cv_search_gethostbyname" != "none required"; then
10713        HOSTENT_LIB="$ac_cv_search_gethostbyname"
10714      fi
10715 fi
10716
10717   LIBS="$gl_saved_libs"
10718   if test -z "$HOSTENT_LIB"; then
10719
10720 for ac_func in gethostbyname
10721 do
10722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10724 $as_echo_n "checking for $ac_func... " >&6; }
10725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10726   $as_echo_n "(cached) " >&6
10727 else
10728   cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10736 #define $ac_func innocuous_$ac_func
10737
10738 /* System header to define __stub macros and hopefully few prototypes,
10739     which can conflict with char $ac_func (); below.
10740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10741     <limits.h> exists even on freestanding compilers.  */
10742
10743 #ifdef __STDC__
10744 # include <limits.h>
10745 #else
10746 # include <assert.h>
10747 #endif
10748
10749 #undef $ac_func
10750
10751 /* Override any GCC internal prototype to avoid an error.
10752    Use char because int might match the return type of a GCC
10753    builtin and then its argument prototype would still apply.  */
10754 #ifdef __cplusplus
10755 extern "C"
10756 #endif
10757 char $ac_func ();
10758 /* The GNU C library defines this for functions which it implements
10759     to always fail with ENOSYS.  Some functions are actually named
10760     something starting with __ and the normal name is an alias.  */
10761 #if defined __stub_$ac_func || defined __stub___$ac_func
10762 choke me
10763 #endif
10764
10765 int
10766 main ()
10767 {
10768 return $ac_func ();
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 rm -f conftest.$ac_objext conftest$ac_exeext
10774 if { (ac_try="$ac_link"
10775 case "(($ac_try" in
10776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777   *) ac_try_echo=$ac_try;;
10778 esac
10779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10780 $as_echo "$ac_try_echo") >&5
10781   (eval "$ac_link") 2>conftest.er1
10782   ac_status=$?
10783   grep -v '^ *+' conftest.er1 >conftest.err
10784   rm -f conftest.er1
10785   cat conftest.err >&5
10786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); } && {
10788          test -z "$ac_c_werror_flag" ||
10789          test ! -s conftest.err
10790        } && test -s conftest$ac_exeext && {
10791          test "$cross_compiling" = yes ||
10792          $as_test_x conftest$ac_exeext
10793        }; then
10794   eval "$as_ac_var=yes"
10795 else
10796   $as_echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10798
10799         eval "$as_ac_var=no"
10800 fi
10801
10802 rm -rf conftest.dSYM
10803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10804       conftest$ac_exeext conftest.$ac_ext
10805 fi
10806 ac_res=`eval 'as_val=${'$as_ac_var'}
10807                  $as_echo "$as_val"'`
10808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809 $as_echo "$ac_res" >&6; }
10810 as_val=`eval 'as_val=${'$as_ac_var'}
10811                  $as_echo "$as_val"'`
10812    if test "x$as_val" = x""yes; then
10813   cat >>confdefs.h <<_ACEOF
10814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10815 _ACEOF
10816
10817 else
10818
10819       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
10820 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
10821 if test "${gl_cv_w32_gethostbyname+set}" = set; then
10822   $as_echo_n "(cached) " >&6
10823 else
10824   gl_cv_w32_gethostbyname=no
10825          gl_save_LIBS="$LIBS"
10826          LIBS="$LIBS -lws2_32"
10827          cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833
10834 #ifdef HAVE_WINSOCK2_H
10835 #include <winsock2.h>
10836 #endif
10837 #include <stddef.h>
10838
10839 int
10840 main ()
10841 {
10842 gethostbyname(NULL);
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855   (eval "$ac_link") 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } && {
10862          test -z "$ac_c_werror_flag" ||
10863          test ! -s conftest.err
10864        } && test -s conftest$ac_exeext && {
10865          test "$cross_compiling" = yes ||
10866          $as_test_x conftest$ac_exeext
10867        }; then
10868   gl_cv_w32_gethostbyname=yes
10869 else
10870   $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10872
10873
10874 fi
10875
10876 rm -rf conftest.dSYM
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878       conftest$ac_exeext conftest.$ac_ext
10879          LIBS="$gl_save_LIBS"
10880
10881 fi
10882 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
10883 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
10884       if test "$gl_cv_w32_gethostbyname" = "yes"; then
10885         HOSTENT_LIB="-lws2_32"
10886       fi
10887
10888 fi
10889 done
10890
10891   fi
10892
10893
10894
10895                       SERVENT_LIB=
10896   gl_saved_libs="$LIBS"
10897   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
10898 $as_echo_n "checking for library containing getservbyname... " >&6; }
10899 if test "${ac_cv_search_getservbyname+set}" = set; then
10900   $as_echo_n "(cached) " >&6
10901 else
10902   ac_func_search_save_LIBS=$LIBS
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911    Use char because int might match the return type of a GCC
10912    builtin and then its argument prototype would still apply.  */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char getservbyname ();
10917 int
10918 main ()
10919 {
10920 return getservbyname ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 for ac_lib in '' socket network net; do
10926   if test -z "$ac_lib"; then
10927     ac_res="none required"
10928   else
10929     ac_res=-l$ac_lib
10930     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10931   fi
10932   rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (ac_try="$ac_link"
10934 case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10939 $as_echo "$ac_try_echo") >&5
10940   (eval "$ac_link") 2>conftest.er1
10941   ac_status=$?
10942   grep -v '^ *+' conftest.er1 >conftest.err
10943   rm -f conftest.er1
10944   cat conftest.err >&5
10945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); } && {
10947          test -z "$ac_c_werror_flag" ||
10948          test ! -s conftest.err
10949        } && test -s conftest$ac_exeext && {
10950          test "$cross_compiling" = yes ||
10951          $as_test_x conftest$ac_exeext
10952        }; then
10953   ac_cv_search_getservbyname=$ac_res
10954 else
10955   $as_echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958
10959 fi
10960
10961 rm -rf conftest.dSYM
10962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10963       conftest$ac_exeext
10964   if test "${ac_cv_search_getservbyname+set}" = set; then
10965   break
10966 fi
10967 done
10968 if test "${ac_cv_search_getservbyname+set}" = set; then
10969   :
10970 else
10971   ac_cv_search_getservbyname=no
10972 fi
10973 rm conftest.$ac_ext
10974 LIBS=$ac_func_search_save_LIBS
10975 fi
10976 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
10977 $as_echo "$ac_cv_search_getservbyname" >&6; }
10978 ac_res=$ac_cv_search_getservbyname
10979 if test "$ac_res" != no; then
10980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10981   if test "$ac_cv_search_getservbyname" != "none required"; then
10982        SERVENT_LIB="$ac_cv_search_getservbyname"
10983      fi
10984 fi
10985
10986   LIBS="$gl_saved_libs"
10987   if test -z "$SERVENT_LIB"; then
10988
10989 for ac_func in getservbyname
10990 do
10991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 $as_echo_n "checking for $ac_func... " >&6; }
10994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995   $as_echo_n "(cached) " >&6
10996 else
10997   cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11005 #define $ac_func innocuous_$ac_func
11006
11007 /* System header to define __stub macros and hopefully few prototypes,
11008     which can conflict with char $ac_func (); below.
11009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010     <limits.h> exists even on freestanding compilers.  */
11011
11012 #ifdef __STDC__
11013 # include <limits.h>
11014 #else
11015 # include <assert.h>
11016 #endif
11017
11018 #undef $ac_func
11019
11020 /* Override any GCC internal prototype to avoid an error.
11021    Use char because int might match the return type of a GCC
11022    builtin and then its argument prototype would still apply.  */
11023 #ifdef __cplusplus
11024 extern "C"
11025 #endif
11026 char $ac_func ();
11027 /* The GNU C library defines this for functions which it implements
11028     to always fail with ENOSYS.  Some functions are actually named
11029     something starting with __ and the normal name is an alias.  */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11031 choke me
11032 #endif
11033
11034 int
11035 main ()
11036 {
11037 return $ac_func ();
11038   ;
11039   return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext conftest$ac_exeext
11043 if { (ac_try="$ac_link"
11044 case "(($ac_try" in
11045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046   *) ac_try_echo=$ac_try;;
11047 esac
11048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11049 $as_echo "$ac_try_echo") >&5
11050   (eval "$ac_link") 2>conftest.er1
11051   ac_status=$?
11052   grep -v '^ *+' conftest.er1 >conftest.err
11053   rm -f conftest.er1
11054   cat conftest.err >&5
11055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } && {
11057          test -z "$ac_c_werror_flag" ||
11058          test ! -s conftest.err
11059        } && test -s conftest$ac_exeext && {
11060          test "$cross_compiling" = yes ||
11061          $as_test_x conftest$ac_exeext
11062        }; then
11063   eval "$as_ac_var=yes"
11064 else
11065   $as_echo "$as_me: failed program was:" >&5
11066 sed 's/^/| /' conftest.$ac_ext >&5
11067
11068         eval "$as_ac_var=no"
11069 fi
11070
11071 rm -rf conftest.dSYM
11072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11073       conftest$ac_exeext conftest.$ac_ext
11074 fi
11075 ac_res=`eval 'as_val=${'$as_ac_var'}
11076                  $as_echo "$as_val"'`
11077                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11078 $as_echo "$ac_res" >&6; }
11079 as_val=`eval 'as_val=${'$as_ac_var'}
11080                  $as_echo "$as_val"'`
11081    if test "x$as_val" = x""yes; then
11082   cat >>confdefs.h <<_ACEOF
11083 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11084 _ACEOF
11085
11086 else
11087
11088       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
11089 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
11090 if test "${gl_cv_w32_getservbyname+set}" = set; then
11091   $as_echo_n "(cached) " >&6
11092 else
11093   gl_cv_w32_getservbyname=no
11094          gl_save_LIBS="$LIBS"
11095          LIBS="$LIBS -lws2_32"
11096          cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102
11103 #ifdef HAVE_WINSOCK2_H
11104 #include <winsock2.h>
11105 #endif
11106 #include <stddef.h>
11107
11108 int
11109 main ()
11110 {
11111 getservbyname(NULL,NULL);
11112   ;
11113   return 0;
11114 }
11115 _ACEOF
11116 rm -f conftest.$ac_objext conftest$ac_exeext
11117 if { (ac_try="$ac_link"
11118 case "(($ac_try" in
11119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120   *) ac_try_echo=$ac_try;;
11121 esac
11122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11123 $as_echo "$ac_try_echo") >&5
11124   (eval "$ac_link") 2>conftest.er1
11125   ac_status=$?
11126   grep -v '^ *+' conftest.er1 >conftest.err
11127   rm -f conftest.er1
11128   cat conftest.err >&5
11129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); } && {
11131          test -z "$ac_c_werror_flag" ||
11132          test ! -s conftest.err
11133        } && test -s conftest$ac_exeext && {
11134          test "$cross_compiling" = yes ||
11135          $as_test_x conftest$ac_exeext
11136        }; then
11137   gl_cv_w32_getservbyname=yes
11138 else
11139   $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142
11143 fi
11144
11145 rm -rf conftest.dSYM
11146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11147       conftest$ac_exeext conftest.$ac_ext
11148          LIBS="$gl_save_LIBS"
11149
11150 fi
11151 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
11152 $as_echo "$gl_cv_w32_getservbyname" >&6; }
11153       if test "$gl_cv_w32_getservbyname" = "yes"; then
11154         SERVENT_LIB="-lws2_32"
11155       fi
11156
11157 fi
11158 done
11159
11160   fi
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172   :
11173
11174
11175
11176
11177
11178
11179   { $as_echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
11180 $as_echo_n "checking for IPv4 sockets... " >&6; }
11181   if test "${gl_cv_socket_ipv4+set}" = set; then
11182   $as_echo_n "(cached) " >&6
11183 else
11184   cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h.  */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h.  */
11190 #include <sys/types.h>
11191 #ifdef HAVE_SYS_SOCKET_H
11192 #include <sys/socket.h>
11193 #endif
11194 #ifdef HAVE_NETINET_IN_H
11195 #include <netinet/in.h>
11196 #endif
11197 #ifdef HAVE_WINSOCK2_H
11198 #include <winsock2.h>
11199 #endif
11200 int
11201 main ()
11202 {
11203 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
11204  if (&x && &y && &z) return 0;
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest.$ac_objext
11210 if { (ac_try="$ac_compile"
11211 case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11216 $as_echo "$ac_try_echo") >&5
11217   (eval "$ac_compile") 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } && {
11224          test -z "$ac_c_werror_flag" ||
11225          test ! -s conftest.err
11226        } && test -s conftest.$ac_objext; then
11227   gl_cv_socket_ipv4=yes
11228 else
11229   $as_echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232         gl_cv_socket_ipv4=no
11233 fi
11234
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 fi
11237
11238   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
11239 $as_echo "$gl_cv_socket_ipv4" >&6; }
11240   if test $gl_cv_socket_ipv4 = yes; then
11241
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_IPV4 1
11244 _ACEOF
11245
11246   fi
11247
11248   { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
11249 $as_echo_n "checking for IPv6 sockets... " >&6; }
11250   if test "${gl_cv_socket_ipv6+set}" = set; then
11251   $as_echo_n "(cached) " >&6
11252 else
11253   cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 #include <sys/types.h>
11260 #ifdef HAVE_SYS_SOCKET_H
11261 #include <sys/socket.h>
11262 #endif
11263 #ifdef HAVE_NETINET_IN_H
11264 #include <netinet/in.h>
11265 #endif
11266 #ifdef HAVE_WINSOCK2_H
11267 #include <winsock2.h>
11268 #endif
11269 #ifdef HAVE_WS2TCPIP_H
11270 #include <ws2tcpip.h>
11271 #endif
11272 int
11273 main ()
11274 {
11275 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
11276  if (&x && &y && &z) return 0;
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 rm -f conftest.$ac_objext
11282 if { (ac_try="$ac_compile"
11283 case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11288 $as_echo "$ac_try_echo") >&5
11289   (eval "$ac_compile") 2>conftest.er1
11290   ac_status=$?
11291   grep -v '^ *+' conftest.er1 >conftest.err
11292   rm -f conftest.er1
11293   cat conftest.err >&5
11294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295   (exit $ac_status); } && {
11296          test -z "$ac_c_werror_flag" ||
11297          test ! -s conftest.err
11298        } && test -s conftest.$ac_objext; then
11299   gl_cv_socket_ipv6=yes
11300 else
11301   $as_echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304         gl_cv_socket_ipv6=no
11305 fi
11306
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 fi
11309
11310   { $as_echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
11311 $as_echo "$gl_cv_socket_ipv6" >&6; }
11312   if test $gl_cv_socket_ipv6 = yes; then
11313
11314 cat >>confdefs.h <<\_ACEOF
11315 #define HAVE_IPV6 1
11316 _ACEOF
11317
11318   fi
11319
11320
11321
11322
11323
11324     :
11325
11326
11327       gl_save_LIBS=$LIBS
11328   { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
11329 $as_echo_n "checking for library containing inet_ntop... " >&6; }
11330 if test "${ac_cv_search_inet_ntop+set}" = set; then
11331   $as_echo_n "(cached) " >&6
11332 else
11333   ac_func_search_save_LIBS=$LIBS
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340
11341 /* Override any GCC internal prototype to avoid an error.
11342    Use char because int might match the return type of a GCC
11343    builtin and then its argument prototype would still apply.  */
11344 #ifdef __cplusplus
11345 extern "C"
11346 #endif
11347 char inet_ntop ();
11348 int
11349 main ()
11350 {
11351 return inet_ntop ();
11352   ;
11353   return 0;
11354 }
11355 _ACEOF
11356 for ac_lib in '' nsl; do
11357   if test -z "$ac_lib"; then
11358     ac_res="none required"
11359   else
11360     ac_res=-l$ac_lib
11361     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11362   fi
11363   rm -f conftest.$ac_objext conftest$ac_exeext
11364 if { (ac_try="$ac_link"
11365 case "(($ac_try" in
11366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367   *) ac_try_echo=$ac_try;;
11368 esac
11369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11370 $as_echo "$ac_try_echo") >&5
11371   (eval "$ac_link") 2>conftest.er1
11372   ac_status=$?
11373   grep -v '^ *+' conftest.er1 >conftest.err
11374   rm -f conftest.er1
11375   cat conftest.err >&5
11376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377   (exit $ac_status); } && {
11378          test -z "$ac_c_werror_flag" ||
11379          test ! -s conftest.err
11380        } && test -s conftest$ac_exeext && {
11381          test "$cross_compiling" = yes ||
11382          $as_test_x conftest$ac_exeext
11383        }; then
11384   ac_cv_search_inet_ntop=$ac_res
11385 else
11386   $as_echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11388
11389
11390 fi
11391
11392 rm -rf conftest.dSYM
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394       conftest$ac_exeext
11395   if test "${ac_cv_search_inet_ntop+set}" = set; then
11396   break
11397 fi
11398 done
11399 if test "${ac_cv_search_inet_ntop+set}" = set; then
11400   :
11401 else
11402   ac_cv_search_inet_ntop=no
11403 fi
11404 rm conftest.$ac_ext
11405 LIBS=$ac_func_search_save_LIBS
11406 fi
11407 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
11408 $as_echo "$ac_cv_search_inet_ntop" >&6; }
11409 ac_res=$ac_cv_search_inet_ntop
11410 if test "$ac_res" != no; then
11411   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11412
11413 else
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423 for ac_func in inet_ntop
11424 do
11425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11427 $as_echo_n "checking for $ac_func... " >&6; }
11428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11429   $as_echo_n "(cached) " >&6
11430 else
11431   cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11439 #define $ac_func innocuous_$ac_func
11440
11441 /* System header to define __stub macros and hopefully few prototypes,
11442     which can conflict with char $ac_func (); below.
11443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444     <limits.h> exists even on freestanding compilers.  */
11445
11446 #ifdef __STDC__
11447 # include <limits.h>
11448 #else
11449 # include <assert.h>
11450 #endif
11451
11452 #undef $ac_func
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455    Use char because int might match the return type of a GCC
11456    builtin and then its argument prototype would still apply.  */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char $ac_func ();
11461 /* The GNU C library defines this for functions which it implements
11462     to always fail with ENOSYS.  Some functions are actually named
11463     something starting with __ and the normal name is an alias.  */
11464 #if defined __stub_$ac_func || defined __stub___$ac_func
11465 choke me
11466 #endif
11467
11468 int
11469 main ()
11470 {
11471 return $ac_func ();
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480   *) ac_try_echo=$ac_try;;
11481 esac
11482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11483 $as_echo "$ac_try_echo") >&5
11484   (eval "$ac_link") 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } && {
11491          test -z "$ac_c_werror_flag" ||
11492          test ! -s conftest.err
11493        } && test -s conftest$ac_exeext && {
11494          test "$cross_compiling" = yes ||
11495          $as_test_x conftest$ac_exeext
11496        }; then
11497   eval "$as_ac_var=yes"
11498 else
11499   $as_echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502         eval "$as_ac_var=no"
11503 fi
11504
11505 rm -rf conftest.dSYM
11506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11507       conftest$ac_exeext conftest.$ac_ext
11508 fi
11509 ac_res=`eval 'as_val=${'$as_ac_var'}
11510                  $as_echo "$as_val"'`
11511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11512 $as_echo "$ac_res" >&6; }
11513 as_val=`eval 'as_val=${'$as_ac_var'}
11514                  $as_echo "$as_val"'`
11515    if test "x$as_val" = x""yes; then
11516   cat >>confdefs.h <<_ACEOF
11517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11518 _ACEOF
11519
11520 else
11521
11522     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
11523
11524 fi
11525 done
11526
11527
11528 fi
11529
11530   LIBS=$gl_save_LIBS
11531   INET_NTOP_LIB=
11532   if test "$ac_cv_search_inet_ntop" != "no" &&
11533      test "$ac_cv_search_inet_ntop" != "none required"; then
11534     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
11535   fi
11536
11537
11538
11539   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
11540 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
11541 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
11542   $as_echo_n "(cached) " >&6
11543 else
11544   cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 #include <arpa/inet.h>
11551
11552 int
11553 main ()
11554 {
11555 #ifndef inet_ntop
11556   (void) inet_ntop;
11557 #endif
11558
11559   ;
11560   return 0;
11561 }
11562 _ACEOF
11563 rm -f conftest.$ac_objext
11564 if { (ac_try="$ac_compile"
11565 case "(($ac_try" in
11566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11567   *) ac_try_echo=$ac_try;;
11568 esac
11569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11570 $as_echo "$ac_try_echo") >&5
11571   (eval "$ac_compile") 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } && {
11578          test -z "$ac_c_werror_flag" ||
11579          test ! -s conftest.err
11580        } && test -s conftest.$ac_objext; then
11581   ac_cv_have_decl_inet_ntop=yes
11582 else
11583   $as_echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11585
11586         ac_cv_have_decl_inet_ntop=no
11587 fi
11588
11589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11590 fi
11591 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
11592 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
11593 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define HAVE_DECL_INET_NTOP 1
11597 _ACEOF
11598
11599
11600 else
11601   cat >>confdefs.h <<_ACEOF
11602 #define HAVE_DECL_INET_NTOP 0
11603 _ACEOF
11604
11605
11606 fi
11607
11608
11609   if test $ac_cv_have_decl_inet_ntop = no; then
11610     HAVE_DECL_INET_NTOP=0
11611   fi
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630   :
11631
11632
11633
11634
11635
11636
11637
11638      if test $gl_cv_have_include_next = yes; then
11639        gl_cv_next_getopt_h='<'getopt.h'>'
11640      else
11641        { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
11642 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
11643 if test "${gl_cv_next_getopt_h+set}" = set; then
11644   $as_echo_n "(cached) " >&6
11645 else
11646
11647           if test $ac_cv_header_getopt_h = yes; then
11648             cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 #include <getopt.h>
11655
11656 _ACEOF
11657                                                                                                 case "$host_os" in
11658               aix*) gl_absname_cpp="$ac_cpp -C" ;;
11659               *)    gl_absname_cpp="$ac_cpp" ;;
11660             esac
11661                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11662                sed -n '\#/getopt.h#{
11663                  s#.*"\(.*/getopt.h\)".*#\1#
11664                  s#^/[^/]#//&#
11665                  p
11666                  q
11667                }'`'"'
11668           else
11669             gl_cv_next_getopt_h='<'getopt.h'>'
11670           fi
11671
11672 fi
11673 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
11674 $as_echo "$gl_cv_next_getopt_h" >&6; }
11675      fi
11676      NEXT_GETOPT_H=$gl_cv_next_getopt_h
11677
11678      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11679        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11680        gl_next_as_first_directive='<'getopt.h'>'
11681      else
11682        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11683        gl_next_as_first_directive=$gl_cv_next_getopt_h
11684      fi
11685      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
11686
11687
11688
11689
11690   :
11691
11692
11693
11694
11695
11696   if test $ac_cv_header_getopt_h = yes; then
11697     HAVE_GETOPT_H=1
11698   else
11699     HAVE_GETOPT_H=0
11700   fi
11701
11702
11703   gl_replace_getopt=
11704
11705     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11706
11707 for ac_header in getopt.h
11708 do
11709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11712 $as_echo_n "checking for $ac_header... " >&6; }
11713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714   $as_echo_n "(cached) " >&6
11715 fi
11716 ac_res=`eval 'as_val=${'$as_ac_Header'}
11717                  $as_echo "$as_val"'`
11718                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11719 $as_echo "$ac_res" >&6; }
11720 else
11721   # Is the header compilable?
11722 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11723 $as_echo_n "checking $ac_header usability... " >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730 $ac_includes_default
11731 #include <$ac_header>
11732 _ACEOF
11733 rm -f conftest.$ac_objext
11734 if { (ac_try="$ac_compile"
11735 case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11740 $as_echo "$ac_try_echo") >&5
11741   (eval "$ac_compile") 2>conftest.er1
11742   ac_status=$?
11743   grep -v '^ *+' conftest.er1 >conftest.err
11744   rm -f conftest.er1
11745   cat conftest.err >&5
11746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } && {
11748          test -z "$ac_c_werror_flag" ||
11749          test ! -s conftest.err
11750        } && test -s conftest.$ac_objext; then
11751   ac_header_compiler=yes
11752 else
11753   $as_echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756         ac_header_compiler=no
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11761 $as_echo "$ac_header_compiler" >&6; }
11762
11763 # Is the header present?
11764 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11765 $as_echo_n "checking $ac_header presence... " >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772 #include <$ac_header>
11773 _ACEOF
11774 if { (ac_try="$ac_cpp conftest.$ac_ext"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11780 $as_echo "$ac_try_echo") >&5
11781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } >/dev/null && {
11788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11789          test ! -s conftest.err
11790        }; then
11791   ac_header_preproc=yes
11792 else
11793   $as_echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796   ac_header_preproc=no
11797 fi
11798
11799 rm -f conftest.err conftest.$ac_ext
11800 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11801 $as_echo "$ac_header_preproc" >&6; }
11802
11803 # So?  What about this header?
11804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11805   yes:no: )
11806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11807 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11810     ac_header_preproc=yes
11811     ;;
11812   no:yes:* )
11813     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11814 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11815     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11816 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11817     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11818 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11819     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11820 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11821     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11824 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11825
11826     ;;
11827 esac
11828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11829 $as_echo_n "checking for $ac_header... " >&6; }
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831   $as_echo_n "(cached) " >&6
11832 else
11833   eval "$as_ac_Header=\$ac_header_preproc"
11834 fi
11835 ac_res=`eval 'as_val=${'$as_ac_Header'}
11836                  $as_echo "$as_val"'`
11837                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838 $as_echo "$ac_res" >&6; }
11839
11840 fi
11841 as_val=`eval 'as_val=${'$as_ac_Header'}
11842                  $as_echo "$as_val"'`
11843    if test "x$as_val" = x""yes; then
11844   cat >>confdefs.h <<_ACEOF
11845 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11846 _ACEOF
11847
11848 else
11849   gl_replace_getopt=yes
11850 fi
11851
11852 done
11853
11854   fi
11855
11856     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
11857
11858 for ac_func in getopt_long_only
11859 do
11860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11862 $as_echo_n "checking for $ac_func... " >&6; }
11863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11864   $as_echo_n "(cached) " >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11874 #define $ac_func innocuous_$ac_func
11875
11876 /* System header to define __stub macros and hopefully few prototypes,
11877     which can conflict with char $ac_func (); below.
11878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879     <limits.h> exists even on freestanding compilers.  */
11880
11881 #ifdef __STDC__
11882 # include <limits.h>
11883 #else
11884 # include <assert.h>
11885 #endif
11886
11887 #undef $ac_func
11888
11889 /* Override any GCC internal prototype to avoid an error.
11890    Use char because int might match the return type of a GCC
11891    builtin and then its argument prototype would still apply.  */
11892 #ifdef __cplusplus
11893 extern "C"
11894 #endif
11895 char $ac_func ();
11896 /* The GNU C library defines this for functions which it implements
11897     to always fail with ENOSYS.  Some functions are actually named
11898     something starting with __ and the normal name is an alias.  */
11899 #if defined __stub_$ac_func || defined __stub___$ac_func
11900 choke me
11901 #endif
11902
11903 int
11904 main ()
11905 {
11906 return $ac_func ();
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918 $as_echo "$ac_try_echo") >&5
11919   (eval "$ac_link") 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } && {
11926          test -z "$ac_c_werror_flag" ||
11927          test ! -s conftest.err
11928        } && test -s conftest$ac_exeext && {
11929          test "$cross_compiling" = yes ||
11930          $as_test_x conftest$ac_exeext
11931        }; then
11932   eval "$as_ac_var=yes"
11933 else
11934   $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937         eval "$as_ac_var=no"
11938 fi
11939
11940 rm -rf conftest.dSYM
11941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 ac_res=`eval 'as_val=${'$as_ac_var'}
11945                  $as_echo "$as_val"'`
11946                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11947 $as_echo "$ac_res" >&6; }
11948 as_val=`eval 'as_val=${'$as_ac_var'}
11949                  $as_echo "$as_val"'`
11950    if test "x$as_val" = x""yes; then
11951   cat >>confdefs.h <<_ACEOF
11952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11953 _ACEOF
11954
11955 else
11956   gl_replace_getopt=yes
11957 fi
11958 done
11959
11960   fi
11961
11962               if test -z "$gl_replace_getopt"; then
11963     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11964 $as_echo_n "checking whether optreset is declared... " >&6; }
11965 if test "${ac_cv_have_decl_optreset+set}" = set; then
11966   $as_echo_n "(cached) " >&6
11967 else
11968   cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h.  */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h.  */
11974 #include <getopt.h>
11975
11976 int
11977 main ()
11978 {
11979 #ifndef optreset
11980   (void) optreset;
11981 #endif
11982
11983   ;
11984   return 0;
11985 }
11986 _ACEOF
11987 rm -f conftest.$ac_objext
11988 if { (ac_try="$ac_compile"
11989 case "(($ac_try" in
11990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991   *) ac_try_echo=$ac_try;;
11992 esac
11993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11994 $as_echo "$ac_try_echo") >&5
11995   (eval "$ac_compile") 2>conftest.er1
11996   ac_status=$?
11997   grep -v '^ *+' conftest.er1 >conftest.err
11998   rm -f conftest.er1
11999   cat conftest.err >&5
12000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001   (exit $ac_status); } && {
12002          test -z "$ac_c_werror_flag" ||
12003          test ! -s conftest.err
12004        } && test -s conftest.$ac_objext; then
12005   ac_cv_have_decl_optreset=yes
12006 else
12007   $as_echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010         ac_cv_have_decl_optreset=no
12011 fi
12012
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 fi
12015 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
12016 $as_echo "$ac_cv_have_decl_optreset" >&6; }
12017 if test "x$ac_cv_have_decl_optreset" = x""yes; then
12018
12019 cat >>confdefs.h <<_ACEOF
12020 #define HAVE_DECL_OPTRESET 1
12021 _ACEOF
12022
12023
12024 else
12025   cat >>confdefs.h <<_ACEOF
12026 #define HAVE_DECL_OPTRESET 0
12027 _ACEOF
12028
12029 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
12030 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
12031 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
12032   $as_echo_n "(cached) " >&6
12033 else
12034   cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 #include <getopt.h>
12041
12042 int
12043 main ()
12044 {
12045 #ifndef getopt_clip
12046   (void) getopt_clip;
12047 #endif
12048
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060 $as_echo "$ac_try_echo") >&5
12061   (eval "$ac_compile") 2>conftest.er1
12062   ac_status=$?
12063   grep -v '^ *+' conftest.er1 >conftest.err
12064   rm -f conftest.er1
12065   cat conftest.err >&5
12066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } && {
12068          test -z "$ac_c_werror_flag" ||
12069          test ! -s conftest.err
12070        } && test -s conftest.$ac_objext; then
12071   ac_cv_have_decl_getopt_clip=yes
12072 else
12073   $as_echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12075
12076         ac_cv_have_decl_getopt_clip=no
12077 fi
12078
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 fi
12081 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
12082 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
12083 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
12084
12085 cat >>confdefs.h <<_ACEOF
12086 #define HAVE_DECL_GETOPT_CLIP 1
12087 _ACEOF
12088
12089
12090 else
12091   cat >>confdefs.h <<_ACEOF
12092 #define HAVE_DECL_GETOPT_CLIP 0
12093 _ACEOF
12094
12095
12096 fi
12097
12098
12099
12100 fi
12101
12102
12103   fi
12104
12105                     if test -z "$gl_replace_getopt"; then
12106     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
12107 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
12108 if test "${gl_cv_func_getopt_posix+set}" = set; then
12109   $as_echo_n "(cached) " >&6
12110 else
12111
12112                 if test "$cross_compiling" = yes; then
12113   case "$host_os" in
12114              mingw*)         gl_cv_func_getopt_posix="guessing no";;
12115              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
12116              *)              gl_cv_func_getopt_posix="guessing yes";;
12117            esac
12118
12119 else
12120   cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h.  */
12126
12127 #include <unistd.h>
12128 #include <stdlib.h>
12129 #include <string.h>
12130
12131 #if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
12132 # define OPTIND_MIN 0
12133 #else
12134 # define OPTIND_MIN 1
12135 #endif
12136
12137 int
12138 main ()
12139 {
12140   {
12141     int argc = 0;
12142     char *argv[10];
12143     int c;
12144
12145     argv[argc++] = "program";
12146     argv[argc++] = "-a";
12147     argv[argc++] = "foo";
12148     argv[argc++] = "bar";
12149     argv[argc] = NULL;
12150     optind = OPTIND_MIN;
12151     opterr = 0;
12152
12153     c = getopt (argc, argv, "ab");
12154     if (!(c == 'a'))
12155       return 1;
12156     c = getopt (argc, argv, "ab");
12157     if (!(c == -1))
12158       return 2;
12159     if (!(optind == 2))
12160       return 3;
12161   }
12162   /* Some internal state exists at this point.  */
12163   {
12164     int argc = 0;
12165     char *argv[10];
12166     int c;
12167
12168     argv[argc++] = "program";
12169     argv[argc++] = "donald";
12170     argv[argc++] = "-p";
12171     argv[argc++] = "billy";
12172     argv[argc++] = "duck";
12173     argv[argc++] = "-a";
12174     argv[argc++] = "bar";
12175     argv[argc] = NULL;
12176     optind = OPTIND_MIN;
12177     opterr = 0;
12178
12179     c = getopt (argc, argv, "+abp:q:");
12180     if (!(c == -1))
12181       return 4;
12182     if (!(strcmp (argv[0], "program") == 0))
12183       return 5;
12184     if (!(strcmp (argv[1], "donald") == 0))
12185       return 6;
12186     if (!(strcmp (argv[2], "-p") == 0))
12187       return 7;
12188     if (!(strcmp (argv[3], "billy") == 0))
12189       return 8;
12190     if (!(strcmp (argv[4], "duck") == 0))
12191       return 9;
12192     if (!(strcmp (argv[5], "-a") == 0))
12193       return 10;
12194     if (!(strcmp (argv[6], "bar") == 0))
12195       return 11;
12196     if (!(optind == 1))
12197       return 12;
12198   }
12199   /* Detect MacOS 10.5, AIX 7.1 bug.  */
12200   {
12201     char *argv[3] = { "program", "-ab", NULL };
12202     optind = OPTIND_MIN;
12203     opterr = 0;
12204     if (getopt (2, argv, "ab:") != 'a')
12205       return 13;
12206     if (getopt (2, argv, "ab:") != '?')
12207       return 14;
12208     if (optopt != 'b')
12209       return 15;
12210     if (optind != 2)
12211       return 16;
12212   }
12213
12214   return 0;
12215 }
12216
12217 _ACEOF
12218 rm -f conftest$ac_exeext
12219 if { (ac_try="$ac_link"
12220 case "(($ac_try" in
12221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222   *) ac_try_echo=$ac_try;;
12223 esac
12224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226   (eval "$ac_link") 2>&5
12227   ac_status=$?
12228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12230   { (case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12235 $as_echo "$ac_try_echo") >&5
12236   (eval "$ac_try") 2>&5
12237   ac_status=$?
12238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   gl_cv_func_getopt_posix=yes
12241 else
12242   $as_echo "$as_me: program exited with status $ac_status" >&5
12243 $as_echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.$ac_ext >&5
12245
12246 ( exit $ac_status )
12247 gl_cv_func_getopt_posix=no
12248 fi
12249 rm -rf conftest.dSYM
12250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12251 fi
12252
12253
12254
12255 fi
12256 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
12257 $as_echo "$gl_cv_func_getopt_posix" >&6; }
12258     case "$gl_cv_func_getopt_posix" in
12259       *no) gl_replace_getopt=yes ;;
12260     esac
12261   fi
12262
12263   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12264     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
12265 $as_echo_n "checking for working GNU getopt function... " >&6; }
12266 if test "${gl_cv_func_getopt_gnu+set}" = set; then
12267   $as_echo_n "(cached) " >&6
12268 else
12269   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
12270        # optstring is necessary for programs like m4 that have POSIX-mandated
12271        # semantics for supporting options interspersed with files.
12272        # Also, since getopt_long is a GNU extension, we require optind=0.
12273        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
12274        # so take care to revert to the correct (non-)export state.
12275        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
12276        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
12277          xx) gl_had_POSIXLY_CORRECT=exported ;;
12278          x)  gl_had_POSIXLY_CORRECT=yes      ;;
12279          *)  gl_had_POSIXLY_CORRECT=         ;;
12280        esac
12281        POSIXLY_CORRECT=1
12282        export POSIXLY_CORRECT
12283        if test "$cross_compiling" = yes; then
12284            case $host_os:$ac_cv_have_decl_optreset in
12285            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
12286            *:yes)               gl_cv_func_getopt_gnu=no;;
12287            *)                   gl_cv_func_getopt_gnu=yes;;
12288          esac
12289
12290 else
12291   cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h.  */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h.  */
12297 #include <getopt.h>
12298                            #include <stddef.h>
12299                            #include <string.h>
12300
12301 int
12302 main ()
12303 {
12304
12305              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
12306                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
12307                 OSF/1 5.1, Solaris 10.  */
12308              {
12309                char *myargv[3];
12310                myargv[0] = "conftest";
12311                myargv[1] = "-+";
12312                myargv[2] = 0;
12313                opterr = 0;
12314                if (getopt (2, myargv, "+a") != '?')
12315                  return 1;
12316              }
12317              /* This code succeeds on glibc 2.8, mingw,
12318                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
12319                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
12320              {
12321                char *argv[] = { "program", "-p", "foo", "bar", NULL };
12322
12323                optind = 1;
12324                if (getopt (4, argv, "p::") != 'p')
12325                  return 2;
12326                if (optarg != NULL)
12327                  return 3;
12328                if (getopt (4, argv, "p::") != -1)
12329                  return 4;
12330                if (optind != 2)
12331                  return 5;
12332              }
12333              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
12334              {
12335                char *argv[] = { "program", "foo", "-p", NULL };
12336                optind = 0;
12337                if (getopt (3, argv, "-p") != 1)
12338                  return 6;
12339                if (getopt (3, argv, "-p") != 'p')
12340                  return 7;
12341              }
12342              /* This code fails on glibc 2.11.  */
12343              {
12344                char *argv[] = { "program", "-b", "-a", NULL };
12345                optind = opterr = 0;
12346                if (getopt (3, argv, "+:a:b") != 'b')
12347                  return 8;
12348                if (getopt (3, argv, "+:a:b") != ':')
12349                  return 9;
12350              }
12351              return 0;
12352
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12364 $as_echo "$ac_try_echo") >&5
12365   (eval "$ac_link") 2>&5
12366   ac_status=$?
12367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12369   { (case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12374 $as_echo "$ac_try_echo") >&5
12375   (eval "$ac_try") 2>&5
12376   ac_status=$?
12377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   gl_cv_func_getopt_gnu=yes
12380 else
12381   $as_echo "$as_me: program exited with status $ac_status" >&5
12382 $as_echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.$ac_ext >&5
12384
12385 ( exit $ac_status )
12386 gl_cv_func_getopt_gnu=no
12387 fi
12388 rm -rf conftest.dSYM
12389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12390 fi
12391
12392
12393        case $gl_had_POSIXLY_CORRECT in
12394          exported) ;;
12395          yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
12396          *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
12397        esac
12398
12399 fi
12400 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
12401 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
12402     if test "$gl_cv_func_getopt_gnu" = "no"; then
12403       gl_replace_getopt=yes
12404     fi
12405   fi
12406
12407
12408       { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12409 $as_echo_n "checking whether getenv is declared... " >&6; }
12410 if test "${ac_cv_have_decl_getenv+set}" = set; then
12411   $as_echo_n "(cached) " >&6
12412 else
12413   cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h.  */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h.  */
12419 $ac_includes_default
12420 int
12421 main ()
12422 {
12423 #ifndef getenv
12424   (void) getenv;
12425 #endif
12426
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439   (eval "$ac_compile") 2>conftest.er1
12440   ac_status=$?
12441   grep -v '^ *+' conftest.er1 >conftest.err
12442   rm -f conftest.er1
12443   cat conftest.err >&5
12444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } && {
12446          test -z "$ac_c_werror_flag" ||
12447          test ! -s conftest.err
12448        } && test -s conftest.$ac_objext; then
12449   ac_cv_have_decl_getenv=yes
12450 else
12451   $as_echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454         ac_cv_have_decl_getenv=no
12455 fi
12456
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 fi
12459 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12460 $as_echo "$ac_cv_have_decl_getenv" >&6; }
12461 if test "x$ac_cv_have_decl_getenv" = x""yes; then
12462
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_DECL_GETENV 1
12465 _ACEOF
12466
12467
12468 else
12469   cat >>confdefs.h <<_ACEOF
12470 #define HAVE_DECL_GETENV 0
12471 _ACEOF
12472
12473
12474 fi
12475
12476
12477
12478
12479
12480
12481
12482
12483   if test -n "$gl_replace_getopt"; then
12484
12485
12486
12487   GETOPT_H=getopt.h
12488
12489 cat >>confdefs.h <<\_ACEOF
12490 #define __GETOPT_PREFIX rpl_
12491 _ACEOF
12492
12493
12494
12495     GNULIB_UNISTD_H_GETOPT=1
12496
12497
12498
12499
12500
12501
12502
12503
12504   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
12515
12516
12517
12518   :
12519
12520
12521
12522
12523
12524
12525
12526
12527 fi
12528
12529
12530
12531
12532   GNULIB_GETTIMEOFDAY=0;
12533     HAVE_GETTIMEOFDAY=1;
12534   HAVE_STRUCT_TIMEVAL=1;
12535   HAVE_SYS_TIME_H=1;
12536   REPLACE_GETTIMEOFDAY=0;
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548   :
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558   :
12559
12560
12561
12562
12563
12564
12565
12566      if test $gl_cv_have_include_next = yes; then
12567        gl_cv_next_sys_time_h='<'sys/time.h'>'
12568      else
12569        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
12570 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
12571 if test "${gl_cv_next_sys_time_h+set}" = set; then
12572   $as_echo_n "(cached) " >&6
12573 else
12574
12575           if test $ac_cv_header_sys_time_h = yes; then
12576             cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 #include <sys/time.h>
12583
12584 _ACEOF
12585                                                                                                 case "$host_os" in
12586               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12587               *)    gl_absname_cpp="$ac_cpp" ;;
12588             esac
12589                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12590                sed -n '\#/sys/time.h#{
12591                  s#.*"\(.*/sys/time.h\)".*#\1#
12592                  s#^/[^/]#//&#
12593                  p
12594                  q
12595                }'`'"'
12596           else
12597             gl_cv_next_sys_time_h='<'sys/time.h'>'
12598           fi
12599
12600 fi
12601 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
12602 $as_echo "$gl_cv_next_sys_time_h" >&6; }
12603      fi
12604      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
12605
12606      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12607        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12608        gl_next_as_first_directive='<'sys/time.h'>'
12609      else
12610        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12611        gl_next_as_first_directive=$gl_cv_next_sys_time_h
12612      fi
12613      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
12614
12615
12616
12617
12618   if test $ac_cv_header_sys_time_h != yes; then
12619     HAVE_SYS_TIME_H=0
12620   fi
12621
12622   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
12623 $as_echo_n "checking for struct timeval... " >&6; }
12624 if test "${gl_cv_sys_struct_timeval+set}" = set; then
12625   $as_echo_n "(cached) " >&6
12626 else
12627   cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 #if HAVE_SYS_TIME_H
12634              #include <sys/time.h>
12635             #endif
12636             #include <time.h>
12637
12638 int
12639 main ()
12640 {
12641 static struct timeval x; x.tv_sec = x.tv_usec;
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext
12647 if { (ac_try="$ac_compile"
12648 case "(($ac_try" in
12649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650   *) ac_try_echo=$ac_try;;
12651 esac
12652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12653 $as_echo "$ac_try_echo") >&5
12654   (eval "$ac_compile") 2>conftest.er1
12655   ac_status=$?
12656   grep -v '^ *+' conftest.er1 >conftest.err
12657   rm -f conftest.er1
12658   cat conftest.err >&5
12659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); } && {
12661          test -z "$ac_c_werror_flag" ||
12662          test ! -s conftest.err
12663        } && test -s conftest.$ac_objext; then
12664   gl_cv_sys_struct_timeval=yes
12665 else
12666   $as_echo "$as_me: failed program was:" >&5
12667 sed 's/^/| /' conftest.$ac_ext >&5
12668
12669         gl_cv_sys_struct_timeval=no
12670 fi
12671
12672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12673 fi
12674 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
12675 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
12676   if test $gl_cv_sys_struct_timeval != yes; then
12677     HAVE_STRUCT_TIMEVAL=0
12678   fi
12679
12680
12681
12682   for gl_func in gettimeofday; do
12683     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12684     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
12685 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12686 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
12687   $as_echo_n "(cached) " >&6
12688 else
12689   cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h.  */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h.  */
12695
12696 #if HAVE_SYS_TIME_H
12697 # include <sys/time.h>
12698 #endif
12699 #include <time.h>
12700
12701 int
12702 main ()
12703 {
12704 #undef $gl_func
12705   (void) $gl_func;
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12717 $as_echo "$ac_try_echo") >&5
12718   (eval "$ac_compile") 2>conftest.er1
12719   ac_status=$?
12720   grep -v '^ *+' conftest.er1 >conftest.err
12721   rm -f conftest.er1
12722   cat conftest.err >&5
12723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); } && {
12725          test -z "$ac_c_werror_flag" ||
12726          test ! -s conftest.err
12727        } && test -s conftest.$ac_objext; then
12728   eval "$as_gl_Symbol=yes"
12729 else
12730   $as_echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733         eval "$as_gl_Symbol=no"
12734 fi
12735
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737 fi
12738 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
12739                  $as_echo "$as_val"'`
12740                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12741 $as_echo "$ac_res" >&6; }
12742      as_val=`eval 'as_val=${'$as_gl_Symbol'}
12743                  $as_echo "$as_val"'`
12744    if test "x$as_val" = x""yes; then
12745   cat >>confdefs.h <<_ACEOF
12746 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12747 _ACEOF
12748
12749                      eval ac_cv_have_decl_$gl_func=yes
12750 fi
12751
12752       done
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765   GNULIB_NL_LANGINFO=0;
12766     HAVE_NL_LANGINFO=1;
12767   REPLACE_NL_LANGINFO=0;
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
12778 $as_echo_n "checking for working fcntl.h... " >&6; }
12779 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
12780   $as_echo_n "(cached) " >&6
12781 else
12782   if test "$cross_compiling" = yes; then
12783   gl_cv_header_working_fcntl_h=cross-compiling
12784 else
12785   cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 #include <sys/types.h>
12792            #include <sys/stat.h>
12793            #include <unistd.h>
12794            #include <fcntl.h>
12795            #ifndef O_NOATIME
12796             #define O_NOATIME 0
12797            #endif
12798            #ifndef O_NOFOLLOW
12799             #define O_NOFOLLOW 0
12800            #endif
12801            static int const constants[] =
12802             {
12803               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
12804               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
12805             };
12806
12807 int
12808 main ()
12809 {
12810
12811             int status = !constants;
12812             {
12813               static char const sym[] = "conftest.sym";
12814               if (symlink (".", sym) != 0
12815                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
12816                 status |= 32;
12817               unlink (sym);
12818             }
12819             {
12820               static char const file[] = "confdefs.h";
12821               int fd = open (file, O_RDONLY | O_NOATIME);
12822               char c;
12823               struct stat st0, st1;
12824               if (fd < 0
12825                   || fstat (fd, &st0) != 0
12826                   || sleep (1) != 0
12827                   || read (fd, &c, 1) != 1
12828                   || close (fd) != 0
12829                   || stat (file, &st1) != 0
12830                   || st0.st_atime != st1.st_atime)
12831                 status |= 64;
12832             }
12833             return status;
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842   *) ac_try_echo=$ac_try;;
12843 esac
12844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12845 $as_echo "$ac_try_echo") >&5
12846   (eval "$ac_link") 2>&5
12847   ac_status=$?
12848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12850   { (case "(($ac_try" in
12851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852   *) ac_try_echo=$ac_try;;
12853 esac
12854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12855 $as_echo "$ac_try_echo") >&5
12856   (eval "$ac_try") 2>&5
12857   ac_status=$?
12858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   gl_cv_header_working_fcntl_h=yes
12861 else
12862   $as_echo "$as_me: program exited with status $ac_status" >&5
12863 $as_echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 ( exit $ac_status )
12867 case $? in #(
12868         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
12869         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
12870         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
12871          *) gl_cv_header_working_fcntl_h='no';;
12872         esac
12873 fi
12874 rm -rf conftest.dSYM
12875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12876 fi
12877
12878
12879 fi
12880 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
12881 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
12882
12883   case $gl_cv_header_working_fcntl_h in #(
12884   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
12885   *) ac_val=1;;
12886   esac
12887
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_WORKING_O_NOATIME $ac_val
12890 _ACEOF
12891
12892
12893   case $gl_cv_header_working_fcntl_h in #(
12894   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
12895   *) ac_val=1;;
12896   esac
12897
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_WORKING_O_NOFOLLOW $ac_val
12900 _ACEOF
12901
12902
12903
12904       { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12905 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
12906 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12907   $as_echo_n "(cached) " >&6
12908 else
12909   cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h.  */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h.  */
12915 $ac_includes_default
12916 int
12917 main ()
12918 {
12919 #ifndef getc_unlocked
12920   (void) getc_unlocked;
12921 #endif
12922
12923   ;
12924   return 0;
12925 }
12926 _ACEOF
12927 rm -f conftest.$ac_objext
12928 if { (ac_try="$ac_compile"
12929 case "(($ac_try" in
12930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931   *) ac_try_echo=$ac_try;;
12932 esac
12933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12934 $as_echo "$ac_try_echo") >&5
12935   (eval "$ac_compile") 2>conftest.er1
12936   ac_status=$?
12937   grep -v '^ *+' conftest.er1 >conftest.err
12938   rm -f conftest.er1
12939   cat conftest.err >&5
12940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); } && {
12942          test -z "$ac_c_werror_flag" ||
12943          test ! -s conftest.err
12944        } && test -s conftest.$ac_objext; then
12945   ac_cv_have_decl_getc_unlocked=yes
12946 else
12947   $as_echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950         ac_cv_have_decl_getc_unlocked=no
12951 fi
12952
12953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12954 fi
12955 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12956 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
12957 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
12958
12959 cat >>confdefs.h <<_ACEOF
12960 #define HAVE_DECL_GETC_UNLOCKED 1
12961 _ACEOF
12962
12963
12964 else
12965   cat >>confdefs.h <<_ACEOF
12966 #define HAVE_DECL_GETC_UNLOCKED 0
12967 _ACEOF
12968
12969
12970 fi
12971
12972
12973
12974
12975     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12976 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
12977 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12978   $as_echo_n "(cached) " >&6
12979 else
12980   cat >conftest.$ac_ext <<_ACEOF
12981 /* confdefs.h.  */
12982 _ACEOF
12983 cat confdefs.h >>conftest.$ac_ext
12984 cat >>conftest.$ac_ext <<_ACEOF
12985 /* end confdefs.h.  */
12986
12987 #include <features.h>
12988 #ifdef __GNU_LIBRARY__
12989  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12990   Lucky GNU user
12991  #endif
12992 #endif
12993
12994 _ACEOF
12995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12996   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12997   ac_cv_gnu_library_2_1=yes
12998 else
12999   ac_cv_gnu_library_2_1=no
13000 fi
13001 rm -f conftest*
13002
13003
13004
13005 fi
13006 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13007 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
13008
13009     GLIBC21="$ac_cv_gnu_library_2_1"
13010
13011
13012
13013       if test "X$prefix" = "XNONE"; then
13014     acl_final_prefix="$ac_default_prefix"
13015   else
13016     acl_final_prefix="$prefix"
13017   fi
13018   if test "X$exec_prefix" = "XNONE"; then
13019     acl_final_exec_prefix='${prefix}'
13020   else
13021     acl_final_exec_prefix="$exec_prefix"
13022   fi
13023   acl_save_prefix="$prefix"
13024   prefix="$acl_final_prefix"
13025   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13026   prefix="$acl_save_prefix"
13027
13028
13029 # Check whether --with-gnu-ld was given.
13030 if test "${with_gnu_ld+set}" = set; then
13031   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13032 else
13033   with_gnu_ld=no
13034 fi
13035
13036 # Prepare PATH_SEPARATOR.
13037 # The user is always right.
13038 if test "${PATH_SEPARATOR+set}" != set; then
13039   echo "#! /bin/sh" >conf$$.sh
13040   echo  "exit 0"   >>conf$$.sh
13041   chmod +x conf$$.sh
13042   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13043     PATH_SEPARATOR=';'
13044   else
13045     PATH_SEPARATOR=:
13046   fi
13047   rm -f conf$$.sh
13048 fi
13049 ac_prog=ld
13050 if test "$GCC" = yes; then
13051   # Check if gcc -print-prog-name=ld gives a path.
13052   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
13053 $as_echo_n "checking for ld used by GCC... " >&6; }
13054   case $host in
13055   *-*-mingw*)
13056     # gcc leaves a trailing carriage return which upsets mingw
13057     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13058   *)
13059     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13060   esac
13061   case $ac_prog in
13062     # Accept absolute paths.
13063     [\\/]* | [A-Za-z]:[\\/]*)
13064       re_direlt='/[^/][^/]*/\.\./'
13065       # Canonicalize the path of ld
13066       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13067       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13068         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13069       done
13070       test -z "$LD" && LD="$ac_prog"
13071       ;;
13072   "")
13073     # If it fails, then pretend we aren't using GCC.
13074     ac_prog=ld
13075     ;;
13076   *)
13077     # If it is relative, then search for the first ld in PATH.
13078     with_gnu_ld=unknown
13079     ;;
13080   esac
13081 elif test "$with_gnu_ld" = yes; then
13082   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13083 $as_echo_n "checking for GNU ld... " >&6; }
13084 else
13085   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13086 $as_echo_n "checking for non-GNU ld... " >&6; }
13087 fi
13088 if test "${acl_cv_path_LD+set}" = set; then
13089   $as_echo_n "(cached) " >&6
13090 else
13091   if test -z "$LD"; then
13092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13093   for ac_dir in $PATH; do
13094     test -z "$ac_dir" && ac_dir=.
13095     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13096       acl_cv_path_LD="$ac_dir/$ac_prog"
13097       # Check to see if the program is GNU ld.  I'd rather use --version,
13098       # but apparently some GNU ld's only accept -v.
13099       # Break only if it was the GNU/non-GNU ld that we prefer.
13100       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13101       *GNU* | *'with BFD'*)
13102         test "$with_gnu_ld" != no && break ;;
13103       *)
13104         test "$with_gnu_ld" != yes && break ;;
13105       esac
13106     fi
13107   done
13108   IFS="$ac_save_ifs"
13109 else
13110   acl_cv_path_LD="$LD" # Let the user override the test with a path.
13111 fi
13112 fi
13113
13114 LD="$acl_cv_path_LD"
13115 if test -n "$LD"; then
13116   { $as_echo "$as_me:$LINENO: result: $LD" >&5
13117 $as_echo "$LD" >&6; }
13118 else
13119   { $as_echo "$as_me:$LINENO: result: no" >&5
13120 $as_echo "no" >&6; }
13121 fi
13122 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13123 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13124    { (exit 1); exit 1; }; }
13125 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13127 if test "${acl_cv_prog_gnu_ld+set}" = set; then
13128   $as_echo_n "(cached) " >&6
13129 else
13130   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13131 case `$LD -v 2>&1 </dev/null` in
13132 *GNU* | *'with BFD'*)
13133   acl_cv_prog_gnu_ld=yes ;;
13134 *)
13135   acl_cv_prog_gnu_ld=no ;;
13136 esac
13137 fi
13138 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
13139 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13140 with_gnu_ld=$acl_cv_prog_gnu_ld
13141
13142
13143
13144
13145                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
13146 $as_echo_n "checking for shared library run path origin... " >&6; }
13147 if test "${acl_cv_rpath+set}" = set; then
13148   $as_echo_n "(cached) " >&6
13149 else
13150
13151     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13152     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13153     . ./conftest.sh
13154     rm -f ./conftest.sh
13155     acl_cv_rpath=done
13156
13157 fi
13158 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
13159 $as_echo "$acl_cv_rpath" >&6; }
13160   wl="$acl_cv_wl"
13161   libext="$acl_cv_libext"
13162   shlibext="$acl_cv_shlibext"
13163   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13164   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13165   hardcode_direct="$acl_cv_hardcode_direct"
13166   hardcode_minus_L="$acl_cv_hardcode_minus_L"
13167     # Check whether --enable-rpath was given.
13168 if test "${enable_rpath+set}" = set; then
13169   enableval=$enable_rpath; :
13170 else
13171   enable_rpath=yes
13172 fi
13173
13174
13175
13176                   acl_libdirstem=lib
13177   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13178   if test -n "$searchpath"; then
13179     acl_save_IFS="${IFS=        }"; IFS=":"
13180     for searchdir in $searchpath; do
13181       if test -d "$searchdir"; then
13182         case "$searchdir" in
13183           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13184           *) searchdir=`cd "$searchdir" && pwd`
13185              case "$searchdir" in
13186                */lib64 ) acl_libdirstem=lib64 ;;
13187              esac ;;
13188         esac
13189       fi
13190     done
13191     IFS="$acl_save_IFS"
13192   fi
13193
13194
13195
13196   gl_threads_api=none
13197   LIBTHREAD=
13198   LTLIBTHREAD=
13199   LIBMULTITHREAD=
13200   LTLIBMULTITHREAD=
13201   if test "$gl_use_threads" != no; then
13202         { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
13203 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
13204 if test "${gl_cv_have_weak+set}" = set; then
13205   $as_echo_n "(cached) " >&6
13206 else
13207   gl_cv_have_weak=no
13208               cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214 extern void xyzzy ();
13215 #pragma weak xyzzy
13216 int
13217 main ()
13218 {
13219 xyzzy();
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13231 $as_echo "$ac_try_echo") >&5
13232   (eval "$ac_link") 2>conftest.er1
13233   ac_status=$?
13234   grep -v '^ *+' conftest.er1 >conftest.err
13235   rm -f conftest.er1
13236   cat conftest.err >&5
13237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); } && {
13239          test -z "$ac_c_werror_flag" ||
13240          test ! -s conftest.err
13241        } && test -s conftest$ac_exeext && {
13242          test "$cross_compiling" = yes ||
13243          $as_test_x conftest$ac_exeext
13244        }; then
13245   gl_cv_have_weak=maybe
13246 else
13247   $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250
13251 fi
13252
13253 rm -rf conftest.dSYM
13254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13255       conftest$ac_exeext conftest.$ac_ext
13256        if test $gl_cv_have_weak = maybe; then
13257                            if test "$cross_compiling" = yes; then
13258                           cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264 #ifdef __ELF__
13265                Extensible Linking Format
13266                #endif
13267
13268 _ACEOF
13269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13270   $EGREP "Extensible Linking Format" >/dev/null 2>&1; then
13271   gl_cv_have_weak="guessing yes"
13272 else
13273   gl_cv_have_weak="guessing no"
13274 fi
13275 rm -f conftest*
13276
13277
13278 else
13279   cat >conftest.$ac_ext <<_ACEOF
13280 /* confdefs.h.  */
13281 _ACEOF
13282 cat confdefs.h >>conftest.$ac_ext
13283 cat >>conftest.$ac_ext <<_ACEOF
13284 /* end confdefs.h.  */
13285
13286 #include <stdio.h>
13287 #pragma weak fputs
13288 int main ()
13289 {
13290   return (fputs == NULL);
13291 }
13292 _ACEOF
13293 rm -f conftest$ac_exeext
13294 if { (ac_try="$ac_link"
13295 case "(($ac_try" in
13296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297   *) ac_try_echo=$ac_try;;
13298 esac
13299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13300 $as_echo "$ac_try_echo") >&5
13301   (eval "$ac_link") 2>&5
13302   ac_status=$?
13303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13305   { (case "(($ac_try" in
13306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307   *) ac_try_echo=$ac_try;;
13308 esac
13309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13310 $as_echo "$ac_try_echo") >&5
13311   (eval "$ac_try") 2>&5
13312   ac_status=$?
13313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; }; then
13315   gl_cv_have_weak=yes
13316 else
13317   $as_echo "$as_me: program exited with status $ac_status" >&5
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 ( exit $ac_status )
13322 gl_cv_have_weak=no
13323 fi
13324 rm -rf conftest.dSYM
13325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13326 fi
13327
13328
13329        fi
13330
13331 fi
13332 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_weak" >&5
13333 $as_echo "$gl_cv_have_weak" >&6; }
13334     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
13335       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
13336       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
13337       if test "${ac_cv_header_pthread_h+set}" = set; then
13338   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13339 $as_echo_n "checking for pthread.h... " >&6; }
13340 if test "${ac_cv_header_pthread_h+set}" = set; then
13341   $as_echo_n "(cached) " >&6
13342 fi
13343 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13344 $as_echo "$ac_cv_header_pthread_h" >&6; }
13345 else
13346   # Is the header compilable?
13347 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
13348 $as_echo_n "checking pthread.h usability... " >&6; }
13349 cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h.  */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h.  */
13355 $ac_includes_default
13356 #include <pthread.h>
13357 _ACEOF
13358 rm -f conftest.$ac_objext
13359 if { (ac_try="$ac_compile"
13360 case "(($ac_try" in
13361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362   *) ac_try_echo=$ac_try;;
13363 esac
13364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13365 $as_echo "$ac_try_echo") >&5
13366   (eval "$ac_compile") 2>conftest.er1
13367   ac_status=$?
13368   grep -v '^ *+' conftest.er1 >conftest.err
13369   rm -f conftest.er1
13370   cat conftest.err >&5
13371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); } && {
13373          test -z "$ac_c_werror_flag" ||
13374          test ! -s conftest.err
13375        } && test -s conftest.$ac_objext; then
13376   ac_header_compiler=yes
13377 else
13378   $as_echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381         ac_header_compiler=no
13382 fi
13383
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13386 $as_echo "$ac_header_compiler" >&6; }
13387
13388 # Is the header present?
13389 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
13390 $as_echo_n "checking pthread.h presence... " >&6; }
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h.  */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h.  */
13397 #include <pthread.h>
13398 _ACEOF
13399 if { (ac_try="$ac_cpp conftest.$ac_ext"
13400 case "(($ac_try" in
13401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402   *) ac_try_echo=$ac_try;;
13403 esac
13404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13405 $as_echo "$ac_try_echo") >&5
13406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13407   ac_status=$?
13408   grep -v '^ *+' conftest.er1 >conftest.err
13409   rm -f conftest.er1
13410   cat conftest.err >&5
13411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412   (exit $ac_status); } >/dev/null && {
13413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13414          test ! -s conftest.err
13415        }; then
13416   ac_header_preproc=yes
13417 else
13418   $as_echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421   ac_header_preproc=no
13422 fi
13423
13424 rm -f conftest.err conftest.$ac_ext
13425 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13426 $as_echo "$ac_header_preproc" >&6; }
13427
13428 # So?  What about this header?
13429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13430   yes:no: )
13431     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
13432 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13433     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
13434 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
13435     ac_header_preproc=yes
13436     ;;
13437   no:yes:* )
13438     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
13439 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
13440     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
13441 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
13442     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
13443 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
13444     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
13445 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13446     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
13447 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
13448     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
13449 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
13450
13451     ;;
13452 esac
13453 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
13454 $as_echo_n "checking for pthread.h... " >&6; }
13455 if test "${ac_cv_header_pthread_h+set}" = set; then
13456   $as_echo_n "(cached) " >&6
13457 else
13458   ac_cv_header_pthread_h=$ac_header_preproc
13459 fi
13460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
13461 $as_echo "$ac_cv_header_pthread_h" >&6; }
13462
13463 fi
13464 if test "x$ac_cv_header_pthread_h" = x""yes; then
13465   gl_have_pthread_h=yes
13466 else
13467   gl_have_pthread_h=no
13468 fi
13469
13470
13471       if test "$gl_have_pthread_h" = yes; then
13472         # Other possible tests:
13473         #   -lpthreads (FSU threads, PCthreads)
13474         #   -lgthreads
13475         gl_have_pthread=
13476         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
13477         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
13478         # the second one only in libpthread, and lock.c needs it.
13479         cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 #include <pthread.h>
13486 int
13487 main ()
13488 {
13489 pthread_mutex_lock((pthread_mutex_t*)0);
13490                pthread_mutexattr_init((pthread_mutexattr_t*)0);
13491   ;
13492   return 0;
13493 }
13494 _ACEOF
13495 rm -f conftest.$ac_objext conftest$ac_exeext
13496 if { (ac_try="$ac_link"
13497 case "(($ac_try" in
13498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499   *) ac_try_echo=$ac_try;;
13500 esac
13501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13502 $as_echo "$ac_try_echo") >&5
13503   (eval "$ac_link") 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } && {
13510          test -z "$ac_c_werror_flag" ||
13511          test ! -s conftest.err
13512        } && test -s conftest$ac_exeext && {
13513          test "$cross_compiling" = yes ||
13514          $as_test_x conftest$ac_exeext
13515        }; then
13516   gl_have_pthread=yes
13517 else
13518   $as_echo "$as_me: failed program was:" >&5
13519 sed 's/^/| /' conftest.$ac_ext >&5
13520
13521
13522 fi
13523
13524 rm -rf conftest.dSYM
13525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13526       conftest$ac_exeext conftest.$ac_ext
13527         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
13528         # since it is defined as a macro on OSF/1.)
13529         if test -n "$gl_have_pthread"; then
13530           # The program links fine without libpthread. But it may actually
13531           # need to link with libpthread in order to create multiple threads.
13532           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13533 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13534 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13535   $as_echo_n "(cached) " >&6
13536 else
13537   ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lpthread  $LIBS"
13539 cat >conftest.$ac_ext <<_ACEOF
13540 /* confdefs.h.  */
13541 _ACEOF
13542 cat confdefs.h >>conftest.$ac_ext
13543 cat >>conftest.$ac_ext <<_ACEOF
13544 /* end confdefs.h.  */
13545
13546 /* Override any GCC internal prototype to avoid an error.
13547    Use char because int might match the return type of a GCC
13548    builtin and then its argument prototype would still apply.  */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 char pthread_kill ();
13553 int
13554 main ()
13555 {
13556 return pthread_kill ();
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13568 $as_echo "$ac_try_echo") >&5
13569   (eval "$ac_link") 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } && {
13576          test -z "$ac_c_werror_flag" ||
13577          test ! -s conftest.err
13578        } && test -s conftest$ac_exeext && {
13579          test "$cross_compiling" = yes ||
13580          $as_test_x conftest$ac_exeext
13581        }; then
13582   ac_cv_lib_pthread_pthread_kill=yes
13583 else
13584   $as_echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587         ac_cv_lib_pthread_pthread_kill=no
13588 fi
13589
13590 rm -rf conftest.dSYM
13591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13592       conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13594 fi
13595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13596 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13597 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13598   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13599              # On Solaris and HP-UX, most pthread functions exist also in libc.
13600              # Therefore pthread_in_use() needs to actually try to create a
13601              # thread: pthread_create from libc will fail, whereas
13602              # pthread_create will actually create a thread.
13603              case "$host_os" in
13604                solaris* | hpux*)
13605
13606 cat >>confdefs.h <<\_ACEOF
13607 #define PTHREAD_IN_USE_DETECTION_HARD 1
13608 _ACEOF
13609
13610              esac
13611
13612 fi
13613
13614         else
13615           # Some library is needed. Try libpthread and libc_r.
13616           { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
13617 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
13618 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
13619   $as_echo_n "(cached) " >&6
13620 else
13621   ac_check_lib_save_LIBS=$LIBS
13622 LIBS="-lpthread  $LIBS"
13623 cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h.  */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h.  */
13629
13630 /* Override any GCC internal prototype to avoid an error.
13631    Use char because int might match the return type of a GCC
13632    builtin and then its argument prototype would still apply.  */
13633 #ifdef __cplusplus
13634 extern "C"
13635 #endif
13636 char pthread_kill ();
13637 int
13638 main ()
13639 {
13640 return pthread_kill ();
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext conftest$ac_exeext
13646 if { (ac_try="$ac_link"
13647 case "(($ac_try" in
13648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13649   *) ac_try_echo=$ac_try;;
13650 esac
13651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13652 $as_echo "$ac_try_echo") >&5
13653   (eval "$ac_link") 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } && {
13660          test -z "$ac_c_werror_flag" ||
13661          test ! -s conftest.err
13662        } && test -s conftest$ac_exeext && {
13663          test "$cross_compiling" = yes ||
13664          $as_test_x conftest$ac_exeext
13665        }; then
13666   ac_cv_lib_pthread_pthread_kill=yes
13667 else
13668   $as_echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671         ac_cv_lib_pthread_pthread_kill=no
13672 fi
13673
13674 rm -rf conftest.dSYM
13675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13676       conftest$ac_exeext conftest.$ac_ext
13677 LIBS=$ac_check_lib_save_LIBS
13678 fi
13679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
13680 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
13681 if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
13682   gl_have_pthread=yes
13683              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
13684              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
13685 fi
13686
13687           if test -z "$gl_have_pthread"; then
13688             # For FreeBSD 4.
13689             { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
13690 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
13691 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
13692   $as_echo_n "(cached) " >&6
13693 else
13694   ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lc_r  $LIBS"
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h.  */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h.  */
13702
13703 /* Override any GCC internal prototype to avoid an error.
13704    Use char because int might match the return type of a GCC
13705    builtin and then its argument prototype would still apply.  */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 char pthread_kill ();
13710 int
13711 main ()
13712 {
13713 return pthread_kill ();
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722   *) ac_try_echo=$ac_try;;
13723 esac
13724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13725 $as_echo "$ac_try_echo") >&5
13726   (eval "$ac_link") 2>conftest.er1
13727   ac_status=$?
13728   grep -v '^ *+' conftest.er1 >conftest.err
13729   rm -f conftest.er1
13730   cat conftest.err >&5
13731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732   (exit $ac_status); } && {
13733          test -z "$ac_c_werror_flag" ||
13734          test ! -s conftest.err
13735        } && test -s conftest$ac_exeext && {
13736          test "$cross_compiling" = yes ||
13737          $as_test_x conftest$ac_exeext
13738        }; then
13739   ac_cv_lib_c_r_pthread_kill=yes
13740 else
13741   $as_echo "$as_me: failed program was:" >&5
13742 sed 's/^/| /' conftest.$ac_ext >&5
13743
13744         ac_cv_lib_c_r_pthread_kill=no
13745 fi
13746
13747 rm -rf conftest.dSYM
13748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13749       conftest$ac_exeext conftest.$ac_ext
13750 LIBS=$ac_check_lib_save_LIBS
13751 fi
13752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
13753 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
13754 if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
13755   gl_have_pthread=yes
13756                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
13757                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
13758 fi
13759
13760           fi
13761         fi
13762         if test -n "$gl_have_pthread"; then
13763           gl_threads_api=posix
13764
13765 cat >>confdefs.h <<\_ACEOF
13766 #define USE_POSIX_THREADS 1
13767 _ACEOF
13768
13769           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
13770             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define USE_POSIX_THREADS_WEAK 1
13774 _ACEOF
13775
13776               LIBTHREAD=
13777               LTLIBTHREAD=
13778             fi
13779           fi
13780         fi
13781       fi
13782     fi
13783     if test -z "$gl_have_pthread"; then
13784       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
13785         gl_have_solaristhread=
13786         gl_save_LIBS="$LIBS"
13787         LIBS="$LIBS -lthread"
13788         cat >conftest.$ac_ext <<_ACEOF
13789 /* confdefs.h.  */
13790 _ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h.  */
13794
13795 #include <thread.h>
13796 #include <synch.h>
13797
13798 int
13799 main ()
13800 {
13801 thr_self();
13802   ;
13803   return 0;
13804 }
13805 _ACEOF
13806 rm -f conftest.$ac_objext conftest$ac_exeext
13807 if { (ac_try="$ac_link"
13808 case "(($ac_try" in
13809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810   *) ac_try_echo=$ac_try;;
13811 esac
13812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13813 $as_echo "$ac_try_echo") >&5
13814   (eval "$ac_link") 2>conftest.er1
13815   ac_status=$?
13816   grep -v '^ *+' conftest.er1 >conftest.err
13817   rm -f conftest.er1
13818   cat conftest.err >&5
13819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } && {
13821          test -z "$ac_c_werror_flag" ||
13822          test ! -s conftest.err
13823        } && test -s conftest$ac_exeext && {
13824          test "$cross_compiling" = yes ||
13825          $as_test_x conftest$ac_exeext
13826        }; then
13827   gl_have_solaristhread=yes
13828 else
13829   $as_echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832
13833 fi
13834
13835 rm -rf conftest.dSYM
13836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13837       conftest$ac_exeext conftest.$ac_ext
13838         LIBS="$gl_save_LIBS"
13839         if test -n "$gl_have_solaristhread"; then
13840           gl_threads_api=solaris
13841           LIBTHREAD=-lthread
13842           LTLIBTHREAD=-lthread
13843           LIBMULTITHREAD="$LIBTHREAD"
13844           LTLIBMULTITHREAD="$LTLIBTHREAD"
13845
13846 cat >>confdefs.h <<\_ACEOF
13847 #define USE_SOLARIS_THREADS 1
13848 _ACEOF
13849
13850           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
13851
13852 cat >>confdefs.h <<\_ACEOF
13853 #define USE_SOLARIS_THREADS_WEAK 1
13854 _ACEOF
13855
13856             LIBTHREAD=
13857             LTLIBTHREAD=
13858           fi
13859         fi
13860       fi
13861     fi
13862     if test "$gl_use_threads" = pth; then
13863       gl_save_CPPFLAGS="$CPPFLAGS"
13864
13865
13866
13867
13868
13869   { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
13870 $as_echo_n "checking how to link with libpth... " >&6; }
13871 if test "${ac_cv_libpth_libs+set}" = set; then
13872   $as_echo_n "(cached) " >&6
13873 else
13874
13875
13876
13877
13878     use_additional=yes
13879
13880   acl_save_prefix="$prefix"
13881   prefix="$acl_final_prefix"
13882   acl_save_exec_prefix="$exec_prefix"
13883   exec_prefix="$acl_final_exec_prefix"
13884
13885     eval additional_includedir=\"$includedir\"
13886     eval additional_libdir=\"$libdir\"
13887
13888   exec_prefix="$acl_save_exec_prefix"
13889   prefix="$acl_save_prefix"
13890
13891
13892 # Check whether --with-libpth-prefix was given.
13893 if test "${with_libpth_prefix+set}" = set; then
13894   withval=$with_libpth_prefix;
13895     if test "X$withval" = "Xno"; then
13896       use_additional=no
13897     else
13898       if test "X$withval" = "X"; then
13899
13900   acl_save_prefix="$prefix"
13901   prefix="$acl_final_prefix"
13902   acl_save_exec_prefix="$exec_prefix"
13903   exec_prefix="$acl_final_exec_prefix"
13904
13905           eval additional_includedir=\"$includedir\"
13906           eval additional_libdir=\"$libdir\"
13907
13908   exec_prefix="$acl_save_exec_prefix"
13909   prefix="$acl_save_prefix"
13910
13911       else
13912         additional_includedir="$withval/include"
13913         additional_libdir="$withval/$acl_libdirstem"
13914       fi
13915     fi
13916
13917 fi
13918
13919       LIBPTH=
13920   LTLIBPTH=
13921   INCPTH=
13922   rpathdirs=
13923   ltrpathdirs=
13924   names_already_handled=
13925   names_next_round='pth '
13926   while test -n "$names_next_round"; do
13927     names_this_round="$names_next_round"
13928     names_next_round=
13929     for name in $names_this_round; do
13930       already_handled=
13931       for n in $names_already_handled; do
13932         if test "$n" = "$name"; then
13933           already_handled=yes
13934           break
13935         fi
13936       done
13937       if test -z "$already_handled"; then
13938         names_already_handled="$names_already_handled $name"
13939                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13940         eval value=\"\$HAVE_LIB$uppername\"
13941         if test -n "$value"; then
13942           if test "$value" = yes; then
13943             eval value=\"\$LIB$uppername\"
13944             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
13945             eval value=\"\$LTLIB$uppername\"
13946             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
13947           else
13948                                     :
13949           fi
13950         else
13951                               found_dir=
13952           found_la=
13953           found_so=
13954           found_a=
13955           if test $use_additional = yes; then
13956             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13957               found_dir="$additional_libdir"
13958               found_so="$additional_libdir/lib$name.$shlibext"
13959               if test -f "$additional_libdir/lib$name.la"; then
13960                 found_la="$additional_libdir/lib$name.la"
13961               fi
13962             else
13963               if test -f "$additional_libdir/lib$name.$libext"; then
13964                 found_dir="$additional_libdir"
13965                 found_a="$additional_libdir/lib$name.$libext"
13966                 if test -f "$additional_libdir/lib$name.la"; then
13967                   found_la="$additional_libdir/lib$name.la"
13968                 fi
13969               fi
13970             fi
13971           fi
13972           if test "X$found_dir" = "X"; then
13973             for x in $LDFLAGS $LTLIBPTH; do
13974
13975   acl_save_prefix="$prefix"
13976   prefix="$acl_final_prefix"
13977   acl_save_exec_prefix="$exec_prefix"
13978   exec_prefix="$acl_final_exec_prefix"
13979   eval x=\"$x\"
13980   exec_prefix="$acl_save_exec_prefix"
13981   prefix="$acl_save_prefix"
13982
13983               case "$x" in
13984                 -L*)
13985                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13986                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13987                     found_dir="$dir"
13988                     found_so="$dir/lib$name.$shlibext"
13989                     if test -f "$dir/lib$name.la"; then
13990                       found_la="$dir/lib$name.la"
13991                     fi
13992                   else
13993                     if test -f "$dir/lib$name.$libext"; then
13994                       found_dir="$dir"
13995                       found_a="$dir/lib$name.$libext"
13996                       if test -f "$dir/lib$name.la"; then
13997                         found_la="$dir/lib$name.la"
13998                       fi
13999                     fi
14000                   fi
14001                   ;;
14002               esac
14003               if test "X$found_dir" != "X"; then
14004                 break
14005               fi
14006             done
14007           fi
14008           if test "X$found_dir" != "X"; then
14009                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
14010             if test "X$found_so" != "X"; then
14011                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14012                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14013               else
14014                                                                                 haveit=
14015                 for x in $ltrpathdirs; do
14016                   if test "X$x" = "X$found_dir"; then
14017                     haveit=yes
14018                     break
14019                   fi
14020                 done
14021                 if test -z "$haveit"; then
14022                   ltrpathdirs="$ltrpathdirs $found_dir"
14023                 fi
14024                                 if test "$hardcode_direct" = yes; then
14025                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14026                 else
14027                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14028                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14029                                                             haveit=
14030                     for x in $rpathdirs; do
14031                       if test "X$x" = "X$found_dir"; then
14032                         haveit=yes
14033                         break
14034                       fi
14035                     done
14036                     if test -z "$haveit"; then
14037                       rpathdirs="$rpathdirs $found_dir"
14038                     fi
14039                   else
14040                                                                                 haveit=
14041                     for x in $LDFLAGS $LIBPTH; do
14042
14043   acl_save_prefix="$prefix"
14044   prefix="$acl_final_prefix"
14045   acl_save_exec_prefix="$exec_prefix"
14046   exec_prefix="$acl_final_exec_prefix"
14047   eval x=\"$x\"
14048   exec_prefix="$acl_save_exec_prefix"
14049   prefix="$acl_save_prefix"
14050
14051                       if test "X$x" = "X-L$found_dir"; then
14052                         haveit=yes
14053                         break
14054                       fi
14055                     done
14056                     if test -z "$haveit"; then
14057                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
14058                     fi
14059                     if test "$hardcode_minus_L" != no; then
14060                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
14061                     else
14062                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14063                     fi
14064                   fi
14065                 fi
14066               fi
14067             else
14068               if test "X$found_a" != "X"; then
14069                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
14070               else
14071                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
14072               fi
14073             fi
14074                         additional_includedir=
14075             case "$found_dir" in
14076               */$acl_libdirstem | */$acl_libdirstem/)
14077                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14078                 additional_includedir="$basedir/include"
14079                 ;;
14080             esac
14081             if test "X$additional_includedir" != "X"; then
14082                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14083                 haveit=
14084                 if test "X$additional_includedir" = "X/usr/local/include"; then
14085                   if test -n "$GCC"; then
14086                     case $host_os in
14087                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14088                     esac
14089                   fi
14090                 fi
14091                 if test -z "$haveit"; then
14092                   for x in $CPPFLAGS $INCPTH; do
14093
14094   acl_save_prefix="$prefix"
14095   prefix="$acl_final_prefix"
14096   acl_save_exec_prefix="$exec_prefix"
14097   exec_prefix="$acl_final_exec_prefix"
14098   eval x=\"$x\"
14099   exec_prefix="$acl_save_exec_prefix"
14100   prefix="$acl_save_prefix"
14101
14102                     if test "X$x" = "X-I$additional_includedir"; then
14103                       haveit=yes
14104                       break
14105                     fi
14106                   done
14107                   if test -z "$haveit"; then
14108                     if test -d "$additional_includedir"; then
14109                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
14110                     fi
14111                   fi
14112                 fi
14113               fi
14114             fi
14115                         if test -n "$found_la"; then
14116                                                         save_libdir="$libdir"
14117               case "$found_la" in
14118                 */* | *\\*) . "$found_la" ;;
14119                 *) . "./$found_la" ;;
14120               esac
14121               libdir="$save_libdir"
14122                             for dep in $dependency_libs; do
14123                 case "$dep" in
14124                   -L*)
14125                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14126                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14127                       haveit=
14128                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14129                         if test -n "$GCC"; then
14130                           case $host_os in
14131                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14132                           esac
14133                         fi
14134                       fi
14135                       if test -z "$haveit"; then
14136                         haveit=
14137                         for x in $LDFLAGS $LIBPTH; do
14138
14139   acl_save_prefix="$prefix"
14140   prefix="$acl_final_prefix"
14141   acl_save_exec_prefix="$exec_prefix"
14142   exec_prefix="$acl_final_exec_prefix"
14143   eval x=\"$x\"
14144   exec_prefix="$acl_save_exec_prefix"
14145   prefix="$acl_save_prefix"
14146
14147                           if test "X$x" = "X-L$additional_libdir"; then
14148                             haveit=yes
14149                             break
14150                           fi
14151                         done
14152                         if test -z "$haveit"; then
14153                           if test -d "$additional_libdir"; then
14154                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
14155                           fi
14156                         fi
14157                         haveit=
14158                         for x in $LDFLAGS $LTLIBPTH; do
14159
14160   acl_save_prefix="$prefix"
14161   prefix="$acl_final_prefix"
14162   acl_save_exec_prefix="$exec_prefix"
14163   exec_prefix="$acl_final_exec_prefix"
14164   eval x=\"$x\"
14165   exec_prefix="$acl_save_exec_prefix"
14166   prefix="$acl_save_prefix"
14167
14168                           if test "X$x" = "X-L$additional_libdir"; then
14169                             haveit=yes
14170                             break
14171                           fi
14172                         done
14173                         if test -z "$haveit"; then
14174                           if test -d "$additional_libdir"; then
14175                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
14176                           fi
14177                         fi
14178                       fi
14179                     fi
14180                     ;;
14181                   -R*)
14182                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14183                     if test "$enable_rpath" != no; then
14184                                                                   haveit=
14185                       for x in $rpathdirs; do
14186                         if test "X$x" = "X$dir"; then
14187                           haveit=yes
14188                           break
14189                         fi
14190                       done
14191                       if test -z "$haveit"; then
14192                         rpathdirs="$rpathdirs $dir"
14193                       fi
14194                                                                   haveit=
14195                       for x in $ltrpathdirs; do
14196                         if test "X$x" = "X$dir"; then
14197                           haveit=yes
14198                           break
14199                         fi
14200                       done
14201                       if test -z "$haveit"; then
14202                         ltrpathdirs="$ltrpathdirs $dir"
14203                       fi
14204                     fi
14205                     ;;
14206                   -l*)
14207                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14208                     ;;
14209                   *.la)
14210                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14211                     ;;
14212                   *)
14213                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
14214                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
14215                     ;;
14216                 esac
14217               done
14218             fi
14219           else
14220                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
14221             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
14222           fi
14223         fi
14224       fi
14225     done
14226   done
14227   if test "X$rpathdirs" != "X"; then
14228     if test -n "$hardcode_libdir_separator"; then
14229                         alldirs=
14230       for found_dir in $rpathdirs; do
14231         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14232       done
14233             acl_save_libdir="$libdir"
14234       libdir="$alldirs"
14235       eval flag=\"$hardcode_libdir_flag_spec\"
14236       libdir="$acl_save_libdir"
14237       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14238     else
14239             for found_dir in $rpathdirs; do
14240         acl_save_libdir="$libdir"
14241         libdir="$found_dir"
14242         eval flag=\"$hardcode_libdir_flag_spec\"
14243         libdir="$acl_save_libdir"
14244         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
14245       done
14246     fi
14247   fi
14248   if test "X$ltrpathdirs" != "X"; then
14249             for found_dir in $ltrpathdirs; do
14250       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
14251     done
14252   fi
14253
14254     ac_cv_libpth_libs="$LIBPTH"
14255     ac_cv_libpth_ltlibs="$LTLIBPTH"
14256     ac_cv_libpth_cppflags="$INCPTH"
14257
14258 fi
14259 { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
14260 $as_echo "$ac_cv_libpth_libs" >&6; }
14261   LIBPTH="$ac_cv_libpth_libs"
14262   LTLIBPTH="$ac_cv_libpth_ltlibs"
14263   INCPTH="$ac_cv_libpth_cppflags"
14264
14265   for element in $INCPTH; do
14266     haveit=
14267     for x in $CPPFLAGS; do
14268
14269   acl_save_prefix="$prefix"
14270   prefix="$acl_final_prefix"
14271   acl_save_exec_prefix="$exec_prefix"
14272   exec_prefix="$acl_final_exec_prefix"
14273   eval x=\"$x\"
14274   exec_prefix="$acl_save_exec_prefix"
14275   prefix="$acl_save_prefix"
14276
14277       if test "X$x" = "X$element"; then
14278         haveit=yes
14279         break
14280       fi
14281     done
14282     if test -z "$haveit"; then
14283       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14284     fi
14285   done
14286
14287
14288
14289       HAVE_LIBPTH=yes
14290
14291
14292
14293       gl_have_pth=
14294       gl_save_LIBS="$LIBS"
14295       LIBS="$LIBS -lpth"
14296       cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302 #include <pth.h>
14303 int
14304 main ()
14305 {
14306 pth_self();
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext conftest$ac_exeext
14312 if { (ac_try="$ac_link"
14313 case "(($ac_try" in
14314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14315   *) ac_try_echo=$ac_try;;
14316 esac
14317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14318 $as_echo "$ac_try_echo") >&5
14319   (eval "$ac_link") 2>conftest.er1
14320   ac_status=$?
14321   grep -v '^ *+' conftest.er1 >conftest.err
14322   rm -f conftest.er1
14323   cat conftest.err >&5
14324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } && {
14326          test -z "$ac_c_werror_flag" ||
14327          test ! -s conftest.err
14328        } && test -s conftest$ac_exeext && {
14329          test "$cross_compiling" = yes ||
14330          $as_test_x conftest$ac_exeext
14331        }; then
14332   gl_have_pth=yes
14333 else
14334   $as_echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337
14338 fi
14339
14340 rm -rf conftest.dSYM
14341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14342       conftest$ac_exeext conftest.$ac_ext
14343       LIBS="$gl_save_LIBS"
14344       if test -n "$gl_have_pth"; then
14345         gl_threads_api=pth
14346         LIBTHREAD="$LIBPTH"
14347         LTLIBTHREAD="$LTLIBPTH"
14348         LIBMULTITHREAD="$LIBTHREAD"
14349         LTLIBMULTITHREAD="$LTLIBTHREAD"
14350
14351 cat >>confdefs.h <<\_ACEOF
14352 #define USE_PTH_THREADS 1
14353 _ACEOF
14354
14355         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
14356           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
14357
14358 cat >>confdefs.h <<\_ACEOF
14359 #define USE_PTH_THREADS_WEAK 1
14360 _ACEOF
14361
14362             LIBTHREAD=
14363             LTLIBTHREAD=
14364           fi
14365         fi
14366       else
14367         CPPFLAGS="$gl_save_CPPFLAGS"
14368       fi
14369     fi
14370     if test -z "$gl_have_pthread"; then
14371       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
14372         if { case "$host_os" in
14373                mingw*) true;;
14374                *) false;;
14375              esac
14376            }; then
14377           gl_threads_api=win32
14378
14379 cat >>confdefs.h <<\_ACEOF
14380 #define USE_WIN32_THREADS 1
14381 _ACEOF
14382
14383         fi
14384       fi
14385     fi
14386   fi
14387   { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
14388 $as_echo_n "checking for multithread API to use... " >&6; }
14389   { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
14390 $as_echo "$gl_threads_api" >&6; }
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401      GNULIB_FCHMODAT=0;
14402   GNULIB_FSTATAT=0;
14403   GNULIB_FUTIMENS=0;
14404   GNULIB_LCHMOD=0;
14405   GNULIB_LSTAT=0;
14406   GNULIB_MKDIRAT=0;
14407   GNULIB_MKFIFO=0;
14408   GNULIB_MKFIFOAT=0;
14409   GNULIB_MKNOD=0;
14410   GNULIB_MKNODAT=0;
14411   GNULIB_STAT=0;
14412   GNULIB_UTIMENSAT=0;
14413     HAVE_FCHMODAT=1;
14414   HAVE_FSTATAT=1;
14415   HAVE_FUTIMENS=1;
14416   HAVE_LCHMOD=1;
14417   HAVE_LSTAT=1;
14418   HAVE_MKDIRAT=1;
14419   HAVE_MKFIFO=1;
14420   HAVE_MKFIFOAT=1;
14421   HAVE_MKNOD=1;
14422   HAVE_MKNODAT=1;
14423   HAVE_UTIMENSAT=1;
14424   REPLACE_FSTAT=0;
14425   REPLACE_FSTATAT=0;
14426   REPLACE_FUTIMENS=0;
14427   REPLACE_LSTAT=0;
14428   REPLACE_MKDIR=0;
14429   REPLACE_MKFIFO=0;
14430   REPLACE_MKNOD=0;
14431   REPLACE_STAT=0;
14432   REPLACE_UTIMENSAT=0;
14433
14434
14435
14436
14437
14438
14439
14440 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
14441 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
14442 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
14443   $as_echo_n "(cached) " >&6
14444 else
14445   rm -f conftest.sym conftest.file
14446 echo >conftest.file
14447 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14448   if test "$cross_compiling" = yes; then
14449   ac_cv_func_lstat_dereferences_slashed_symlink=no
14450 else
14451   cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457 $ac_includes_default
14458 int
14459 main ()
14460 {
14461 struct stat sbuf;
14462      /* Linux will dereference the symlink and fail.
14463         That is better in the sense that it means we will not
14464         have to compile and use the lstat wrapper.  */
14465      return lstat ("conftest.sym/", &sbuf) == 0;
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest$ac_exeext
14471 if { (ac_try="$ac_link"
14472 case "(($ac_try" in
14473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474   *) ac_try_echo=$ac_try;;
14475 esac
14476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14477 $as_echo "$ac_try_echo") >&5
14478   (eval "$ac_link") 2>&5
14479   ac_status=$?
14480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14482   { (case "(($ac_try" in
14483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484   *) ac_try_echo=$ac_try;;
14485 esac
14486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487 $as_echo "$ac_try_echo") >&5
14488   (eval "$ac_try") 2>&5
14489   ac_status=$?
14490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   ac_cv_func_lstat_dereferences_slashed_symlink=yes
14493 else
14494   $as_echo "$as_me: program exited with status $ac_status" >&5
14495 $as_echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14497
14498 ( exit $ac_status )
14499 ac_cv_func_lstat_dereferences_slashed_symlink=no
14500 fi
14501 rm -rf conftest.dSYM
14502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14503 fi
14504
14505
14506 else
14507   # If the `ln -s' command failed, then we probably don't even
14508   # have an lstat function.
14509   ac_cv_func_lstat_dereferences_slashed_symlink=no
14510 fi
14511 rm -f conftest.sym conftest.file
14512
14513 fi
14514 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14515 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14516
14517 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14518
14519 cat >>confdefs.h <<_ACEOF
14520 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14521 _ACEOF
14522
14523
14524 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
14525
14526
14527
14528
14529
14530
14531
14532
14533   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14534
14535 fi
14536
14537
14538   GNULIB__EXIT=0;
14539   GNULIB_ATOLL=0;
14540   GNULIB_CALLOC_POSIX=0;
14541   GNULIB_CANONICALIZE_FILE_NAME=0;
14542   GNULIB_GETLOADAVG=0;
14543   GNULIB_GETSUBOPT=0;
14544   GNULIB_GRANTPT=0;
14545   GNULIB_MALLOC_POSIX=0;
14546   GNULIB_MKDTEMP=0;
14547   GNULIB_MKOSTEMP=0;
14548   GNULIB_MKOSTEMPS=0;
14549   GNULIB_MKSTEMP=0;
14550   GNULIB_MKSTEMPS=0;
14551   GNULIB_PTSNAME=0;
14552   GNULIB_PUTENV=0;
14553   GNULIB_RANDOM_R=0;
14554   GNULIB_REALLOC_POSIX=0;
14555   GNULIB_REALPATH=0;
14556   GNULIB_RPMATCH=0;
14557   GNULIB_SETENV=0;
14558   GNULIB_STRTOD=0;
14559   GNULIB_STRTOLL=0;
14560   GNULIB_STRTOULL=0;
14561   GNULIB_UNLOCKPT=0;
14562   GNULIB_UNSETENV=0;
14563     HAVE__EXIT=1;
14564   HAVE_ATOLL=1;
14565   HAVE_CANONICALIZE_FILE_NAME=1;
14566   HAVE_DECL_GETLOADAVG=1;
14567   HAVE_GETSUBOPT=1;
14568   HAVE_GRANTPT=1;
14569   HAVE_MKDTEMP=1;
14570   HAVE_MKOSTEMP=1;
14571   HAVE_MKOSTEMPS=1;
14572   HAVE_MKSTEMP=1;
14573   HAVE_MKSTEMPS=1;
14574   HAVE_PTSNAME=1;
14575   HAVE_RANDOM_R=1;
14576   HAVE_REALPATH=1;
14577   HAVE_RPMATCH=1;
14578   HAVE_SETENV=1;
14579   HAVE_STRTOD=1;
14580   HAVE_STRTOLL=1;
14581   HAVE_STRTOULL=1;
14582   HAVE_STRUCT_RANDOM_DATA=1;
14583   HAVE_SYS_LOADAVG_H=0;
14584   HAVE_UNLOCKPT=1;
14585   HAVE_UNSETENV=1;
14586   REPLACE_CALLOC=0;
14587   REPLACE_CANONICALIZE_FILE_NAME=0;
14588   REPLACE_MALLOC=0;
14589   REPLACE_MKSTEMP=0;
14590   REPLACE_PUTENV=0;
14591   REPLACE_REALLOC=0;
14592   REPLACE_REALPATH=0;
14593   REPLACE_SETENV=0;
14594   REPLACE_STRTOD=0;
14595   REPLACE_UNSETENV=0;
14596
14597
14598   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
14599 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
14600 if test "${gl_cv_func_malloc_posix+set}" = set; then
14601   $as_echo_n "(cached) " >&6
14602 else
14603
14604                         cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h.  */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h.  */
14610
14611 int
14612 main ()
14613 {
14614 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14615              choke me
14616              #endif
14617
14618   ;
14619   return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext
14623 if { (ac_try="$ac_compile"
14624 case "(($ac_try" in
14625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626   *) ac_try_echo=$ac_try;;
14627 esac
14628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14629 $as_echo "$ac_try_echo") >&5
14630   (eval "$ac_compile") 2>conftest.er1
14631   ac_status=$?
14632   grep -v '^ *+' conftest.er1 >conftest.err
14633   rm -f conftest.er1
14634   cat conftest.err >&5
14635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } && {
14637          test -z "$ac_c_werror_flag" ||
14638          test ! -s conftest.err
14639        } && test -s conftest.$ac_objext; then
14640   gl_cv_func_malloc_posix=yes
14641 else
14642   $as_echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645         gl_cv_func_malloc_posix=no
14646 fi
14647
14648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649
14650 fi
14651 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
14652 $as_echo "$gl_cv_func_malloc_posix" >&6; }
14653
14654
14655
14656    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14657 $as_echo_n "checking for mbstate_t... " >&6; }
14658 if test "${ac_cv_type_mbstate_t+set}" = set; then
14659   $as_echo_n "(cached) " >&6
14660 else
14661   cat >conftest.$ac_ext <<_ACEOF
14662 /* confdefs.h.  */
14663 _ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h.  */
14667 $ac_includes_default
14668 #           include <wchar.h>
14669 int
14670 main ()
14671 {
14672 mbstate_t x; return sizeof x;
14673   ;
14674   return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681   *) ac_try_echo=$ac_try;;
14682 esac
14683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14684 $as_echo "$ac_try_echo") >&5
14685   (eval "$ac_compile") 2>conftest.er1
14686   ac_status=$?
14687   grep -v '^ *+' conftest.er1 >conftest.err
14688   rm -f conftest.er1
14689   cat conftest.err >&5
14690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } && {
14692          test -z "$ac_c_werror_flag" ||
14693          test ! -s conftest.err
14694        } && test -s conftest.$ac_objext; then
14695   ac_cv_type_mbstate_t=yes
14696 else
14697   $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700         ac_cv_type_mbstate_t=no
14701 fi
14702
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 fi
14705 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14706 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14707    if test $ac_cv_type_mbstate_t = yes; then
14708
14709 cat >>confdefs.h <<\_ACEOF
14710 #define HAVE_MBSTATE_T 1
14711 _ACEOF
14712
14713    else
14714
14715 cat >>confdefs.h <<\_ACEOF
14716 #define mbstate_t int
14717 _ACEOF
14718
14719    fi
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
14737 $as_echo_n "checking for a traditional japanese locale... " >&6; }
14738 if test "${gt_cv_locale_ja+set}" = set; then
14739   $as_echo_n "(cached) " >&6
14740 else
14741
14742     cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h.  */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h.  */
14748
14749 #include <locale.h>
14750 #include <time.h>
14751 #if HAVE_LANGINFO_CODESET
14752 # include <langinfo.h>
14753 #endif
14754 #include <stdlib.h>
14755 #include <string.h>
14756 struct tm t;
14757 char buf[16];
14758 int main ()
14759 {
14760   const char *p;
14761   /* Check whether the given locale name is recognized by the system.  */
14762   if (setlocale (LC_ALL, "") == NULL) return 1;
14763   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14764      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14765      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14766      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14767      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14768      some unit tests fail.  */
14769 #if HAVE_LANGINFO_CODESET
14770   {
14771     const char *cs = nl_langinfo (CODESET);
14772     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14773       return 1;
14774   }
14775 #endif
14776 #ifdef __CYGWIN__
14777   /* On Cygwin, avoid locale names without encoding suffix, because the
14778      locale_charset() function relies on the encoding suffix.  Note that
14779      LC_ALL is set on the command line.  */
14780   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14781 #endif
14782   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
14783      on Cygwin 1.5.x.  */
14784   if (MB_CUR_MAX == 1)
14785     return 1;
14786   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14787      This excludes the UTF-8 encoding.  */
14788   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14789   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14790   for (p = buf; *p != '\0'; p++)
14791     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14792       return 1;
14793   return 0;
14794 }
14795
14796 _ACEOF
14797     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14798   (eval $ac_link) 2>&5
14799   ac_status=$?
14800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); } && test -s conftest$ac_exeext; then
14802       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14803       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14804       # configure script would override the LC_ALL setting. Likewise for
14805       # LC_CTYPE, which is also set at the beginning of the configure script.
14806       # Test for the AIX locale name.
14807       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14808         gt_cv_locale_ja=ja_JP
14809       else
14810         # Test for the locale name with explicit encoding suffix.
14811         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14812           gt_cv_locale_ja=ja_JP.EUC-JP
14813         else
14814           # Test for the HP-UX, OSF/1, NetBSD locale name.
14815           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14816             gt_cv_locale_ja=ja_JP.eucJP
14817           else
14818             # Test for the IRIX, FreeBSD locale name.
14819             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14820               gt_cv_locale_ja=ja_JP.EUC
14821             else
14822               # Test for the Solaris 7 locale name.
14823               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14824                 gt_cv_locale_ja=ja
14825               else
14826                 # Special test for NetBSD 1.6.
14827                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
14828                   gt_cv_locale_ja=ja_JP.eucJP
14829                 else
14830                   # None found.
14831                   gt_cv_locale_ja=none
14832                 fi
14833               fi
14834             fi
14835           fi
14836         fi
14837       fi
14838     fi
14839     rm -fr conftest*
14840
14841 fi
14842 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
14843 $as_echo "$gt_cv_locale_ja" >&6; }
14844   LOCALE_JA=$gt_cv_locale_ja
14845
14846
14847
14848
14849
14850   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
14851 $as_echo_n "checking for a transitional chinese locale... " >&6; }
14852 if test "${gt_cv_locale_zh_CN+set}" = set; then
14853   $as_echo_n "(cached) " >&6
14854 else
14855
14856     cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862
14863 #include <locale.h>
14864 #include <stdlib.h>
14865 #include <time.h>
14866 #if HAVE_LANGINFO_CODESET
14867 # include <langinfo.h>
14868 #endif
14869 #include <stdlib.h>
14870 #include <string.h>
14871 struct tm t;
14872 char buf[16];
14873 int main ()
14874 {
14875   const char *p;
14876   /* Check whether the given locale name is recognized by the system.  */
14877   if (setlocale (LC_ALL, "") == NULL) return 1;
14878   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14879      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14880      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14881      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14882      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14883      some unit tests fail.  */
14884 #if HAVE_LANGINFO_CODESET
14885   {
14886     const char *cs = nl_langinfo (CODESET);
14887     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14888       return 1;
14889   }
14890 #endif
14891 #ifdef __CYGWIN__
14892   /* On Cygwin, avoid locale names without encoding suffix, because the
14893      locale_charset() function relies on the encoding suffix.  Note that
14894      LC_ALL is set on the command line.  */
14895   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14896 #endif
14897   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
14898      This excludes the UTF-8 encoding.  */
14899   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
14900   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
14901   for (p = buf; *p != '\0'; p++)
14902     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
14903       return 1;
14904   /* Check whether a typical GB18030 multibyte sequence is recognized as a
14905      single wide character.  This excludes the GB2312 and GBK encodings.  */
14906   if (mblen ("\203\062\332\066", 5) != 4)
14907     return 1;
14908   return 0;
14909 }
14910
14911 _ACEOF
14912     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913   (eval $ac_link) 2>&5
14914   ac_status=$?
14915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } && test -s conftest$ac_exeext; then
14917       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
14918       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
14919       # configure script would override the LC_ALL setting. Likewise for
14920       # LC_CTYPE, which is also set at the beginning of the configure script.
14921       # Test for the locale name without encoding suffix.
14922       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14923         gt_cv_locale_zh_CN=zh_CN
14924       else
14925         # Test for the locale name with explicit encoding suffix.
14926         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
14927           gt_cv_locale_zh_CN=zh_CN.GB18030
14928         else
14929           # None found.
14930           gt_cv_locale_zh_CN=none
14931         fi
14932       fi
14933     else
14934       # If there was a link error, due to mblen(), the system is so old that
14935       # it certainly doesn't have a chinese locale.
14936       gt_cv_locale_zh_CN=none
14937     fi
14938     rm -fr conftest*
14939
14940 fi
14941 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
14942 $as_echo "$gt_cv_locale_zh_CN" >&6; }
14943   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
14944
14945
14946
14947
14948   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
14949 $as_echo_n "checking for a french Unicode locale... " >&6; }
14950 if test "${gt_cv_locale_fr_utf8+set}" = set; then
14951   $as_echo_n "(cached) " >&6
14952 else
14953
14954     cat >conftest.$ac_ext <<_ACEOF
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960
14961 #include <locale.h>
14962 #include <time.h>
14963 #if HAVE_LANGINFO_CODESET
14964 # include <langinfo.h>
14965 #endif
14966 #include <stdlib.h>
14967 #include <string.h>
14968 struct tm t;
14969 char buf[16];
14970 int main () {
14971   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
14972      imitates locale dependent behaviour by looking at the environment
14973      variables, and all locales use the UTF-8 encoding.  */
14974 #if !(defined __BEOS__ || defined __HAIKU__)
14975   /* Check whether the given locale name is recognized by the system.  */
14976   if (setlocale (LC_ALL, "") == NULL) return 1;
14977   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
14978      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
14979      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
14980      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
14981      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
14982      some unit tests fail.  */
14983 # if HAVE_LANGINFO_CODESET
14984   {
14985     const char *cs = nl_langinfo (CODESET);
14986     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
14987       return 1;
14988   }
14989 # endif
14990 # ifdef __CYGWIN__
14991   /* On Cygwin, avoid locale names without encoding suffix, because the
14992      locale_charset() function relies on the encoding suffix.  Note that
14993      LC_ALL is set on the command line.  */
14994   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
14995 # endif
14996   /* Check whether in the abbreviation of the second month, the second
14997      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
14998      two bytes long, with UTF-8 encoding.  */
14999   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
15000   if (strftime (buf, sizeof (buf), "%b", &t) < 4
15001       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
15002     return 1;
15003 #endif
15004   /* Check whether the decimal separator is a comma.
15005      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
15006      are nl_langinfo(RADIXCHAR) are both ".".  */
15007   if (localeconv () ->decimal_point[0] != ',') return 1;
15008   return 0;
15009 }
15010
15011 _ACEOF
15012     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013   (eval $ac_link) 2>&5
15014   ac_status=$?
15015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } && test -s conftest$ac_exeext; then
15017       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15018       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
15019       # configure script would override the LC_ALL setting. Likewise for
15020       # LC_CTYPE, which is also set at the beginning of the configure script.
15021       # Test for the usual locale name.
15022       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15023         gt_cv_locale_fr_utf8=fr_FR
15024       else
15025         # Test for the locale name with explicit encoding suffix.
15026         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15027           gt_cv_locale_fr_utf8=fr_FR.UTF-8
15028         else
15029           # Test for the Solaris 7 locale name.
15030           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15031             gt_cv_locale_fr_utf8=fr.UTF-8
15032           else
15033             # None found.
15034             gt_cv_locale_fr_utf8=none
15035           fi
15036         fi
15037       fi
15038     fi
15039     rm -fr conftest*
15040
15041 fi
15042 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
15043 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
15044   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060   GNULIB_MEMCHR=0;
15061   GNULIB_MEMMEM=0;
15062   GNULIB_MEMPCPY=0;
15063   GNULIB_MEMRCHR=0;
15064   GNULIB_RAWMEMCHR=0;
15065   GNULIB_STPCPY=0;
15066   GNULIB_STPNCPY=0;
15067   GNULIB_STRCHRNUL=0;
15068   GNULIB_STRDUP=0;
15069   GNULIB_STRNCAT=0;
15070   GNULIB_STRNDUP=0;
15071   GNULIB_STRNLEN=0;
15072   GNULIB_STRPBRK=0;
15073   GNULIB_STRSEP=0;
15074   GNULIB_STRSTR=0;
15075   GNULIB_STRCASESTR=0;
15076   GNULIB_STRTOK_R=0;
15077   GNULIB_MBSLEN=0;
15078   GNULIB_MBSNLEN=0;
15079   GNULIB_MBSCHR=0;
15080   GNULIB_MBSRCHR=0;
15081   GNULIB_MBSSTR=0;
15082   GNULIB_MBSCASECMP=0;
15083   GNULIB_MBSNCASECMP=0;
15084   GNULIB_MBSPCASECMP=0;
15085   GNULIB_MBSCASESTR=0;
15086   GNULIB_MBSCSPN=0;
15087   GNULIB_MBSPBRK=0;
15088   GNULIB_MBSSPN=0;
15089   GNULIB_MBSSEP=0;
15090   GNULIB_MBSTOK_R=0;
15091   GNULIB_STRERROR=0;
15092   GNULIB_STRSIGNAL=0;
15093   GNULIB_STRVERSCMP=0;
15094   HAVE_MBSLEN=0;
15095     HAVE_MEMCHR=1;
15096   HAVE_DECL_MEMMEM=1;
15097   HAVE_MEMPCPY=1;
15098   HAVE_DECL_MEMRCHR=1;
15099   HAVE_RAWMEMCHR=1;
15100   HAVE_STPCPY=1;
15101   HAVE_STPNCPY=1;
15102   HAVE_STRCHRNUL=1;
15103   HAVE_DECL_STRDUP=1;
15104   HAVE_DECL_STRNDUP=1;
15105   HAVE_DECL_STRNLEN=1;
15106   HAVE_STRPBRK=1;
15107   HAVE_STRSEP=1;
15108   HAVE_STRCASESTR=1;
15109   HAVE_DECL_STRTOK_R=1;
15110   HAVE_DECL_STRSIGNAL=1;
15111   HAVE_STRVERSCMP=1;
15112   REPLACE_MEMCHR=0;
15113   REPLACE_MEMMEM=0;
15114   REPLACE_STPNCPY=0;
15115   REPLACE_STRDUP=0;
15116   REPLACE_STRSTR=0;
15117   REPLACE_STRCASESTR=0;
15118   REPLACE_STRERROR=0;
15119   REPLACE_STRNCAT=0;
15120   REPLACE_STRNDUP=0;
15121   REPLACE_STRNLEN=0;
15122   REPLACE_STRSIGNAL=0;
15123   REPLACE_STRTOK_R=0;
15124   UNDEFINE_STRTOK_R=0;
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
15140   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
15141   # irrelevant for anonymous mappings.
15142   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
15143 $as_echo_n "checking for mmap... " >&6; }
15144 if test "${ac_cv_func_mmap+set}" = set; then
15145   $as_echo_n "(cached) " >&6
15146 else
15147   cat >conftest.$ac_ext <<_ACEOF
15148 /* confdefs.h.  */
15149 _ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h.  */
15153 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
15154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15155 #define mmap innocuous_mmap
15156
15157 /* System header to define __stub macros and hopefully few prototypes,
15158     which can conflict with char mmap (); below.
15159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15160     <limits.h> exists even on freestanding compilers.  */
15161
15162 #ifdef __STDC__
15163 # include <limits.h>
15164 #else
15165 # include <assert.h>
15166 #endif
15167
15168 #undef mmap
15169
15170 /* Override any GCC internal prototype to avoid an error.
15171    Use char because int might match the return type of a GCC
15172    builtin and then its argument prototype would still apply.  */
15173 #ifdef __cplusplus
15174 extern "C"
15175 #endif
15176 char mmap ();
15177 /* The GNU C library defines this for functions which it implements
15178     to always fail with ENOSYS.  Some functions are actually named
15179     something starting with __ and the normal name is an alias.  */
15180 #if defined __stub_mmap || defined __stub___mmap
15181 choke me
15182 #endif
15183
15184 int
15185 main ()
15186 {
15187 return mmap ();
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 rm -f conftest.$ac_objext conftest$ac_exeext
15193 if { (ac_try="$ac_link"
15194 case "(($ac_try" in
15195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196   *) ac_try_echo=$ac_try;;
15197 esac
15198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200   (eval "$ac_link") 2>conftest.er1
15201   ac_status=$?
15202   grep -v '^ *+' conftest.er1 >conftest.err
15203   rm -f conftest.er1
15204   cat conftest.err >&5
15205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } && {
15207          test -z "$ac_c_werror_flag" ||
15208          test ! -s conftest.err
15209        } && test -s conftest$ac_exeext && {
15210          test "$cross_compiling" = yes ||
15211          $as_test_x conftest$ac_exeext
15212        }; then
15213   ac_cv_func_mmap=yes
15214 else
15215   $as_echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218         ac_cv_func_mmap=no
15219 fi
15220
15221 rm -rf conftest.dSYM
15222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15223       conftest$ac_exeext conftest.$ac_ext
15224 fi
15225 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
15226 $as_echo "$ac_cv_func_mmap" >&6; }
15227 if test "x$ac_cv_func_mmap" = x""yes; then
15228   gl_have_mmap=yes
15229 else
15230   gl_have_mmap=no
15231 fi
15232
15233
15234   # Try to allow MAP_ANONYMOUS.
15235   gl_have_mmap_anonymous=no
15236   if test $gl_have_mmap = yes; then
15237     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
15238 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
15239     cat >conftest.$ac_ext <<_ACEOF
15240 /* confdefs.h.  */
15241 _ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h.  */
15245
15246 #include <sys/mman.h>
15247 #ifdef MAP_ANONYMOUS
15248     I cant identify this map.
15249 #endif
15250
15251 _ACEOF
15252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15253   $EGREP "I cant identify this map." >/dev/null 2>&1; then
15254   gl_have_mmap_anonymous=yes
15255 fi
15256 rm -f conftest*
15257
15258     if test $gl_have_mmap_anonymous != yes; then
15259       cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h.  */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h.  */
15265
15266 #include <sys/mman.h>
15267 #ifdef MAP_ANON
15268     I cant identify this map.
15269 #endif
15270
15271 _ACEOF
15272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273   $EGREP "I cant identify this map." >/dev/null 2>&1; then
15274
15275 cat >>confdefs.h <<\_ACEOF
15276 #define MAP_ANONYMOUS MAP_ANON
15277 _ACEOF
15278
15279          gl_have_mmap_anonymous=yes
15280 fi
15281 rm -f conftest*
15282
15283     fi
15284     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
15285 $as_echo "$gl_have_mmap_anonymous" >&6; }
15286     if test $gl_have_mmap_anonymous = yes; then
15287
15288 cat >>confdefs.h <<\_ACEOF
15289 #define HAVE_MAP_ANONYMOUS 1
15290 _ACEOF
15291
15292     fi
15293   fi
15294
15295
15296   :
15297
15298
15299
15300
15301
15302
15303   :
15304
15305
15306
15307
15308
15309
15310
15311
15312   :
15313
15314
15315
15316
15317
15318   if test $ac_cv_func_memchr = yes; then
15319     # Detect platform-specific bugs in some versions of glibc:
15320     # memchr should not dereference anything with length 0
15321     #   http://bugzilla.redhat.com/499689
15322     # memchr should not dereference overestimated length after a match
15323     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
15324     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
15325     # Assume that memchr works on platforms that lack mprotect.
15326     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
15327 $as_echo_n "checking whether memchr works... " >&6; }
15328 if test "${gl_cv_func_memchr_works+set}" = set; then
15329   $as_echo_n "(cached) " >&6
15330 else
15331   if test "$cross_compiling" = yes; then
15332          gl_cv_func_memchr_works="guessing no"
15333 else
15334   cat >conftest.$ac_ext <<_ACEOF
15335 /* confdefs.h.  */
15336 _ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h.  */
15340
15341 #include <string.h>
15342 #if HAVE_SYS_MMAN_H
15343 # include <fcntl.h>
15344 # include <unistd.h>
15345 # include <sys/types.h>
15346 # include <sys/mman.h>
15347 # ifndef MAP_FILE
15348 #  define MAP_FILE 0
15349 # endif
15350 #endif
15351
15352 int
15353 main ()
15354 {
15355
15356   char *fence = NULL;
15357 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
15358 # if HAVE_MAP_ANONYMOUS
15359   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
15360   const int fd = -1;
15361 # else /* !HAVE_MAP_ANONYMOUS */
15362   const int flags = MAP_FILE | MAP_PRIVATE;
15363   int fd = open ("/dev/zero", O_RDONLY, 0666);
15364   if (fd >= 0)
15365 # endif
15366     {
15367       int pagesize = getpagesize ();
15368       char *two_pages =
15369         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
15370                        flags, fd, 0);
15371       if (two_pages != (char *)(-1)
15372           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
15373         fence = two_pages + pagesize;
15374     }
15375 #endif
15376   if (fence)
15377     {
15378       if (memchr (fence, 0, 0))
15379         return 1;
15380       strcpy (fence - 9, "12345678");
15381       if (memchr (fence - 9, 0, 79) != fence - 1)
15382         return 2;
15383     }
15384   return 0;
15385
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest$ac_exeext
15391 if { (ac_try="$ac_link"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15397 $as_echo "$ac_try_echo") >&5
15398   (eval "$ac_link") 2>&5
15399   ac_status=$?
15400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15402   { (case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408   (eval "$ac_try") 2>&5
15409   ac_status=$?
15410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); }; }; then
15412   gl_cv_func_memchr_works=yes
15413 else
15414   $as_echo "$as_me: program exited with status $ac_status" >&5
15415 $as_echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15417
15418 ( exit $ac_status )
15419 gl_cv_func_memchr_works=no
15420 fi
15421 rm -rf conftest.dSYM
15422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15423 fi
15424
15425
15426 fi
15427 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
15428 $as_echo "$gl_cv_func_memchr_works" >&6; }
15429     if test "$gl_cv_func_memchr_works" != yes; then
15430       REPLACE_MEMCHR=1
15431     fi
15432   else
15433     HAVE_MEMCHR=0
15434   fi
15435   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15436
15437
15438
15439
15440
15441
15442
15443
15444   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15445
15446
15447
15448 for ac_header in bp-sym.h
15449 do
15450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15452   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15453 $as_echo_n "checking for $ac_header... " >&6; }
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455   $as_echo_n "(cached) " >&6
15456 fi
15457 ac_res=`eval 'as_val=${'$as_ac_Header'}
15458                  $as_echo "$as_val"'`
15459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15460 $as_echo "$ac_res" >&6; }
15461 else
15462   # Is the header compilable?
15463 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15464 $as_echo_n "checking $ac_header usability... " >&6; }
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471 $ac_includes_default
15472 #include <$ac_header>
15473 _ACEOF
15474 rm -f conftest.$ac_objext
15475 if { (ac_try="$ac_compile"
15476 case "(($ac_try" in
15477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478   *) ac_try_echo=$ac_try;;
15479 esac
15480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15481 $as_echo "$ac_try_echo") >&5
15482   (eval "$ac_compile") 2>conftest.er1
15483   ac_status=$?
15484   grep -v '^ *+' conftest.er1 >conftest.err
15485   rm -f conftest.er1
15486   cat conftest.err >&5
15487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } && {
15489          test -z "$ac_c_werror_flag" ||
15490          test ! -s conftest.err
15491        } && test -s conftest.$ac_objext; then
15492   ac_header_compiler=yes
15493 else
15494   $as_echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15496
15497         ac_header_compiler=no
15498 fi
15499
15500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15501 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15502 $as_echo "$ac_header_compiler" >&6; }
15503
15504 # Is the header present?
15505 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15506 $as_echo_n "checking $ac_header presence... " >&6; }
15507 cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 #include <$ac_header>
15514 _ACEOF
15515 if { (ac_try="$ac_cpp conftest.$ac_ext"
15516 case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15521 $as_echo "$ac_try_echo") >&5
15522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } >/dev/null && {
15529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15530          test ! -s conftest.err
15531        }; then
15532   ac_header_preproc=yes
15533 else
15534   $as_echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537   ac_header_preproc=no
15538 fi
15539
15540 rm -f conftest.err conftest.$ac_ext
15541 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15542 $as_echo "$ac_header_preproc" >&6; }
15543
15544 # So?  What about this header?
15545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15546   yes:no: )
15547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15548 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15551     ac_header_preproc=yes
15552     ;;
15553   no:yes:* )
15554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15555 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15557 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15559 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15561 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15565 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15566
15567     ;;
15568 esac
15569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 $as_echo_n "checking for $ac_header... " >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572   $as_echo_n "(cached) " >&6
15573 else
15574   eval "$as_ac_Header=\$ac_header_preproc"
15575 fi
15576 ac_res=`eval 'as_val=${'$as_ac_Header'}
15577                  $as_echo "$as_val"'`
15578                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15579 $as_echo "$ac_res" >&6; }
15580
15581 fi
15582 as_val=`eval 'as_val=${'$as_ac_Header'}
15583                  $as_echo "$as_val"'`
15584    if test "x$as_val" = x""yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15587 _ACEOF
15588
15589 fi
15590
15591 done
15592
15593
15594   fi
15595
15596
15597     gl_cv_c_multiarch=no
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 #ifndef __APPLE_CC__
15605          not a universal capable compiler
15606         #endif
15607         typedef int dummy;
15608
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (ac_try="$ac_compile"
15612 case "(($ac_try" in
15613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614   *) ac_try_echo=$ac_try;;
15615 esac
15616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15617 $as_echo "$ac_try_echo") >&5
15618   (eval "$ac_compile") 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } && {
15625          test -z "$ac_c_werror_flag" ||
15626          test ! -s conftest.err
15627        } && test -s conftest.$ac_objext; then
15628
15629                arch=
15630      prev=
15631      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
15632        if test -n "$prev"; then
15633          case $word in
15634            i?86 | x86_64 | ppc | ppc64)
15635              if test -z "$arch" || test "$arch" = "$word"; then
15636                arch="$word"
15637              else
15638                gl_cv_c_multiarch=yes
15639              fi
15640              ;;
15641          esac
15642          prev=
15643        else
15644          if test "x$word" = "x-arch"; then
15645            prev=arch
15646          fi
15647        fi
15648      done
15649
15650 else
15651   $as_echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15653
15654
15655 fi
15656
15657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15658   if test $gl_cv_c_multiarch = yes; then
15659
15660 cat >>confdefs.h <<\_ACEOF
15661 #define AA_APPLE_UNIVERSAL_BUILD 1
15662 _ACEOF
15663
15664     APPLE_UNIVERSAL_BUILD=1
15665   else
15666     APPLE_UNIVERSAL_BUILD=0
15667   fi
15668
15669
15670
15671
15672
15673
15674
15675
15676 { $as_echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
15677 $as_echo_n "checking for external symbol _system_configuration... " >&6; }
15678 if test "${gl_cv_var__system_configuration+set}" = set; then
15679   $as_echo_n "(cached) " >&6
15680 else
15681   cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687 #include <sys/systemcfg.h>
15688
15689 int
15690 main ()
15691 {
15692 double x = _system_configuration.physmem;
15693                         if (x > 0.0) return 0;
15694   ;
15695   return 0;
15696 }
15697 _ACEOF
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (ac_try="$ac_link"
15700 case "(($ac_try" in
15701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702   *) ac_try_echo=$ac_try;;
15703 esac
15704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15705 $as_echo "$ac_try_echo") >&5
15706   (eval "$ac_link") 2>conftest.er1
15707   ac_status=$?
15708   grep -v '^ *+' conftest.er1 >conftest.err
15709   rm -f conftest.er1
15710   cat conftest.err >&5
15711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); } && {
15713          test -z "$ac_c_werror_flag" ||
15714          test ! -s conftest.err
15715        } && test -s conftest$ac_exeext && {
15716          test "$cross_compiling" = yes ||
15717          $as_test_x conftest$ac_exeext
15718        }; then
15719   gl_cv_var__system_configuration=yes
15720 else
15721   $as_echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724         gl_cv_var__system_configuration=no
15725 fi
15726
15727 rm -rf conftest.dSYM
15728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15729       conftest$ac_exeext conftest.$ac_ext
15730 fi
15731 { $as_echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
15732 $as_echo "$gl_cv_var__system_configuration" >&6; }
15733
15734     if test $gl_cv_var__system_configuration = yes; then
15735
15736 cat >>confdefs.h <<\_ACEOF
15737 #define HAVE__SYSTEM_CONFIGURATION 1
15738 _ACEOF
15739
15740     fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
15769 $as_echo_n "checking for ssize_t... " >&6; }
15770 if test "${gt_cv_ssize_t+set}" = set; then
15771   $as_echo_n "(cached) " >&6
15772 else
15773   cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 #include <sys/types.h>
15780 int
15781 main ()
15782 {
15783 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15784             return !x;
15785   ;
15786   return 0;
15787 }
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (ac_try="$ac_compile"
15791 case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15796 $as_echo "$ac_try_echo") >&5
15797   (eval "$ac_compile") 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } && {
15804          test -z "$ac_c_werror_flag" ||
15805          test ! -s conftest.err
15806        } && test -s conftest.$ac_objext; then
15807   gt_cv_ssize_t=yes
15808 else
15809   $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812         gt_cv_ssize_t=no
15813 fi
15814
15815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
15818 $as_echo "$gt_cv_ssize_t" >&6; }
15819   if test $gt_cv_ssize_t = no; then
15820
15821 cat >>confdefs.h <<\_ACEOF
15822 #define ssize_t int
15823 _ACEOF
15824
15825   fi
15826
15827
15828       { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15829 $as_echo_n "checking whether snprintf is declared... " >&6; }
15830 if test "${ac_cv_have_decl_snprintf+set}" = set; then
15831   $as_echo_n "(cached) " >&6
15832 else
15833   cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 $ac_includes_default
15840 int
15841 main ()
15842 {
15843 #ifndef snprintf
15844   (void) snprintf;
15845 #endif
15846
15847   ;
15848   return 0;
15849 }
15850 _ACEOF
15851 rm -f conftest.$ac_objext
15852 if { (ac_try="$ac_compile"
15853 case "(($ac_try" in
15854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855   *) ac_try_echo=$ac_try;;
15856 esac
15857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15858 $as_echo "$ac_try_echo") >&5
15859   (eval "$ac_compile") 2>conftest.er1
15860   ac_status=$?
15861   grep -v '^ *+' conftest.er1 >conftest.err
15862   rm -f conftest.er1
15863   cat conftest.err >&5
15864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); } && {
15866          test -z "$ac_c_werror_flag" ||
15867          test ! -s conftest.err
15868        } && test -s conftest.$ac_objext; then
15869   ac_cv_have_decl_snprintf=yes
15870 else
15871   $as_echo "$as_me: failed program was:" >&5
15872 sed 's/^/| /' conftest.$ac_ext >&5
15873
15874         ac_cv_have_decl_snprintf=no
15875 fi
15876
15877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878 fi
15879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15880 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
15881 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
15882
15883 cat >>confdefs.h <<_ACEOF
15884 #define HAVE_DECL_SNPRINTF 1
15885 _ACEOF
15886
15887
15888 else
15889   cat >>confdefs.h <<_ACEOF
15890 #define HAVE_DECL_SNPRINTF 0
15891 _ACEOF
15892
15893
15894 fi
15895
15896
15897
15898
15899     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
15900 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
15901 if test "${ac_cv_win_or_dos+set}" = set; then
15902   $as_echo_n "(cached) " >&6
15903 else
15904
15905         cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h.  */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h.  */
15911
15912 int
15913 main ()
15914 {
15915
15916 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
15917 neither MSDOS nor Windows
15918 #endif
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext
15924 if { (ac_try="$ac_compile"
15925 case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15930 $as_echo "$ac_try_echo") >&5
15931   (eval "$ac_compile") 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } && {
15938          test -z "$ac_c_werror_flag" ||
15939          test ! -s conftest.err
15940        } && test -s conftest.$ac_objext; then
15941   ac_cv_win_or_dos=yes
15942 else
15943   $as_echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15945
15946         ac_cv_win_or_dos=no
15947 fi
15948
15949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15950
15951 fi
15952 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
15953 $as_echo "$ac_cv_win_or_dos" >&6; }
15954
15955     if test x"$ac_cv_win_or_dos" = xyes; then
15956       ac_fs_accepts_drive_letter_prefix=1
15957       ac_fs_backslash_is_file_name_separator=1
15958       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
15959 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
15960 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
15961   $as_echo_n "(cached) " >&6
15962 else
15963
15964           cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970
15971 int
15972 main ()
15973 {
15974
15975 #if defined __CYGWIN__
15976 drive letters are always absolute
15977 #endif
15978   ;
15979   return 0;
15980 }
15981 _ACEOF
15982 rm -f conftest.$ac_objext
15983 if { (ac_try="$ac_compile"
15984 case "(($ac_try" in
15985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15986   *) ac_try_echo=$ac_try;;
15987 esac
15988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15989 $as_echo "$ac_try_echo") >&5
15990   (eval "$ac_compile") 2>conftest.er1
15991   ac_status=$?
15992   grep -v '^ *+' conftest.er1 >conftest.err
15993   rm -f conftest.er1
15994   cat conftest.err >&5
15995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996   (exit $ac_status); } && {
15997          test -z "$ac_c_werror_flag" ||
15998          test ! -s conftest.err
15999        } && test -s conftest.$ac_objext; then
16000   ac_cv_drive_letter_can_be_relative=yes
16001 else
16002   $as_echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16004
16005         ac_cv_drive_letter_can_be_relative=no
16006 fi
16007
16008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16009
16010 fi
16011 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
16012 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
16013       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
16014         ac_fs_drive_letter_can_be_relative=1
16015       else
16016         ac_fs_drive_letter_can_be_relative=0
16017       fi
16018     else
16019       ac_fs_accepts_drive_letter_prefix=0
16020       ac_fs_backslash_is_file_name_separator=0
16021       ac_fs_drive_letter_can_be_relative=0
16022     fi
16023
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
16027 _ACEOF
16028
16029
16030
16031
16032
16033
16034 cat >>confdefs.h <<_ACEOF
16035 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
16036 _ACEOF
16037
16038
16039
16040 cat >>confdefs.h <<_ACEOF
16041 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
16042 _ACEOF
16043
16044
16045 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16046 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16047 if test "${ac_cv_header_stdbool_h+set}" = set; then
16048   $as_echo_n "(cached) " >&6
16049 else
16050   cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056
16057              #include <stdbool.h>
16058              #ifndef bool
16059               "error: bool is not defined"
16060              #endif
16061              #ifndef false
16062               "error: false is not defined"
16063              #endif
16064              #if false
16065               "error: false is not 0"
16066              #endif
16067              #ifndef true
16068               "error: true is not defined"
16069              #endif
16070              #if true != 1
16071               "error: true is not 1"
16072              #endif
16073              #ifndef __bool_true_false_are_defined
16074               "error: __bool_true_false_are_defined is not defined"
16075              #endif
16076
16077              struct s { _Bool s: 1; _Bool t; } s;
16078
16079              char a[true == 1 ? 1 : -1];
16080              char b[false == 0 ? 1 : -1];
16081              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16082              char d[(bool) 0.5 == true ? 1 : -1];
16083              /* See body of main program for 'e'.  */
16084              char f[(_Bool) 0.0 == false ? 1 : -1];
16085              char g[true];
16086              char h[sizeof (_Bool)];
16087              char i[sizeof s.t];
16088              enum { j = false, k = true, l = false * true, m = true * 256 };
16089              /* The following fails for
16090                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16091              _Bool n[m];
16092              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16093              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16094              /* Catch a bug in an HP-UX C compiler.  See
16095                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16096                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16097               */
16098              _Bool q = true;
16099              _Bool *pq = &q;
16100
16101 int
16102 main ()
16103 {
16104
16105              bool e = &s;
16106              *pq |= q;
16107              *pq |= ! q;
16108              /* Refer to every declared value, to avoid compiler optimizations.  */
16109              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16110                      + !m + !n + !o + !p + !q + !pq);
16111
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext
16117 if { (ac_try="$ac_compile"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16123 $as_echo "$ac_try_echo") >&5
16124   (eval "$ac_compile") 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } && {
16131          test -z "$ac_c_werror_flag" ||
16132          test ! -s conftest.err
16133        } && test -s conftest.$ac_objext; then
16134   ac_cv_header_stdbool_h=yes
16135 else
16136   $as_echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139         ac_cv_header_stdbool_h=no
16140 fi
16141
16142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16143 fi
16144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16145 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16146    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16147 $as_echo_n "checking for _Bool... " >&6; }
16148 if test "${ac_cv_type__Bool+set}" = set; then
16149   $as_echo_n "(cached) " >&6
16150 else
16151   ac_cv_type__Bool=no
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158 $ac_includes_default
16159 int
16160 main ()
16161 {
16162 if (sizeof (_Bool))
16163        return 0;
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext
16169 if { (ac_try="$ac_compile"
16170 case "(($ac_try" in
16171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172   *) ac_try_echo=$ac_try;;
16173 esac
16174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16175 $as_echo "$ac_try_echo") >&5
16176   (eval "$ac_compile") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } && {
16183          test -z "$ac_c_werror_flag" ||
16184          test ! -s conftest.err
16185        } && test -s conftest.$ac_objext; then
16186   cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h.  */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h.  */
16192 $ac_includes_default
16193 int
16194 main ()
16195 {
16196 if (sizeof ((_Bool)))
16197           return 0;
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (ac_try="$ac_compile"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16209 $as_echo "$ac_try_echo") >&5
16210   (eval "$ac_compile") 2>conftest.er1
16211   ac_status=$?
16212   grep -v '^ *+' conftest.er1 >conftest.err
16213   rm -f conftest.er1
16214   cat conftest.err >&5
16215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } && {
16217          test -z "$ac_c_werror_flag" ||
16218          test ! -s conftest.err
16219        } && test -s conftest.$ac_objext; then
16220   :
16221 else
16222   $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16224
16225         ac_cv_type__Bool=yes
16226 fi
16227
16228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 else
16230   $as_echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233
16234 fi
16235
16236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16237 fi
16238 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16239 $as_echo "$ac_cv_type__Bool" >&6; }
16240 if test "x$ac_cv_type__Bool" = x""yes; then
16241
16242 cat >>confdefs.h <<_ACEOF
16243 #define HAVE__BOOL 1
16244 _ACEOF
16245
16246
16247 fi
16248
16249    if test $ac_cv_header_stdbool_h = yes; then
16250
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_STDBOOL_H 1
16253 _ACEOF
16254
16255    fi
16256
16257     REPLACE_NULL=0;
16258   HAVE_WCHAR_T=1;
16259   STDDEF_H='';
16260
16261
16262   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
16263 $as_echo_n "checking for wchar_t... " >&6; }
16264 if test "${gt_cv_c_wchar_t+set}" = set; then
16265   $as_echo_n "(cached) " >&6
16266 else
16267   cat >conftest.$ac_ext <<_ACEOF
16268 /* confdefs.h.  */
16269 _ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h.  */
16273 #include <stddef.h>
16274        wchar_t foo = (wchar_t)'\0';
16275 int
16276 main ()
16277 {
16278
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (ac_try="$ac_compile"
16285 case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291   (eval "$ac_compile") 2>conftest.er1
16292   ac_status=$?
16293   grep -v '^ *+' conftest.er1 >conftest.err
16294   rm -f conftest.er1
16295   cat conftest.err >&5
16296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } && {
16298          test -z "$ac_c_werror_flag" ||
16299          test ! -s conftest.err
16300        } && test -s conftest.$ac_objext; then
16301   gt_cv_c_wchar_t=yes
16302 else
16303   $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306         gt_cv_c_wchar_t=no
16307 fi
16308
16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310 fi
16311 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
16312 $as_echo "$gt_cv_c_wchar_t" >&6; }
16313   if test $gt_cv_c_wchar_t = yes; then
16314
16315 cat >>confdefs.h <<\_ACEOF
16316 #define HAVE_WCHAR_T 1
16317 _ACEOF
16318
16319   fi
16320
16321
16322
16323
16324
16325
16326
16327
16328   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16329 $as_echo_n "checking for long long int... " >&6; }
16330 if test "${ac_cv_type_long_long_int+set}" = set; then
16331   $as_echo_n "(cached) " >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334
16335   /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340 /* For now, do not test the preprocessor; as of 2007 there are too many
16341          implementations with broken preprocessors.  Perhaps this can
16342          be revisited in 2012.  In the meantime, code should not expect
16343          #if to work with literals wider than 32 bits.  */
16344       /* Test literals.  */
16345       long long int ll = 9223372036854775807ll;
16346       long long int nll = -9223372036854775807LL;
16347       unsigned long long int ull = 18446744073709551615ULL;
16348       /* Test constant expressions.   */
16349       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16350                      ? 1 : -1)];
16351       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16352                      ? 1 : -1)];
16353       int i = 63;
16354 int
16355 main ()
16356 {
16357 /* Test availability of runtime routines for shift and division.  */
16358       long long int llmax = 9223372036854775807ll;
16359       unsigned long long int ullmax = 18446744073709551615ull;
16360       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16361               | (llmax / ll) | (llmax % ll)
16362               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16363               | (ullmax / ull) | (ullmax % ull));
16364   ;
16365   return 0;
16366 }
16367
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (ac_try="$ac_link"
16371 case "(($ac_try" in
16372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373   *) ac_try_echo=$ac_try;;
16374 esac
16375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16376 $as_echo "$ac_try_echo") >&5
16377   (eval "$ac_link") 2>conftest.er1
16378   ac_status=$?
16379   grep -v '^ *+' conftest.er1 >conftest.err
16380   rm -f conftest.er1
16381   cat conftest.err >&5
16382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); } && {
16384          test -z "$ac_c_werror_flag" ||
16385          test ! -s conftest.err
16386        } && test -s conftest$ac_exeext && {
16387          test "$cross_compiling" = yes ||
16388          $as_test_x conftest$ac_exeext
16389        }; then
16390                           if test "$cross_compiling" = yes; then
16391   ac_cv_type_long_long_int=yes
16392 else
16393   cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h.  */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h.  */
16399 #include <limits.h>
16400                #ifndef LLONG_MAX
16401                # define HALF \
16402                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16403                # define LLONG_MAX (HALF - 1 + HALF)
16404                #endif
16405 int
16406 main ()
16407 {
16408 long long int n = 1;
16409                int i;
16410                for (i = 0; ; i++)
16411                  {
16412                    long long int m = n << i;
16413                    if (m >> i != n)
16414                      return 1;
16415                    if (LLONG_MAX / 2 < m)
16416                      break;
16417                  }
16418                return 0;
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430 $as_echo "$ac_try_echo") >&5
16431   (eval "$ac_link") 2>&5
16432   ac_status=$?
16433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16435   { (case "(($ac_try" in
16436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437   *) ac_try_echo=$ac_try;;
16438 esac
16439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16440 $as_echo "$ac_try_echo") >&5
16441   (eval "$ac_try") 2>&5
16442   ac_status=$?
16443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; }; then
16445   ac_cv_type_long_long_int=yes
16446 else
16447   $as_echo "$as_me: program exited with status $ac_status" >&5
16448 $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ( exit $ac_status )
16452 ac_cv_type_long_long_int=no
16453 fi
16454 rm -rf conftest.dSYM
16455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16456 fi
16457
16458
16459 else
16460   $as_echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463         ac_cv_type_long_long_int=no
16464 fi
16465
16466 rm -rf conftest.dSYM
16467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16468       conftest$ac_exeext conftest.$ac_ext
16469 fi
16470 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16471 $as_echo "$ac_cv_type_long_long_int" >&6; }
16472   if test $ac_cv_type_long_long_int = yes; then
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE_LONG_LONG_INT 1
16476 _ACEOF
16477
16478   fi
16479
16480
16481   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16482 $as_echo_n "checking for unsigned long long int... " >&6; }
16483 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16484   $as_echo_n "(cached) " >&6
16485 else
16486   cat >conftest.$ac_ext <<_ACEOF
16487
16488   /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493 /* For now, do not test the preprocessor; as of 2007 there are too many
16494          implementations with broken preprocessors.  Perhaps this can
16495          be revisited in 2012.  In the meantime, code should not expect
16496          #if to work with literals wider than 32 bits.  */
16497       /* Test literals.  */
16498       long long int ll = 9223372036854775807ll;
16499       long long int nll = -9223372036854775807LL;
16500       unsigned long long int ull = 18446744073709551615ULL;
16501       /* Test constant expressions.   */
16502       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16503                      ? 1 : -1)];
16504       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16505                      ? 1 : -1)];
16506       int i = 63;
16507 int
16508 main ()
16509 {
16510 /* Test availability of runtime routines for shift and division.  */
16511       long long int llmax = 9223372036854775807ll;
16512       unsigned long long int ullmax = 18446744073709551615ull;
16513       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16514               | (llmax / ll) | (llmax % ll)
16515               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16516               | (ullmax / ull) | (ullmax % ull));
16517   ;
16518   return 0;
16519 }
16520
16521 _ACEOF
16522 rm -f conftest.$ac_objext conftest$ac_exeext
16523 if { (ac_try="$ac_link"
16524 case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16529 $as_echo "$ac_try_echo") >&5
16530   (eval "$ac_link") 2>conftest.er1
16531   ac_status=$?
16532   grep -v '^ *+' conftest.er1 >conftest.err
16533   rm -f conftest.er1
16534   cat conftest.err >&5
16535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } && {
16537          test -z "$ac_c_werror_flag" ||
16538          test ! -s conftest.err
16539        } && test -s conftest$ac_exeext && {
16540          test "$cross_compiling" = yes ||
16541          $as_test_x conftest$ac_exeext
16542        }; then
16543   ac_cv_type_unsigned_long_long_int=yes
16544 else
16545   $as_echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_type_unsigned_long_long_int=no
16549 fi
16550
16551 rm -rf conftest.dSYM
16552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16553       conftest$ac_exeext conftest.$ac_ext
16554 fi
16555 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16556 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16557   if test $ac_cv_type_unsigned_long_long_int = yes; then
16558
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16561 _ACEOF
16562
16563   fi
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578         { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
16579 $as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
16580 if test "${gl_cv_prog_as_underscore+set}" = set; then
16581   $as_echo_n "(cached) " >&6
16582 else
16583   cat > conftest.c <<EOF
16584 #ifdef __cplusplus
16585 extern "C" int foo (void);
16586 #endif
16587 int foo(void) { return 0; }
16588 EOF
16589      # Look for the assembly language name in the .s file.
16590      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
16591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16592   (eval $ac_try) 2>&5
16593   ac_status=$?
16594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595   (exit $ac_status); }; } >/dev/null 2>&1
16596      if grep _foo conftest.s >/dev/null ; then
16597        gl_cv_prog_as_underscore=yes
16598      else
16599        gl_cv_prog_as_underscore=no
16600      fi
16601      rm -f conftest*
16602
16603 fi
16604 { $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
16605 $as_echo "$gl_cv_prog_as_underscore" >&6; }
16606   if test $gl_cv_prog_as_underscore = yes; then
16607     USER_LABEL_PREFIX=_
16608   else
16609     USER_LABEL_PREFIX=
16610   fi
16611
16612 cat >>confdefs.h <<_ACEOF
16613 #define USER_LABEL_PREFIX $USER_LABEL_PREFIX
16614 _ACEOF
16615
16616   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644   :
16645
16646
16647
16648
16649
16650
16651
16652      if test $gl_cv_have_include_next = yes; then
16653        gl_cv_next_string_h='<'string.h'>'
16654      else
16655        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
16656 $as_echo_n "checking absolute name of <string.h>... " >&6; }
16657 if test "${gl_cv_next_string_h+set}" = set; then
16658   $as_echo_n "(cached) " >&6
16659 else
16660
16661           if test $ac_cv_header_string_h = yes; then
16662             cat >conftest.$ac_ext <<_ACEOF
16663 /* confdefs.h.  */
16664 _ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h.  */
16668 #include <string.h>
16669
16670 _ACEOF
16671                                                                                                 case "$host_os" in
16672               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16673               *)    gl_absname_cpp="$ac_cpp" ;;
16674             esac
16675                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16676                sed -n '\#/string.h#{
16677                  s#.*"\(.*/string.h\)".*#\1#
16678                  s#^/[^/]#//&#
16679                  p
16680                  q
16681                }'`'"'
16682           else
16683             gl_cv_next_string_h='<'string.h'>'
16684           fi
16685
16686 fi
16687 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
16688 $as_echo "$gl_cv_next_string_h" >&6; }
16689      fi
16690      NEXT_STRING_H=$gl_cv_next_string_h
16691
16692      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16693        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16694        gl_next_as_first_directive='<'string.h'>'
16695      else
16696        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16697        gl_next_as_first_directive=$gl_cv_next_string_h
16698      fi
16699      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722   for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
16723     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16724     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
16725 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16726 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
16727   $as_echo_n "(cached) " >&6
16728 else
16729   cat >conftest.$ac_ext <<_ACEOF
16730 /* confdefs.h.  */
16731 _ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h.  */
16735 #include <string.h>
16736
16737 int
16738 main ()
16739 {
16740 #undef $gl_func
16741   (void) $gl_func;
16742   ;
16743   return 0;
16744 }
16745 _ACEOF
16746 rm -f conftest.$ac_objext
16747 if { (ac_try="$ac_compile"
16748 case "(($ac_try" in
16749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750   *) ac_try_echo=$ac_try;;
16751 esac
16752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16753 $as_echo "$ac_try_echo") >&5
16754   (eval "$ac_compile") 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } && {
16761          test -z "$ac_c_werror_flag" ||
16762          test ! -s conftest.err
16763        } && test -s conftest.$ac_objext; then
16764   eval "$as_gl_Symbol=yes"
16765 else
16766   $as_echo "$as_me: failed program was:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16768
16769         eval "$as_gl_Symbol=no"
16770 fi
16771
16772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 fi
16774 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
16775                  $as_echo "$as_val"'`
16776                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16777 $as_echo "$ac_res" >&6; }
16778      as_val=`eval 'as_val=${'$as_gl_Symbol'}
16779                  $as_echo "$as_val"'`
16780    if test "x$as_val" = x""yes; then
16781   cat >>confdefs.h <<_ACEOF
16782 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16783 _ACEOF
16784
16785                      eval ac_cv_have_decl_$gl_func=yes
16786 fi
16787
16788       done
16789
16790
16791 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16792 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
16793 if test "${ac_cv_header_stat_broken+set}" = set; then
16794   $as_echo_n "(cached) " >&6
16795 else
16796   cat >conftest.$ac_ext <<_ACEOF
16797 /* confdefs.h.  */
16798 _ACEOF
16799 cat confdefs.h >>conftest.$ac_ext
16800 cat >>conftest.$ac_ext <<_ACEOF
16801 /* end confdefs.h.  */
16802 #include <sys/types.h>
16803 #include <sys/stat.h>
16804
16805 #if defined S_ISBLK && defined S_IFDIR
16806 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
16807 #endif
16808
16809 #if defined S_ISBLK && defined S_IFCHR
16810 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
16811 #endif
16812
16813 #if defined S_ISLNK && defined S_IFREG
16814 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
16815 #endif
16816
16817 #if defined S_ISSOCK && defined S_IFREG
16818 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
16819 #endif
16820
16821 _ACEOF
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16829 $as_echo "$ac_try_echo") >&5
16830   (eval "$ac_compile") 2>conftest.er1
16831   ac_status=$?
16832   grep -v '^ *+' conftest.er1 >conftest.err
16833   rm -f conftest.er1
16834   cat conftest.err >&5
16835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } && {
16837          test -z "$ac_c_werror_flag" ||
16838          test ! -s conftest.err
16839        } && test -s conftest.$ac_objext; then
16840   ac_cv_header_stat_broken=no
16841 else
16842   $as_echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16844
16845         ac_cv_header_stat_broken=yes
16846 fi
16847
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 fi
16850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16851 $as_echo "$ac_cv_header_stat_broken" >&6; }
16852 if test $ac_cv_header_stat_broken = yes; then
16853
16854 cat >>confdefs.h <<\_ACEOF
16855 #define STAT_MACROS_BROKEN 1
16856 _ACEOF
16857
16858 fi
16859
16860
16861
16862
16863
16864
16865
16866 # Check whether --enable-largefile was given.
16867 if test "${enable_largefile+set}" = set; then
16868   enableval=$enable_largefile;
16869 fi
16870
16871 if test "$enable_largefile" != no; then
16872
16873   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
16874 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16875 if test "${ac_cv_sys_largefile_CC+set}" = set; then
16876   $as_echo_n "(cached) " >&6
16877 else
16878   ac_cv_sys_largefile_CC=no
16879      if test "$GCC" != yes; then
16880        ac_save_CC=$CC
16881        while :; do
16882          # IRIX 6.2 and later do not support large files by default,
16883          # so use the C compiler's -n32 option if that helps.
16884          cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h.  */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h.  */
16890 #include <sys/types.h>
16891  /* Check that off_t can represent 2**63 - 1 correctly.
16892     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16893     since some C++ compilers masquerading as C compilers
16894     incorrectly reject 9223372036854775807.  */
16895 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16896   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16897                        && LARGE_OFF_T % 2147483647 == 1)
16898                       ? 1 : -1];
16899 int
16900 main ()
16901 {
16902
16903   ;
16904   return 0;
16905 }
16906 _ACEOF
16907          rm -f conftest.$ac_objext
16908 if { (ac_try="$ac_compile"
16909 case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16914 $as_echo "$ac_try_echo") >&5
16915   (eval "$ac_compile") 2>conftest.er1
16916   ac_status=$?
16917   grep -v '^ *+' conftest.er1 >conftest.err
16918   rm -f conftest.er1
16919   cat conftest.err >&5
16920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); } && {
16922          test -z "$ac_c_werror_flag" ||
16923          test ! -s conftest.err
16924        } && test -s conftest.$ac_objext; then
16925   break
16926 else
16927   $as_echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930
16931 fi
16932
16933 rm -f core conftest.err conftest.$ac_objext
16934          CC="$CC -n32"
16935          rm -f conftest.$ac_objext
16936 if { (ac_try="$ac_compile"
16937 case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16942 $as_echo "$ac_try_echo") >&5
16943   (eval "$ac_compile") 2>conftest.er1
16944   ac_status=$?
16945   grep -v '^ *+' conftest.er1 >conftest.err
16946   rm -f conftest.er1
16947   cat conftest.err >&5
16948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } && {
16950          test -z "$ac_c_werror_flag" ||
16951          test ! -s conftest.err
16952        } && test -s conftest.$ac_objext; then
16953   ac_cv_sys_largefile_CC=' -n32'; break
16954 else
16955   $as_echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext
16962          break
16963        done
16964        CC=$ac_save_CC
16965        rm -f conftest.$ac_ext
16966     fi
16967 fi
16968 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
16969 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16970   if test "$ac_cv_sys_largefile_CC" != no; then
16971     CC=$CC$ac_cv_sys_largefile_CC
16972   fi
16973
16974   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16975 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16976 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16977   $as_echo_n "(cached) " >&6
16978 else
16979   while :; do
16980   cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h.  */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h.  */
16986 #include <sys/types.h>
16987  /* Check that off_t can represent 2**63 - 1 correctly.
16988     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16989     since some C++ compilers masquerading as C compilers
16990     incorrectly reject 9223372036854775807.  */
16991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16992   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16993                        && LARGE_OFF_T % 2147483647 == 1)
16994                       ? 1 : -1];
16995 int
16996 main ()
16997 {
16998
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011   (eval "$ac_compile") 2>conftest.er1
17012   ac_status=$?
17013   grep -v '^ *+' conftest.er1 >conftest.err
17014   rm -f conftest.er1
17015   cat conftest.err >&5
17016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017   (exit $ac_status); } && {
17018          test -z "$ac_c_werror_flag" ||
17019          test ! -s conftest.err
17020        } && test -s conftest.$ac_objext; then
17021   ac_cv_sys_file_offset_bits=no; break
17022 else
17023   $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030   cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h.  */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h.  */
17036 #define _FILE_OFFSET_BITS 64
17037 #include <sys/types.h>
17038  /* Check that off_t can represent 2**63 - 1 correctly.
17039     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17040     since some C++ compilers masquerading as C compilers
17041     incorrectly reject 9223372036854775807.  */
17042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17043   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17044                        && LARGE_OFF_T % 2147483647 == 1)
17045                       ? 1 : -1];
17046 int
17047 main ()
17048 {
17049
17050   ;
17051   return 0;
17052 }
17053 _ACEOF
17054 rm -f conftest.$ac_objext
17055 if { (ac_try="$ac_compile"
17056 case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17061 $as_echo "$ac_try_echo") >&5
17062   (eval "$ac_compile") 2>conftest.er1
17063   ac_status=$?
17064   grep -v '^ *+' conftest.er1 >conftest.err
17065   rm -f conftest.er1
17066   cat conftest.err >&5
17067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); } && {
17069          test -z "$ac_c_werror_flag" ||
17070          test ! -s conftest.err
17071        } && test -s conftest.$ac_objext; then
17072   ac_cv_sys_file_offset_bits=64; break
17073 else
17074   $as_echo "$as_me: failed program was:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17076
17077
17078 fi
17079
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17081   ac_cv_sys_file_offset_bits=unknown
17082   break
17083 done
17084 fi
17085 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17086 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17087 case $ac_cv_sys_file_offset_bits in #(
17088   no | unknown) ;;
17089   *)
17090 cat >>confdefs.h <<_ACEOF
17091 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17092 _ACEOF
17093 ;;
17094 esac
17095 rm -rf conftest*
17096   if test $ac_cv_sys_file_offset_bits = unknown; then
17097     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17098 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17099 if test "${ac_cv_sys_large_files+set}" = set; then
17100   $as_echo_n "(cached) " >&6
17101 else
17102   while :; do
17103   cat >conftest.$ac_ext <<_ACEOF
17104 /* confdefs.h.  */
17105 _ACEOF
17106 cat confdefs.h >>conftest.$ac_ext
17107 cat >>conftest.$ac_ext <<_ACEOF
17108 /* end confdefs.h.  */
17109 #include <sys/types.h>
17110  /* Check that off_t can represent 2**63 - 1 correctly.
17111     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17112     since some C++ compilers masquerading as C compilers
17113     incorrectly reject 9223372036854775807.  */
17114 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17115   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17116                        && LARGE_OFF_T % 2147483647 == 1)
17117                       ? 1 : -1];
17118 int
17119 main ()
17120 {
17121
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17133 $as_echo "$ac_try_echo") >&5
17134   (eval "$ac_compile") 2>conftest.er1
17135   ac_status=$?
17136   grep -v '^ *+' conftest.er1 >conftest.err
17137   rm -f conftest.er1
17138   cat conftest.err >&5
17139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); } && {
17141          test -z "$ac_c_werror_flag" ||
17142          test ! -s conftest.err
17143        } && test -s conftest.$ac_objext; then
17144   ac_cv_sys_large_files=no; break
17145 else
17146   $as_echo "$as_me: failed program was:" >&5
17147 sed 's/^/| /' conftest.$ac_ext >&5
17148
17149
17150 fi
17151
17152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17153   cat >conftest.$ac_ext <<_ACEOF
17154 /* confdefs.h.  */
17155 _ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h.  */
17159 #define _LARGE_FILES 1
17160 #include <sys/types.h>
17161  /* Check that off_t can represent 2**63 - 1 correctly.
17162     We can't simply define LARGE_OFF_T to be 9223372036854775807,
17163     since some C++ compilers masquerading as C compilers
17164     incorrectly reject 9223372036854775807.  */
17165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17166   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17167                        && LARGE_OFF_T % 2147483647 == 1)
17168                       ? 1 : -1];
17169 int
17170 main ()
17171 {
17172
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181   *) ac_try_echo=$ac_try;;
17182 esac
17183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17184 $as_echo "$ac_try_echo") >&5
17185   (eval "$ac_compile") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest.$ac_objext; then
17195   ac_cv_sys_large_files=1; break
17196 else
17197   $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204   ac_cv_sys_large_files=unknown
17205   break
17206 done
17207 fi
17208 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17209 $as_echo "$ac_cv_sys_large_files" >&6; }
17210 case $ac_cv_sys_large_files in #(
17211   no | unknown) ;;
17212   *)
17213 cat >>confdefs.h <<_ACEOF
17214 #define _LARGE_FILES $ac_cv_sys_large_files
17215 _ACEOF
17216 ;;
17217 esac
17218 rm -rf conftest*
17219   fi
17220 fi
17221
17222
17223   GNULIB_MKTIME=0;
17224   GNULIB_NANOSLEEP=0;
17225   GNULIB_STRPTIME=0;
17226   GNULIB_TIMEGM=0;
17227   GNULIB_TIME_R=0;
17228     HAVE_LOCALTIME_R=1;
17229   HAVE_NANOSLEEP=1;
17230   HAVE_STRPTIME=1;
17231   HAVE_TIMEGM=1;
17232         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
17233   REPLACE_MKTIME=GNULIB_PORTCHECK;
17234   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
17235   REPLACE_TIMEGM=GNULIB_PORTCHECK;
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245   :
17246
17247
17248
17249
17250
17251   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
17252 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
17253 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
17254   $as_echo_n "(cached) " >&6
17255 else
17256   cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262 #include <time.h>
17263
17264 int
17265 main ()
17266 {
17267 static struct timespec x; x.tv_sec = x.tv_nsec;
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (ac_try="$ac_compile"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17279 $as_echo "$ac_try_echo") >&5
17280   (eval "$ac_compile") 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } && {
17287          test -z "$ac_c_werror_flag" ||
17288          test ! -s conftest.err
17289        } && test -s conftest.$ac_objext; then
17290   gl_cv_sys_struct_timespec_in_time_h=yes
17291 else
17292   $as_echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         gl_cv_sys_struct_timespec_in_time_h=no
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 fi
17300 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
17301 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
17302
17303   TIME_H_DEFINES_STRUCT_TIMESPEC=0
17304   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
17305   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
17306   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
17307     TIME_H_DEFINES_STRUCT_TIMESPEC=1
17308   else
17309     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
17310 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
17311 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
17312   $as_echo_n "(cached) " >&6
17313 else
17314   cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320 #include <sys/time.h>
17321
17322 int
17323 main ()
17324 {
17325 static struct timespec x; x.tv_sec = x.tv_nsec;
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17337 $as_echo "$ac_try_echo") >&5
17338   (eval "$ac_compile") 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } && {
17345          test -z "$ac_c_werror_flag" ||
17346          test ! -s conftest.err
17347        } && test -s conftest.$ac_objext; then
17348   gl_cv_sys_struct_timespec_in_sys_time_h=yes
17349 else
17350   $as_echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353         gl_cv_sys_struct_timespec_in_sys_time_h=no
17354 fi
17355
17356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17357 fi
17358 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
17359 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
17360     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
17361       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
17362     else
17363       { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
17364 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
17365 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
17366   $as_echo_n "(cached) " >&6
17367 else
17368   cat >conftest.$ac_ext <<_ACEOF
17369 /* confdefs.h.  */
17370 _ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h.  */
17374 #include <pthread.h>
17375
17376 int
17377 main ()
17378 {
17379 static struct timespec x; x.tv_sec = x.tv_nsec;
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17391 $as_echo "$ac_try_echo") >&5
17392   (eval "$ac_compile") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } && {
17399          test -z "$ac_c_werror_flag" ||
17400          test ! -s conftest.err
17401        } && test -s conftest.$ac_objext; then
17402   gl_cv_sys_struct_timespec_in_pthread_h=yes
17403 else
17404   $as_echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17406
17407         gl_cv_sys_struct_timespec_in_pthread_h=no
17408 fi
17409
17410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17411 fi
17412 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
17413 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
17414       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
17415         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
17416       fi
17417     fi
17418   fi
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430   :
17431
17432
17433
17434
17435
17436
17437
17438      if test $gl_cv_have_include_next = yes; then
17439        gl_cv_next_time_h='<'time.h'>'
17440      else
17441        { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
17442 $as_echo_n "checking absolute name of <time.h>... " >&6; }
17443 if test "${gl_cv_next_time_h+set}" = set; then
17444   $as_echo_n "(cached) " >&6
17445 else
17446
17447           if test $ac_cv_header_time_h = yes; then
17448             cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h.  */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h.  */
17454 #include <time.h>
17455
17456 _ACEOF
17457                                                                                                 case "$host_os" in
17458               aix*) gl_absname_cpp="$ac_cpp -C" ;;
17459               *)    gl_absname_cpp="$ac_cpp" ;;
17460             esac
17461                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17462                sed -n '\#/time.h#{
17463                  s#.*"\(.*/time.h\)".*#\1#
17464                  s#^/[^/]#//&#
17465                  p
17466                  q
17467                }'`'"'
17468           else
17469             gl_cv_next_time_h='<'time.h'>'
17470           fi
17471
17472 fi
17473 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
17474 $as_echo "$gl_cv_next_time_h" >&6; }
17475      fi
17476      NEXT_TIME_H=$gl_cv_next_time_h
17477
17478      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17479        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17480        gl_next_as_first_directive='<'time.h'>'
17481      else
17482        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17483        gl_next_as_first_directive=$gl_cv_next_time_h
17484      fi
17485      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
17505 $as_echo_n "checking for wint_t... " >&6; }
17506 if test "${gt_cv_c_wint_t+set}" = set; then
17507   $as_echo_n "(cached) " >&6
17508 else
17509   cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 #include <wchar.h>
17516        wint_t foo = (wchar_t)'\0';
17517 int
17518 main ()
17519 {
17520
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext
17526 if { (ac_try="$ac_compile"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17532 $as_echo "$ac_try_echo") >&5
17533   (eval "$ac_compile") 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } && {
17540          test -z "$ac_c_werror_flag" ||
17541          test ! -s conftest.err
17542        } && test -s conftest.$ac_objext; then
17543   gt_cv_c_wint_t=yes
17544 else
17545   $as_echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548         gt_cv_c_wint_t=no
17549 fi
17550
17551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17552 fi
17553 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
17554 $as_echo "$gt_cv_c_wint_t" >&6; }
17555   if test $gt_cv_c_wint_t = yes; then
17556
17557 cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_WINT_T 1
17559 _ACEOF
17560
17561   fi
17562
17563 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
17564 $as_echo_n "checking for size_t... " >&6; }
17565 if test "${ac_cv_type_size_t+set}" = set; then
17566   $as_echo_n "(cached) " >&6
17567 else
17568   ac_cv_type_size_t=no
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 $ac_includes_default
17576 int
17577 main ()
17578 {
17579 if (sizeof (size_t))
17580        return 0;
17581   ;
17582   return 0;
17583 }
17584 _ACEOF
17585 rm -f conftest.$ac_objext
17586 if { (ac_try="$ac_compile"
17587 case "(($ac_try" in
17588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589   *) ac_try_echo=$ac_try;;
17590 esac
17591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17592 $as_echo "$ac_try_echo") >&5
17593   (eval "$ac_compile") 2>conftest.er1
17594   ac_status=$?
17595   grep -v '^ *+' conftest.er1 >conftest.err
17596   rm -f conftest.er1
17597   cat conftest.err >&5
17598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); } && {
17600          test -z "$ac_c_werror_flag" ||
17601          test ! -s conftest.err
17602        } && test -s conftest.$ac_objext; then
17603   cat >conftest.$ac_ext <<_ACEOF
17604 /* confdefs.h.  */
17605 _ACEOF
17606 cat confdefs.h >>conftest.$ac_ext
17607 cat >>conftest.$ac_ext <<_ACEOF
17608 /* end confdefs.h.  */
17609 $ac_includes_default
17610 int
17611 main ()
17612 {
17613 if (sizeof ((size_t)))
17614           return 0;
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627   (eval "$ac_compile") 2>conftest.er1
17628   ac_status=$?
17629   grep -v '^ *+' conftest.er1 >conftest.err
17630   rm -f conftest.er1
17631   cat conftest.err >&5
17632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); } && {
17634          test -z "$ac_c_werror_flag" ||
17635          test ! -s conftest.err
17636        } && test -s conftest.$ac_objext; then
17637   :
17638 else
17639   $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642         ac_cv_type_size_t=yes
17643 fi
17644
17645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17646 else
17647   $as_echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650
17651 fi
17652
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 fi
17655 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17656 $as_echo "$ac_cv_type_size_t" >&6; }
17657 if test "x$ac_cv_type_size_t" = x""yes; then
17658   :
17659 else
17660
17661 cat >>confdefs.h <<_ACEOF
17662 #define size_t unsigned int
17663 _ACEOF
17664
17665 fi
17666
17667
17668   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
17669 $as_echo_n "checking for inttypes.h... " >&6; }
17670 if test "${gl_cv_header_inttypes_h+set}" = set; then
17671   $as_echo_n "(cached) " >&6
17672 else
17673   cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679 #include <sys/types.h>
17680 #include <inttypes.h>
17681 int
17682 main ()
17683 {
17684 uintmax_t i = (uintmax_t) -1;
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 rm -f conftest.$ac_objext
17690 if { (ac_try="$ac_compile"
17691 case "(($ac_try" in
17692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17693   *) ac_try_echo=$ac_try;;
17694 esac
17695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17696 $as_echo "$ac_try_echo") >&5
17697   (eval "$ac_compile") 2>conftest.er1
17698   ac_status=$?
17699   grep -v '^ *+' conftest.er1 >conftest.err
17700   rm -f conftest.er1
17701   cat conftest.err >&5
17702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703   (exit $ac_status); } && {
17704          test -z "$ac_c_werror_flag" ||
17705          test ! -s conftest.err
17706        } && test -s conftest.$ac_objext; then
17707   gl_cv_header_inttypes_h=yes
17708 else
17709   $as_echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712         gl_cv_header_inttypes_h=no
17713 fi
17714
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17716 fi
17717 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
17718 $as_echo "$gl_cv_header_inttypes_h" >&6; }
17719   if test $gl_cv_header_inttypes_h = yes; then
17720
17721 cat >>confdefs.h <<_ACEOF
17722 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
17723 _ACEOF
17724
17725   fi
17726
17727
17728   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
17729 $as_echo_n "checking for stdint.h... " >&6; }
17730 if test "${gl_cv_header_stdint_h+set}" = set; then
17731   $as_echo_n "(cached) " >&6
17732 else
17733   cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 #include <sys/types.h>
17740 #include <stdint.h>
17741 int
17742 main ()
17743 {
17744 uintmax_t i = (uintmax_t) -1;
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext
17750 if { (ac_try="$ac_compile"
17751 case "(($ac_try" in
17752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753   *) ac_try_echo=$ac_try;;
17754 esac
17755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17756 $as_echo "$ac_try_echo") >&5
17757   (eval "$ac_compile") 2>conftest.er1
17758   ac_status=$?
17759   grep -v '^ *+' conftest.er1 >conftest.err
17760   rm -f conftest.er1
17761   cat conftest.err >&5
17762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } && {
17764          test -z "$ac_c_werror_flag" ||
17765          test ! -s conftest.err
17766        } && test -s conftest.$ac_objext; then
17767   gl_cv_header_stdint_h=yes
17768 else
17769   $as_echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772         gl_cv_header_stdint_h=no
17773 fi
17774
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 fi
17777 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
17778 $as_echo "$gl_cv_header_stdint_h" >&6; }
17779   if test $gl_cv_header_stdint_h = yes; then
17780
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_STDINT_H_WITH_UINTMAX 1
17783 _ACEOF
17784
17785   fi
17786
17787
17788
17789
17790   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
17791 $as_echo_n "checking for intmax_t... " >&6; }
17792 if test "${gt_cv_c_intmax_t+set}" = set; then
17793   $as_echo_n "(cached) " >&6
17794 else
17795   cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h.  */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h.  */
17801
17802 #include <stddef.h>
17803 #include <stdlib.h>
17804 #if HAVE_STDINT_H_WITH_UINTMAX
17805 #include <stdint.h>
17806 #endif
17807 #if HAVE_INTTYPES_H_WITH_UINTMAX
17808 #include <inttypes.h>
17809 #endif
17810
17811 int
17812 main ()
17813 {
17814 intmax_t x = -1; return !x;
17815   ;
17816   return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (ac_try="$ac_compile"
17821 case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17826 $as_echo "$ac_try_echo") >&5
17827   (eval "$ac_compile") 2>conftest.er1
17828   ac_status=$?
17829   grep -v '^ *+' conftest.er1 >conftest.err
17830   rm -f conftest.er1
17831   cat conftest.err >&5
17832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833   (exit $ac_status); } && {
17834          test -z "$ac_c_werror_flag" ||
17835          test ! -s conftest.err
17836        } && test -s conftest.$ac_objext; then
17837   gt_cv_c_intmax_t=yes
17838 else
17839   $as_echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842         gt_cv_c_intmax_t=no
17843 fi
17844
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17846 fi
17847 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
17848 $as_echo "$gt_cv_c_intmax_t" >&6; }
17849   if test $gt_cv_c_intmax_t = yes; then
17850
17851 cat >>confdefs.h <<\_ACEOF
17852 #define HAVE_INTMAX_T 1
17853 _ACEOF
17854
17855   else
17856
17857     test $ac_cv_type_long_long_int = yes \
17858       && ac_type='long long' \
17859       || ac_type='long'
17860
17861 cat >>confdefs.h <<_ACEOF
17862 #define intmax_t $ac_type
17863 _ACEOF
17864
17865   fi
17866
17867
17868
17869      { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
17870 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
17871 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
17872   $as_echo_n "(cached) " >&6
17873 else
17874
17875       if test "$cross_compiling" = yes; then
17876
17877          case "$host_os" in
17878                                  # Guess yes on glibc systems.
17879            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
17880                                  # Guess yes on FreeBSD >= 5.
17881            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17882            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
17883                                  # Guess yes on MacOS X >= 10.3.
17884            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
17885            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17886                                  # Guess yes on OpenBSD >= 3.9.
17887            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
17888                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17889            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17890                                  # Guess yes on Solaris >= 2.6.
17891            solaris2.[0-5]*)      gl_cv_func_snprintf_retval_c99="guessing no";;
17892            solaris*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
17893                                  # Guess yes on AIX >= 4.
17894            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
17895            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
17896                                  # Guess yes on NetBSD >= 3.
17897            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
17898                                  gl_cv_func_snprintf_retval_c99="guessing no";;
17899            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
17900                                  # Guess yes on BeOS.
17901            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
17902                                  # If we don't know, assume the worst.
17903            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
17904          esac
17905
17906 else
17907   cat >conftest.$ac_ext <<_ACEOF
17908 /* confdefs.h.  */
17909 _ACEOF
17910 cat confdefs.h >>conftest.$ac_ext
17911 cat >>conftest.$ac_ext <<_ACEOF
17912 /* end confdefs.h.  */
17913
17914 #include <stdio.h>
17915 #include <string.h>
17916 static char buf[100];
17917 int main ()
17918 {
17919   strcpy (buf, "ABCDEF");
17920   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
17921     return 1;
17922   return 0;
17923 }
17924 _ACEOF
17925 rm -f conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17932 $as_echo "$ac_try_echo") >&5
17933   (eval "$ac_link") 2>&5
17934   ac_status=$?
17935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937   { (case "(($ac_try" in
17938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939   *) ac_try_echo=$ac_try;;
17940 esac
17941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17942 $as_echo "$ac_try_echo") >&5
17943   (eval "$ac_try") 2>&5
17944   ac_status=$?
17945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); }; }; then
17947   gl_cv_func_snprintf_retval_c99=yes
17948 else
17949   $as_echo "$as_me: program exited with status $ac_status" >&5
17950 $as_echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17952
17953 ( exit $ac_status )
17954 gl_cv_func_snprintf_retval_c99=no
17955 fi
17956 rm -rf conftest.dSYM
17957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17958 fi
17959
17960
17961
17962 fi
17963 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
17964 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
17980 do
17981 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17982 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17983 $as_echo_n "checking for $ac_func... " >&6; }
17984 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17985   $as_echo_n "(cached) " >&6
17986 else
17987   cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17995 #define $ac_func innocuous_$ac_func
17996
17997 /* System header to define __stub macros and hopefully few prototypes,
17998     which can conflict with char $ac_func (); below.
17999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18000     <limits.h> exists even on freestanding compilers.  */
18001
18002 #ifdef __STDC__
18003 # include <limits.h>
18004 #else
18005 # include <assert.h>
18006 #endif
18007
18008 #undef $ac_func
18009
18010 /* Override any GCC internal prototype to avoid an error.
18011    Use char because int might match the return type of a GCC
18012    builtin and then its argument prototype would still apply.  */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 char $ac_func ();
18017 /* The GNU C library defines this for functions which it implements
18018     to always fail with ENOSYS.  Some functions are actually named
18019     something starting with __ and the normal name is an alias.  */
18020 #if defined __stub_$ac_func || defined __stub___$ac_func
18021 choke me
18022 #endif
18023
18024 int
18025 main ()
18026 {
18027 return $ac_func ();
18028   ;
18029   return 0;
18030 }
18031 _ACEOF
18032 rm -f conftest.$ac_objext conftest$ac_exeext
18033 if { (ac_try="$ac_link"
18034 case "(($ac_try" in
18035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18036   *) ac_try_echo=$ac_try;;
18037 esac
18038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18039 $as_echo "$ac_try_echo") >&5
18040   (eval "$ac_link") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } && {
18047          test -z "$ac_c_werror_flag" ||
18048          test ! -s conftest.err
18049        } && test -s conftest$ac_exeext && {
18050          test "$cross_compiling" = yes ||
18051          $as_test_x conftest$ac_exeext
18052        }; then
18053   eval "$as_ac_var=yes"
18054 else
18055   $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058         eval "$as_ac_var=no"
18059 fi
18060
18061 rm -rf conftest.dSYM
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063       conftest$ac_exeext conftest.$ac_ext
18064 fi
18065 ac_res=`eval 'as_val=${'$as_ac_var'}
18066                  $as_echo "$as_val"'`
18067                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18068 $as_echo "$ac_res" >&6; }
18069 as_val=`eval 'as_val=${'$as_ac_var'}
18070                  $as_echo "$as_val"'`
18071    if test "x$as_val" = x""yes; then
18072   cat >>confdefs.h <<_ACEOF
18073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18074 _ACEOF
18075
18076 fi
18077 done
18078
18079       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
18080 $as_echo_n "checking whether _snprintf is declared... " >&6; }
18081 if test "${ac_cv_have_decl__snprintf+set}" = set; then
18082   $as_echo_n "(cached) " >&6
18083 else
18084   cat >conftest.$ac_ext <<_ACEOF
18085 /* confdefs.h.  */
18086 _ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h.  */
18090 #include <stdio.h>
18091
18092 int
18093 main ()
18094 {
18095 #ifndef _snprintf
18096   (void) _snprintf;
18097 #endif
18098
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext
18104 if { (ac_try="$ac_compile"
18105 case "(($ac_try" in
18106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107   *) ac_try_echo=$ac_try;;
18108 esac
18109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18110 $as_echo "$ac_try_echo") >&5
18111   (eval "$ac_compile") 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } && {
18118          test -z "$ac_c_werror_flag" ||
18119          test ! -s conftest.err
18120        } && test -s conftest.$ac_objext; then
18121   ac_cv_have_decl__snprintf=yes
18122 else
18123   $as_echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126         ac_cv_have_decl__snprintf=no
18127 fi
18128
18129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18130 fi
18131 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
18132 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
18133 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
18134
18135 cat >>confdefs.h <<_ACEOF
18136 #define HAVE_DECL__SNPRINTF 1
18137 _ACEOF
18138
18139
18140 else
18141   cat >>confdefs.h <<_ACEOF
18142 #define HAVE_DECL__SNPRINTF 0
18143 _ACEOF
18144
18145
18146 fi
18147
18148
18149
18150   case "$gl_cv_func_snprintf_retval_c99" in
18151     *yes)
18152
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE_SNPRINTF_RETVAL_C99 1
18155 _ACEOF
18156
18157       ;;
18158   esac
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179       { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
18180 $as_echo_n "checking whether iswblank is declared... " >&6; }
18181 if test "${ac_cv_have_decl_iswblank+set}" = set; then
18182   $as_echo_n "(cached) " >&6
18183 else
18184   cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h.  */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h.  */
18190 $ac_includes_default
18191 int
18192 main ()
18193 {
18194 #ifndef iswblank
18195   (void) iswblank;
18196 #endif
18197
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext
18203 if { (ac_try="$ac_compile"
18204 case "(($ac_try" in
18205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206   *) ac_try_echo=$ac_try;;
18207 esac
18208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18209 $as_echo "$ac_try_echo") >&5
18210   (eval "$ac_compile") 2>conftest.er1
18211   ac_status=$?
18212   grep -v '^ *+' conftest.er1 >conftest.err
18213   rm -f conftest.er1
18214   cat conftest.err >&5
18215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } && {
18217          test -z "$ac_c_werror_flag" ||
18218          test ! -s conftest.err
18219        } && test -s conftest.$ac_objext; then
18220   ac_cv_have_decl_iswblank=yes
18221 else
18222   $as_echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225         ac_cv_have_decl_iswblank=no
18226 fi
18227
18228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18229 fi
18230 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
18231 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
18232 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
18233
18234 cat >>confdefs.h <<_ACEOF
18235 #define HAVE_DECL_ISWBLANK 1
18236 _ACEOF
18237
18238
18239 else
18240   cat >>confdefs.h <<_ACEOF
18241 #define HAVE_DECL_ISWBLANK 0
18242 _ACEOF
18243
18244
18245 fi
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256    if true; then
18257   GL_COND_LIBTOOL_TRUE=
18258   GL_COND_LIBTOOL_FALSE='#'
18259 else
18260   GL_COND_LIBTOOL_TRUE='#'
18261   GL_COND_LIBTOOL_FALSE=
18262 fi
18263
18264   gl_cond_libtool=true
18265   gl_m4_base='config/gnulib'
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275   gl_source_base='gnulib'
18276   # Code from module alignof:
18277   # Code from module alloca-opt:
18278
18279
18280
18281
18282
18283   if test $ac_cv_func_alloca_works = no; then
18284     :
18285   fi
18286
18287   # Define an additional variable used in the Makefile substitution.
18288   if test $ac_cv_working_alloca_h = yes; then
18289     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
18290 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
18291 if test "${gl_cv_rpl_alloca+set}" = set; then
18292   $as_echo_n "(cached) " >&6
18293 else
18294
18295       cat >conftest.$ac_ext <<_ACEOF
18296 /* confdefs.h.  */
18297 _ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h.  */
18301
18302 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18303         Need own alloca
18304 #endif
18305
18306 _ACEOF
18307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18308   $EGREP "Need own alloca" >/dev/null 2>&1; then
18309   gl_cv_rpl_alloca=yes
18310 else
18311   gl_cv_rpl_alloca=no
18312 fi
18313 rm -f conftest*
18314
18315
18316 fi
18317 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
18318 $as_echo "$gl_cv_rpl_alloca" >&6; }
18319     if test $gl_cv_rpl_alloca = yes; then
18320
18321 cat >>confdefs.h <<\_ACEOF
18322 #define HAVE_ALLOCA 1
18323 _ACEOF
18324
18325       ALLOCA_H=alloca.h
18326     else
18327                   ALLOCA_H=
18328     fi
18329   else
18330     ALLOCA_H=alloca.h
18331   fi
18332
18333
18334   # Code from module arg-nonnull:
18335   # Code from module arpa_inet:
18336
18337
18338
18339
18340   :
18341
18342
18343
18344
18345
18346   if test $ac_cv_header_arpa_inet_h = yes; then
18347     HAVE_ARPA_INET_H=1
18348   else
18349     HAVE_ARPA_INET_H=0
18350   fi
18351
18352
18353
18354
18355
18356   :
18357
18358
18359
18360
18361
18362
18363
18364      if test $gl_cv_have_include_next = yes; then
18365        gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18366      else
18367        { $as_echo "$as_me:$LINENO: checking absolute name of <arpa/inet.h>" >&5
18368 $as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; }
18369 if test "${gl_cv_next_arpa_inet_h+set}" = set; then
18370   $as_echo_n "(cached) " >&6
18371 else
18372
18373           if test $ac_cv_header_arpa_inet_h = yes; then
18374             cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h.  */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h.  */
18380 #include <arpa/inet.h>
18381
18382 _ACEOF
18383                                                                                                 case "$host_os" in
18384               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18385               *)    gl_absname_cpp="$ac_cpp" ;;
18386             esac
18387                                                 gl_cv_next_arpa_inet_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18388                sed -n '\#/arpa/inet.h#{
18389                  s#.*"\(.*/arpa/inet.h\)".*#\1#
18390                  s#^/[^/]#//&#
18391                  p
18392                  q
18393                }'`'"'
18394           else
18395             gl_cv_next_arpa_inet_h='<'arpa/inet.h'>'
18396           fi
18397
18398 fi
18399 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_arpa_inet_h" >&5
18400 $as_echo "$gl_cv_next_arpa_inet_h" >&6; }
18401      fi
18402      NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h
18403
18404      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18405        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18406        gl_next_as_first_directive='<'arpa/inet.h'>'
18407      else
18408        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18409        gl_next_as_first_directive=$gl_cv_next_arpa_inet_h
18410      fi
18411      NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive
18412
18413
18414
18415
18416
18417
18418
18419   for gl_func in inet_ntop inet_pton; do
18420     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18421     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
18422 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18423 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
18424   $as_echo_n "(cached) " >&6
18425 else
18426   cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432
18433 /* On some systems, this header is not self-consistent.  */
18434 #ifndef __GLIBC__
18435 # include <sys/socket.h>
18436 #endif
18437 #include <arpa/inet.h>
18438
18439 int
18440 main ()
18441 {
18442 #undef $gl_func
18443   (void) $gl_func;
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (ac_try="$ac_compile"
18450 case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18455 $as_echo "$ac_try_echo") >&5
18456   (eval "$ac_compile") 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } && {
18463          test -z "$ac_c_werror_flag" ||
18464          test ! -s conftest.err
18465        } && test -s conftest.$ac_objext; then
18466   eval "$as_gl_Symbol=yes"
18467 else
18468   $as_echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471         eval "$as_gl_Symbol=no"
18472 fi
18473
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475 fi
18476 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
18477                  $as_echo "$as_val"'`
18478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18479 $as_echo "$ac_res" >&6; }
18480      as_val=`eval 'as_val=${'$as_gl_Symbol'}
18481                  $as_echo "$as_val"'`
18482    if test "x$as_val" = x""yes; then
18483   cat >>confdefs.h <<_ACEOF
18484 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18485 _ACEOF
18486
18487                      eval ac_cv_have_decl_$gl_func=yes
18488 fi
18489
18490       done
18491
18492
18493   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
18494 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
18495 if test -z "$MKDIR_P"; then
18496   if test "${ac_cv_path_mkdir+set}" = set; then
18497   $as_echo_n "(cached) " >&6
18498 else
18499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
18501 do
18502   IFS=$as_save_IFS
18503   test -z "$as_dir" && as_dir=.
18504   for ac_prog in mkdir gmkdir; do
18505          for ac_exec_ext in '' $ac_executable_extensions; do
18506            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
18507            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
18508              'mkdir (GNU coreutils) '* | \
18509              'mkdir (coreutils) '* | \
18510              'mkdir (fileutils) '4.1*)
18511                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
18512                break 3;;
18513            esac
18514          done
18515        done
18516 done
18517 IFS=$as_save_IFS
18518
18519 fi
18520
18521   if test "${ac_cv_path_mkdir+set}" = set; then
18522     MKDIR_P="$ac_cv_path_mkdir -p"
18523   else
18524     # As a last resort, use the slow shell script.  Don't cache a
18525     # value for MKDIR_P within a source directory, because that will
18526     # break other packages using the cache if that directory is
18527     # removed, or if the value is a relative name.
18528     test -d ./--version && rmdir ./--version
18529     MKDIR_P="$ac_install_sh -d"
18530   fi
18531 fi
18532 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
18533 $as_echo "$MKDIR_P" >&6; }
18534
18535
18536   # Code from module base64:
18537
18538
18539
18540
18541
18542
18543   # Code from module btowc:
18544
18545
18546
18547
18548
18549
18550   :
18551
18552
18553
18554
18555
18556   if test $ac_cv_func_btowc = no; then
18557     HAVE_BTOWC=0
18558   else
18559
18560
18561
18562
18563         { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
18564 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
18565 if test "${gl_cv_func_btowc_nul+set}" = set; then
18566   $as_echo_n "(cached) " >&6
18567 else
18568
18569         if test "$cross_compiling" = yes; then
18570
18571            case "$host_os" in
18572                       # Guess no on Cygwin.
18573              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
18574                       # Guess yes otherwise.
18575              *)       gl_cv_func_btowc_nul="guessing yes" ;;
18576            esac
18577
18578 else
18579   cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 #include <stdio.h>
18587 #include <string.h>
18588 #include <wchar.h>
18589 int main ()
18590 {
18591   if (btowc ('\0') != 0)
18592     return 1;
18593   return 0;
18594 }
18595 _ACEOF
18596 rm -f conftest$ac_exeext
18597 if { (ac_try="$ac_link"
18598 case "(($ac_try" in
18599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18600   *) ac_try_echo=$ac_try;;
18601 esac
18602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18603 $as_echo "$ac_try_echo") >&5
18604   (eval "$ac_link") 2>&5
18605   ac_status=$?
18606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18608   { (case "(($ac_try" in
18609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610   *) ac_try_echo=$ac_try;;
18611 esac
18612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18613 $as_echo "$ac_try_echo") >&5
18614   (eval "$ac_try") 2>&5
18615   ac_status=$?
18616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); }; }; then
18618   gl_cv_func_btowc_nul=yes
18619 else
18620   $as_echo "$as_me: program exited with status $ac_status" >&5
18621 $as_echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ( exit $ac_status )
18625 gl_cv_func_btowc_nul=no
18626 fi
18627 rm -rf conftest.dSYM
18628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18629 fi
18630
18631
18632
18633 fi
18634 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
18635 $as_echo "$gl_cv_func_btowc_nul" >&6; }
18636
18637         { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
18638 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
18639 if test "${gl_cv_func_btowc_eof+set}" = set; then
18640   $as_echo_n "(cached) " >&6
18641 else
18642
18643                         case "$host_os" in
18644                  # Guess no on IRIX.
18645           irix*) gl_cv_func_btowc_eof="guessing no" ;;
18646                  # Guess yes otherwise.
18647           *)     gl_cv_func_btowc_eof="guessing yes" ;;
18648         esac
18649         if test $LOCALE_FR != none; then
18650           if test "$cross_compiling" = yes; then
18651   :
18652 else
18653   cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659
18660 #include <locale.h>
18661 #include <stdio.h>
18662 #include <string.h>
18663 #include <wchar.h>
18664 int main ()
18665 {
18666   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
18667     {
18668       if (btowc (EOF) != WEOF)
18669         return 1;
18670     }
18671   return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678   *) ac_try_echo=$ac_try;;
18679 esac
18680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18681 $as_echo "$ac_try_echo") >&5
18682   (eval "$ac_link") 2>&5
18683   ac_status=$?
18684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18686   { (case "(($ac_try" in
18687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688   *) ac_try_echo=$ac_try;;
18689 esac
18690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18691 $as_echo "$ac_try_echo") >&5
18692   (eval "$ac_try") 2>&5
18693   ac_status=$?
18694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; }; then
18696   gl_cv_func_btowc_eof=yes
18697 else
18698   $as_echo "$as_me: program exited with status $ac_status" >&5
18699 $as_echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702 ( exit $ac_status )
18703 gl_cv_func_btowc_eof=no
18704 fi
18705 rm -rf conftest.dSYM
18706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18707 fi
18708
18709
18710         fi
18711
18712 fi
18713 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
18714 $as_echo "$gl_cv_func_btowc_eof" >&6; }
18715
18716     case "$gl_cv_func_btowc_nul" in
18717       *yes) ;;
18718       *) REPLACE_BTOWC=1 ;;
18719     esac
18720     case "$gl_cv_func_btowc_eof" in
18721       *yes) ;;
18722       *) REPLACE_BTOWC=1 ;;
18723     esac
18724   fi
18725   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
18726
18727     :
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
18738
18739
18740   :
18741
18742   fi
18743
18744
18745
18746
18747   GNULIB_BTOWC=1
18748
18749
18750
18751 cat >>confdefs.h <<\_ACEOF
18752 #define GNULIB_TEST_BTOWC 1
18753 _ACEOF
18754
18755
18756
18757   # Code from module c++defs:
18758   # Code from module c-ctype:
18759   # Code from module configmake:
18760   # Code from module environ:
18761
18762
18763
18764
18765   GNULIB_ENVIRON=1
18766
18767
18768
18769 cat >>confdefs.h <<\_ACEOF
18770 #define GNULIB_TEST_ENVIRON 1
18771 _ACEOF
18772
18773
18774
18775   # Code from module errno:
18776
18777   # Code from module extensions:
18778   # Code from module float:
18779
18780
18781
18782   FLOAT_H=
18783   case "$host_os" in
18784     beos* | openbsd*)
18785       FLOAT_H=float.h
18786
18787
18788
18789
18790   :
18791
18792
18793
18794
18795
18796
18797
18798      if test $gl_cv_have_include_next = yes; then
18799        gl_cv_next_float_h='<'float.h'>'
18800      else
18801        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
18802 $as_echo_n "checking absolute name of <float.h>... " >&6; }
18803 if test "${gl_cv_next_float_h+set}" = set; then
18804   $as_echo_n "(cached) " >&6
18805 else
18806
18807           if test $ac_cv_header_float_h = yes; then
18808             cat >conftest.$ac_ext <<_ACEOF
18809 /* confdefs.h.  */
18810 _ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h.  */
18814 #include <float.h>
18815
18816 _ACEOF
18817                                                                                                 case "$host_os" in
18818               aix*) gl_absname_cpp="$ac_cpp -C" ;;
18819               *)    gl_absname_cpp="$ac_cpp" ;;
18820             esac
18821                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18822                sed -n '\#/float.h#{
18823                  s#.*"\(.*/float.h\)".*#\1#
18824                  s#^/[^/]#//&#
18825                  p
18826                  q
18827                }'`'"'
18828           else
18829             gl_cv_next_float_h='<'float.h'>'
18830           fi
18831
18832 fi
18833 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
18834 $as_echo "$gl_cv_next_float_h" >&6; }
18835      fi
18836      NEXT_FLOAT_H=$gl_cv_next_float_h
18837
18838      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18839        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18840        gl_next_as_first_directive='<'float.h'>'
18841      else
18842        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18843        gl_next_as_first_directive=$gl_cv_next_float_h
18844      fi
18845      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
18846
18847
18848
18849       ;;
18850   esac
18851
18852
18853   # Code from module fseeko:
18854
18855
18856
18857
18858
18859   if test $gl_cv_func_fseeko = no; then
18860     HAVE_FSEEKO=0
18861
18862
18863
18864   if test $gl_cv_func_fseeko = yes; then
18865     REPLACE_FSEEKO=1
18866   fi
18867
18868
18869
18870
18871
18872
18873
18874
18875   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18876
18877
18878
18879   else
18880     if test $gl_cv_var_stdin_large_offset = no; then
18881
18882
18883
18884   if test $gl_cv_func_fseeko = yes; then
18885     REPLACE_FSEEKO=1
18886   fi
18887
18888
18889
18890
18891
18892
18893
18894
18895   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
18896
18897
18898
18899     fi
18900   fi
18901
18902
18903
18904
18905   GNULIB_FSEEKO=1
18906
18907
18908
18909 cat >>confdefs.h <<\_ACEOF
18910 #define GNULIB_TEST_FSEEKO 1
18911 _ACEOF
18912
18913
18914
18915   # Code from module fsusage:
18916
18917
18918   :
18919
18920
18921
18922
18923
18924
18925   :
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935 for ac_header in sys/mount.h
18936 do
18937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18938 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18939 $as_echo_n "checking for $ac_header... " >&6; }
18940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18941   $as_echo_n "(cached) " >&6
18942 else
18943   cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h.  */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h.  */
18949 $ac_includes_default
18950      #if HAVE_SYS_PARAM_H
18951        #include <sys/param.h>
18952       #endif
18953
18954 #include <$ac_header>
18955 _ACEOF
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960   *) ac_try_echo=$ac_try;;
18961 esac
18962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18963 $as_echo "$ac_try_echo") >&5
18964   (eval "$ac_compile") 2>conftest.er1
18965   ac_status=$?
18966   grep -v '^ *+' conftest.er1 >conftest.err
18967   rm -f conftest.er1
18968   cat conftest.err >&5
18969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); } && {
18971          test -z "$ac_c_werror_flag" ||
18972          test ! -s conftest.err
18973        } && test -s conftest.$ac_objext; then
18974   eval "$as_ac_Header=yes"
18975 else
18976   $as_echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979         eval "$as_ac_Header=no"
18980 fi
18981
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 fi
18984 ac_res=`eval 'as_val=${'$as_ac_Header'}
18985                  $as_echo "$as_val"'`
18986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18987 $as_echo "$ac_res" >&6; }
18988 as_val=`eval 'as_val=${'$as_ac_Header'}
18989                  $as_echo "$as_val"'`
18990    if test "x$as_val" = x""yes; then
18991   cat >>confdefs.h <<_ACEOF
18992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18993 _ACEOF
18994
18995 fi
18996
18997 done
18998
18999
19000
19001 { $as_echo "$as_me:$LINENO: checking how to get file system space usage" >&5
19002 $as_echo "$as_me: checking how to get file system space usage" >&6;}
19003 ac_fsusage_space=no
19004
19005 # Perform only the link test since it seems there are no variants of the
19006 # statvfs function.  This check is more than just AC_CHECK_FUNCS([statvfs])
19007 # because that got a false positive on SCO OSR5.  Adding the declaration
19008 # of a `struct statvfs' causes this test to fail (as it should) on such
19009 # systems.  That system is reported to work fine with STAT_STATFS4 which
19010 # is what it gets when this test fails.
19011 if test $ac_fsusage_space = no; then
19012   # glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19013   # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS.
19014   { $as_echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
19015 $as_echo_n "checking for statvfs function (SVR4)... " >&6; }
19016 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
19017   $as_echo_n "(cached) " >&6
19018 else
19019   cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h.  */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h.  */
19025 #include <sys/types.h>
19026 #if defined __GLIBC__ && defined __linux__
19027 Do not use statvfs on systems with GNU libc on Linux, because that function
19028 stats all preceding entries in /proc/mounts, and that makes df hang if even
19029 one of the corresponding file systems is hard-mounted, but not available.
19030 statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
19031 a system call.
19032 #endif
19033
19034 #ifdef __osf__
19035 "Do not use Tru64's statvfs implementation"
19036 #endif
19037
19038 #include <sys/statvfs.h>
19039 int
19040 main ()
19041 {
19042 struct statvfs fsd; statvfs (0, &fsd);
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19054 $as_echo "$ac_try_echo") >&5
19055   (eval "$ac_link") 2>conftest.er1
19056   ac_status=$?
19057   grep -v '^ *+' conftest.er1 >conftest.err
19058   rm -f conftest.er1
19059   cat conftest.err >&5
19060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); } && {
19062          test -z "$ac_c_werror_flag" ||
19063          test ! -s conftest.err
19064        } && test -s conftest$ac_exeext && {
19065          test "$cross_compiling" = yes ||
19066          $as_test_x conftest$ac_exeext
19067        }; then
19068   fu_cv_sys_stat_statvfs=yes
19069 else
19070   $as_echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073         fu_cv_sys_stat_statvfs=no
19074 fi
19075
19076 rm -rf conftest.dSYM
19077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19078       conftest$ac_exeext conftest.$ac_ext
19079 fi
19080 { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
19081 $as_echo "$fu_cv_sys_stat_statvfs" >&6; }
19082   if test $fu_cv_sys_stat_statvfs = yes; then
19083     ac_fsusage_space=yes
19084
19085 cat >>confdefs.h <<\_ACEOF
19086 #define STAT_STATVFS 1
19087 _ACEOF
19088
19089   fi
19090 fi
19091
19092 if test $ac_fsusage_space = no; then
19093   # DEC Alpha running OSF/1
19094   { $as_echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
19095 $as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
19096   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
19097   $as_echo_n "(cached) " >&6
19098 else
19099   if test "$cross_compiling" = yes; then
19100   fu_cv_sys_stat_statfs3_osf1=no
19101 else
19102   cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108
19109 #include <sys/param.h>
19110 #include <sys/types.h>
19111 #include <sys/mount.h>
19112   int
19113   main ()
19114   {
19115     struct statfs fsd;
19116     fsd.f_fsize = 0;
19117     return statfs (".", &fsd, sizeof (struct statfs)) != 0;
19118   }
19119 _ACEOF
19120 rm -f conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19127 $as_echo "$ac_try_echo") >&5
19128   (eval "$ac_link") 2>&5
19129   ac_status=$?
19130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19132   { (case "(($ac_try" in
19133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134   *) ac_try_echo=$ac_try;;
19135 esac
19136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19137 $as_echo "$ac_try_echo") >&5
19138   (eval "$ac_try") 2>&5
19139   ac_status=$?
19140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; }; then
19142   fu_cv_sys_stat_statfs3_osf1=yes
19143 else
19144   $as_echo "$as_me: program exited with status $ac_status" >&5
19145 $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148 ( exit $ac_status )
19149 fu_cv_sys_stat_statfs3_osf1=no
19150 fi
19151 rm -rf conftest.dSYM
19152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19153 fi
19154
19155
19156 fi
19157
19158   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
19159 $as_echo "$fu_cv_sys_stat_statfs3_osf1" >&6; }
19160   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
19161     ac_fsusage_space=yes
19162
19163 cat >>confdefs.h <<\_ACEOF
19164 #define STAT_STATFS3_OSF1 1
19165 _ACEOF
19166
19167   fi
19168 fi
19169
19170 if test $ac_fsusage_space = no; then
19171   # glibc/Linux, MacOS X < 10.4, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
19172   # (glibc/{Hurd,kFreeBSD}, MacOS X >= 10.4, FreeBSD >= 5.0, NetBSD >= 3.0,
19173   # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.)
19174   # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
19175   # <sys/vfs.h>.)
19176   # (On Solaris, statfs has 4 arguments.)
19177   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5
19178 $as_echo_n "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; }
19179   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
19180   $as_echo_n "(cached) " >&6
19181 else
19182   if test "$cross_compiling" = yes; then
19183   fu_cv_sys_stat_statfs2_bsize=no
19184 else
19185   cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191
19192 #ifdef HAVE_SYS_PARAM_H
19193 #include <sys/param.h>
19194 #endif
19195 #ifdef HAVE_SYS_MOUNT_H
19196 #include <sys/mount.h>
19197 #endif
19198 #ifdef HAVE_SYS_VFS_H
19199 #include <sys/vfs.h>
19200 #endif
19201   int
19202   main ()
19203   {
19204   struct statfs fsd;
19205   fsd.f_bsize = 0;
19206   return statfs (".", &fsd) != 0;
19207   }
19208 _ACEOF
19209 rm -f conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19216 $as_echo "$ac_try_echo") >&5
19217   (eval "$ac_link") 2>&5
19218   ac_status=$?
19219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19221   { (case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19226 $as_echo "$ac_try_echo") >&5
19227   (eval "$ac_try") 2>&5
19228   ac_status=$?
19229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230   (exit $ac_status); }; }; then
19231   fu_cv_sys_stat_statfs2_bsize=yes
19232 else
19233   $as_echo "$as_me: program exited with status $ac_status" >&5
19234 $as_echo "$as_me: failed program was:" >&5
19235 sed 's/^/| /' conftest.$ac_ext >&5
19236
19237 ( exit $ac_status )
19238 fu_cv_sys_stat_statfs2_bsize=no
19239 fi
19240 rm -rf conftest.dSYM
19241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19242 fi
19243
19244
19245 fi
19246
19247   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
19248 $as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
19249   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
19250     ac_fsusage_space=yes
19251
19252 cat >>confdefs.h <<\_ACEOF
19253 #define STAT_STATFS2_BSIZE 1
19254 _ACEOF
19255
19256   fi
19257 fi
19258
19259 if test $ac_fsusage_space = no; then
19260   # SVR3
19261   # (Solaris already handled above.)
19262   { $as_echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
19263 $as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
19264   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
19265   $as_echo_n "(cached) " >&6
19266 else
19267   if test "$cross_compiling" = yes; then
19268   fu_cv_sys_stat_statfs4=no
19269 else
19270   cat >conftest.$ac_ext <<_ACEOF
19271 /* confdefs.h.  */
19272 _ACEOF
19273 cat confdefs.h >>conftest.$ac_ext
19274 cat >>conftest.$ac_ext <<_ACEOF
19275 /* end confdefs.h.  */
19276
19277 #include <sys/types.h>
19278 #include <sys/statfs.h>
19279   int
19280   main ()
19281   {
19282   struct statfs fsd;
19283   return statfs (".", &fsd, sizeof fsd, 0) != 0;
19284   }
19285 _ACEOF
19286 rm -f conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19293 $as_echo "$ac_try_echo") >&5
19294   (eval "$ac_link") 2>&5
19295   ac_status=$?
19296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19298   { (case "(($ac_try" in
19299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300   *) ac_try_echo=$ac_try;;
19301 esac
19302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19303 $as_echo "$ac_try_echo") >&5
19304   (eval "$ac_try") 2>&5
19305   ac_status=$?
19306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; }; then
19308   fu_cv_sys_stat_statfs4=yes
19309 else
19310   $as_echo "$as_me: program exited with status $ac_status" >&5
19311 $as_echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 ( exit $ac_status )
19315 fu_cv_sys_stat_statfs4=no
19316 fi
19317 rm -rf conftest.dSYM
19318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19319 fi
19320
19321
19322 fi
19323
19324   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
19325 $as_echo "$fu_cv_sys_stat_statfs4" >&6; }
19326   if test $fu_cv_sys_stat_statfs4 = yes; then
19327     ac_fsusage_space=yes
19328
19329 cat >>confdefs.h <<\_ACEOF
19330 #define STAT_STATFS4 1
19331 _ACEOF
19332
19333   fi
19334 fi
19335
19336 if test $ac_fsusage_space = no; then
19337   # 4.4BSD and older NetBSD
19338   # (OSF/1 already handled above.)
19339   # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
19340   # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
19341   # <sys/mount.h>.)
19342   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5
19343 $as_echo_n "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; }
19344   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
19345   $as_echo_n "(cached) " >&6
19346 else
19347   if test "$cross_compiling" = yes; then
19348   fu_cv_sys_stat_statfs2_fsize=no
19349 else
19350   cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h.  */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h.  */
19356
19357 #include <sys/types.h>
19358 #ifdef HAVE_SYS_PARAM_H
19359 #include <sys/param.h>
19360 #endif
19361 #ifdef HAVE_SYS_MOUNT_H
19362 #include <sys/mount.h>
19363 #endif
19364   int
19365   main ()
19366   {
19367   struct statfs fsd;
19368   fsd.f_fsize = 0;
19369   return statfs (".", &fsd) != 0;
19370   }
19371 _ACEOF
19372 rm -f conftest$ac_exeext
19373 if { (ac_try="$ac_link"
19374 case "(($ac_try" in
19375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376   *) ac_try_echo=$ac_try;;
19377 esac
19378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19379 $as_echo "$ac_try_echo") >&5
19380   (eval "$ac_link") 2>&5
19381   ac_status=$?
19382   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19384   { (case "(($ac_try" in
19385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386   *) ac_try_echo=$ac_try;;
19387 esac
19388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19389 $as_echo "$ac_try_echo") >&5
19390   (eval "$ac_try") 2>&5
19391   ac_status=$?
19392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); }; }; then
19394   fu_cv_sys_stat_statfs2_fsize=yes
19395 else
19396   $as_echo "$as_me: program exited with status $ac_status" >&5
19397 $as_echo "$as_me: failed program was:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19399
19400 ( exit $ac_status )
19401 fu_cv_sys_stat_statfs2_fsize=no
19402 fi
19403 rm -rf conftest.dSYM
19404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19405 fi
19406
19407
19408 fi
19409
19410   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
19411 $as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
19412   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
19413     ac_fsusage_space=yes
19414
19415 cat >>confdefs.h <<\_ACEOF
19416 #define STAT_STATFS2_FSIZE 1
19417 _ACEOF
19418
19419   fi
19420 fi
19421
19422 if test $ac_fsusage_space = no; then
19423   # Ultrix
19424   { $as_echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
19425 $as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
19426   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
19427   $as_echo_n "(cached) " >&6
19428 else
19429   if test "$cross_compiling" = yes; then
19430   fu_cv_sys_stat_fs_data=no
19431 else
19432   cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h.  */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h.  */
19438
19439 #include <sys/types.h>
19440 #ifdef HAVE_SYS_PARAM_H
19441 #include <sys/param.h>
19442 #endif
19443 #ifdef HAVE_SYS_MOUNT_H
19444 #include <sys/mount.h>
19445 #endif
19446 #ifdef HAVE_SYS_FS_TYPES_H
19447 #include <sys/fs_types.h>
19448 #endif
19449   int
19450   main ()
19451   {
19452   struct fs_data fsd;
19453   /* Ultrix's statfs returns 1 for success,
19454      0 for not mounted, -1 for failure.  */
19455   return statfs (".", &fsd) != 1;
19456   }
19457 _ACEOF
19458 rm -f conftest$ac_exeext
19459 if { (ac_try="$ac_link"
19460 case "(($ac_try" in
19461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462   *) ac_try_echo=$ac_try;;
19463 esac
19464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19465 $as_echo "$ac_try_echo") >&5
19466   (eval "$ac_link") 2>&5
19467   ac_status=$?
19468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19470   { (case "(($ac_try" in
19471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472   *) ac_try_echo=$ac_try;;
19473 esac
19474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19475 $as_echo "$ac_try_echo") >&5
19476   (eval "$ac_try") 2>&5
19477   ac_status=$?
19478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479   (exit $ac_status); }; }; then
19480   fu_cv_sys_stat_fs_data=yes
19481 else
19482   $as_echo "$as_me: program exited with status $ac_status" >&5
19483 $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ( exit $ac_status )
19487 fu_cv_sys_stat_fs_data=no
19488 fi
19489 rm -rf conftest.dSYM
19490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19491 fi
19492
19493
19494 fi
19495
19496   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
19497 $as_echo "$fu_cv_sys_stat_fs_data" >&6; }
19498   if test $fu_cv_sys_stat_fs_data = yes; then
19499     ac_fsusage_space=yes
19500
19501 cat >>confdefs.h <<\_ACEOF
19502 #define STAT_STATFS2_FS_DATA 1
19503 _ACEOF
19504
19505   fi
19506 fi
19507
19508 if test $ac_fsusage_space = no; then
19509   # SVR2
19510   # (AIX, HP-UX, OSF/1 already handled above.)
19511   cat >conftest.$ac_ext <<_ACEOF
19512 /* confdefs.h.  */
19513 _ACEOF
19514 cat confdefs.h >>conftest.$ac_ext
19515 cat >>conftest.$ac_ext <<_ACEOF
19516 /* end confdefs.h.  */
19517 #include <sys/filsys.h>
19518
19519 _ACEOF
19520 if { (ac_try="$ac_cpp conftest.$ac_ext"
19521 case "(($ac_try" in
19522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523   *) ac_try_echo=$ac_try;;
19524 esac
19525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19526 $as_echo "$ac_try_echo") >&5
19527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19528   ac_status=$?
19529   grep -v '^ *+' conftest.er1 >conftest.err
19530   rm -f conftest.er1
19531   cat conftest.err >&5
19532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533   (exit $ac_status); } >/dev/null && {
19534          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19535          test ! -s conftest.err
19536        }; then
19537
19538 cat >>confdefs.h <<\_ACEOF
19539 #define STAT_READ_FILSYS 1
19540 _ACEOF
19541
19542      ac_fsusage_space=yes
19543 else
19544   $as_echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19546
19547
19548 fi
19549
19550 rm -f conftest.err conftest.$ac_ext
19551 fi
19552
19553 if test $ac_fsusage_space = yes; then
19554   gl_cv_fs_space=yes
19555 else
19556   gl_cv_fs_space=no
19557 fi
19558
19559
19560
19561   if test $gl_cv_fs_space = yes; then
19562
19563
19564
19565
19566
19567
19568
19569
19570   gl_LIBOBJS="$gl_LIBOBJS fsusage.$ac_objext"
19571
19572
19573
19574
19575
19576
19577 for ac_header in dustat.h sys/fs/s5param.h sys/filsys.h sys/statfs.h
19578 do
19579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19581   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19582 $as_echo_n "checking for $ac_header... " >&6; }
19583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19584   $as_echo_n "(cached) " >&6
19585 fi
19586 ac_res=`eval 'as_val=${'$as_ac_Header'}
19587                  $as_echo "$as_val"'`
19588                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19589 $as_echo "$ac_res" >&6; }
19590 else
19591   # Is the header compilable?
19592 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19593 $as_echo_n "checking $ac_header usability... " >&6; }
19594 cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 $ac_includes_default
19601 #include <$ac_header>
19602 _ACEOF
19603 rm -f conftest.$ac_objext
19604 if { (ac_try="$ac_compile"
19605 case "(($ac_try" in
19606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607   *) ac_try_echo=$ac_try;;
19608 esac
19609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19610 $as_echo "$ac_try_echo") >&5
19611   (eval "$ac_compile") 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } && {
19618          test -z "$ac_c_werror_flag" ||
19619          test ! -s conftest.err
19620        } && test -s conftest.$ac_objext; then
19621   ac_header_compiler=yes
19622 else
19623   $as_echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19625
19626         ac_header_compiler=no
19627 fi
19628
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19630 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19631 $as_echo "$ac_header_compiler" >&6; }
19632
19633 # Is the header present?
19634 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19635 $as_echo_n "checking $ac_header presence... " >&6; }
19636 cat >conftest.$ac_ext <<_ACEOF
19637 /* confdefs.h.  */
19638 _ACEOF
19639 cat confdefs.h >>conftest.$ac_ext
19640 cat >>conftest.$ac_ext <<_ACEOF
19641 /* end confdefs.h.  */
19642 #include <$ac_header>
19643 _ACEOF
19644 if { (ac_try="$ac_cpp conftest.$ac_ext"
19645 case "(($ac_try" in
19646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647   *) ac_try_echo=$ac_try;;
19648 esac
19649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19650 $as_echo "$ac_try_echo") >&5
19651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19652   ac_status=$?
19653   grep -v '^ *+' conftest.er1 >conftest.err
19654   rm -f conftest.er1
19655   cat conftest.err >&5
19656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); } >/dev/null && {
19658          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19659          test ! -s conftest.err
19660        }; then
19661   ac_header_preproc=yes
19662 else
19663   $as_echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666   ac_header_preproc=no
19667 fi
19668
19669 rm -f conftest.err conftest.$ac_ext
19670 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19671 $as_echo "$ac_header_preproc" >&6; }
19672
19673 # So?  What about this header?
19674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19675   yes:no: )
19676     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19677 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19678     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19679 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19680     ac_header_preproc=yes
19681     ;;
19682   no:yes:* )
19683     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19684 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19685     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19686 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19687     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19688 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19690 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19691     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19692 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19694 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19695
19696     ;;
19697 esac
19698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19699 $as_echo_n "checking for $ac_header... " >&6; }
19700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19701   $as_echo_n "(cached) " >&6
19702 else
19703   eval "$as_ac_Header=\$ac_header_preproc"
19704 fi
19705 ac_res=`eval 'as_val=${'$as_ac_Header'}
19706                  $as_echo "$as_val"'`
19707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19708 $as_echo "$ac_res" >&6; }
19709
19710 fi
19711 as_val=`eval 'as_val=${'$as_ac_Header'}
19712                  $as_echo "$as_val"'`
19713    if test "x$as_val" = x""yes; then
19714   cat >>confdefs.h <<_ACEOF
19715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19716 _ACEOF
19717
19718 fi
19719
19720 done
19721
19722
19723   { $as_echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
19724 $as_echo_n "checking for statfs that truncates block counts... " >&6; }
19725   if test "${fu_cv_sys_truncating_statfs+set}" = set; then
19726   $as_echo_n "(cached) " >&6
19727 else
19728   cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734
19735 #if !defined(sun) && !defined(__sun)
19736 choke -- this is a workaround for a Sun-specific problem
19737 #endif
19738 #include <sys/types.h>
19739 #include <sys/vfs.h>
19740 int
19741 main ()
19742 {
19743 struct statfs t; long c = *(t.f_spare);
19744         if (c) return 0;
19745   ;
19746   return 0;
19747 }
19748 _ACEOF
19749 rm -f conftest.$ac_objext
19750 if { (ac_try="$ac_compile"
19751 case "(($ac_try" in
19752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753   *) ac_try_echo=$ac_try;;
19754 esac
19755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19756 $as_echo "$ac_try_echo") >&5
19757   (eval "$ac_compile") 2>conftest.er1
19758   ac_status=$?
19759   grep -v '^ *+' conftest.er1 >conftest.err
19760   rm -f conftest.er1
19761   cat conftest.err >&5
19762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); } && {
19764          test -z "$ac_c_werror_flag" ||
19765          test ! -s conftest.err
19766        } && test -s conftest.$ac_objext; then
19767   fu_cv_sys_truncating_statfs=yes
19768 else
19769   $as_echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772         fu_cv_sys_truncating_statfs=no
19773 fi
19774
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776 fi
19777
19778   if test $fu_cv_sys_truncating_statfs = yes; then
19779
19780 cat >>confdefs.h <<\_ACEOF
19781 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
19782 _ACEOF
19783
19784   fi
19785   { $as_echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
19786 $as_echo "$fu_cv_sys_truncating_statfs" >&6; }
19787
19788
19789   fi
19790
19791   # Code from module ftello:
19792
19793
19794
19795
19796
19797
19798
19799   { $as_echo "$as_me:$LINENO: checking for ftello" >&5
19800 $as_echo_n "checking for ftello... " >&6; }
19801 if test "${gl_cv_func_ftello+set}" = set; then
19802   $as_echo_n "(cached) " >&6
19803 else
19804
19805       cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811 #include <stdio.h>
19812 int
19813 main ()
19814 {
19815 ftello (stdin);
19816   ;
19817   return 0;
19818 }
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19827 $as_echo "$ac_try_echo") >&5
19828   (eval "$ac_link") 2>conftest.er1
19829   ac_status=$?
19830   grep -v '^ *+' conftest.er1 >conftest.err
19831   rm -f conftest.er1
19832   cat conftest.err >&5
19833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); } && {
19835          test -z "$ac_c_werror_flag" ||
19836          test ! -s conftest.err
19837        } && test -s conftest$ac_exeext && {
19838          test "$cross_compiling" = yes ||
19839          $as_test_x conftest$ac_exeext
19840        }; then
19841   gl_cv_func_ftello=yes
19842 else
19843   $as_echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19845
19846         gl_cv_func_ftello=no
19847 fi
19848
19849 rm -rf conftest.dSYM
19850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19851       conftest$ac_exeext conftest.$ac_ext
19852
19853 fi
19854 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello" >&5
19855 $as_echo "$gl_cv_func_ftello" >&6; }
19856   if test $gl_cv_func_ftello = no; then
19857     HAVE_FTELLO=0
19858   else
19859     if test $gl_cv_var_stdin_large_offset = no; then
19860       REPLACE_FTELLO=1
19861     else
19862
19863       { $as_echo "$as_me:$LINENO: checking whether ftello works" >&5
19864 $as_echo_n "checking whether ftello works... " >&6; }
19865 if test "${gl_cv_func_ftello_works+set}" = set; then
19866   $as_echo_n "(cached) " >&6
19867 else
19868
19869                               case "$host_os" in
19870                       # Guess no on Solaris.
19871             solaris*) gl_cv_func_ftello_works="guessing no" ;;
19872                       # Guess yes otherwise.
19873             *)        gl_cv_func_ftello_works="guessing yes" ;;
19874           esac
19875           if test "$cross_compiling" = yes; then
19876   :
19877 else
19878   cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884
19885 #include <stdio.h>
19886 #include <stdlib.h>
19887 #include <string.h>
19888 #define TESTFILE "conftest.tmp"
19889 int
19890 main (void)
19891 {
19892   FILE *fp;
19893
19894   /* Create a file with some contents.  */
19895   fp = fopen (TESTFILE, "w");
19896   if (fp == NULL)
19897     return 70;
19898   if (fwrite ("foogarsh", 1, 8, fp) < 8)
19899     return 71;
19900   if (fclose (fp))
19901     return 72;
19902
19903   /* The file's contents is now "foogarsh".  */
19904
19905   /* Try writing after reading to EOF.  */
19906   fp = fopen (TESTFILE, "r+");
19907   if (fp == NULL)
19908     return 73;
19909   if (fseek (fp, -1, SEEK_END))
19910     return 74;
19911   if (!(getc (fp) == 'h'))
19912     return 1;
19913   if (!(getc (fp) == EOF))
19914     return 2;
19915   if (!(ftell (fp) == 8))
19916     return 3;
19917   if (!(ftell (fp) == 8))
19918     return 4;
19919   if (!(putc ('!', fp) == '!'))
19920     return 5;
19921   if (!(ftell (fp) == 9))
19922     return 6;
19923   if (!(fclose (fp) == 0))
19924     return 7;
19925   fp = fopen (TESTFILE, "r");
19926   if (fp == NULL)
19927     return 75;
19928   {
19929     char buf[10];
19930     if (!(fread (buf, 1, 10, fp) == 9))
19931       return 10;
19932     if (!(memcmp (buf, "foogarsh!", 9) == 0))
19933       return 11;
19934   }
19935   if (!(fclose (fp) == 0))
19936     return 12;
19937
19938   /* The file's contents is now "foogarsh!".  */
19939
19940   return 0;
19941 }
19942 _ACEOF
19943 rm -f conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951   (eval "$ac_link") 2>&5
19952   ac_status=$?
19953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19955   { (case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19960 $as_echo "$ac_try_echo") >&5
19961   (eval "$ac_try") 2>&5
19962   ac_status=$?
19963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965   gl_cv_func_ftello_works=yes
19966 else
19967   $as_echo "$as_me: program exited with status $ac_status" >&5
19968 $as_echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19970
19971 ( exit $ac_status )
19972 gl_cv_func_ftello_works=no
19973 fi
19974 rm -rf conftest.dSYM
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19976 fi
19977
19978
19979
19980 fi
19981 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_ftello_works" >&5
19982 $as_echo "$gl_cv_func_ftello_works" >&6; }
19983       case "$gl_cv_func_ftello_works" in
19984         *yes) ;;
19985         *)
19986           REPLACE_FTELLO=1
19987
19988 cat >>confdefs.h <<\_ACEOF
19989 #define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1
19990 _ACEOF
19991
19992           ;;
19993       esac
19994     fi
19995   fi
19996   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
20007
20008
20009   fi
20010
20011
20012
20013
20014   GNULIB_FTELLO=1
20015
20016
20017
20018 cat >>confdefs.h <<\_ACEOF
20019 #define GNULIB_TEST_FTELLO 1
20020 _ACEOF
20021
20022
20023
20024   # Code from module ftruncate:
20025
20026
20027
20028
20029   :
20030
20031
20032
20033
20034
20035   if test $ac_cv_func_ftruncate = no; then
20036     HAVE_FTRUNCATE=0
20037
20038
20039
20040
20041
20042
20043
20044
20045   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
20046
20047
20048
20049 for ac_func in chsize
20050 do
20051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20052 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20053 $as_echo_n "checking for $ac_func... " >&6; }
20054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20055   $as_echo_n "(cached) " >&6
20056 else
20057   cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20065 #define $ac_func innocuous_$ac_func
20066
20067 /* System header to define __stub macros and hopefully few prototypes,
20068     which can conflict with char $ac_func (); below.
20069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20070     <limits.h> exists even on freestanding compilers.  */
20071
20072 #ifdef __STDC__
20073 # include <limits.h>
20074 #else
20075 # include <assert.h>
20076 #endif
20077
20078 #undef $ac_func
20079
20080 /* Override any GCC internal prototype to avoid an error.
20081    Use char because int might match the return type of a GCC
20082    builtin and then its argument prototype would still apply.  */
20083 #ifdef __cplusplus
20084 extern "C"
20085 #endif
20086 char $ac_func ();
20087 /* The GNU C library defines this for functions which it implements
20088     to always fail with ENOSYS.  Some functions are actually named
20089     something starting with __ and the normal name is an alias.  */
20090 #if defined __stub_$ac_func || defined __stub___$ac_func
20091 choke me
20092 #endif
20093
20094 int
20095 main ()
20096 {
20097 return $ac_func ();
20098   ;
20099   return 0;
20100 }
20101 _ACEOF
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
20104 case "(($ac_try" in
20105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106   *) ac_try_echo=$ac_try;;
20107 esac
20108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20109 $as_echo "$ac_try_echo") >&5
20110   (eval "$ac_link") 2>conftest.er1
20111   ac_status=$?
20112   grep -v '^ *+' conftest.er1 >conftest.err
20113   rm -f conftest.er1
20114   cat conftest.err >&5
20115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); } && {
20117          test -z "$ac_c_werror_flag" ||
20118          test ! -s conftest.err
20119        } && test -s conftest$ac_exeext && {
20120          test "$cross_compiling" = yes ||
20121          $as_test_x conftest$ac_exeext
20122        }; then
20123   eval "$as_ac_var=yes"
20124 else
20125   $as_echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20127
20128         eval "$as_ac_var=no"
20129 fi
20130
20131 rm -rf conftest.dSYM
20132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20133       conftest$ac_exeext conftest.$ac_ext
20134 fi
20135 ac_res=`eval 'as_val=${'$as_ac_var'}
20136                  $as_echo "$as_val"'`
20137                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20138 $as_echo "$ac_res" >&6; }
20139 as_val=`eval 'as_val=${'$as_ac_var'}
20140                  $as_echo "$as_val"'`
20141    if test "x$as_val" = x""yes; then
20142   cat >>confdefs.h <<_ACEOF
20143 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20144 _ACEOF
20145
20146 fi
20147 done
20148
20149
20150     case "$host_os" in
20151       mingw*)
20152         # Yes, we know mingw lacks ftruncate.
20153         ;;
20154       *)
20155         # If someone lacks ftruncate, make configure fail, and request
20156         # a bug report to inform us about it.
20157         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
20158           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20160 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
20161               Please report this, along with the output of \"uname -a\", to the
20162               bug-coreutils@gnu.org mailing list.  To continue past this point,
20163               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20164               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20165 See \`config.log' for more details." >&5
20166 $as_echo "$as_me: error: Your system lacks the ftruncate function.
20167               Please report this, along with the output of \"uname -a\", to the
20168               bug-coreutils@gnu.org mailing list.  To continue past this point,
20169               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
20170               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
20171 See \`config.log' for more details." >&2;}
20172    { (exit 1); exit 1; }; }; }
20173         fi
20174     esac
20175   fi
20176
20177
20178
20179
20180   GNULIB_FTRUNCATE=1
20181
20182
20183
20184 cat >>confdefs.h <<\_ACEOF
20185 #define GNULIB_TEST_FTRUNCATE 1
20186 _ACEOF
20187
20188
20189
20190   # Code from module full-read:
20191   # Code from module full-write:
20192   # Code from module getaddrinfo:
20193
20194       { $as_echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
20195 $as_echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
20196   GETADDRINFO_LIB=
20197   gai_saved_LIBS="$LIBS"
20198
20199               { $as_echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
20200 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
20201 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20202   $as_echo_n "(cached) " >&6
20203 else
20204   ac_func_search_save_LIBS=$LIBS
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211
20212 /* Override any GCC internal prototype to avoid an error.
20213    Use char because int might match the return type of a GCC
20214    builtin and then its argument prototype would still apply.  */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 char getaddrinfo ();
20219 int
20220 main ()
20221 {
20222 return getaddrinfo ();
20223   ;
20224   return 0;
20225 }
20226 _ACEOF
20227 for ac_lib in '' socket network net; do
20228   if test -z "$ac_lib"; then
20229     ac_res="none required"
20230   else
20231     ac_res=-l$ac_lib
20232     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20233   fi
20234   rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20241 $as_echo "$ac_try_echo") >&5
20242   (eval "$ac_link") 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } && {
20249          test -z "$ac_c_werror_flag" ||
20250          test ! -s conftest.err
20251        } && test -s conftest$ac_exeext && {
20252          test "$cross_compiling" = yes ||
20253          $as_test_x conftest$ac_exeext
20254        }; then
20255   ac_cv_search_getaddrinfo=$ac_res
20256 else
20257   $as_echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260
20261 fi
20262
20263 rm -rf conftest.dSYM
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265       conftest$ac_exeext
20266   if test "${ac_cv_search_getaddrinfo+set}" = set; then
20267   break
20268 fi
20269 done
20270 if test "${ac_cv_search_getaddrinfo+set}" = set; then
20271   :
20272 else
20273   ac_cv_search_getaddrinfo=no
20274 fi
20275 rm conftest.$ac_ext
20276 LIBS=$ac_func_search_save_LIBS
20277 fi
20278 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
20279 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
20280 ac_res=$ac_cv_search_getaddrinfo
20281 if test "$ac_res" != no; then
20282   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20283   if test "$ac_cv_search_getaddrinfo" != "none required"; then
20284        GETADDRINFO_LIB="$ac_cv_search_getaddrinfo"
20285      fi
20286 fi
20287
20288   LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20289
20290   { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
20291 $as_echo_n "checking for getaddrinfo... " >&6; }
20292 if test "${gl_cv_func_getaddrinfo+set}" = set; then
20293   $as_echo_n "(cached) " >&6
20294 else
20295
20296     cat >conftest.$ac_ext <<_ACEOF
20297 /* confdefs.h.  */
20298 _ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h.  */
20302
20303 #include <sys/types.h>
20304 #ifdef HAVE_SYS_SOCKET_H
20305 #include <sys/socket.h>
20306 #endif
20307 #ifdef HAVE_NETDB_H
20308 #include <netdb.h>
20309 #endif
20310 #include <stddef.h>
20311
20312 int
20313 main ()
20314 {
20315 getaddrinfo("", "", NULL, NULL);
20316   ;
20317   return 0;
20318 }
20319 _ACEOF
20320 rm -f conftest.$ac_objext conftest$ac_exeext
20321 if { (ac_try="$ac_link"
20322 case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20327 $as_echo "$ac_try_echo") >&5
20328   (eval "$ac_link") 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } && {
20335          test -z "$ac_c_werror_flag" ||
20336          test ! -s conftest.err
20337        } && test -s conftest$ac_exeext && {
20338          test "$cross_compiling" = yes ||
20339          $as_test_x conftest$ac_exeext
20340        }; then
20341   gl_cv_func_getaddrinfo=yes
20342 else
20343   $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346         gl_cv_func_getaddrinfo=no
20347 fi
20348
20349 rm -rf conftest.dSYM
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351       conftest$ac_exeext conftest.$ac_ext
20352 fi
20353 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getaddrinfo" >&5
20354 $as_echo "$gl_cv_func_getaddrinfo" >&6; }
20355   if test $gl_cv_func_getaddrinfo = no; then
20356     { $as_echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
20357 $as_echo_n "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; }
20358 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
20359   $as_echo_n "(cached) " >&6
20360 else
20361
20362       gl_cv_w32_getaddrinfo=no
20363       am_save_LIBS="$LIBS"
20364       LIBS="$LIBS -lws2_32"
20365       cat >conftest.$ac_ext <<_ACEOF
20366 /* confdefs.h.  */
20367 _ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h.  */
20371
20372 #ifdef HAVE_WS2TCPIP_H
20373 #include <ws2tcpip.h>
20374 #endif
20375 #include <stddef.h>
20376
20377 int
20378 main ()
20379 {
20380 getaddrinfo(NULL, NULL, NULL, NULL);
20381   ;
20382   return 0;
20383 }
20384 _ACEOF
20385 rm -f conftest.$ac_objext conftest$ac_exeext
20386 if { (ac_try="$ac_link"
20387 case "(($ac_try" in
20388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389   *) ac_try_echo=$ac_try;;
20390 esac
20391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20392 $as_echo "$ac_try_echo") >&5
20393   (eval "$ac_link") 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } && {
20400          test -z "$ac_c_werror_flag" ||
20401          test ! -s conftest.err
20402        } && test -s conftest$ac_exeext && {
20403          test "$cross_compiling" = yes ||
20404          $as_test_x conftest$ac_exeext
20405        }; then
20406   gl_cv_w32_getaddrinfo=yes
20407 else
20408   $as_echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20410
20411
20412 fi
20413
20414 rm -rf conftest.dSYM
20415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20416       conftest$ac_exeext conftest.$ac_ext
20417       LIBS="$am_save_LIBS"
20418
20419 fi
20420 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
20421 $as_echo "$gl_cv_w32_getaddrinfo" >&6; }
20422     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
20423       GETADDRINFO_LIB="-lws2_32"
20424       LIBS="$gai_saved_LIBS $GETADDRINFO_LIB"
20425     else
20426
20427
20428
20429
20430
20431
20432
20433
20434   gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
20435
20436     fi
20437   fi
20438
20439   # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an
20440   # inline function declared in ws2tcpip.h, so we need to get that
20441   # header included somehow.
20442   { $as_echo "$as_me:$LINENO: checking for gai_strerror (possibly via ws2tcpip.h)" >&5
20443 $as_echo_n "checking for gai_strerror (possibly via ws2tcpip.h)... " >&6; }
20444 if test "${gl_cv_func_gai_strerror+set}" = set; then
20445   $as_echo_n "(cached) " >&6
20446 else
20447
20448       cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454
20455 #include <sys/types.h>
20456 #ifdef HAVE_SYS_SOCKET_H
20457 #include <sys/socket.h>
20458 #endif
20459 #ifdef HAVE_NETDB_H
20460 #include <netdb.h>
20461 #endif
20462 #ifdef HAVE_WS2TCPIP_H
20463 #include <ws2tcpip.h>
20464 #endif
20465 #include <stddef.h>
20466
20467 int
20468 main ()
20469 {
20470 gai_strerror (NULL);
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479   *) ac_try_echo=$ac_try;;
20480 esac
20481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20482 $as_echo "$ac_try_echo") >&5
20483   (eval "$ac_link") 2>conftest.er1
20484   ac_status=$?
20485   grep -v '^ *+' conftest.er1 >conftest.err
20486   rm -f conftest.er1
20487   cat conftest.err >&5
20488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); } && {
20490          test -z "$ac_c_werror_flag" ||
20491          test ! -s conftest.err
20492        } && test -s conftest$ac_exeext && {
20493          test "$cross_compiling" = yes ||
20494          $as_test_x conftest$ac_exeext
20495        }; then
20496   gl_cv_func_gai_strerror=yes
20497 else
20498   $as_echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501         gl_cv_func_gai_strerror=no
20502 fi
20503
20504 rm -rf conftest.dSYM
20505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20506       conftest$ac_exeext conftest.$ac_ext
20507 fi
20508 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gai_strerror" >&5
20509 $as_echo "$gl_cv_func_gai_strerror" >&6; }
20510   if test $gl_cv_func_gai_strerror = no; then
20511
20512
20513
20514
20515
20516
20517
20518
20519   gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext"
20520
20521   fi
20522
20523   LIBS="$gai_saved_LIBS"
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533       { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
20534 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
20535 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
20536   $as_echo_n "(cached) " >&6
20537 else
20538   cat >conftest.$ac_ext <<_ACEOF
20539 /* confdefs.h.  */
20540 _ACEOF
20541 cat confdefs.h >>conftest.$ac_ext
20542 cat >>conftest.$ac_ext <<_ACEOF
20543 /* end confdefs.h.  */
20544 #include <sys/socket.h>
20545
20546 int
20547 main ()
20548 {
20549 static struct sockaddr ac_aggr;
20550 if (ac_aggr.sa_len)
20551 return 0;
20552   ;
20553   return 0;
20554 }
20555 _ACEOF
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560   *) ac_try_echo=$ac_try;;
20561 esac
20562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20563 $as_echo "$ac_try_echo") >&5
20564   (eval "$ac_compile") 2>conftest.er1
20565   ac_status=$?
20566   grep -v '^ *+' conftest.er1 >conftest.err
20567   rm -f conftest.er1
20568   cat conftest.err >&5
20569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570   (exit $ac_status); } && {
20571          test -z "$ac_c_werror_flag" ||
20572          test ! -s conftest.err
20573        } && test -s conftest.$ac_objext; then
20574   ac_cv_member_struct_sockaddr_sa_len=yes
20575 else
20576   $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579         cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 #include <sys/socket.h>
20586
20587 int
20588 main ()
20589 {
20590 static struct sockaddr ac_aggr;
20591 if (sizeof ac_aggr.sa_len)
20592 return 0;
20593   ;
20594   return 0;
20595 }
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601   *) ac_try_echo=$ac_try;;
20602 esac
20603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20604 $as_echo "$ac_try_echo") >&5
20605   (eval "$ac_compile") 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } && {
20612          test -z "$ac_c_werror_flag" ||
20613          test ! -s conftest.err
20614        } && test -s conftest.$ac_objext; then
20615   ac_cv_member_struct_sockaddr_sa_len=yes
20616 else
20617   $as_echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620         ac_cv_member_struct_sockaddr_sa_len=no
20621 fi
20622
20623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 fi
20628 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
20629 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
20630 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
20631
20632 cat >>confdefs.h <<_ACEOF
20633 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
20634 _ACEOF
20635
20636
20637 fi
20638
20639
20640
20641   :
20642
20643
20644
20645
20646
20647
20648   { $as_echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
20649 $as_echo_n "checking whether getaddrinfo is declared... " >&6; }
20650 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
20651   $as_echo_n "(cached) " >&6
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659
20660   /* sys/types.h is not needed according to POSIX, but the
20661      sys/socket.h in i386-unknown-freebsd4.10 and
20662      powerpc-apple-darwin5.5 required it. */
20663 #include <sys/types.h>
20664 #ifdef HAVE_SYS_SOCKET_H
20665 #include <sys/socket.h>
20666 #endif
20667 #ifdef HAVE_NETDB_H
20668 #include <netdb.h>
20669 #endif
20670 #ifdef HAVE_WS2TCPIP_H
20671 #include <ws2tcpip.h>
20672 #endif
20673
20674
20675 int
20676 main ()
20677 {
20678 #ifndef getaddrinfo
20679   (void) getaddrinfo;
20680 #endif
20681
20682   ;
20683   return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext
20687 if { (ac_try="$ac_compile"
20688 case "(($ac_try" in
20689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20690   *) ac_try_echo=$ac_try;;
20691 esac
20692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20693 $as_echo "$ac_try_echo") >&5
20694   (eval "$ac_compile") 2>conftest.er1
20695   ac_status=$?
20696   grep -v '^ *+' conftest.er1 >conftest.err
20697   rm -f conftest.er1
20698   cat conftest.err >&5
20699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700   (exit $ac_status); } && {
20701          test -z "$ac_c_werror_flag" ||
20702          test ! -s conftest.err
20703        } && test -s conftest.$ac_objext; then
20704   ac_cv_have_decl_getaddrinfo=yes
20705 else
20706   $as_echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709         ac_cv_have_decl_getaddrinfo=no
20710 fi
20711
20712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20713 fi
20714 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
20715 $as_echo "$ac_cv_have_decl_getaddrinfo" >&6; }
20716 if test "x$ac_cv_have_decl_getaddrinfo" = x""yes; then
20717
20718 cat >>confdefs.h <<_ACEOF
20719 #define HAVE_DECL_GETADDRINFO 1
20720 _ACEOF
20721
20722
20723 else
20724   cat >>confdefs.h <<_ACEOF
20725 #define HAVE_DECL_GETADDRINFO 0
20726 _ACEOF
20727
20728
20729 fi
20730 { $as_echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
20731 $as_echo_n "checking whether freeaddrinfo is declared... " >&6; }
20732 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
20733   $as_echo_n "(cached) " >&6
20734 else
20735   cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h.  */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h.  */
20741
20742   /* sys/types.h is not needed according to POSIX, but the
20743      sys/socket.h in i386-unknown-freebsd4.10 and
20744      powerpc-apple-darwin5.5 required it. */
20745 #include <sys/types.h>
20746 #ifdef HAVE_SYS_SOCKET_H
20747 #include <sys/socket.h>
20748 #endif
20749 #ifdef HAVE_NETDB_H
20750 #include <netdb.h>
20751 #endif
20752 #ifdef HAVE_WS2TCPIP_H
20753 #include <ws2tcpip.h>
20754 #endif
20755
20756
20757 int
20758 main ()
20759 {
20760 #ifndef freeaddrinfo
20761   (void) freeaddrinfo;
20762 #endif
20763
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772   *) ac_try_echo=$ac_try;;
20773 esac
20774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20775 $as_echo "$ac_try_echo") >&5
20776   (eval "$ac_compile") 2>conftest.er1
20777   ac_status=$?
20778   grep -v '^ *+' conftest.er1 >conftest.err
20779   rm -f conftest.er1
20780   cat conftest.err >&5
20781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782   (exit $ac_status); } && {
20783          test -z "$ac_c_werror_flag" ||
20784          test ! -s conftest.err
20785        } && test -s conftest.$ac_objext; then
20786   ac_cv_have_decl_freeaddrinfo=yes
20787 else
20788   $as_echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791         ac_cv_have_decl_freeaddrinfo=no
20792 fi
20793
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795 fi
20796 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
20797 $as_echo "$ac_cv_have_decl_freeaddrinfo" >&6; }
20798 if test "x$ac_cv_have_decl_freeaddrinfo" = x""yes; then
20799
20800 cat >>confdefs.h <<_ACEOF
20801 #define HAVE_DECL_FREEADDRINFO 1
20802 _ACEOF
20803
20804
20805 else
20806   cat >>confdefs.h <<_ACEOF
20807 #define HAVE_DECL_FREEADDRINFO 0
20808 _ACEOF
20809
20810
20811 fi
20812 { $as_echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
20813 $as_echo_n "checking whether gai_strerror is declared... " >&6; }
20814 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
20815   $as_echo_n "(cached) " >&6
20816 else
20817   cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h.  */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h.  */
20823
20824   /* sys/types.h is not needed according to POSIX, but the
20825      sys/socket.h in i386-unknown-freebsd4.10 and
20826      powerpc-apple-darwin5.5 required it. */
20827 #include <sys/types.h>
20828 #ifdef HAVE_SYS_SOCKET_H
20829 #include <sys/socket.h>
20830 #endif
20831 #ifdef HAVE_NETDB_H
20832 #include <netdb.h>
20833 #endif
20834 #ifdef HAVE_WS2TCPIP_H
20835 #include <ws2tcpip.h>
20836 #endif
20837
20838
20839 int
20840 main ()
20841 {
20842 #ifndef gai_strerror
20843   (void) gai_strerror;
20844 #endif
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854   *) ac_try_echo=$ac_try;;
20855 esac
20856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20857 $as_echo "$ac_try_echo") >&5
20858   (eval "$ac_compile") 2>conftest.er1
20859   ac_status=$?
20860   grep -v '^ *+' conftest.er1 >conftest.err
20861   rm -f conftest.er1
20862   cat conftest.err >&5
20863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } && {
20865          test -z "$ac_c_werror_flag" ||
20866          test ! -s conftest.err
20867        } && test -s conftest.$ac_objext; then
20868   ac_cv_have_decl_gai_strerror=yes
20869 else
20870   $as_echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873         ac_cv_have_decl_gai_strerror=no
20874 fi
20875
20876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 fi
20878 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
20879 $as_echo "$ac_cv_have_decl_gai_strerror" >&6; }
20880 if test "x$ac_cv_have_decl_gai_strerror" = x""yes; then
20881
20882 cat >>confdefs.h <<_ACEOF
20883 #define HAVE_DECL_GAI_STRERROR 1
20884 _ACEOF
20885
20886
20887 else
20888   cat >>confdefs.h <<_ACEOF
20889 #define HAVE_DECL_GAI_STRERROR 0
20890 _ACEOF
20891
20892
20893 fi
20894 { $as_echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
20895 $as_echo_n "checking whether getnameinfo is declared... " >&6; }
20896 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
20897   $as_echo_n "(cached) " >&6
20898 else
20899   cat >conftest.$ac_ext <<_ACEOF
20900 /* confdefs.h.  */
20901 _ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h.  */
20905
20906   /* sys/types.h is not needed according to POSIX, but the
20907      sys/socket.h in i386-unknown-freebsd4.10 and
20908      powerpc-apple-darwin5.5 required it. */
20909 #include <sys/types.h>
20910 #ifdef HAVE_SYS_SOCKET_H
20911 #include <sys/socket.h>
20912 #endif
20913 #ifdef HAVE_NETDB_H
20914 #include <netdb.h>
20915 #endif
20916 #ifdef HAVE_WS2TCPIP_H
20917 #include <ws2tcpip.h>
20918 #endif
20919
20920
20921 int
20922 main ()
20923 {
20924 #ifndef getnameinfo
20925   (void) getnameinfo;
20926 #endif
20927
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20939 $as_echo "$ac_try_echo") >&5
20940   (eval "$ac_compile") 2>conftest.er1
20941   ac_status=$?
20942   grep -v '^ *+' conftest.er1 >conftest.err
20943   rm -f conftest.er1
20944   cat conftest.err >&5
20945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } && {
20947          test -z "$ac_c_werror_flag" ||
20948          test ! -s conftest.err
20949        } && test -s conftest.$ac_objext; then
20950   ac_cv_have_decl_getnameinfo=yes
20951 else
20952   $as_echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955         ac_cv_have_decl_getnameinfo=no
20956 fi
20957
20958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20959 fi
20960 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
20961 $as_echo "$ac_cv_have_decl_getnameinfo" >&6; }
20962 if test "x$ac_cv_have_decl_getnameinfo" = x""yes; then
20963
20964 cat >>confdefs.h <<_ACEOF
20965 #define HAVE_DECL_GETNAMEINFO 1
20966 _ACEOF
20967
20968
20969 else
20970   cat >>confdefs.h <<_ACEOF
20971 #define HAVE_DECL_GETNAMEINFO 0
20972 _ACEOF
20973
20974
20975 fi
20976
20977
20978   if test $ac_cv_have_decl_getaddrinfo = no; then
20979     HAVE_DECL_GETADDRINFO=0
20980   fi
20981   if test $ac_cv_have_decl_freeaddrinfo = no; then
20982     HAVE_DECL_FREEADDRINFO=0
20983   fi
20984   if test $ac_cv_have_decl_gai_strerror = no; then
20985     HAVE_DECL_GAI_STRERROR=0
20986   fi
20987   if test $ac_cv_have_decl_getnameinfo = no; then
20988     HAVE_DECL_GETNAMEINFO=0
20989   fi
20990
20991   { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
20992 $as_echo_n "checking for struct addrinfo... " >&6; }
20993 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
20994   $as_echo_n "(cached) " >&6
20995 else
20996   ac_cv_type_struct_addrinfo=no
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003
21004 #include <sys/types.h>
21005 #ifdef HAVE_SYS_SOCKET_H
21006 #include <sys/socket.h>
21007 #endif
21008 #ifdef HAVE_NETDB_H
21009 #include <netdb.h>
21010 #endif
21011 #ifdef HAVE_WS2TCPIP_H
21012 #include <ws2tcpip.h>
21013 #endif
21014
21015
21016 int
21017 main ()
21018 {
21019 if (sizeof (struct addrinfo))
21020        return 0;
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029   *) ac_try_echo=$ac_try;;
21030 esac
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033   (eval "$ac_compile") 2>conftest.er1
21034   ac_status=$?
21035   grep -v '^ *+' conftest.er1 >conftest.err
21036   rm -f conftest.er1
21037   cat conftest.err >&5
21038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } && {
21040          test -z "$ac_c_werror_flag" ||
21041          test ! -s conftest.err
21042        } && test -s conftest.$ac_objext; then
21043   cat >conftest.$ac_ext <<_ACEOF
21044 /* confdefs.h.  */
21045 _ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h.  */
21049
21050 #include <sys/types.h>
21051 #ifdef HAVE_SYS_SOCKET_H
21052 #include <sys/socket.h>
21053 #endif
21054 #ifdef HAVE_NETDB_H
21055 #include <netdb.h>
21056 #endif
21057 #ifdef HAVE_WS2TCPIP_H
21058 #include <ws2tcpip.h>
21059 #endif
21060
21061
21062 int
21063 main ()
21064 {
21065 if (sizeof ((struct addrinfo)))
21066           return 0;
21067   ;
21068   return 0;
21069 }
21070 _ACEOF
21071 rm -f conftest.$ac_objext
21072 if { (ac_try="$ac_compile"
21073 case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21078 $as_echo "$ac_try_echo") >&5
21079   (eval "$ac_compile") 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } && {
21086          test -z "$ac_c_werror_flag" ||
21087          test ! -s conftest.err
21088        } && test -s conftest.$ac_objext; then
21089   :
21090 else
21091   $as_echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_type_struct_addrinfo=yes
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 else
21099   $as_echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21101
21102
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 fi
21107 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
21108 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
21109 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
21110
21111 cat >>confdefs.h <<_ACEOF
21112 #define HAVE_STRUCT_ADDRINFO 1
21113 _ACEOF
21114
21115
21116 fi
21117
21118   if test $ac_cv_type_struct_addrinfo = no; then
21119     HAVE_STRUCT_ADDRINFO=0
21120   fi
21121
21122     case " $GETADDRINFO_LIB " in
21123     *" $HOSTENT_LIB "*) ;;
21124     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;;
21125   esac
21126
21127     case " $GETADDRINFO_LIB " in
21128     *" $SERVENT_LIB "*) ;;
21129     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;;
21130   esac
21131
21132     case " $GETADDRINFO_LIB " in
21133     *" $INET_NTOP_LIB "*) ;;
21134     *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;;
21135   esac
21136
21137
21138
21139
21140
21141
21142
21143   GNULIB_GETADDRINFO=1
21144
21145
21146   # Code from module getopt-gnu:
21147
21148
21149
21150
21151
21152
21153
21154 cat >>confdefs.h <<\_ACEOF
21155 #define GNULIB_TEST_GETOPT_GNU 1
21156 _ACEOF
21157
21158
21159   # Code from module getopt-posix:
21160
21161
21162
21163
21164
21165   if test -n "$gl_replace_getopt"; then
21166
21167
21168
21169   GETOPT_H=getopt.h
21170
21171 cat >>confdefs.h <<\_ACEOF
21172 #define __GETOPT_PREFIX rpl_
21173 _ACEOF
21174
21175
21176
21177     GNULIB_UNISTD_H_GETOPT=1
21178
21179
21180
21181
21182
21183
21184
21185
21186   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
21197
21198
21199
21200   :
21201
21202
21203
21204
21205
21206
21207
21208
21209 fi
21210
21211
21212
21213   # Code from module gettext-h:
21214
21215
21216   # Code from module gettimeofday:
21217
21218
21219
21220
21221
21222   :
21223
21224
21225
21226
21227
21228
21229   gl_gettimeofday_timezone=void
21230   if test $ac_cv_func_gettimeofday != yes; then
21231     HAVE_GETTIMEOFDAY=0
21232
21233
21234
21235
21236
21237
21238
21239
21240   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21241
21242
21243
21244 for ac_header in sys/timeb.h
21245 do
21246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 $as_echo_n "checking for $ac_header... " >&6; }
21250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21251   $as_echo_n "(cached) " >&6
21252 fi
21253 ac_res=`eval 'as_val=${'$as_ac_Header'}
21254                  $as_echo "$as_val"'`
21255                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21256 $as_echo "$ac_res" >&6; }
21257 else
21258   # Is the header compilable?
21259 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21260 $as_echo_n "checking $ac_header usability... " >&6; }
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267 $ac_includes_default
21268 #include <$ac_header>
21269 _ACEOF
21270 rm -f conftest.$ac_objext
21271 if { (ac_try="$ac_compile"
21272 case "(($ac_try" in
21273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274   *) ac_try_echo=$ac_try;;
21275 esac
21276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21277 $as_echo "$ac_try_echo") >&5
21278   (eval "$ac_compile") 2>conftest.er1
21279   ac_status=$?
21280   grep -v '^ *+' conftest.er1 >conftest.err
21281   rm -f conftest.er1
21282   cat conftest.err >&5
21283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); } && {
21285          test -z "$ac_c_werror_flag" ||
21286          test ! -s conftest.err
21287        } && test -s conftest.$ac_objext; then
21288   ac_header_compiler=yes
21289 else
21290   $as_echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21292
21293         ac_header_compiler=no
21294 fi
21295
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 $as_echo "$ac_header_compiler" >&6; }
21299
21300 # Is the header present?
21301 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21302 $as_echo_n "checking $ac_header presence... " >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h.  */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h.  */
21309 #include <$ac_header>
21310 _ACEOF
21311 if { (ac_try="$ac_cpp conftest.$ac_ext"
21312 case "(($ac_try" in
21313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314   *) ac_try_echo=$ac_try;;
21315 esac
21316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21317 $as_echo "$ac_try_echo") >&5
21318   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } >/dev/null && {
21325          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21326          test ! -s conftest.err
21327        }; then
21328   ac_header_preproc=yes
21329 else
21330   $as_echo "$as_me: failed program was:" >&5
21331 sed 's/^/| /' conftest.$ac_ext >&5
21332
21333   ac_header_preproc=no
21334 fi
21335
21336 rm -f conftest.err conftest.$ac_ext
21337 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 $as_echo "$ac_header_preproc" >&6; }
21339
21340 # So?  What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21342   yes:no: )
21343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21344 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21347     ac_header_preproc=yes
21348     ;;
21349   no:yes:* )
21350     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21353 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21354     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21355 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21357 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21360     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21361 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21362
21363     ;;
21364 esac
21365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21366 $as_echo_n "checking for $ac_header... " >&6; }
21367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21368   $as_echo_n "(cached) " >&6
21369 else
21370   eval "$as_ac_Header=\$ac_header_preproc"
21371 fi
21372 ac_res=`eval 'as_val=${'$as_ac_Header'}
21373                  $as_echo "$as_val"'`
21374                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21375 $as_echo "$ac_res" >&6; }
21376
21377 fi
21378 as_val=`eval 'as_val=${'$as_ac_Header'}
21379                  $as_echo "$as_val"'`
21380    if test "x$as_val" = x""yes; then
21381   cat >>confdefs.h <<_ACEOF
21382 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21383 _ACEOF
21384
21385 fi
21386
21387 done
21388
21389
21390 for ac_func in _ftime
21391 do
21392 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21393 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21394 $as_echo_n "checking for $ac_func... " >&6; }
21395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21396   $as_echo_n "(cached) " >&6
21397 else
21398   cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21406 #define $ac_func innocuous_$ac_func
21407
21408 /* System header to define __stub macros and hopefully few prototypes,
21409     which can conflict with char $ac_func (); below.
21410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21411     <limits.h> exists even on freestanding compilers.  */
21412
21413 #ifdef __STDC__
21414 # include <limits.h>
21415 #else
21416 # include <assert.h>
21417 #endif
21418
21419 #undef $ac_func
21420
21421 /* Override any GCC internal prototype to avoid an error.
21422    Use char because int might match the return type of a GCC
21423    builtin and then its argument prototype would still apply.  */
21424 #ifdef __cplusplus
21425 extern "C"
21426 #endif
21427 char $ac_func ();
21428 /* The GNU C library defines this for functions which it implements
21429     to always fail with ENOSYS.  Some functions are actually named
21430     something starting with __ and the normal name is an alias.  */
21431 #if defined __stub_$ac_func || defined __stub___$ac_func
21432 choke me
21433 #endif
21434
21435 int
21436 main ()
21437 {
21438 return $ac_func ();
21439   ;
21440   return 0;
21441 }
21442 _ACEOF
21443 rm -f conftest.$ac_objext conftest$ac_exeext
21444 if { (ac_try="$ac_link"
21445 case "(($ac_try" in
21446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447   *) ac_try_echo=$ac_try;;
21448 esac
21449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21450 $as_echo "$ac_try_echo") >&5
21451   (eval "$ac_link") 2>conftest.er1
21452   ac_status=$?
21453   grep -v '^ *+' conftest.er1 >conftest.err
21454   rm -f conftest.er1
21455   cat conftest.err >&5
21456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457   (exit $ac_status); } && {
21458          test -z "$ac_c_werror_flag" ||
21459          test ! -s conftest.err
21460        } && test -s conftest$ac_exeext && {
21461          test "$cross_compiling" = yes ||
21462          $as_test_x conftest$ac_exeext
21463        }; then
21464   eval "$as_ac_var=yes"
21465 else
21466   $as_echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         eval "$as_ac_var=no"
21470 fi
21471
21472 rm -rf conftest.dSYM
21473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21474       conftest$ac_exeext conftest.$ac_ext
21475 fi
21476 ac_res=`eval 'as_val=${'$as_ac_var'}
21477                  $as_echo "$as_val"'`
21478                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21479 $as_echo "$ac_res" >&6; }
21480 as_val=`eval 'as_val=${'$as_ac_var'}
21481                  $as_echo "$as_val"'`
21482    if test "x$as_val" = x""yes; then
21483   cat >>confdefs.h <<_ACEOF
21484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21485 _ACEOF
21486
21487 fi
21488 done
21489
21490
21491   else
21492
21493
21494
21495  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
21496 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
21497 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
21498   $as_echo_n "(cached) " >&6
21499 else
21500   if test "$cross_compiling" = yes; then
21501        gl_cv_func_gettimeofday_clobber=yes
21502 else
21503   cat >conftest.$ac_ext <<_ACEOF
21504 /* confdefs.h.  */
21505 _ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h.  */
21509 #include <string.h>
21510           #include <sys/time.h>
21511           #include <time.h>
21512           #include <stdlib.h>
21513
21514 int
21515 main ()
21516 {
21517
21518           time_t t = 0;
21519           struct tm *lt;
21520           struct tm saved_lt;
21521           struct timeval tv;
21522           lt = localtime (&t);
21523           saved_lt = *lt;
21524           gettimeofday (&tv, NULL);
21525           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
21526
21527   ;
21528   return 0;
21529 }
21530 _ACEOF
21531 rm -f conftest$ac_exeext
21532 if { (ac_try="$ac_link"
21533 case "(($ac_try" in
21534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535   *) ac_try_echo=$ac_try;;
21536 esac
21537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21538 $as_echo "$ac_try_echo") >&5
21539   (eval "$ac_link") 2>&5
21540   ac_status=$?
21541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21543   { (case "(($ac_try" in
21544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545   *) ac_try_echo=$ac_try;;
21546 esac
21547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21548 $as_echo "$ac_try_echo") >&5
21549   (eval "$ac_try") 2>&5
21550   ac_status=$?
21551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); }; }; then
21553   gl_cv_func_gettimeofday_clobber=no
21554 else
21555   $as_echo "$as_me: program exited with status $ac_status" >&5
21556 $as_echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 ( exit $ac_status )
21560 gl_cv_func_gettimeofday_clobber=yes
21561 fi
21562 rm -rf conftest.dSYM
21563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21564 fi
21565
21566
21567 fi
21568 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
21569 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
21570
21571  if test $gl_cv_func_gettimeofday_clobber = yes; then
21572    REPLACE_GETTIMEOFDAY=1
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21583
21584
21585
21586 for ac_header in sys/timeb.h
21587 do
21588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21590   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21591 $as_echo_n "checking for $ac_header... " >&6; }
21592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21593   $as_echo_n "(cached) " >&6
21594 fi
21595 ac_res=`eval 'as_val=${'$as_ac_Header'}
21596                  $as_echo "$as_val"'`
21597                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21598 $as_echo "$ac_res" >&6; }
21599 else
21600   # Is the header compilable?
21601 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21602 $as_echo_n "checking $ac_header usability... " >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 $ac_includes_default
21610 #include <$ac_header>
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21619 $as_echo "$ac_try_echo") >&5
21620   (eval "$ac_compile") 2>conftest.er1
21621   ac_status=$?
21622   grep -v '^ *+' conftest.er1 >conftest.err
21623   rm -f conftest.er1
21624   cat conftest.err >&5
21625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); } && {
21627          test -z "$ac_c_werror_flag" ||
21628          test ! -s conftest.err
21629        } && test -s conftest.$ac_objext; then
21630   ac_header_compiler=yes
21631 else
21632   $as_echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_header_compiler=no
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21640 $as_echo "$ac_header_compiler" >&6; }
21641
21642 # Is the header present?
21643 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21644 $as_echo_n "checking $ac_header presence... " >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651 #include <$ac_header>
21652 _ACEOF
21653 if { (ac_try="$ac_cpp conftest.$ac_ext"
21654 case "(($ac_try" in
21655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21656   *) ac_try_echo=$ac_try;;
21657 esac
21658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21659 $as_echo "$ac_try_echo") >&5
21660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21661   ac_status=$?
21662   grep -v '^ *+' conftest.er1 >conftest.err
21663   rm -f conftest.er1
21664   cat conftest.err >&5
21665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666   (exit $ac_status); } >/dev/null && {
21667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21668          test ! -s conftest.err
21669        }; then
21670   ac_header_preproc=yes
21671 else
21672   $as_echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675   ac_header_preproc=no
21676 fi
21677
21678 rm -f conftest.err conftest.$ac_ext
21679 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21680 $as_echo "$ac_header_preproc" >&6; }
21681
21682 # So?  What about this header?
21683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21684   yes:no: )
21685     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21686 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21687     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21688 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21689     ac_header_preproc=yes
21690     ;;
21691   no:yes:* )
21692     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21693 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21695 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21697 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21699 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21703 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21704
21705     ;;
21706 esac
21707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21708 $as_echo_n "checking for $ac_header... " >&6; }
21709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21710   $as_echo_n "(cached) " >&6
21711 else
21712   eval "$as_ac_Header=\$ac_header_preproc"
21713 fi
21714 ac_res=`eval 'as_val=${'$as_ac_Header'}
21715                  $as_echo "$as_val"'`
21716                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21717 $as_echo "$ac_res" >&6; }
21718
21719 fi
21720 as_val=`eval 'as_val=${'$as_ac_Header'}
21721                  $as_echo "$as_val"'`
21722    if test "x$as_val" = x""yes; then
21723   cat >>confdefs.h <<_ACEOF
21724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21725 _ACEOF
21726
21727 fi
21728
21729 done
21730
21731
21732 for ac_func in _ftime
21733 do
21734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21736 $as_echo_n "checking for $ac_func... " >&6; }
21737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21738   $as_echo_n "(cached) " >&6
21739 else
21740   cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h.  */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h.  */
21746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21748 #define $ac_func innocuous_$ac_func
21749
21750 /* System header to define __stub macros and hopefully few prototypes,
21751     which can conflict with char $ac_func (); below.
21752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21753     <limits.h> exists even on freestanding compilers.  */
21754
21755 #ifdef __STDC__
21756 # include <limits.h>
21757 #else
21758 # include <assert.h>
21759 #endif
21760
21761 #undef $ac_func
21762
21763 /* Override any GCC internal prototype to avoid an error.
21764    Use char because int might match the return type of a GCC
21765    builtin and then its argument prototype would still apply.  */
21766 #ifdef __cplusplus
21767 extern "C"
21768 #endif
21769 char $ac_func ();
21770 /* The GNU C library defines this for functions which it implements
21771     to always fail with ENOSYS.  Some functions are actually named
21772     something starting with __ and the normal name is an alias.  */
21773 #if defined __stub_$ac_func || defined __stub___$ac_func
21774 choke me
21775 #endif
21776
21777 int
21778 main ()
21779 {
21780 return $ac_func ();
21781   ;
21782   return 0;
21783 }
21784 _ACEOF
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789   *) ac_try_echo=$ac_try;;
21790 esac
21791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21792 $as_echo "$ac_try_echo") >&5
21793   (eval "$ac_link") 2>conftest.er1
21794   ac_status=$?
21795   grep -v '^ *+' conftest.er1 >conftest.err
21796   rm -f conftest.er1
21797   cat conftest.err >&5
21798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799   (exit $ac_status); } && {
21800          test -z "$ac_c_werror_flag" ||
21801          test ! -s conftest.err
21802        } && test -s conftest$ac_exeext && {
21803          test "$cross_compiling" = yes ||
21804          $as_test_x conftest$ac_exeext
21805        }; then
21806   eval "$as_ac_var=yes"
21807 else
21808   $as_echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21810
21811         eval "$as_ac_var=no"
21812 fi
21813
21814 rm -rf conftest.dSYM
21815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21816       conftest$ac_exeext conftest.$ac_ext
21817 fi
21818 ac_res=`eval 'as_val=${'$as_ac_var'}
21819                  $as_echo "$as_val"'`
21820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21821 $as_echo "$ac_res" >&6; }
21822 as_val=`eval 'as_val=${'$as_ac_var'}
21823                  $as_echo "$as_val"'`
21824    if test "x$as_val" = x""yes; then
21825   cat >>confdefs.h <<_ACEOF
21826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21827 _ACEOF
21828
21829 fi
21830 done
21831
21832
21833
21834 cat >>confdefs.h <<\_ACEOF
21835 #define gmtime rpl_gmtime
21836 _ACEOF
21837
21838
21839 cat >>confdefs.h <<\_ACEOF
21840 #define localtime rpl_localtime
21841 _ACEOF
21842
21843
21844
21845 cat >>confdefs.h <<\_ACEOF
21846 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
21847 _ACEOF
21848
21849  fi
21850
21851     { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
21852 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
21853 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
21854   $as_echo_n "(cached) " >&6
21855 else
21856   cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h.  */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h.  */
21862 #include <sys/time.h>
21863               struct timeval c;
21864               int gettimeofday (struct timeval *restrict, void *restrict);
21865
21866 int
21867 main ()
21868 {
21869 /* glibc uses struct timezone * rather than the POSIX void *
21870                  if _GNU_SOURCE is defined.  However, since the only portable
21871                  use of gettimeofday uses NULL as the second parameter, and
21872                  since the glibc definition is actually more typesafe, it is
21873                  not worth wrapping this to get a compliant signature.  */
21874               int (*f) (struct timeval *restrict, void *restrict)
21875                 = gettimeofday;
21876               int x = f (&c, 0);
21877               return !(x | c.tv_sec | c.tv_usec);
21878
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890 $as_echo "$ac_try_echo") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && {
21898          test -z "$ac_c_werror_flag" ||
21899          test ! -s conftest.err
21900        } && test -s conftest.$ac_objext; then
21901   gl_cv_func_gettimeofday_posix_signature=yes
21902 else
21903   $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906         cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <sys/time.h>
21913 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
21914
21915 int
21916 main ()
21917 {
21918
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 rm -f conftest.$ac_objext
21924 if { (ac_try="$ac_compile"
21925 case "(($ac_try" in
21926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21927   *) ac_try_echo=$ac_try;;
21928 esac
21929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21930 $as_echo "$ac_try_echo") >&5
21931   (eval "$ac_compile") 2>conftest.er1
21932   ac_status=$?
21933   grep -v '^ *+' conftest.er1 >conftest.err
21934   rm -f conftest.er1
21935   cat conftest.err >&5
21936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); } && {
21938          test -z "$ac_c_werror_flag" ||
21939          test ! -s conftest.err
21940        } && test -s conftest.$ac_objext; then
21941   gl_cv_func_gettimeofday_posix_signature=almost
21942 else
21943   $as_echo "$as_me: failed program was:" >&5
21944 sed 's/^/| /' conftest.$ac_ext >&5
21945
21946         gl_cv_func_gettimeofday_posix_signature=no
21947 fi
21948
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21950 fi
21951
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 fi
21954 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
21955 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
21956     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
21957       gl_gettimeofday_timezone='struct timezone'
21958     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
21959       REPLACE_GETTIMEOFDAY=1
21960
21961
21962
21963
21964
21965
21966
21967
21968   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
21969
21970
21971
21972 for ac_header in sys/timeb.h
21973 do
21974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21976   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21977 $as_echo_n "checking for $ac_header... " >&6; }
21978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21979   $as_echo_n "(cached) " >&6
21980 fi
21981 ac_res=`eval 'as_val=${'$as_ac_Header'}
21982                  $as_echo "$as_val"'`
21983                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21984 $as_echo "$ac_res" >&6; }
21985 else
21986   # Is the header compilable?
21987 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21988 $as_echo_n "checking $ac_header usability... " >&6; }
21989 cat >conftest.$ac_ext <<_ACEOF
21990 /* confdefs.h.  */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h.  */
21995 $ac_includes_default
21996 #include <$ac_header>
21997 _ACEOF
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006   (eval "$ac_compile") 2>conftest.er1
22007   ac_status=$?
22008   grep -v '^ *+' conftest.er1 >conftest.err
22009   rm -f conftest.er1
22010   cat conftest.err >&5
22011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); } && {
22013          test -z "$ac_c_werror_flag" ||
22014          test ! -s conftest.err
22015        } && test -s conftest.$ac_objext; then
22016   ac_header_compiler=yes
22017 else
22018   $as_echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021         ac_header_compiler=no
22022 fi
22023
22024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22026 $as_echo "$ac_header_compiler" >&6; }
22027
22028 # Is the header present?
22029 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22030 $as_echo_n "checking $ac_header presence... " >&6; }
22031 cat >conftest.$ac_ext <<_ACEOF
22032 /* confdefs.h.  */
22033 _ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h.  */
22037 #include <$ac_header>
22038 _ACEOF
22039 if { (ac_try="$ac_cpp conftest.$ac_ext"
22040 case "(($ac_try" in
22041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042   *) ac_try_echo=$ac_try;;
22043 esac
22044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22045 $as_echo "$ac_try_echo") >&5
22046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } >/dev/null && {
22053          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22054          test ! -s conftest.err
22055        }; then
22056   ac_header_preproc=yes
22057 else
22058   $as_echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061   ac_header_preproc=no
22062 fi
22063
22064 rm -f conftest.err conftest.$ac_ext
22065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22066 $as_echo "$ac_header_preproc" >&6; }
22067
22068 # So?  What about this header?
22069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22070   yes:no: )
22071     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22072 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22074 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22075     ac_header_preproc=yes
22076     ;;
22077   no:yes:* )
22078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22079 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22080     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22081 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22082     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22083 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22084     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22085 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22087 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22089 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22090
22091     ;;
22092 esac
22093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22094 $as_echo_n "checking for $ac_header... " >&6; }
22095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22096   $as_echo_n "(cached) " >&6
22097 else
22098   eval "$as_ac_Header=\$ac_header_preproc"
22099 fi
22100 ac_res=`eval 'as_val=${'$as_ac_Header'}
22101                  $as_echo "$as_val"'`
22102                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22103 $as_echo "$ac_res" >&6; }
22104
22105 fi
22106 as_val=`eval 'as_val=${'$as_ac_Header'}
22107                  $as_echo "$as_val"'`
22108    if test "x$as_val" = x""yes; then
22109   cat >>confdefs.h <<_ACEOF
22110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22111 _ACEOF
22112
22113 fi
22114
22115 done
22116
22117
22118 for ac_func in _ftime
22119 do
22120 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22121 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22122 $as_echo_n "checking for $ac_func... " >&6; }
22123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22124   $as_echo_n "(cached) " >&6
22125 else
22126   cat >conftest.$ac_ext <<_ACEOF
22127 /* confdefs.h.  */
22128 _ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h.  */
22132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22134 #define $ac_func innocuous_$ac_func
22135
22136 /* System header to define __stub macros and hopefully few prototypes,
22137     which can conflict with char $ac_func (); below.
22138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22139     <limits.h> exists even on freestanding compilers.  */
22140
22141 #ifdef __STDC__
22142 # include <limits.h>
22143 #else
22144 # include <assert.h>
22145 #endif
22146
22147 #undef $ac_func
22148
22149 /* Override any GCC internal prototype to avoid an error.
22150    Use char because int might match the return type of a GCC
22151    builtin and then its argument prototype would still apply.  */
22152 #ifdef __cplusplus
22153 extern "C"
22154 #endif
22155 char $ac_func ();
22156 /* The GNU C library defines this for functions which it implements
22157     to always fail with ENOSYS.  Some functions are actually named
22158     something starting with __ and the normal name is an alias.  */
22159 #if defined __stub_$ac_func || defined __stub___$ac_func
22160 choke me
22161 #endif
22162
22163 int
22164 main ()
22165 {
22166 return $ac_func ();
22167   ;
22168   return 0;
22169 }
22170 _ACEOF
22171 rm -f conftest.$ac_objext conftest$ac_exeext
22172 if { (ac_try="$ac_link"
22173 case "(($ac_try" in
22174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22175   *) ac_try_echo=$ac_try;;
22176 esac
22177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22178 $as_echo "$ac_try_echo") >&5
22179   (eval "$ac_link") 2>conftest.er1
22180   ac_status=$?
22181   grep -v '^ *+' conftest.er1 >conftest.err
22182   rm -f conftest.er1
22183   cat conftest.err >&5
22184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); } && {
22186          test -z "$ac_c_werror_flag" ||
22187          test ! -s conftest.err
22188        } && test -s conftest$ac_exeext && {
22189          test "$cross_compiling" = yes ||
22190          $as_test_x conftest$ac_exeext
22191        }; then
22192   eval "$as_ac_var=yes"
22193 else
22194   $as_echo "$as_me: failed program was:" >&5
22195 sed 's/^/| /' conftest.$ac_ext >&5
22196
22197         eval "$as_ac_var=no"
22198 fi
22199
22200 rm -rf conftest.dSYM
22201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22202       conftest$ac_exeext conftest.$ac_ext
22203 fi
22204 ac_res=`eval 'as_val=${'$as_ac_var'}
22205                  $as_echo "$as_val"'`
22206                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22207 $as_echo "$ac_res" >&6; }
22208 as_val=`eval 'as_val=${'$as_ac_var'}
22209                  $as_echo "$as_val"'`
22210    if test "x$as_val" = x""yes; then
22211   cat >>confdefs.h <<_ACEOF
22212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22213 _ACEOF
22214
22215 fi
22216 done
22217
22218
22219     fi
22220   fi
22221
22222 cat >>confdefs.h <<_ACEOF
22223 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
22224 _ACEOF
22225
22226
22227
22228
22229
22230   GNULIB_GETTIMEOFDAY=1
22231
22232
22233
22234 cat >>confdefs.h <<\_ACEOF
22235 #define GNULIB_TEST_GETTIMEOFDAY 1
22236 _ACEOF
22237
22238
22239
22240   # Code from module havelib:
22241   # Code from module hostent:
22242
22243                   HOSTENT_LIB=
22244   gl_saved_libs="$LIBS"
22245   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22246 $as_echo_n "checking for library containing gethostbyname... " >&6; }
22247 if test "${ac_cv_search_gethostbyname+set}" = set; then
22248   $as_echo_n "(cached) " >&6
22249 else
22250   ac_func_search_save_LIBS=$LIBS
22251 cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257
22258 /* Override any GCC internal prototype to avoid an error.
22259    Use char because int might match the return type of a GCC
22260    builtin and then its argument prototype would still apply.  */
22261 #ifdef __cplusplus
22262 extern "C"
22263 #endif
22264 char gethostbyname ();
22265 int
22266 main ()
22267 {
22268 return gethostbyname ();
22269   ;
22270   return 0;
22271 }
22272 _ACEOF
22273 for ac_lib in '' nsl network net; do
22274   if test -z "$ac_lib"; then
22275     ac_res="none required"
22276   else
22277     ac_res=-l$ac_lib
22278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22279   fi
22280   rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284   *) ac_try_echo=$ac_try;;
22285 esac
22286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22287 $as_echo "$ac_try_echo") >&5
22288   (eval "$ac_link") 2>conftest.er1
22289   ac_status=$?
22290   grep -v '^ *+' conftest.er1 >conftest.err
22291   rm -f conftest.er1
22292   cat conftest.err >&5
22293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); } && {
22295          test -z "$ac_c_werror_flag" ||
22296          test ! -s conftest.err
22297        } && test -s conftest$ac_exeext && {
22298          test "$cross_compiling" = yes ||
22299          $as_test_x conftest$ac_exeext
22300        }; then
22301   ac_cv_search_gethostbyname=$ac_res
22302 else
22303   $as_echo "$as_me: failed program was:" >&5
22304 sed 's/^/| /' conftest.$ac_ext >&5
22305
22306
22307 fi
22308
22309 rm -rf conftest.dSYM
22310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22311       conftest$ac_exeext
22312   if test "${ac_cv_search_gethostbyname+set}" = set; then
22313   break
22314 fi
22315 done
22316 if test "${ac_cv_search_gethostbyname+set}" = set; then
22317   :
22318 else
22319   ac_cv_search_gethostbyname=no
22320 fi
22321 rm conftest.$ac_ext
22322 LIBS=$ac_func_search_save_LIBS
22323 fi
22324 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
22325 $as_echo "$ac_cv_search_gethostbyname" >&6; }
22326 ac_res=$ac_cv_search_gethostbyname
22327 if test "$ac_res" != no; then
22328   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22329   if test "$ac_cv_search_gethostbyname" != "none required"; then
22330        HOSTENT_LIB="$ac_cv_search_gethostbyname"
22331      fi
22332 fi
22333
22334   LIBS="$gl_saved_libs"
22335   if test -z "$HOSTENT_LIB"; then
22336
22337 for ac_func in gethostbyname
22338 do
22339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22340 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22341 $as_echo_n "checking for $ac_func... " >&6; }
22342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22343   $as_echo_n "(cached) " >&6
22344 else
22345   cat >conftest.$ac_ext <<_ACEOF
22346 /* confdefs.h.  */
22347 _ACEOF
22348 cat confdefs.h >>conftest.$ac_ext
22349 cat >>conftest.$ac_ext <<_ACEOF
22350 /* end confdefs.h.  */
22351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22353 #define $ac_func innocuous_$ac_func
22354
22355 /* System header to define __stub macros and hopefully few prototypes,
22356     which can conflict with char $ac_func (); below.
22357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22358     <limits.h> exists even on freestanding compilers.  */
22359
22360 #ifdef __STDC__
22361 # include <limits.h>
22362 #else
22363 # include <assert.h>
22364 #endif
22365
22366 #undef $ac_func
22367
22368 /* Override any GCC internal prototype to avoid an error.
22369    Use char because int might match the return type of a GCC
22370    builtin and then its argument prototype would still apply.  */
22371 #ifdef __cplusplus
22372 extern "C"
22373 #endif
22374 char $ac_func ();
22375 /* The GNU C library defines this for functions which it implements
22376     to always fail with ENOSYS.  Some functions are actually named
22377     something starting with __ and the normal name is an alias.  */
22378 #if defined __stub_$ac_func || defined __stub___$ac_func
22379 choke me
22380 #endif
22381
22382 int
22383 main ()
22384 {
22385 return $ac_func ();
22386   ;
22387   return 0;
22388 }
22389 _ACEOF
22390 rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22397 $as_echo "$ac_try_echo") >&5
22398   (eval "$ac_link") 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } && {
22405          test -z "$ac_c_werror_flag" ||
22406          test ! -s conftest.err
22407        } && test -s conftest$ac_exeext && {
22408          test "$cross_compiling" = yes ||
22409          $as_test_x conftest$ac_exeext
22410        }; then
22411   eval "$as_ac_var=yes"
22412 else
22413   $as_echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416         eval "$as_ac_var=no"
22417 fi
22418
22419 rm -rf conftest.dSYM
22420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22421       conftest$ac_exeext conftest.$ac_ext
22422 fi
22423 ac_res=`eval 'as_val=${'$as_ac_var'}
22424                  $as_echo "$as_val"'`
22425                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22426 $as_echo "$ac_res" >&6; }
22427 as_val=`eval 'as_val=${'$as_ac_var'}
22428                  $as_echo "$as_val"'`
22429    if test "x$as_val" = x""yes; then
22430   cat >>confdefs.h <<_ACEOF
22431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22432 _ACEOF
22433
22434 else
22435
22436       { $as_echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
22437 $as_echo_n "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; }
22438 if test "${gl_cv_w32_gethostbyname+set}" = set; then
22439   $as_echo_n "(cached) " >&6
22440 else
22441   gl_cv_w32_gethostbyname=no
22442          gl_save_LIBS="$LIBS"
22443          LIBS="$LIBS -lws2_32"
22444          cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450
22451 #ifdef HAVE_WINSOCK2_H
22452 #include <winsock2.h>
22453 #endif
22454 #include <stddef.h>
22455
22456 int
22457 main ()
22458 {
22459 gethostbyname(NULL);
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22471 $as_echo "$ac_try_echo") >&5
22472   (eval "$ac_link") 2>conftest.er1
22473   ac_status=$?
22474   grep -v '^ *+' conftest.er1 >conftest.err
22475   rm -f conftest.er1
22476   cat conftest.err >&5
22477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); } && {
22479          test -z "$ac_c_werror_flag" ||
22480          test ! -s conftest.err
22481        } && test -s conftest$ac_exeext && {
22482          test "$cross_compiling" = yes ||
22483          $as_test_x conftest$ac_exeext
22484        }; then
22485   gl_cv_w32_gethostbyname=yes
22486 else
22487   $as_echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490
22491 fi
22492
22493 rm -rf conftest.dSYM
22494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22495       conftest$ac_exeext conftest.$ac_ext
22496          LIBS="$gl_save_LIBS"
22497
22498 fi
22499 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
22500 $as_echo "$gl_cv_w32_gethostbyname" >&6; }
22501       if test "$gl_cv_w32_gethostbyname" = "yes"; then
22502         HOSTENT_LIB="-lws2_32"
22503       fi
22504
22505 fi
22506 done
22507
22508   fi
22509
22510
22511   # Code from module include_next:
22512   # Code from module inet_ntop:
22513
22514
22515
22516
22517     :
22518
22519
22520       gl_save_LIBS=$LIBS
22521   { $as_echo "$as_me:$LINENO: checking for library containing inet_ntop" >&5
22522 $as_echo_n "checking for library containing inet_ntop... " >&6; }
22523 if test "${ac_cv_search_inet_ntop+set}" = set; then
22524   $as_echo_n "(cached) " >&6
22525 else
22526   ac_func_search_save_LIBS=$LIBS
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533
22534 /* Override any GCC internal prototype to avoid an error.
22535    Use char because int might match the return type of a GCC
22536    builtin and then its argument prototype would still apply.  */
22537 #ifdef __cplusplus
22538 extern "C"
22539 #endif
22540 char inet_ntop ();
22541 int
22542 main ()
22543 {
22544 return inet_ntop ();
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 for ac_lib in '' nsl; do
22550   if test -z "$ac_lib"; then
22551     ac_res="none required"
22552   else
22553     ac_res=-l$ac_lib
22554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22555   fi
22556   rm -f conftest.$ac_objext conftest$ac_exeext
22557 if { (ac_try="$ac_link"
22558 case "(($ac_try" in
22559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560   *) ac_try_echo=$ac_try;;
22561 esac
22562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22563 $as_echo "$ac_try_echo") >&5
22564   (eval "$ac_link") 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && {
22571          test -z "$ac_c_werror_flag" ||
22572          test ! -s conftest.err
22573        } && test -s conftest$ac_exeext && {
22574          test "$cross_compiling" = yes ||
22575          $as_test_x conftest$ac_exeext
22576        }; then
22577   ac_cv_search_inet_ntop=$ac_res
22578 else
22579   $as_echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582
22583 fi
22584
22585 rm -rf conftest.dSYM
22586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22587       conftest$ac_exeext
22588   if test "${ac_cv_search_inet_ntop+set}" = set; then
22589   break
22590 fi
22591 done
22592 if test "${ac_cv_search_inet_ntop+set}" = set; then
22593   :
22594 else
22595   ac_cv_search_inet_ntop=no
22596 fi
22597 rm conftest.$ac_ext
22598 LIBS=$ac_func_search_save_LIBS
22599 fi
22600 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntop" >&5
22601 $as_echo "$ac_cv_search_inet_ntop" >&6; }
22602 ac_res=$ac_cv_search_inet_ntop
22603 if test "$ac_res" != no; then
22604   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22605
22606 else
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616 for ac_func in inet_ntop
22617 do
22618 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22619 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22620 $as_echo_n "checking for $ac_func... " >&6; }
22621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22622   $as_echo_n "(cached) " >&6
22623 else
22624   cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22632 #define $ac_func innocuous_$ac_func
22633
22634 /* System header to define __stub macros and hopefully few prototypes,
22635     which can conflict with char $ac_func (); below.
22636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22637     <limits.h> exists even on freestanding compilers.  */
22638
22639 #ifdef __STDC__
22640 # include <limits.h>
22641 #else
22642 # include <assert.h>
22643 #endif
22644
22645 #undef $ac_func
22646
22647 /* Override any GCC internal prototype to avoid an error.
22648    Use char because int might match the return type of a GCC
22649    builtin and then its argument prototype would still apply.  */
22650 #ifdef __cplusplus
22651 extern "C"
22652 #endif
22653 char $ac_func ();
22654 /* The GNU C library defines this for functions which it implements
22655     to always fail with ENOSYS.  Some functions are actually named
22656     something starting with __ and the normal name is an alias.  */
22657 #if defined __stub_$ac_func || defined __stub___$ac_func
22658 choke me
22659 #endif
22660
22661 int
22662 main ()
22663 {
22664 return $ac_func ();
22665   ;
22666   return 0;
22667 }
22668 _ACEOF
22669 rm -f conftest.$ac_objext conftest$ac_exeext
22670 if { (ac_try="$ac_link"
22671 case "(($ac_try" in
22672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673   *) ac_try_echo=$ac_try;;
22674 esac
22675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22676 $as_echo "$ac_try_echo") >&5
22677   (eval "$ac_link") 2>conftest.er1
22678   ac_status=$?
22679   grep -v '^ *+' conftest.er1 >conftest.err
22680   rm -f conftest.er1
22681   cat conftest.err >&5
22682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683   (exit $ac_status); } && {
22684          test -z "$ac_c_werror_flag" ||
22685          test ! -s conftest.err
22686        } && test -s conftest$ac_exeext && {
22687          test "$cross_compiling" = yes ||
22688          $as_test_x conftest$ac_exeext
22689        }; then
22690   eval "$as_ac_var=yes"
22691 else
22692   $as_echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695         eval "$as_ac_var=no"
22696 fi
22697
22698 rm -rf conftest.dSYM
22699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700       conftest$ac_exeext conftest.$ac_ext
22701 fi
22702 ac_res=`eval 'as_val=${'$as_ac_var'}
22703                  $as_echo "$as_val"'`
22704                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22705 $as_echo "$ac_res" >&6; }
22706 as_val=`eval 'as_val=${'$as_ac_var'}
22707                  $as_echo "$as_val"'`
22708    if test "x$as_val" = x""yes; then
22709   cat >>confdefs.h <<_ACEOF
22710 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22711 _ACEOF
22712
22713 else
22714
22715     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
22716
22717 fi
22718 done
22719
22720
22721 fi
22722
22723   LIBS=$gl_save_LIBS
22724   INET_NTOP_LIB=
22725   if test "$ac_cv_search_inet_ntop" != "no" &&
22726      test "$ac_cv_search_inet_ntop" != "none required"; then
22727     INET_NTOP_LIB="$ac_cv_search_inet_ntop"
22728   fi
22729
22730
22731
22732   { $as_echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
22733 $as_echo_n "checking whether inet_ntop is declared... " >&6; }
22734 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
22735   $as_echo_n "(cached) " >&6
22736 else
22737   cat >conftest.$ac_ext <<_ACEOF
22738 /* confdefs.h.  */
22739 _ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h.  */
22743 #include <arpa/inet.h>
22744
22745 int
22746 main ()
22747 {
22748 #ifndef inet_ntop
22749   (void) inet_ntop;
22750 #endif
22751
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 rm -f conftest.$ac_objext
22757 if { (ac_try="$ac_compile"
22758 case "(($ac_try" in
22759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760   *) ac_try_echo=$ac_try;;
22761 esac
22762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22763 $as_echo "$ac_try_echo") >&5
22764   (eval "$ac_compile") 2>conftest.er1
22765   ac_status=$?
22766   grep -v '^ *+' conftest.er1 >conftest.err
22767   rm -f conftest.er1
22768   cat conftest.err >&5
22769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); } && {
22771          test -z "$ac_c_werror_flag" ||
22772          test ! -s conftest.err
22773        } && test -s conftest.$ac_objext; then
22774   ac_cv_have_decl_inet_ntop=yes
22775 else
22776   $as_echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22778
22779         ac_cv_have_decl_inet_ntop=no
22780 fi
22781
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783 fi
22784 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
22785 $as_echo "$ac_cv_have_decl_inet_ntop" >&6; }
22786 if test "x$ac_cv_have_decl_inet_ntop" = x""yes; then
22787
22788 cat >>confdefs.h <<_ACEOF
22789 #define HAVE_DECL_INET_NTOP 1
22790 _ACEOF
22791
22792
22793 else
22794   cat >>confdefs.h <<_ACEOF
22795 #define HAVE_DECL_INET_NTOP 0
22796 _ACEOF
22797
22798
22799 fi
22800
22801
22802   if test $ac_cv_have_decl_inet_ntop = no; then
22803     HAVE_DECL_INET_NTOP=0
22804   fi
22805
22806
22807
22808
22809
22810
22811
22812   GNULIB_INET_NTOP=1
22813
22814
22815   # Code from module inet_pton:
22816
22817
22818
22819
22820     :
22821
22822
22823       gl_save_LIBS=$LIBS
22824   { $as_echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
22825 $as_echo_n "checking for library containing inet_pton... " >&6; }
22826 if test "${ac_cv_search_inet_pton+set}" = set; then
22827   $as_echo_n "(cached) " >&6
22828 else
22829   ac_func_search_save_LIBS=$LIBS
22830 cat >conftest.$ac_ext <<_ACEOF
22831 /* confdefs.h.  */
22832 _ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h.  */
22836
22837 /* Override any GCC internal prototype to avoid an error.
22838    Use char because int might match the return type of a GCC
22839    builtin and then its argument prototype would still apply.  */
22840 #ifdef __cplusplus
22841 extern "C"
22842 #endif
22843 char inet_pton ();
22844 int
22845 main ()
22846 {
22847 return inet_pton ();
22848   ;
22849   return 0;
22850 }
22851 _ACEOF
22852 for ac_lib in '' nsl; do
22853   if test -z "$ac_lib"; then
22854     ac_res="none required"
22855   else
22856     ac_res=-l$ac_lib
22857     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22858   fi
22859   rm -f conftest.$ac_objext conftest$ac_exeext
22860 if { (ac_try="$ac_link"
22861 case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22866 $as_echo "$ac_try_echo") >&5
22867   (eval "$ac_link") 2>conftest.er1
22868   ac_status=$?
22869   grep -v '^ *+' conftest.er1 >conftest.err
22870   rm -f conftest.er1
22871   cat conftest.err >&5
22872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); } && {
22874          test -z "$ac_c_werror_flag" ||
22875          test ! -s conftest.err
22876        } && test -s conftest$ac_exeext && {
22877          test "$cross_compiling" = yes ||
22878          $as_test_x conftest$ac_exeext
22879        }; then
22880   ac_cv_search_inet_pton=$ac_res
22881 else
22882   $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885
22886 fi
22887
22888 rm -rf conftest.dSYM
22889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22890       conftest$ac_exeext
22891   if test "${ac_cv_search_inet_pton+set}" = set; then
22892   break
22893 fi
22894 done
22895 if test "${ac_cv_search_inet_pton+set}" = set; then
22896   :
22897 else
22898   ac_cv_search_inet_pton=no
22899 fi
22900 rm conftest.$ac_ext
22901 LIBS=$ac_func_search_save_LIBS
22902 fi
22903 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
22904 $as_echo "$ac_cv_search_inet_pton" >&6; }
22905 ac_res=$ac_cv_search_inet_pton
22906 if test "$ac_res" != no; then
22907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22908
22909 else
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919 for ac_func in inet_pton
22920 do
22921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22922 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22923 $as_echo_n "checking for $ac_func... " >&6; }
22924 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22925   $as_echo_n "(cached) " >&6
22926 else
22927   cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22935 #define $ac_func innocuous_$ac_func
22936
22937 /* System header to define __stub macros and hopefully few prototypes,
22938     which can conflict with char $ac_func (); below.
22939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940     <limits.h> exists even on freestanding compilers.  */
22941
22942 #ifdef __STDC__
22943 # include <limits.h>
22944 #else
22945 # include <assert.h>
22946 #endif
22947
22948 #undef $ac_func
22949
22950 /* Override any GCC internal prototype to avoid an error.
22951    Use char because int might match the return type of a GCC
22952    builtin and then its argument prototype would still apply.  */
22953 #ifdef __cplusplus
22954 extern "C"
22955 #endif
22956 char $ac_func ();
22957 /* The GNU C library defines this for functions which it implements
22958     to always fail with ENOSYS.  Some functions are actually named
22959     something starting with __ and the normal name is an alias.  */
22960 #if defined __stub_$ac_func || defined __stub___$ac_func
22961 choke me
22962 #endif
22963
22964 int
22965 main ()
22966 {
22967 return $ac_func ();
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (ac_try="$ac_link"
22974 case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22979 $as_echo "$ac_try_echo") >&5
22980   (eval "$ac_link") 2>conftest.er1
22981   ac_status=$?
22982   grep -v '^ *+' conftest.er1 >conftest.err
22983   rm -f conftest.er1
22984   cat conftest.err >&5
22985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } && {
22987          test -z "$ac_c_werror_flag" ||
22988          test ! -s conftest.err
22989        } && test -s conftest$ac_exeext && {
22990          test "$cross_compiling" = yes ||
22991          $as_test_x conftest$ac_exeext
22992        }; then
22993   eval "$as_ac_var=yes"
22994 else
22995   $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         eval "$as_ac_var=no"
22999 fi
23000
23001 rm -rf conftest.dSYM
23002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23003       conftest$ac_exeext conftest.$ac_ext
23004 fi
23005 ac_res=`eval 'as_val=${'$as_ac_var'}
23006                  $as_echo "$as_val"'`
23007                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23008 $as_echo "$ac_res" >&6; }
23009 as_val=`eval 'as_val=${'$as_ac_var'}
23010                  $as_echo "$as_val"'`
23011    if test "x$as_val" = x""yes; then
23012   cat >>confdefs.h <<_ACEOF
23013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23014 _ACEOF
23015
23016 else
23017
23018     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
23019
23020 fi
23021 done
23022
23023
23024 fi
23025
23026   LIBS=$gl_save_LIBS
23027   INET_PTON_LIB=
23028   if test "$ac_cv_search_inet_pton" != "no" &&
23029      test "$ac_cv_search_inet_pton" != "none required"; then
23030     INET_PTON_LIB="$ac_cv_search_inet_pton"
23031   fi
23032
23033
23034
23035   { $as_echo "$as_me:$LINENO: checking whether inet_pton is declared" >&5
23036 $as_echo_n "checking whether inet_pton is declared... " >&6; }
23037 if test "${ac_cv_have_decl_inet_pton+set}" = set; then
23038   $as_echo_n "(cached) " >&6
23039 else
23040   cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h.  */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h.  */
23046 #include <arpa/inet.h>
23047
23048 int
23049 main ()
23050 {
23051 #ifndef inet_pton
23052   (void) inet_pton;
23053 #endif
23054
23055   ;
23056   return 0;
23057 }
23058 _ACEOF
23059 rm -f conftest.$ac_objext
23060 if { (ac_try="$ac_compile"
23061 case "(($ac_try" in
23062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063   *) ac_try_echo=$ac_try;;
23064 esac
23065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23066 $as_echo "$ac_try_echo") >&5
23067   (eval "$ac_compile") 2>conftest.er1
23068   ac_status=$?
23069   grep -v '^ *+' conftest.er1 >conftest.err
23070   rm -f conftest.er1
23071   cat conftest.err >&5
23072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073   (exit $ac_status); } && {
23074          test -z "$ac_c_werror_flag" ||
23075          test ! -s conftest.err
23076        } && test -s conftest.$ac_objext; then
23077   ac_cv_have_decl_inet_pton=yes
23078 else
23079   $as_echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082         ac_cv_have_decl_inet_pton=no
23083 fi
23084
23085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 fi
23087 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_pton" >&5
23088 $as_echo "$ac_cv_have_decl_inet_pton" >&6; }
23089 if test "x$ac_cv_have_decl_inet_pton" = x""yes; then
23090
23091 cat >>confdefs.h <<_ACEOF
23092 #define HAVE_DECL_INET_PTON 1
23093 _ACEOF
23094
23095
23096 else
23097   cat >>confdefs.h <<_ACEOF
23098 #define HAVE_DECL_INET_PTON 0
23099 _ACEOF
23100
23101
23102 fi
23103
23104
23105   if test $ac_cv_have_decl_inet_pton = no; then
23106     HAVE_DECL_INET_PTON=0
23107   fi
23108
23109
23110
23111
23112
23113
23114
23115   GNULIB_INET_PTON=1
23116
23117
23118   # Code from module langinfo:
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128   :
23129
23130
23131
23132
23133
23134
23135
23136      if test $gl_cv_have_include_next = yes; then
23137        gl_cv_next_langinfo_h='<'langinfo.h'>'
23138      else
23139        { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
23140 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
23141 if test "${gl_cv_next_langinfo_h+set}" = set; then
23142   $as_echo_n "(cached) " >&6
23143 else
23144
23145           if test $ac_cv_header_langinfo_h = yes; then
23146             cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 #include <langinfo.h>
23153
23154 _ACEOF
23155                                                                                                 case "$host_os" in
23156               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23157               *)    gl_absname_cpp="$ac_cpp" ;;
23158             esac
23159                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23160                sed -n '\#/langinfo.h#{
23161                  s#.*"\(.*/langinfo.h\)".*#\1#
23162                  s#^/[^/]#//&#
23163                  p
23164                  q
23165                }'`'"'
23166           else
23167             gl_cv_next_langinfo_h='<'langinfo.h'>'
23168           fi
23169
23170 fi
23171 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
23172 $as_echo "$gl_cv_next_langinfo_h" >&6; }
23173      fi
23174      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
23175
23176      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23177        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23178        gl_next_as_first_directive='<'langinfo.h'>'
23179      else
23180        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23181        gl_next_as_first_directive=$gl_cv_next_langinfo_h
23182      fi
23183      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
23184
23185
23186
23187
23188     HAVE_LANGINFO_CODESET=0
23189   HAVE_LANGINFO_ERA=0
23190
23191   :
23192
23193
23194
23195
23196
23197   if test $ac_cv_header_langinfo_h = yes; then
23198     HAVE_LANGINFO_H=1
23199             { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
23200 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
23201 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
23202   $as_echo_n "(cached) " >&6
23203 else
23204   cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210 #include <langinfo.h>
23211 int a = CODESET;
23212
23213 int
23214 main ()
23215 {
23216
23217   ;
23218   return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225   *) ac_try_echo=$ac_try;;
23226 esac
23227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23228 $as_echo "$ac_try_echo") >&5
23229   (eval "$ac_compile") 2>conftest.er1
23230   ac_status=$?
23231   grep -v '^ *+' conftest.er1 >conftest.err
23232   rm -f conftest.er1
23233   cat conftest.err >&5
23234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); } && {
23236          test -z "$ac_c_werror_flag" ||
23237          test ! -s conftest.err
23238        } && test -s conftest.$ac_objext; then
23239   gl_cv_header_langinfo_codeset=yes
23240 else
23241   $as_echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244         gl_cv_header_langinfo_codeset=no
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248
23249 fi
23250 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
23251 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
23252     if test $gl_cv_header_langinfo_codeset = yes; then
23253       HAVE_LANGINFO_CODESET=1
23254     fi
23255     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
23256 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
23257 if test "${gl_cv_header_langinfo_era+set}" = set; then
23258   $as_echo_n "(cached) " >&6
23259 else
23260   cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266 #include <langinfo.h>
23267 int a = ERA;
23268
23269 int
23270 main ()
23271 {
23272
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23284 $as_echo "$ac_try_echo") >&5
23285   (eval "$ac_compile") 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } && {
23292          test -z "$ac_c_werror_flag" ||
23293          test ! -s conftest.err
23294        } && test -s conftest.$ac_objext; then
23295   gl_cv_header_langinfo_era=yes
23296 else
23297   $as_echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300         gl_cv_header_langinfo_era=no
23301 fi
23302
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304
23305 fi
23306 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
23307 $as_echo "$gl_cv_header_langinfo_era" >&6; }
23308     if test $gl_cv_header_langinfo_era = yes; then
23309       HAVE_LANGINFO_ERA=1
23310     fi
23311   else
23312     HAVE_LANGINFO_H=0
23313   fi
23314
23315
23316
23317
23318
23319
23320   for gl_func in nl_langinfo; do
23321     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23322     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23323 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23324 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23325   $as_echo_n "(cached) " >&6
23326 else
23327   cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333 #include <langinfo.h>
23334
23335 int
23336 main ()
23337 {
23338 #undef $gl_func
23339   (void) $gl_func;
23340   ;
23341   return 0;
23342 }
23343 _ACEOF
23344 rm -f conftest.$ac_objext
23345 if { (ac_try="$ac_compile"
23346 case "(($ac_try" in
23347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23348   *) ac_try_echo=$ac_try;;
23349 esac
23350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23351 $as_echo "$ac_try_echo") >&5
23352   (eval "$ac_compile") 2>conftest.er1
23353   ac_status=$?
23354   grep -v '^ *+' conftest.er1 >conftest.err
23355   rm -f conftest.er1
23356   cat conftest.err >&5
23357   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358   (exit $ac_status); } && {
23359          test -z "$ac_c_werror_flag" ||
23360          test ! -s conftest.err
23361        } && test -s conftest.$ac_objext; then
23362   eval "$as_gl_Symbol=yes"
23363 else
23364   $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23366
23367         eval "$as_gl_Symbol=no"
23368 fi
23369
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23371 fi
23372 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23373                  $as_echo "$as_val"'`
23374                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23375 $as_echo "$ac_res" >&6; }
23376      as_val=`eval 'as_val=${'$as_gl_Symbol'}
23377                  $as_echo "$as_val"'`
23378    if test "x$as_val" = x""yes; then
23379   cat >>confdefs.h <<_ACEOF
23380 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23381 _ACEOF
23382
23383                      eval ac_cv_have_decl_$gl_func=yes
23384 fi
23385
23386       done
23387
23388
23389   # Code from module localcharset:
23390
23391
23392
23393
23394   :
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
23405
23406   # Code from module lock:
23407
23408
23409   if test "$gl_threads_api" = posix; then
23410     # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
23411     # pthread_rwlock_* functions.
23412     { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
23413 $as_echo_n "checking for pthread_rwlock_t... " >&6; }
23414 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
23415   $as_echo_n "(cached) " >&6
23416 else
23417   ac_cv_type_pthread_rwlock_t=no
23418 cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 #include <pthread.h>
23425
23426 int
23427 main ()
23428 {
23429 if (sizeof (pthread_rwlock_t))
23430        return 0;
23431   ;
23432   return 0;
23433 }
23434 _ACEOF
23435 rm -f conftest.$ac_objext
23436 if { (ac_try="$ac_compile"
23437 case "(($ac_try" in
23438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439   *) ac_try_echo=$ac_try;;
23440 esac
23441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23442 $as_echo "$ac_try_echo") >&5
23443   (eval "$ac_compile") 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } && {
23450          test -z "$ac_c_werror_flag" ||
23451          test ! -s conftest.err
23452        } && test -s conftest.$ac_objext; then
23453   cat >conftest.$ac_ext <<_ACEOF
23454 /* confdefs.h.  */
23455 _ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h.  */
23459 #include <pthread.h>
23460
23461 int
23462 main ()
23463 {
23464 if (sizeof ((pthread_rwlock_t)))
23465           return 0;
23466   ;
23467   return 0;
23468 }
23469 _ACEOF
23470 rm -f conftest.$ac_objext
23471 if { (ac_try="$ac_compile"
23472 case "(($ac_try" in
23473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474   *) ac_try_echo=$ac_try;;
23475 esac
23476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478   (eval "$ac_compile") 2>conftest.er1
23479   ac_status=$?
23480   grep -v '^ *+' conftest.er1 >conftest.err
23481   rm -f conftest.er1
23482   cat conftest.err >&5
23483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); } && {
23485          test -z "$ac_c_werror_flag" ||
23486          test ! -s conftest.err
23487        } && test -s conftest.$ac_objext; then
23488   :
23489 else
23490   $as_echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493         ac_cv_type_pthread_rwlock_t=yes
23494 fi
23495
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23497 else
23498   $as_echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23500
23501
23502 fi
23503
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23505 fi
23506 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
23507 $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
23508 if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
23509
23510 cat >>confdefs.h <<\_ACEOF
23511 #define HAVE_PTHREAD_RWLOCK 1
23512 _ACEOF
23513
23514 fi
23515
23516     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23517     cat >conftest.$ac_ext <<_ACEOF
23518
23519       /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 #include <pthread.h>
23525 int
23526 main ()
23527 {
23528
23529 #if __FreeBSD__ == 4
23530 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23531 #else
23532 int x = (int)PTHREAD_MUTEX_RECURSIVE;
23533 return !x;
23534 #endif
23535
23536   ;
23537   return 0;
23538 }
23539 _ACEOF
23540 rm -f conftest.$ac_objext
23541 if { (ac_try="$ac_compile"
23542 case "(($ac_try" in
23543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544   *) ac_try_echo=$ac_try;;
23545 esac
23546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23547 $as_echo "$ac_try_echo") >&5
23548   (eval "$ac_compile") 2>conftest.er1
23549   ac_status=$?
23550   grep -v '^ *+' conftest.er1 >conftest.err
23551   rm -f conftest.er1
23552   cat conftest.err >&5
23553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); } && {
23555          test -z "$ac_c_werror_flag" ||
23556          test ! -s conftest.err
23557        } && test -s conftest.$ac_objext; then
23558
23559 cat >>confdefs.h <<\_ACEOF
23560 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
23561 _ACEOF
23562
23563 else
23564   $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23566
23567
23568 fi
23569
23570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23571   fi
23572
23573
23574
23575
23576   # Code from module lseek:
23577
23578
23579
23580   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
23581 $as_echo_n "checking whether lseek detects pipes... " >&6; }
23582 if test "${gl_cv_func_lseek_pipe+set}" = set; then
23583   $as_echo_n "(cached) " >&6
23584 else
23585   if test $cross_compiling = no; then
23586        cat >conftest.$ac_ext <<_ACEOF
23587 /* confdefs.h.  */
23588 _ACEOF
23589 cat confdefs.h >>conftest.$ac_ext
23590 cat >>conftest.$ac_ext <<_ACEOF
23591 /* end confdefs.h.  */
23592
23593 #include <sys/types.h> /* for off_t */
23594 #include <stdio.h> /* for SEEK_CUR */
23595 #include <unistd.h>
23596 int
23597 main ()
23598 {
23599
23600   /* Exit with success only if stdin is seekable.  */
23601   return lseek (0, (off_t)0, SEEK_CUR) < 0;
23602
23603   ;
23604   return 0;
23605 }
23606 _ACEOF
23607 rm -f conftest.$ac_objext conftest$ac_exeext
23608 if { (ac_try="$ac_link"
23609 case "(($ac_try" in
23610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611   *) ac_try_echo=$ac_try;;
23612 esac
23613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615   (eval "$ac_link") 2>conftest.er1
23616   ac_status=$?
23617   grep -v '^ *+' conftest.er1 >conftest.err
23618   rm -f conftest.er1
23619   cat conftest.err >&5
23620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); } && {
23622          test -z "$ac_c_werror_flag" ||
23623          test ! -s conftest.err
23624        } && test -s conftest$ac_exeext && {
23625          test "$cross_compiling" = yes ||
23626          $as_test_x conftest$ac_exeext
23627        }; then
23628   if test -s conftest$ac_exeext \
23629              && ./conftest$ac_exeext < conftest.$ac_ext \
23630              && test 1 = "`echo hi \
23631                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
23632             gl_cv_func_lseek_pipe=yes
23633           else
23634             gl_cv_func_lseek_pipe=no
23635           fi
23636 else
23637   $as_echo "$as_me: failed program was:" >&5
23638 sed 's/^/| /' conftest.$ac_ext >&5
23639
23640         gl_cv_func_lseek_pipe=no
23641 fi
23642
23643 rm -rf conftest.dSYM
23644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23645       conftest$ac_exeext conftest.$ac_ext
23646      else
23647        cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653
23654 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
23655 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
23656   Choke me.
23657 #endif
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23666 $as_echo "$ac_try_echo") >&5
23667   (eval "$ac_compile") 2>conftest.er1
23668   ac_status=$?
23669   grep -v '^ *+' conftest.er1 >conftest.err
23670   rm -f conftest.er1
23671   cat conftest.err >&5
23672   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673   (exit $ac_status); } && {
23674          test -z "$ac_c_werror_flag" ||
23675          test ! -s conftest.err
23676        } && test -s conftest.$ac_objext; then
23677   gl_cv_func_lseek_pipe=yes
23678 else
23679   $as_echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682         gl_cv_func_lseek_pipe=no
23683 fi
23684
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23686      fi
23687 fi
23688 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
23689 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
23690   if test $gl_cv_func_lseek_pipe = no; then
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
23701
23702
23703   REPLACE_LSEEK=1
23704
23705 cat >>confdefs.h <<\_ACEOF
23706 #define LSEEK_PIPE_BROKEN 1
23707 _ACEOF
23708
23709
23710   fi
23711
23712
23713
23714
23715   GNULIB_LSEEK=1
23716
23717
23718
23719 cat >>confdefs.h <<\_ACEOF
23720 #define GNULIB_TEST_LSEEK 1
23721 _ACEOF
23722
23723
23724
23725   # Code from module lstat:
23726
23727
23728
23729   :
23730
23731
23732
23733
23734
23735   if test $ac_cv_func_lstat = yes; then
23736
23737     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
23738             REPLACE_LSTAT=1
23739     fi
23740     # Prerequisites of lib/lstat.c.
23741
23742   else
23743     HAVE_LSTAT=0
23744   fi
23745
23746
23747
23748
23749   GNULIB_LSTAT=1
23750
23751
23752
23753 cat >>confdefs.h <<\_ACEOF
23754 #define GNULIB_TEST_LSTAT 1
23755 _ACEOF
23756
23757
23758
23759   # Code from module malloc-gnu:
23760
23761
23762
23763 for ac_header in stdlib.h
23764 do
23765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23767   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23768 $as_echo_n "checking for $ac_header... " >&6; }
23769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23770   $as_echo_n "(cached) " >&6
23771 fi
23772 ac_res=`eval 'as_val=${'$as_ac_Header'}
23773                  $as_echo "$as_val"'`
23774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23775 $as_echo "$ac_res" >&6; }
23776 else
23777   # Is the header compilable?
23778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23779 $as_echo_n "checking $ac_header usability... " >&6; }
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h.  */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h.  */
23786 $ac_includes_default
23787 #include <$ac_header>
23788 _ACEOF
23789 rm -f conftest.$ac_objext
23790 if { (ac_try="$ac_compile"
23791 case "(($ac_try" in
23792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23793   *) ac_try_echo=$ac_try;;
23794 esac
23795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23796 $as_echo "$ac_try_echo") >&5
23797   (eval "$ac_compile") 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } && {
23804          test -z "$ac_c_werror_flag" ||
23805          test ! -s conftest.err
23806        } && test -s conftest.$ac_objext; then
23807   ac_header_compiler=yes
23808 else
23809   $as_echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812         ac_header_compiler=no
23813 fi
23814
23815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23817 $as_echo "$ac_header_compiler" >&6; }
23818
23819 # Is the header present?
23820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23821 $as_echo_n "checking $ac_header presence... " >&6; }
23822 cat >conftest.$ac_ext <<_ACEOF
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828 #include <$ac_header>
23829 _ACEOF
23830 if { (ac_try="$ac_cpp conftest.$ac_ext"
23831 case "(($ac_try" in
23832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833   *) ac_try_echo=$ac_try;;
23834 esac
23835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23836 $as_echo "$ac_try_echo") >&5
23837   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23838   ac_status=$?
23839   grep -v '^ *+' conftest.er1 >conftest.err
23840   rm -f conftest.er1
23841   cat conftest.err >&5
23842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843   (exit $ac_status); } >/dev/null && {
23844          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23845          test ! -s conftest.err
23846        }; then
23847   ac_header_preproc=yes
23848 else
23849   $as_echo "$as_me: failed program was:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23851
23852   ac_header_preproc=no
23853 fi
23854
23855 rm -f conftest.err conftest.$ac_ext
23856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23857 $as_echo "$ac_header_preproc" >&6; }
23858
23859 # So?  What about this header?
23860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23861   yes:no: )
23862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23866     ac_header_preproc=yes
23867     ;;
23868   no:yes:* )
23869     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23871     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23872 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23873     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23876 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23881
23882     ;;
23883 esac
23884 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23885 $as_echo_n "checking for $ac_header... " >&6; }
23886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23887   $as_echo_n "(cached) " >&6
23888 else
23889   eval "$as_ac_Header=\$ac_header_preproc"
23890 fi
23891 ac_res=`eval 'as_val=${'$as_ac_Header'}
23892                  $as_echo "$as_val"'`
23893                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23894 $as_echo "$ac_res" >&6; }
23895
23896 fi
23897 as_val=`eval 'as_val=${'$as_ac_Header'}
23898                  $as_echo "$as_val"'`
23899    if test "x$as_val" = x""yes; then
23900   cat >>confdefs.h <<_ACEOF
23901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23902 _ACEOF
23903
23904 fi
23905
23906 done
23907
23908 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
23909 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
23910 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
23911   $as_echo_n "(cached) " >&6
23912 else
23913   if test "$cross_compiling" = yes; then
23914   ac_cv_func_malloc_0_nonnull=no
23915 else
23916   cat >conftest.$ac_ext <<_ACEOF
23917 /* confdefs.h.  */
23918 _ACEOF
23919 cat confdefs.h >>conftest.$ac_ext
23920 cat >>conftest.$ac_ext <<_ACEOF
23921 /* end confdefs.h.  */
23922 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
23923 # include <stdlib.h>
23924 #else
23925 char *malloc ();
23926 #endif
23927
23928 int
23929 main ()
23930 {
23931 return ! malloc (0);
23932   ;
23933   return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest$ac_exeext
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940   *) ac_try_echo=$ac_try;;
23941 esac
23942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943 $as_echo "$ac_try_echo") >&5
23944   (eval "$ac_link") 2>&5
23945   ac_status=$?
23946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23948   { (case "(($ac_try" in
23949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23950   *) ac_try_echo=$ac_try;;
23951 esac
23952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23953 $as_echo "$ac_try_echo") >&5
23954   (eval "$ac_try") 2>&5
23955   ac_status=$?
23956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23957   (exit $ac_status); }; }; then
23958   ac_cv_func_malloc_0_nonnull=yes
23959 else
23960   $as_echo "$as_me: program exited with status $ac_status" >&5
23961 $as_echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23963
23964 ( exit $ac_status )
23965 ac_cv_func_malloc_0_nonnull=no
23966 fi
23967 rm -rf conftest.dSYM
23968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23969 fi
23970
23971
23972 fi
23973 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
23974 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
23975 if test $ac_cv_func_malloc_0_nonnull = yes; then
23976
23977 cat >>confdefs.h <<\_ACEOF
23978 #define HAVE_MALLOC_GNU 1
23979 _ACEOF
23980
23981 else
23982   cat >>confdefs.h <<\_ACEOF
23983 #define HAVE_MALLOC_GNU 0
23984 _ACEOF
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
23996
23997   REPLACE_MALLOC=1
23998
23999
24000 fi
24001
24002
24003
24004
24005
24006 cat >>confdefs.h <<_ACEOF
24007 #define GNULIB_MALLOC_GNU 1
24008 _ACEOF
24009
24010
24011   # Code from module malloc-posix:
24012
24013
24014
24015   if test $gl_cv_func_malloc_posix = yes; then
24016
24017 cat >>confdefs.h <<\_ACEOF
24018 #define HAVE_MALLOC_POSIX 1
24019 _ACEOF
24020
24021   else
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24032
24033   REPLACE_MALLOC=1
24034
24035   fi
24036
24037
24038
24039
24040   GNULIB_MALLOC_POSIX=1
24041
24042
24043
24044 cat >>confdefs.h <<\_ACEOF
24045 #define GNULIB_TEST_MALLOC_POSIX 1
24046 _ACEOF
24047
24048
24049
24050   # Code from module mbrtowc:
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060   :
24061
24062
24063
24064
24065
24066
24067   :
24068
24069
24070
24071
24072
24073   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24074
24075
24076
24077      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24078 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24079 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24080   $as_echo_n "(cached) " >&6
24081 else
24082
24083                   case "$host_os" in
24084                      # Guess no on AIX and OSF/1.
24085         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24086                      # Guess yes otherwise.
24087         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24088       esac
24089       if test $LOCALE_JA != none; then
24090         if test "$cross_compiling" = yes; then
24091   :
24092 else
24093   cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h.  */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h.  */
24099
24100 #include <locale.h>
24101 #include <string.h>
24102 #include <wchar.h>
24103 int main ()
24104 {
24105   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24106     {
24107       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24108       mbstate_t state;
24109       wchar_t wc;
24110
24111       memset (&state, '\0', sizeof (mbstate_t));
24112       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24113         if (mbsinit (&state))
24114           return 1;
24115     }
24116   return 0;
24117 }
24118 _ACEOF
24119 rm -f conftest$ac_exeext
24120 if { (ac_try="$ac_link"
24121 case "(($ac_try" in
24122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24123   *) ac_try_echo=$ac_try;;
24124 esac
24125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24126 $as_echo "$ac_try_echo") >&5
24127   (eval "$ac_link") 2>&5
24128   ac_status=$?
24129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24131   { (case "(($ac_try" in
24132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24133   *) ac_try_echo=$ac_try;;
24134 esac
24135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24136 $as_echo "$ac_try_echo") >&5
24137   (eval "$ac_try") 2>&5
24138   ac_status=$?
24139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140   (exit $ac_status); }; }; then
24141   gl_cv_func_mbrtowc_incomplete_state=yes
24142 else
24143   $as_echo "$as_me: program exited with status $ac_status" >&5
24144 $as_echo "$as_me: failed program was:" >&5
24145 sed 's/^/| /' conftest.$ac_ext >&5
24146
24147 ( exit $ac_status )
24148 gl_cv_func_mbrtowc_incomplete_state=no
24149 fi
24150 rm -rf conftest.dSYM
24151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24152 fi
24153
24154
24155       fi
24156
24157 fi
24158 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24159 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24160
24161
24162
24163
24164      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24165 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24166 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24167   $as_echo_n "(cached) " >&6
24168 else
24169
24170                   case "$host_os" in
24171                     # Guess no on Solaris 8.
24172         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24173                     # Guess yes otherwise.
24174         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24175       esac
24176       if test $LOCALE_ZH_CN != none; then
24177         if test "$cross_compiling" = yes; then
24178   :
24179 else
24180   cat >conftest.$ac_ext <<_ACEOF
24181 /* confdefs.h.  */
24182 _ACEOF
24183 cat confdefs.h >>conftest.$ac_ext
24184 cat >>conftest.$ac_ext <<_ACEOF
24185 /* end confdefs.h.  */
24186
24187 #include <locale.h>
24188 #include <stdlib.h>
24189 #include <string.h>
24190 #include <wchar.h>
24191 int main ()
24192 {
24193   /* This fails on Solaris 8:
24194      mbrtowc returns 2, and sets wc to 0x00F0.
24195      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24196   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24197     {
24198       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24199       mbstate_t state;
24200       wchar_t wc;
24201
24202       memset (&state, '\0', sizeof (mbstate_t));
24203       if (mbrtowc (&wc, input + 3, 6, &state) != 4
24204           && mbtowc (&wc, input + 3, 6) == 4)
24205         return 1;
24206     }
24207   return 0;
24208 }
24209 _ACEOF
24210 rm -f conftest$ac_exeext
24211 if { (ac_try="$ac_link"
24212 case "(($ac_try" in
24213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214   *) ac_try_echo=$ac_try;;
24215 esac
24216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24217 $as_echo "$ac_try_echo") >&5
24218   (eval "$ac_link") 2>&5
24219   ac_status=$?
24220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24222   { (case "(($ac_try" in
24223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24224   *) ac_try_echo=$ac_try;;
24225 esac
24226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24227 $as_echo "$ac_try_echo") >&5
24228   (eval "$ac_try") 2>&5
24229   ac_status=$?
24230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231   (exit $ac_status); }; }; then
24232   gl_cv_func_mbrtowc_sanitycheck=yes
24233 else
24234   $as_echo "$as_me: program exited with status $ac_status" >&5
24235 $as_echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24237
24238 ( exit $ac_status )
24239 gl_cv_func_mbrtowc_sanitycheck=no
24240 fi
24241 rm -rf conftest.dSYM
24242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24243 fi
24244
24245
24246       fi
24247
24248 fi
24249 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24250 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24251
24252     REPLACE_MBSTATE_T=0
24253     case "$gl_cv_func_mbrtowc_incomplete_state" in
24254       *yes) ;;
24255       *) REPLACE_MBSTATE_T=1 ;;
24256     esac
24257     case "$gl_cv_func_mbrtowc_sanitycheck" in
24258       *yes) ;;
24259       *) REPLACE_MBSTATE_T=1 ;;
24260     esac
24261   else
24262     REPLACE_MBSTATE_T=1
24263   fi
24264   if test $REPLACE_MBSTATE_T = 1; then
24265
24266     :
24267
24268   fi
24269
24270
24271
24272   :
24273
24274
24275
24276
24277
24278   if test $ac_cv_func_mbrtowc = no; then
24279     HAVE_MBRTOWC=0
24280   else
24281     if test $REPLACE_MBSTATE_T = 1; then
24282       REPLACE_MBRTOWC=1
24283     else
24284
24285
24286
24287      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
24288 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
24289 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
24290   $as_echo_n "(cached) " >&6
24291 else
24292
24293                   case "$host_os" in
24294               # Guess no on OSF/1.
24295         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
24296               # Guess yes otherwise.
24297         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
24298       esac
24299       if test $LOCALE_FR_UTF8 != none; then
24300         if test "$cross_compiling" = yes; then
24301   :
24302 else
24303   cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h.  */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h.  */
24309
24310 #include <locale.h>
24311 #include <string.h>
24312 #include <wchar.h>
24313 int main ()
24314 {
24315   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24316     {
24317       mbstate_t state;
24318       wchar_t wc;
24319       int ret;
24320
24321       memset (&state, '\0', sizeof (mbstate_t));
24322       wc = (wchar_t) 0xBADFACE;
24323       mbrtowc (&wc, NULL, 5, &state);
24324       /* Check that wc was not modified.  */
24325       if (wc != (wchar_t) 0xBADFACE)
24326         return 1;
24327     }
24328   return 0;
24329 }
24330 _ACEOF
24331 rm -f conftest$ac_exeext
24332 if { (ac_try="$ac_link"
24333 case "(($ac_try" in
24334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335   *) ac_try_echo=$ac_try;;
24336 esac
24337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24338 $as_echo "$ac_try_echo") >&5
24339   (eval "$ac_link") 2>&5
24340   ac_status=$?
24341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24343   { (case "(($ac_try" in
24344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345   *) ac_try_echo=$ac_try;;
24346 esac
24347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24348 $as_echo "$ac_try_echo") >&5
24349   (eval "$ac_try") 2>&5
24350   ac_status=$?
24351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352   (exit $ac_status); }; }; then
24353   gl_cv_func_mbrtowc_null_arg=yes
24354 else
24355   $as_echo "$as_me: program exited with status $ac_status" >&5
24356 $as_echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24358
24359 ( exit $ac_status )
24360 gl_cv_func_mbrtowc_null_arg=no
24361 fi
24362 rm -rf conftest.dSYM
24363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24364 fi
24365
24366
24367       fi
24368
24369 fi
24370 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
24371 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
24372
24373
24374
24375
24376
24377      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
24378 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
24379 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
24380   $as_echo_n "(cached) " >&6
24381 else
24382
24383                   case "$host_os" in
24384                           # Guess no on HP-UX and Solaris.
24385         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
24386                           # Guess yes otherwise.
24387         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
24388       esac
24389       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
24390         if test "$cross_compiling" = yes; then
24391   :
24392 else
24393   cat >conftest.$ac_ext <<_ACEOF
24394 /* confdefs.h.  */
24395 _ACEOF
24396 cat confdefs.h >>conftest.$ac_ext
24397 cat >>conftest.$ac_ext <<_ACEOF
24398 /* end confdefs.h.  */
24399
24400 #include <locale.h>
24401 #include <string.h>
24402 #include <wchar.h>
24403 int main ()
24404 {
24405   /* This fails on Solaris.  */
24406   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
24407     {
24408       char input[] = "B\303\274\303\237er"; /* "Büßer" */
24409       mbstate_t state;
24410       wchar_t wc;
24411
24412       memset (&state, '\0', sizeof (mbstate_t));
24413       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24414         {
24415           input[1] = '\0';
24416           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
24417             return 1;
24418         }
24419     }
24420   /* This fails on HP-UX 11.11.  */
24421   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24422     {
24423       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24424       mbstate_t state;
24425       wchar_t wc;
24426
24427       memset (&state, '\0', sizeof (mbstate_t));
24428       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24429         {
24430           input[1] = '\0';
24431           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
24432             return 1;
24433         }
24434     }
24435   return 0;
24436 }
24437 _ACEOF
24438 rm -f conftest$ac_exeext
24439 if { (ac_try="$ac_link"
24440 case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446   (eval "$ac_link") 2>&5
24447   ac_status=$?
24448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24450   { (case "(($ac_try" in
24451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24452   *) ac_try_echo=$ac_try;;
24453 esac
24454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24455 $as_echo "$ac_try_echo") >&5
24456   (eval "$ac_try") 2>&5
24457   ac_status=$?
24458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459   (exit $ac_status); }; }; then
24460   gl_cv_func_mbrtowc_retval=yes
24461 else
24462   $as_echo "$as_me: program exited with status $ac_status" >&5
24463 $as_echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466 ( exit $ac_status )
24467 gl_cv_func_mbrtowc_retval=no
24468 fi
24469 rm -rf conftest.dSYM
24470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24471 fi
24472
24473
24474       fi
24475
24476 fi
24477 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
24478 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
24479
24480
24481
24482
24483      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
24484 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
24485 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
24486   $as_echo_n "(cached) " >&6
24487 else
24488
24489                   case "$host_os" in
24490                        # Guess no on Solaris 8 and 9.
24491         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
24492                        # Guess yes otherwise.
24493         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
24494       esac
24495       if test $LOCALE_ZH_CN != none; then
24496         if test "$cross_compiling" = yes; then
24497   :
24498 else
24499   cat >conftest.$ac_ext <<_ACEOF
24500 /* confdefs.h.  */
24501 _ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h.  */
24505
24506 #include <locale.h>
24507 #include <string.h>
24508 #include <wchar.h>
24509 int main ()
24510 {
24511   /* This fails on Solaris 8 and 9.  */
24512   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24513     {
24514       mbstate_t state;
24515       wchar_t wc;
24516
24517       memset (&state, '\0', sizeof (mbstate_t));
24518       if (mbrtowc (&wc, "", 1, &state) != 0)
24519         return 1;
24520     }
24521   return 0;
24522 }
24523 _ACEOF
24524 rm -f conftest$ac_exeext
24525 if { (ac_try="$ac_link"
24526 case "(($ac_try" in
24527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528   *) ac_try_echo=$ac_try;;
24529 esac
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532   (eval "$ac_link") 2>&5
24533   ac_status=$?
24534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24536   { (case "(($ac_try" in
24537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538   *) ac_try_echo=$ac_try;;
24539 esac
24540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24541 $as_echo "$ac_try_echo") >&5
24542   (eval "$ac_try") 2>&5
24543   ac_status=$?
24544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545   (exit $ac_status); }; }; then
24546   gl_cv_func_mbrtowc_nul_retval=yes
24547 else
24548   $as_echo "$as_me: program exited with status $ac_status" >&5
24549 $as_echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ( exit $ac_status )
24553 gl_cv_func_mbrtowc_nul_retval=no
24554 fi
24555 rm -rf conftest.dSYM
24556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24557 fi
24558
24559
24560       fi
24561
24562 fi
24563 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
24564 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
24565
24566       case "$gl_cv_func_mbrtowc_null_arg" in
24567         *yes) ;;
24568         *)
24569 cat >>confdefs.h <<\_ACEOF
24570 #define MBRTOWC_NULL_ARG_BUG 1
24571 _ACEOF
24572
24573            REPLACE_MBRTOWC=1
24574            ;;
24575       esac
24576       case "$gl_cv_func_mbrtowc_retval" in
24577         *yes) ;;
24578         *)
24579 cat >>confdefs.h <<\_ACEOF
24580 #define MBRTOWC_RETVAL_BUG 1
24581 _ACEOF
24582
24583            REPLACE_MBRTOWC=1
24584            ;;
24585       esac
24586       case "$gl_cv_func_mbrtowc_nul_retval" in
24587         *yes) ;;
24588         *)
24589 cat >>confdefs.h <<\_ACEOF
24590 #define MBRTOWC_NUL_RETVAL_BUG 1
24591 _ACEOF
24592
24593            REPLACE_MBRTOWC=1
24594            ;;
24595       esac
24596     fi
24597   fi
24598   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
24599
24600     :
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
24611
24612
24613   :
24614
24615   fi
24616
24617
24618
24619
24620   GNULIB_MBRTOWC=1
24621
24622
24623
24624 cat >>confdefs.h <<\_ACEOF
24625 #define GNULIB_TEST_MBRTOWC 1
24626 _ACEOF
24627
24628
24629
24630   # Code from module mbsinit:
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640   :
24641
24642
24643
24644
24645
24646
24647   :
24648
24649
24650
24651
24652
24653   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
24654
24655
24656
24657      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
24658 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
24659 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
24660   $as_echo_n "(cached) " >&6
24661 else
24662
24663                   case "$host_os" in
24664                      # Guess no on AIX and OSF/1.
24665         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
24666                      # Guess yes otherwise.
24667         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
24668       esac
24669       if test $LOCALE_JA != none; then
24670         if test "$cross_compiling" = yes; then
24671   :
24672 else
24673   cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679
24680 #include <locale.h>
24681 #include <string.h>
24682 #include <wchar.h>
24683 int main ()
24684 {
24685   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
24686     {
24687       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
24688       mbstate_t state;
24689       wchar_t wc;
24690
24691       memset (&state, '\0', sizeof (mbstate_t));
24692       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
24693         if (mbsinit (&state))
24694           return 1;
24695     }
24696   return 0;
24697 }
24698 _ACEOF
24699 rm -f conftest$ac_exeext
24700 if { (ac_try="$ac_link"
24701 case "(($ac_try" in
24702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703   *) ac_try_echo=$ac_try;;
24704 esac
24705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24706 $as_echo "$ac_try_echo") >&5
24707   (eval "$ac_link") 2>&5
24708   ac_status=$?
24709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24711   { (case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24716 $as_echo "$ac_try_echo") >&5
24717   (eval "$ac_try") 2>&5
24718   ac_status=$?
24719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); }; }; then
24721   gl_cv_func_mbrtowc_incomplete_state=yes
24722 else
24723   $as_echo "$as_me: program exited with status $ac_status" >&5
24724 $as_echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24726
24727 ( exit $ac_status )
24728 gl_cv_func_mbrtowc_incomplete_state=no
24729 fi
24730 rm -rf conftest.dSYM
24731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24732 fi
24733
24734
24735       fi
24736
24737 fi
24738 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
24739 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
24740
24741
24742
24743
24744      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
24745 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
24746 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
24747   $as_echo_n "(cached) " >&6
24748 else
24749
24750                   case "$host_os" in
24751                     # Guess no on Solaris 8.
24752         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
24753                     # Guess yes otherwise.
24754         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
24755       esac
24756       if test $LOCALE_ZH_CN != none; then
24757         if test "$cross_compiling" = yes; then
24758   :
24759 else
24760   cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766
24767 #include <locale.h>
24768 #include <stdlib.h>
24769 #include <string.h>
24770 #include <wchar.h>
24771 int main ()
24772 {
24773   /* This fails on Solaris 8:
24774      mbrtowc returns 2, and sets wc to 0x00F0.
24775      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
24776   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
24777     {
24778       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
24779       mbstate_t state;
24780       wchar_t wc;
24781
24782       memset (&state, '\0', sizeof (mbstate_t));
24783       if (mbrtowc (&wc, input + 3, 6, &state) != 4
24784           && mbtowc (&wc, input + 3, 6) == 4)
24785         return 1;
24786     }
24787   return 0;
24788 }
24789 _ACEOF
24790 rm -f conftest$ac_exeext
24791 if { (ac_try="$ac_link"
24792 case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24797 $as_echo "$ac_try_echo") >&5
24798   (eval "$ac_link") 2>&5
24799   ac_status=$?
24800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24802   { (case "(($ac_try" in
24803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804   *) ac_try_echo=$ac_try;;
24805 esac
24806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24807 $as_echo "$ac_try_echo") >&5
24808   (eval "$ac_try") 2>&5
24809   ac_status=$?
24810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; }; then
24812   gl_cv_func_mbrtowc_sanitycheck=yes
24813 else
24814   $as_echo "$as_me: program exited with status $ac_status" >&5
24815 $as_echo "$as_me: failed program was:" >&5
24816 sed 's/^/| /' conftest.$ac_ext >&5
24817
24818 ( exit $ac_status )
24819 gl_cv_func_mbrtowc_sanitycheck=no
24820 fi
24821 rm -rf conftest.dSYM
24822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24823 fi
24824
24825
24826       fi
24827
24828 fi
24829 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
24830 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
24831
24832     REPLACE_MBSTATE_T=0
24833     case "$gl_cv_func_mbrtowc_incomplete_state" in
24834       *yes) ;;
24835       *) REPLACE_MBSTATE_T=1 ;;
24836     esac
24837     case "$gl_cv_func_mbrtowc_sanitycheck" in
24838       *yes) ;;
24839       *) REPLACE_MBSTATE_T=1 ;;
24840     esac
24841   else
24842     REPLACE_MBSTATE_T=1
24843   fi
24844   if test $REPLACE_MBSTATE_T = 1; then
24845
24846     :
24847
24848   fi
24849
24850
24851
24852   :
24853
24854
24855
24856
24857
24858   if test $ac_cv_func_mbsinit = no; then
24859     HAVE_MBSINIT=0
24860   else
24861     if test $REPLACE_MBSTATE_T = 1; then
24862       REPLACE_MBSINIT=1
24863     fi
24864   fi
24865   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
24866
24867     :
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
24878
24879
24880   :
24881
24882   fi
24883
24884
24885
24886
24887   GNULIB_MBSINIT=1
24888
24889
24890
24891 cat >>confdefs.h <<\_ACEOF
24892 #define GNULIB_TEST_MBSINIT 1
24893 _ACEOF
24894
24895
24896
24897   # Code from module memchr:
24898
24899
24900
24901
24902   GNULIB_MEMCHR=1
24903
24904
24905
24906 cat >>confdefs.h <<\_ACEOF
24907 #define GNULIB_TEST_MEMCHR 1
24908 _ACEOF
24909
24910
24911
24912   # Code from module mkdtemp:
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924 for ac_func in mkdtemp
24925 do
24926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24927 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24928 $as_echo_n "checking for $ac_func... " >&6; }
24929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24930   $as_echo_n "(cached) " >&6
24931 else
24932   cat >conftest.$ac_ext <<_ACEOF
24933 /* confdefs.h.  */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h.  */
24938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24940 #define $ac_func innocuous_$ac_func
24941
24942 /* System header to define __stub macros and hopefully few prototypes,
24943     which can conflict with char $ac_func (); below.
24944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24945     <limits.h> exists even on freestanding compilers.  */
24946
24947 #ifdef __STDC__
24948 # include <limits.h>
24949 #else
24950 # include <assert.h>
24951 #endif
24952
24953 #undef $ac_func
24954
24955 /* Override any GCC internal prototype to avoid an error.
24956    Use char because int might match the return type of a GCC
24957    builtin and then its argument prototype would still apply.  */
24958 #ifdef __cplusplus
24959 extern "C"
24960 #endif
24961 char $ac_func ();
24962 /* The GNU C library defines this for functions which it implements
24963     to always fail with ENOSYS.  Some functions are actually named
24964     something starting with __ and the normal name is an alias.  */
24965 #if defined __stub_$ac_func || defined __stub___$ac_func
24966 choke me
24967 #endif
24968
24969 int
24970 main ()
24971 {
24972 return $ac_func ();
24973   ;
24974   return 0;
24975 }
24976 _ACEOF
24977 rm -f conftest.$ac_objext conftest$ac_exeext
24978 if { (ac_try="$ac_link"
24979 case "(($ac_try" in
24980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981   *) ac_try_echo=$ac_try;;
24982 esac
24983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24984 $as_echo "$ac_try_echo") >&5
24985   (eval "$ac_link") 2>conftest.er1
24986   ac_status=$?
24987   grep -v '^ *+' conftest.er1 >conftest.err
24988   rm -f conftest.er1
24989   cat conftest.err >&5
24990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); } && {
24992          test -z "$ac_c_werror_flag" ||
24993          test ! -s conftest.err
24994        } && test -s conftest$ac_exeext && {
24995          test "$cross_compiling" = yes ||
24996          $as_test_x conftest$ac_exeext
24997        }; then
24998   eval "$as_ac_var=yes"
24999 else
25000   $as_echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25002
25003         eval "$as_ac_var=no"
25004 fi
25005
25006 rm -rf conftest.dSYM
25007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25008       conftest$ac_exeext conftest.$ac_ext
25009 fi
25010 ac_res=`eval 'as_val=${'$as_ac_var'}
25011                  $as_echo "$as_val"'`
25012                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25013 $as_echo "$ac_res" >&6; }
25014 as_val=`eval 'as_val=${'$as_ac_var'}
25015                  $as_echo "$as_val"'`
25016    if test "x$as_val" = x""yes; then
25017   cat >>confdefs.h <<_ACEOF
25018 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25019 _ACEOF
25020
25021 else
25022
25023     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
25024
25025 fi
25026 done
25027
25028
25029   if test $ac_cv_func_mkdtemp = no; then
25030     HAVE_MKDTEMP=0
25031     :
25032
25033   fi
25034
25035
25036
25037
25038   GNULIB_MKDTEMP=1
25039
25040
25041
25042 cat >>confdefs.h <<\_ACEOF
25043 #define GNULIB_TEST_MKDTEMP 1
25044 _ACEOF
25045
25046
25047
25048   # Code from module multiarch:
25049
25050   # Code from module netdb:
25051
25052
25053
25054   :
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064   :
25065
25066
25067
25068
25069
25070
25071
25072      if test $gl_cv_have_include_next = yes; then
25073        gl_cv_next_netdb_h='<'netdb.h'>'
25074      else
25075        { $as_echo "$as_me:$LINENO: checking absolute name of <netdb.h>" >&5
25076 $as_echo_n "checking absolute name of <netdb.h>... " >&6; }
25077 if test "${gl_cv_next_netdb_h+set}" = set; then
25078   $as_echo_n "(cached) " >&6
25079 else
25080
25081           if test $ac_cv_header_netdb_h = yes; then
25082             cat >conftest.$ac_ext <<_ACEOF
25083 /* confdefs.h.  */
25084 _ACEOF
25085 cat confdefs.h >>conftest.$ac_ext
25086 cat >>conftest.$ac_ext <<_ACEOF
25087 /* end confdefs.h.  */
25088 #include <netdb.h>
25089
25090 _ACEOF
25091                                                                                                 case "$host_os" in
25092               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25093               *)    gl_absname_cpp="$ac_cpp" ;;
25094             esac
25095                                                 gl_cv_next_netdb_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25096                sed -n '\#/netdb.h#{
25097                  s#.*"\(.*/netdb.h\)".*#\1#
25098                  s#^/[^/]#//&#
25099                  p
25100                  q
25101                }'`'"'
25102           else
25103             gl_cv_next_netdb_h='<'netdb.h'>'
25104           fi
25105
25106 fi
25107 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netdb_h" >&5
25108 $as_echo "$gl_cv_next_netdb_h" >&6; }
25109      fi
25110      NEXT_NETDB_H=$gl_cv_next_netdb_h
25111
25112      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25113        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25114        gl_next_as_first_directive='<'netdb.h'>'
25115      else
25116        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25117        gl_next_as_first_directive=$gl_cv_next_netdb_h
25118      fi
25119      NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive
25120
25121
25122
25123   if test $ac_cv_header_netdb_h = yes; then
25124     HAVE_NETDB_H=1
25125   else
25126     HAVE_NETDB_H=0
25127   fi
25128
25129
25130
25131
25132
25133
25134
25135   for gl_func in getaddrinfo freeaddrinfo gai_strerror getnameinfo; do
25136     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25137     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25138 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25139 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25140   $as_echo_n "(cached) " >&6
25141 else
25142   cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148 #include <netdb.h>
25149 int
25150 main ()
25151 {
25152 #undef $gl_func
25153   (void) $gl_func;
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25165 $as_echo "$ac_try_echo") >&5
25166   (eval "$ac_compile") 2>conftest.er1
25167   ac_status=$?
25168   grep -v '^ *+' conftest.er1 >conftest.err
25169   rm -f conftest.er1
25170   cat conftest.err >&5
25171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); } && {
25173          test -z "$ac_c_werror_flag" ||
25174          test ! -s conftest.err
25175        } && test -s conftest.$ac_objext; then
25176   eval "$as_gl_Symbol=yes"
25177 else
25178   $as_echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25180
25181         eval "$as_gl_Symbol=no"
25182 fi
25183
25184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25185 fi
25186 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25187                  $as_echo "$as_val"'`
25188                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25189 $as_echo "$ac_res" >&6; }
25190      as_val=`eval 'as_val=${'$as_gl_Symbol'}
25191                  $as_echo "$as_val"'`
25192    if test "x$as_val" = x""yes; then
25193   cat >>confdefs.h <<_ACEOF
25194 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25195 _ACEOF
25196
25197                      eval ac_cv_have_decl_$gl_func=yes
25198 fi
25199
25200       done
25201
25202
25203   # Code from module netinet_in:
25204
25205   { $as_echo "$as_me:$LINENO: checking whether <netinet/in.h> is self-contained" >&5
25206 $as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; }
25207 if test "${gl_cv_header_netinet_in_h_selfcontained+set}" = set; then
25208   $as_echo_n "(cached) " >&6
25209 else
25210
25211       cat >conftest.$ac_ext <<_ACEOF
25212 /* confdefs.h.  */
25213 _ACEOF
25214 cat confdefs.h >>conftest.$ac_ext
25215 cat >>conftest.$ac_ext <<_ACEOF
25216 /* end confdefs.h.  */
25217 #include <netinet/in.h>
25218 int
25219 main ()
25220 {
25221
25222   ;
25223   return 0;
25224 }
25225 _ACEOF
25226 rm -f conftest.$ac_objext
25227 if { (ac_try="$ac_compile"
25228 case "(($ac_try" in
25229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230   *) ac_try_echo=$ac_try;;
25231 esac
25232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25233 $as_echo "$ac_try_echo") >&5
25234   (eval "$ac_compile") 2>conftest.er1
25235   ac_status=$?
25236   grep -v '^ *+' conftest.er1 >conftest.err
25237   rm -f conftest.er1
25238   cat conftest.err >&5
25239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240   (exit $ac_status); } && {
25241          test -z "$ac_c_werror_flag" ||
25242          test ! -s conftest.err
25243        } && test -s conftest.$ac_objext; then
25244   gl_cv_header_netinet_in_h_selfcontained=yes
25245 else
25246   $as_echo "$as_me: failed program was:" >&5
25247 sed 's/^/| /' conftest.$ac_ext >&5
25248
25249         gl_cv_header_netinet_in_h_selfcontained=no
25250 fi
25251
25252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25253
25254 fi
25255 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_netinet_in_h_selfcontained" >&5
25256 $as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; }
25257   if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
25258     NETINET_IN_H=''
25259   else
25260     NETINET_IN_H='netinet/in.h'
25261
25262 for ac_header in netinet/in.h
25263 do
25264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25266   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25267 $as_echo_n "checking for $ac_header... " >&6; }
25268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25269   $as_echo_n "(cached) " >&6
25270 fi
25271 ac_res=`eval 'as_val=${'$as_ac_Header'}
25272                  $as_echo "$as_val"'`
25273                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25274 $as_echo "$ac_res" >&6; }
25275 else
25276   # Is the header compilable?
25277 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25278 $as_echo_n "checking $ac_header usability... " >&6; }
25279 cat >conftest.$ac_ext <<_ACEOF
25280 /* confdefs.h.  */
25281 _ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h.  */
25285 $ac_includes_default
25286 #include <$ac_header>
25287 _ACEOF
25288 rm -f conftest.$ac_objext
25289 if { (ac_try="$ac_compile"
25290 case "(($ac_try" in
25291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25292   *) ac_try_echo=$ac_try;;
25293 esac
25294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25295 $as_echo "$ac_try_echo") >&5
25296   (eval "$ac_compile") 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } && {
25303          test -z "$ac_c_werror_flag" ||
25304          test ! -s conftest.err
25305        } && test -s conftest.$ac_objext; then
25306   ac_header_compiler=yes
25307 else
25308   $as_echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25310
25311         ac_header_compiler=no
25312 fi
25313
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25316 $as_echo "$ac_header_compiler" >&6; }
25317
25318 # Is the header present?
25319 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25320 $as_echo_n "checking $ac_header presence... " >&6; }
25321 cat >conftest.$ac_ext <<_ACEOF
25322 /* confdefs.h.  */
25323 _ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h.  */
25327 #include <$ac_header>
25328 _ACEOF
25329 if { (ac_try="$ac_cpp conftest.$ac_ext"
25330 case "(($ac_try" in
25331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332   *) ac_try_echo=$ac_try;;
25333 esac
25334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25335 $as_echo "$ac_try_echo") >&5
25336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } >/dev/null && {
25343          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25344          test ! -s conftest.err
25345        }; then
25346   ac_header_preproc=yes
25347 else
25348   $as_echo "$as_me: failed program was:" >&5
25349 sed 's/^/| /' conftest.$ac_ext >&5
25350
25351   ac_header_preproc=no
25352 fi
25353
25354 rm -f conftest.err conftest.$ac_ext
25355 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25356 $as_echo "$ac_header_preproc" >&6; }
25357
25358 # So?  What about this header?
25359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25360   yes:no: )
25361     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25362 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25364 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25365     ac_header_preproc=yes
25366     ;;
25367   no:yes:* )
25368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25369 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25371 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25373 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25374     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25375 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25376     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25377 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25378     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25379 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25380
25381     ;;
25382 esac
25383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25384 $as_echo_n "checking for $ac_header... " >&6; }
25385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25386   $as_echo_n "(cached) " >&6
25387 else
25388   eval "$as_ac_Header=\$ac_header_preproc"
25389 fi
25390 ac_res=`eval 'as_val=${'$as_ac_Header'}
25391                  $as_echo "$as_val"'`
25392                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25393 $as_echo "$ac_res" >&6; }
25394
25395 fi
25396 as_val=`eval 'as_val=${'$as_ac_Header'}
25397                  $as_echo "$as_val"'`
25398    if test "x$as_val" = x""yes; then
25399   cat >>confdefs.h <<_ACEOF
25400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25401 _ACEOF
25402
25403 fi
25404
25405 done
25406
25407
25408
25409
25410
25411   :
25412
25413
25414
25415
25416
25417
25418
25419      if test $gl_cv_have_include_next = yes; then
25420        gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25421      else
25422        { $as_echo "$as_me:$LINENO: checking absolute name of <netinet/in.h>" >&5
25423 $as_echo_n "checking absolute name of <netinet/in.h>... " >&6; }
25424 if test "${gl_cv_next_netinet_in_h+set}" = set; then
25425   $as_echo_n "(cached) " >&6
25426 else
25427
25428           if test $ac_cv_header_netinet_in_h = yes; then
25429             cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h.  */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h.  */
25435 #include <netinet/in.h>
25436
25437 _ACEOF
25438                                                                                                 case "$host_os" in
25439               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25440               *)    gl_absname_cpp="$ac_cpp" ;;
25441             esac
25442                                                 gl_cv_next_netinet_in_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25443                sed -n '\#/netinet/in.h#{
25444                  s#.*"\(.*/netinet/in.h\)".*#\1#
25445                  s#^/[^/]#//&#
25446                  p
25447                  q
25448                }'`'"'
25449           else
25450             gl_cv_next_netinet_in_h='<'netinet/in.h'>'
25451           fi
25452
25453 fi
25454 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_netinet_in_h" >&5
25455 $as_echo "$gl_cv_next_netinet_in_h" >&6; }
25456      fi
25457      NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h
25458
25459      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25460        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25461        gl_next_as_first_directive='<'netinet/in.h'>'
25462      else
25463        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25464        gl_next_as_first_directive=$gl_cv_next_netinet_in_h
25465      fi
25466      NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive
25467
25468
25469
25470     if test $ac_cv_header_netinet_in_h = yes; then
25471       HAVE_NETINET_IN_H=1
25472     else
25473       HAVE_NETINET_IN_H=0
25474     fi
25475
25476   fi
25477
25478
25479   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
25480 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25481 if test -z "$MKDIR_P"; then
25482   if test "${ac_cv_path_mkdir+set}" = set; then
25483   $as_echo_n "(cached) " >&6
25484 else
25485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25486 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25487 do
25488   IFS=$as_save_IFS
25489   test -z "$as_dir" && as_dir=.
25490   for ac_prog in mkdir gmkdir; do
25491          for ac_exec_ext in '' $ac_executable_extensions; do
25492            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
25493            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25494              'mkdir (GNU coreutils) '* | \
25495              'mkdir (coreutils) '* | \
25496              'mkdir (fileutils) '4.1*)
25497                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
25498                break 3;;
25499            esac
25500          done
25501        done
25502 done
25503 IFS=$as_save_IFS
25504
25505 fi
25506
25507   if test "${ac_cv_path_mkdir+set}" = set; then
25508     MKDIR_P="$ac_cv_path_mkdir -p"
25509   else
25510     # As a last resort, use the slow shell script.  Don't cache a
25511     # value for MKDIR_P within a source directory, because that will
25512     # break other packages using the cache if that directory is
25513     # removed, or if the value is a relative name.
25514     test -d ./--version && rmdir ./--version
25515     MKDIR_P="$ac_install_sh -d"
25516   fi
25517 fi
25518 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
25519 $as_echo "$MKDIR_P" >&6; }
25520
25521
25522   # Code from module nl_langinfo:
25523
25524
25525
25526
25527   :
25528
25529
25530
25531
25532
25533   if test $ac_cv_func_nl_langinfo = yes; then
25534     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
25535       :
25536     else
25537       REPLACE_NL_LANGINFO=1
25538
25539 cat >>confdefs.h <<\_ACEOF
25540 #define REPLACE_NL_LANGINFO 1
25541 _ACEOF
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25552
25553     fi
25554   else
25555     HAVE_NL_LANGINFO=0
25556
25557
25558
25559
25560
25561
25562
25563
25564   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
25565
25566   fi
25567
25568
25569
25570
25571   GNULIB_NL_LANGINFO=1
25572
25573
25574
25575 cat >>confdefs.h <<\_ACEOF
25576 #define GNULIB_TEST_NL_LANGINFO 1
25577 _ACEOF
25578
25579
25580
25581   # Code from module physmem:
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591   gl_LIBOBJS="$gl_LIBOBJS physmem.$ac_objext"
25592
25593
25594   # Prerequisites of lib/physmem.c.
25595
25596
25597
25598
25599
25600
25601
25602 for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h \
25603     machine/hal_sysinfo.h sys/table.h sys/param.h sys/systemcfg.h
25604 do
25605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25607 $as_echo_n "checking for $ac_header... " >&6; }
25608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25609   $as_echo_n "(cached) " >&6
25610 else
25611   cat >conftest.$ac_ext <<_ACEOF
25612 /* confdefs.h.  */
25613 _ACEOF
25614 cat confdefs.h >>conftest.$ac_ext
25615 cat >>conftest.$ac_ext <<_ACEOF
25616 /* end confdefs.h.  */
25617 $ac_includes_default
25618
25619 #include <$ac_header>
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25628 $as_echo "$ac_try_echo") >&5
25629   (eval "$ac_compile") 2>conftest.er1
25630   ac_status=$?
25631   grep -v '^ *+' conftest.er1 >conftest.err
25632   rm -f conftest.er1
25633   cat conftest.err >&5
25634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); } && {
25636          test -z "$ac_c_werror_flag" ||
25637          test ! -s conftest.err
25638        } && test -s conftest.$ac_objext; then
25639   eval "$as_ac_Header=yes"
25640 else
25641   $as_echo "$as_me: failed program was:" >&5
25642 sed 's/^/| /' conftest.$ac_ext >&5
25643
25644         eval "$as_ac_Header=no"
25645 fi
25646
25647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648 fi
25649 ac_res=`eval 'as_val=${'$as_ac_Header'}
25650                  $as_echo "$as_val"'`
25651                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25652 $as_echo "$ac_res" >&6; }
25653 as_val=`eval 'as_val=${'$as_ac_Header'}
25654                  $as_echo "$as_val"'`
25655    if test "x$as_val" = x""yes; then
25656   cat >>confdefs.h <<_ACEOF
25657 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25658 _ACEOF
25659
25660 fi
25661
25662 done
25663
25664
25665 for ac_header in sys/sysctl.h
25666 do
25667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25669 $as_echo_n "checking for $ac_header... " >&6; }
25670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25671   $as_echo_n "(cached) " >&6
25672 else
25673   cat >conftest.$ac_ext <<_ACEOF
25674 /* confdefs.h.  */
25675 _ACEOF
25676 cat confdefs.h >>conftest.$ac_ext
25677 cat >>conftest.$ac_ext <<_ACEOF
25678 /* end confdefs.h.  */
25679 $ac_includes_default
25680      #if HAVE_SYS_PARAM_H
25681      # include <sys/param.h>
25682      #endif
25683
25684
25685 #include <$ac_header>
25686 _ACEOF
25687 rm -f conftest.$ac_objext
25688 if { (ac_try="$ac_compile"
25689 case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25694 $as_echo "$ac_try_echo") >&5
25695   (eval "$ac_compile") 2>conftest.er1
25696   ac_status=$?
25697   grep -v '^ *+' conftest.er1 >conftest.err
25698   rm -f conftest.er1
25699   cat conftest.err >&5
25700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); } && {
25702          test -z "$ac_c_werror_flag" ||
25703          test ! -s conftest.err
25704        } && test -s conftest.$ac_objext; then
25705   eval "$as_ac_Header=yes"
25706 else
25707   $as_echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25709
25710         eval "$as_ac_Header=no"
25711 fi
25712
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714 fi
25715 ac_res=`eval 'as_val=${'$as_ac_Header'}
25716                  $as_echo "$as_val"'`
25717                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25718 $as_echo "$ac_res" >&6; }
25719 as_val=`eval 'as_val=${'$as_ac_Header'}
25720                  $as_echo "$as_val"'`
25721    if test "x$as_val" = x""yes; then
25722   cat >>confdefs.h <<_ACEOF
25723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25724 _ACEOF
25725
25726 fi
25727
25728 done
25729
25730
25731
25732
25733
25734
25735
25736
25737 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
25738 do
25739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25741 $as_echo_n "checking for $ac_func... " >&6; }
25742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25743   $as_echo_n "(cached) " >&6
25744 else
25745   cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25753 #define $ac_func innocuous_$ac_func
25754
25755 /* System header to define __stub macros and hopefully few prototypes,
25756     which can conflict with char $ac_func (); below.
25757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25758     <limits.h> exists even on freestanding compilers.  */
25759
25760 #ifdef __STDC__
25761 # include <limits.h>
25762 #else
25763 # include <assert.h>
25764 #endif
25765
25766 #undef $ac_func
25767
25768 /* Override any GCC internal prototype to avoid an error.
25769    Use char because int might match the return type of a GCC
25770    builtin and then its argument prototype would still apply.  */
25771 #ifdef __cplusplus
25772 extern "C"
25773 #endif
25774 char $ac_func ();
25775 /* The GNU C library defines this for functions which it implements
25776     to always fail with ENOSYS.  Some functions are actually named
25777     something starting with __ and the normal name is an alias.  */
25778 #if defined __stub_$ac_func || defined __stub___$ac_func
25779 choke me
25780 #endif
25781
25782 int
25783 main ()
25784 {
25785 return $ac_func ();
25786   ;
25787   return 0;
25788 }
25789 _ACEOF
25790 rm -f conftest.$ac_objext conftest$ac_exeext
25791 if { (ac_try="$ac_link"
25792 case "(($ac_try" in
25793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25794   *) ac_try_echo=$ac_try;;
25795 esac
25796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25797 $as_echo "$ac_try_echo") >&5
25798   (eval "$ac_link") 2>conftest.er1
25799   ac_status=$?
25800   grep -v '^ *+' conftest.er1 >conftest.err
25801   rm -f conftest.er1
25802   cat conftest.err >&5
25803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } && {
25805          test -z "$ac_c_werror_flag" ||
25806          test ! -s conftest.err
25807        } && test -s conftest$ac_exeext && {
25808          test "$cross_compiling" = yes ||
25809          $as_test_x conftest$ac_exeext
25810        }; then
25811   eval "$as_ac_var=yes"
25812 else
25813   $as_echo "$as_me: failed program was:" >&5
25814 sed 's/^/| /' conftest.$ac_ext >&5
25815
25816         eval "$as_ac_var=no"
25817 fi
25818
25819 rm -rf conftest.dSYM
25820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25821       conftest$ac_exeext conftest.$ac_ext
25822 fi
25823 ac_res=`eval 'as_val=${'$as_ac_var'}
25824                  $as_echo "$as_val"'`
25825                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25826 $as_echo "$ac_res" >&6; }
25827 as_val=`eval 'as_val=${'$as_ac_var'}
25828                  $as_echo "$as_val"'`
25829    if test "x$as_val" = x""yes; then
25830   cat >>confdefs.h <<_ACEOF
25831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25832 _ACEOF
25833
25834 fi
25835 done
25836
25837
25838
25839   # Code from module regex:
25840
25841
25842   :
25843
25844
25845
25846
25847
25848
25849
25850 # Check whether --with-included-regex was given.
25851 if test "${with_included_regex+set}" = set; then
25852   withval=$with_included_regex;
25853 fi
25854
25855
25856   case $with_included_regex in #(
25857   yes|no) ac_use_included_regex=$with_included_regex
25858         ;;
25859   '')
25860     # If the system regex support is good enough that it passes the
25861     # following run test, then default to *not* using the included regex.c.
25862     # If cross compiling, assume the test would fail and use the included
25863     # regex.c.
25864     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
25865 $as_echo_n "checking for working re_compile_pattern... " >&6; }
25866 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
25867   $as_echo_n "(cached) " >&6
25868 else
25869   if test "$cross_compiling" = yes; then
25870          gl_cv_func_re_compile_pattern_working=no
25871 else
25872   cat >conftest.$ac_ext <<_ACEOF
25873 /* confdefs.h.  */
25874 _ACEOF
25875 cat confdefs.h >>conftest.$ac_ext
25876 cat >>conftest.$ac_ext <<_ACEOF
25877 /* end confdefs.h.  */
25878 $ac_includes_default
25879            #if HAVE_LOCALE_H
25880             #include <locale.h>
25881            #endif
25882            #include <limits.h>
25883            #include <regex.h>
25884
25885 int
25886 main ()
25887 {
25888 static struct re_pattern_buffer regex;
25889             unsigned char folded_chars[UCHAR_MAX + 1];
25890             int i;
25891             const char *s;
25892             struct re_registers regs;
25893
25894             #if HAVE_LOCALE_H
25895               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
25896                  This test needs valgrind to catch the bug on Debian
25897                  GNU/Linux 3.1 x86, but it might catch the bug better
25898                  on other platforms and it shouldn't hurt to try the
25899                  test here.  */
25900               if (setlocale (LC_ALL, "en_US.UTF-8"))
25901                 {
25902                   static char const pat[] = "insert into";
25903                   static char const data[] =
25904                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
25905                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
25906                                  | RE_ICASE);
25907                   memset (&regex, 0, sizeof regex);
25908                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
25909                   if (s)
25910                     return 1;
25911                   if (re_search (&regex, data, sizeof data - 1,
25912                                  0, sizeof data - 1, &regs)
25913                       != -1)
25914                     return 1;
25915                   if (! setlocale (LC_ALL, "C"))
25916                     return 1;
25917                 }
25918             #endif
25919
25920             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
25921             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
25922             memset (&regex, 0, sizeof regex);
25923             s = re_compile_pattern ("a[^x]b", 6, &regex);
25924             if (s)
25925               return 1;
25926
25927             /* This should fail, but succeeds for glibc-2.5.  */
25928             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
25929               return 1;
25930
25931             /* This regular expression is from Spencer ere test number 75
25932                in grep-2.3.  */
25933             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
25934             memset (&regex, 0, sizeof regex);
25935             for (i = 0; i <= UCHAR_MAX; i++)
25936               folded_chars[i] = i;
25937             regex.translate = folded_chars;
25938             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
25939             /* This should fail with _Invalid character class name_ error.  */
25940             if (!s)
25941               return 1;
25942
25943             /* Ensure that [b-a] is diagnosed as invalid, when
25944                using RE_NO_EMPTY_RANGES. */
25945             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
25946             memset (&regex, 0, sizeof regex);
25947             s = re_compile_pattern ("a[b-a]", 6, &regex);
25948             if (s == 0)
25949               return 1;
25950
25951             /* This should succeed, but does not for glibc-2.1.3.  */
25952             memset (&regex, 0, sizeof regex);
25953             s = re_compile_pattern ("{1", 2, &regex);
25954
25955             if (s)
25956               return 1;
25957
25958             /* The following example is derived from a problem report
25959                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
25960             memset (&regex, 0, sizeof regex);
25961             s = re_compile_pattern ("[an\371]*n", 7, &regex);
25962             if (s)
25963               return 1;
25964
25965             /* This should match, but does not for glibc-2.2.1.  */
25966             if (re_match (&regex, "an", 2, 0, &regs) != 2)
25967               return 1;
25968
25969             memset (&regex, 0, sizeof regex);
25970             s = re_compile_pattern ("x", 1, &regex);
25971             if (s)
25972               return 1;
25973
25974             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
25975             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
25976               return 1;
25977
25978             /* The version of regex.c in older versions of gnulib
25979                ignored RE_ICASE.  Detect that problem too.  */
25980             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
25981             memset (&regex, 0, sizeof regex);
25982             s = re_compile_pattern ("x", 1, &regex);
25983             if (s)
25984               return 1;
25985
25986             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
25987               return 1;
25988
25989             /* Catch a bug reported by Vin Shelton in
25990                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
25991                */
25992             re_set_syntax (RE_SYNTAX_POSIX_BASIC
25993                            & ~RE_CONTEXT_INVALID_DUP
25994                            & ~RE_NO_EMPTY_RANGES);
25995             memset (&regex, 0, sizeof regex);
25996             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
25997             if (s)
25998               return 1;
25999
26000             /* REG_STARTEND was added to glibc on 2004-01-15.
26001                Reject older versions.  */
26002             if (! REG_STARTEND)
26003               return 1;
26004
26005             /* Reject hosts whose regoff_t values are too narrow.
26006                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
26007                and 32-bit int.  */
26008             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
26009                 || sizeof (regoff_t) < sizeof (ssize_t))
26010               return 1;
26011
26012             return 0;
26013   ;
26014   return 0;
26015 }
26016 _ACEOF
26017 rm -f conftest$ac_exeext
26018 if { (ac_try="$ac_link"
26019 case "(($ac_try" in
26020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021   *) ac_try_echo=$ac_try;;
26022 esac
26023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26024 $as_echo "$ac_try_echo") >&5
26025   (eval "$ac_link") 2>&5
26026   ac_status=$?
26027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26029   { (case "(($ac_try" in
26030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26031   *) ac_try_echo=$ac_try;;
26032 esac
26033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26034 $as_echo "$ac_try_echo") >&5
26035   (eval "$ac_try") 2>&5
26036   ac_status=$?
26037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); }; }; then
26039   gl_cv_func_re_compile_pattern_working=yes
26040 else
26041   $as_echo "$as_me: program exited with status $ac_status" >&5
26042 $as_echo "$as_me: failed program was:" >&5
26043 sed 's/^/| /' conftest.$ac_ext >&5
26044
26045 ( exit $ac_status )
26046 gl_cv_func_re_compile_pattern_working=no
26047 fi
26048 rm -rf conftest.dSYM
26049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26050 fi
26051
26052
26053 fi
26054 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
26055 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
26056     case $gl_cv_func_re_compile_pattern_working in #(
26057     yes) ac_use_included_regex=no;; #(
26058     no) ac_use_included_regex=yes;;
26059     esac
26060     ;;
26061   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
26062 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
26063    { (exit 1); exit 1; }; }
26064     ;;
26065   esac
26066
26067   if test $ac_use_included_regex = yes; then
26068
26069 cat >>confdefs.h <<\_ACEOF
26070 #define _REGEX_LARGE_OFFSETS 1
26071 _ACEOF
26072
26073
26074 cat >>confdefs.h <<\_ACEOF
26075 #define re_syntax_options rpl_re_syntax_options
26076 _ACEOF
26077
26078
26079 cat >>confdefs.h <<\_ACEOF
26080 #define re_set_syntax rpl_re_set_syntax
26081 _ACEOF
26082
26083
26084 cat >>confdefs.h <<\_ACEOF
26085 #define re_compile_pattern rpl_re_compile_pattern
26086 _ACEOF
26087
26088
26089 cat >>confdefs.h <<\_ACEOF
26090 #define re_compile_fastmap rpl_re_compile_fastmap
26091 _ACEOF
26092
26093
26094 cat >>confdefs.h <<\_ACEOF
26095 #define re_search rpl_re_search
26096 _ACEOF
26097
26098
26099 cat >>confdefs.h <<\_ACEOF
26100 #define re_search_2 rpl_re_search_2
26101 _ACEOF
26102
26103
26104 cat >>confdefs.h <<\_ACEOF
26105 #define re_match rpl_re_match
26106 _ACEOF
26107
26108
26109 cat >>confdefs.h <<\_ACEOF
26110 #define re_match_2 rpl_re_match_2
26111 _ACEOF
26112
26113
26114 cat >>confdefs.h <<\_ACEOF
26115 #define re_set_registers rpl_re_set_registers
26116 _ACEOF
26117
26118
26119 cat >>confdefs.h <<\_ACEOF
26120 #define re_comp rpl_re_comp
26121 _ACEOF
26122
26123
26124 cat >>confdefs.h <<\_ACEOF
26125 #define re_exec rpl_re_exec
26126 _ACEOF
26127
26128
26129 cat >>confdefs.h <<\_ACEOF
26130 #define regcomp rpl_regcomp
26131 _ACEOF
26132
26133
26134 cat >>confdefs.h <<\_ACEOF
26135 #define regexec rpl_regexec
26136 _ACEOF
26137
26138
26139 cat >>confdefs.h <<\_ACEOF
26140 #define regerror rpl_regerror
26141 _ACEOF
26142
26143
26144 cat >>confdefs.h <<\_ACEOF
26145 #define regfree rpl_regfree
26146 _ACEOF
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
26157
26158
26159
26160
26161
26162
26163
26164 for ac_header in libintl.h
26165 do
26166 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26168   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26169 $as_echo_n "checking for $ac_header... " >&6; }
26170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26171   $as_echo_n "(cached) " >&6
26172 fi
26173 ac_res=`eval 'as_val=${'$as_ac_Header'}
26174                  $as_echo "$as_val"'`
26175                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26176 $as_echo "$ac_res" >&6; }
26177 else
26178   # Is the header compilable?
26179 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26180 $as_echo_n "checking $ac_header usability... " >&6; }
26181 cat >conftest.$ac_ext <<_ACEOF
26182 /* confdefs.h.  */
26183 _ACEOF
26184 cat confdefs.h >>conftest.$ac_ext
26185 cat >>conftest.$ac_ext <<_ACEOF
26186 /* end confdefs.h.  */
26187 $ac_includes_default
26188 #include <$ac_header>
26189 _ACEOF
26190 rm -f conftest.$ac_objext
26191 if { (ac_try="$ac_compile"
26192 case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198   (eval "$ac_compile") 2>conftest.er1
26199   ac_status=$?
26200   grep -v '^ *+' conftest.er1 >conftest.err
26201   rm -f conftest.er1
26202   cat conftest.err >&5
26203   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); } && {
26205          test -z "$ac_c_werror_flag" ||
26206          test ! -s conftest.err
26207        } && test -s conftest.$ac_objext; then
26208   ac_header_compiler=yes
26209 else
26210   $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26212
26213         ac_header_compiler=no
26214 fi
26215
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26217 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26218 $as_echo "$ac_header_compiler" >&6; }
26219
26220 # Is the header present?
26221 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26222 $as_echo_n "checking $ac_header presence... " >&6; }
26223 cat >conftest.$ac_ext <<_ACEOF
26224 /* confdefs.h.  */
26225 _ACEOF
26226 cat confdefs.h >>conftest.$ac_ext
26227 cat >>conftest.$ac_ext <<_ACEOF
26228 /* end confdefs.h.  */
26229 #include <$ac_header>
26230 _ACEOF
26231 if { (ac_try="$ac_cpp conftest.$ac_ext"
26232 case "(($ac_try" in
26233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26234   *) ac_try_echo=$ac_try;;
26235 esac
26236 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26237 $as_echo "$ac_try_echo") >&5
26238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26239   ac_status=$?
26240   grep -v '^ *+' conftest.er1 >conftest.err
26241   rm -f conftest.er1
26242   cat conftest.err >&5
26243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); } >/dev/null && {
26245          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26246          test ! -s conftest.err
26247        }; then
26248   ac_header_preproc=yes
26249 else
26250   $as_echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26252
26253   ac_header_preproc=no
26254 fi
26255
26256 rm -f conftest.err conftest.$ac_ext
26257 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26258 $as_echo "$ac_header_preproc" >&6; }
26259
26260 # So?  What about this header?
26261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26262   yes:no: )
26263     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26264 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26266 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26267     ac_header_preproc=yes
26268     ;;
26269   no:yes:* )
26270     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26271 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26273 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26275 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26277 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26281 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26282
26283     ;;
26284 esac
26285 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26286 $as_echo_n "checking for $ac_header... " >&6; }
26287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26288   $as_echo_n "(cached) " >&6
26289 else
26290   eval "$as_ac_Header=\$ac_header_preproc"
26291 fi
26292 ac_res=`eval 'as_val=${'$as_ac_Header'}
26293                  $as_echo "$as_val"'`
26294                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26295 $as_echo "$ac_res" >&6; }
26296
26297 fi
26298 as_val=`eval 'as_val=${'$as_ac_Header'}
26299                  $as_echo "$as_val"'`
26300    if test "x$as_val" = x""yes; then
26301   cat >>confdefs.h <<_ACEOF
26302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26303 _ACEOF
26304
26305 fi
26306
26307 done
26308
26309
26310   :
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
26323 $as_echo_n "checking whether isblank is declared... " >&6; }
26324 if test "${ac_cv_have_decl_isblank+set}" = set; then
26325   $as_echo_n "(cached) " >&6
26326 else
26327   cat >conftest.$ac_ext <<_ACEOF
26328 /* confdefs.h.  */
26329 _ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h.  */
26333 #include <ctype.h>
26334
26335 int
26336 main ()
26337 {
26338 #ifndef isblank
26339   (void) isblank;
26340 #endif
26341
26342   ;
26343   return 0;
26344 }
26345 _ACEOF
26346 rm -f conftest.$ac_objext
26347 if { (ac_try="$ac_compile"
26348 case "(($ac_try" in
26349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26350   *) ac_try_echo=$ac_try;;
26351 esac
26352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26353 $as_echo "$ac_try_echo") >&5
26354   (eval "$ac_compile") 2>conftest.er1
26355   ac_status=$?
26356   grep -v '^ *+' conftest.er1 >conftest.err
26357   rm -f conftest.er1
26358   cat conftest.err >&5
26359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26360   (exit $ac_status); } && {
26361          test -z "$ac_c_werror_flag" ||
26362          test ! -s conftest.err
26363        } && test -s conftest.$ac_objext; then
26364   ac_cv_have_decl_isblank=yes
26365 else
26366   $as_echo "$as_me: failed program was:" >&5
26367 sed 's/^/| /' conftest.$ac_ext >&5
26368
26369         ac_cv_have_decl_isblank=no
26370 fi
26371
26372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26373 fi
26374 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
26375 $as_echo "$ac_cv_have_decl_isblank" >&6; }
26376 if test "x$ac_cv_have_decl_isblank" = x""yes; then
26377
26378 cat >>confdefs.h <<_ACEOF
26379 #define HAVE_DECL_ISBLANK 1
26380 _ACEOF
26381
26382
26383 else
26384   cat >>confdefs.h <<_ACEOF
26385 #define HAVE_DECL_ISBLANK 0
26386 _ACEOF
26387
26388
26389 fi
26390
26391
26392
26393   fi
26394
26395   # Code from module safe-read:
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
26406
26407
26408
26409
26410
26411
26412   # Code from module safe-write:
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
26423
26424
26425
26426
26427
26428
26429
26430
26431   # Code from module servent:
26432
26433                       SERVENT_LIB=
26434   gl_saved_libs="$LIBS"
26435   { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
26436 $as_echo_n "checking for library containing getservbyname... " >&6; }
26437 if test "${ac_cv_search_getservbyname+set}" = set; then
26438   $as_echo_n "(cached) " >&6
26439 else
26440   ac_func_search_save_LIBS=$LIBS
26441 cat >conftest.$ac_ext <<_ACEOF
26442 /* confdefs.h.  */
26443 _ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h.  */
26447
26448 /* Override any GCC internal prototype to avoid an error.
26449    Use char because int might match the return type of a GCC
26450    builtin and then its argument prototype would still apply.  */
26451 #ifdef __cplusplus
26452 extern "C"
26453 #endif
26454 char getservbyname ();
26455 int
26456 main ()
26457 {
26458 return getservbyname ();
26459   ;
26460   return 0;
26461 }
26462 _ACEOF
26463 for ac_lib in '' socket network net; do
26464   if test -z "$ac_lib"; then
26465     ac_res="none required"
26466   else
26467     ac_res=-l$ac_lib
26468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26469   fi
26470   rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26477 $as_echo "$ac_try_echo") >&5
26478   (eval "$ac_link") 2>conftest.er1
26479   ac_status=$?
26480   grep -v '^ *+' conftest.er1 >conftest.err
26481   rm -f conftest.er1
26482   cat conftest.err >&5
26483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); } && {
26485          test -z "$ac_c_werror_flag" ||
26486          test ! -s conftest.err
26487        } && test -s conftest$ac_exeext && {
26488          test "$cross_compiling" = yes ||
26489          $as_test_x conftest$ac_exeext
26490        }; then
26491   ac_cv_search_getservbyname=$ac_res
26492 else
26493   $as_echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26495
26496
26497 fi
26498
26499 rm -rf conftest.dSYM
26500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26501       conftest$ac_exeext
26502   if test "${ac_cv_search_getservbyname+set}" = set; then
26503   break
26504 fi
26505 done
26506 if test "${ac_cv_search_getservbyname+set}" = set; then
26507   :
26508 else
26509   ac_cv_search_getservbyname=no
26510 fi
26511 rm conftest.$ac_ext
26512 LIBS=$ac_func_search_save_LIBS
26513 fi
26514 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
26515 $as_echo "$ac_cv_search_getservbyname" >&6; }
26516 ac_res=$ac_cv_search_getservbyname
26517 if test "$ac_res" != no; then
26518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26519   if test "$ac_cv_search_getservbyname" != "none required"; then
26520        SERVENT_LIB="$ac_cv_search_getservbyname"
26521      fi
26522 fi
26523
26524   LIBS="$gl_saved_libs"
26525   if test -z "$SERVENT_LIB"; then
26526
26527 for ac_func in getservbyname
26528 do
26529 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26530 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26531 $as_echo_n "checking for $ac_func... " >&6; }
26532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26533   $as_echo_n "(cached) " >&6
26534 else
26535   cat >conftest.$ac_ext <<_ACEOF
26536 /* confdefs.h.  */
26537 _ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h.  */
26541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26543 #define $ac_func innocuous_$ac_func
26544
26545 /* System header to define __stub macros and hopefully few prototypes,
26546     which can conflict with char $ac_func (); below.
26547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26548     <limits.h> exists even on freestanding compilers.  */
26549
26550 #ifdef __STDC__
26551 # include <limits.h>
26552 #else
26553 # include <assert.h>
26554 #endif
26555
26556 #undef $ac_func
26557
26558 /* Override any GCC internal prototype to avoid an error.
26559    Use char because int might match the return type of a GCC
26560    builtin and then its argument prototype would still apply.  */
26561 #ifdef __cplusplus
26562 extern "C"
26563 #endif
26564 char $ac_func ();
26565 /* The GNU C library defines this for functions which it implements
26566     to always fail with ENOSYS.  Some functions are actually named
26567     something starting with __ and the normal name is an alias.  */
26568 #if defined __stub_$ac_func || defined __stub___$ac_func
26569 choke me
26570 #endif
26571
26572 int
26573 main ()
26574 {
26575 return $ac_func ();
26576   ;
26577   return 0;
26578 }
26579 _ACEOF
26580 rm -f conftest.$ac_objext conftest$ac_exeext
26581 if { (ac_try="$ac_link"
26582 case "(($ac_try" in
26583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584   *) ac_try_echo=$ac_try;;
26585 esac
26586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26587 $as_echo "$ac_try_echo") >&5
26588   (eval "$ac_link") 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } && {
26595          test -z "$ac_c_werror_flag" ||
26596          test ! -s conftest.err
26597        } && test -s conftest$ac_exeext && {
26598          test "$cross_compiling" = yes ||
26599          $as_test_x conftest$ac_exeext
26600        }; then
26601   eval "$as_ac_var=yes"
26602 else
26603   $as_echo "$as_me: failed program was:" >&5
26604 sed 's/^/| /' conftest.$ac_ext >&5
26605
26606         eval "$as_ac_var=no"
26607 fi
26608
26609 rm -rf conftest.dSYM
26610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26611       conftest$ac_exeext conftest.$ac_ext
26612 fi
26613 ac_res=`eval 'as_val=${'$as_ac_var'}
26614                  $as_echo "$as_val"'`
26615                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26616 $as_echo "$ac_res" >&6; }
26617 as_val=`eval 'as_val=${'$as_ac_var'}
26618                  $as_echo "$as_val"'`
26619    if test "x$as_val" = x""yes; then
26620   cat >>confdefs.h <<_ACEOF
26621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26622 _ACEOF
26623
26624 else
26625
26626       { $as_echo "$as_me:$LINENO: checking for getservbyname in winsock2.h and -lws2_32" >&5
26627 $as_echo_n "checking for getservbyname in winsock2.h and -lws2_32... " >&6; }
26628 if test "${gl_cv_w32_getservbyname+set}" = set; then
26629   $as_echo_n "(cached) " >&6
26630 else
26631   gl_cv_w32_getservbyname=no
26632          gl_save_LIBS="$LIBS"
26633          LIBS="$LIBS -lws2_32"
26634          cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640
26641 #ifdef HAVE_WINSOCK2_H
26642 #include <winsock2.h>
26643 #endif
26644 #include <stddef.h>
26645
26646 int
26647 main ()
26648 {
26649 getservbyname(NULL,NULL);
26650   ;
26651   return 0;
26652 }
26653 _ACEOF
26654 rm -f conftest.$ac_objext conftest$ac_exeext
26655 if { (ac_try="$ac_link"
26656 case "(($ac_try" in
26657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658   *) ac_try_echo=$ac_try;;
26659 esac
26660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26661 $as_echo "$ac_try_echo") >&5
26662   (eval "$ac_link") 2>conftest.er1
26663   ac_status=$?
26664   grep -v '^ *+' conftest.er1 >conftest.err
26665   rm -f conftest.er1
26666   cat conftest.err >&5
26667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668   (exit $ac_status); } && {
26669          test -z "$ac_c_werror_flag" ||
26670          test ! -s conftest.err
26671        } && test -s conftest$ac_exeext && {
26672          test "$cross_compiling" = yes ||
26673          $as_test_x conftest$ac_exeext
26674        }; then
26675   gl_cv_w32_getservbyname=yes
26676 else
26677   $as_echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26679
26680
26681 fi
26682
26683 rm -rf conftest.dSYM
26684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26685       conftest$ac_exeext conftest.$ac_ext
26686          LIBS="$gl_save_LIBS"
26687
26688 fi
26689 { $as_echo "$as_me:$LINENO: result: $gl_cv_w32_getservbyname" >&5
26690 $as_echo "$gl_cv_w32_getservbyname" >&6; }
26691       if test "$gl_cv_w32_getservbyname" = "yes"; then
26692         SERVENT_LIB="-lws2_32"
26693       fi
26694
26695 fi
26696 done
26697
26698   fi
26699
26700
26701   # Code from module size_max:
26702
26703
26704 for ac_header in stdint.h
26705 do
26706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26708   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26709 $as_echo_n "checking for $ac_header... " >&6; }
26710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26711   $as_echo_n "(cached) " >&6
26712 fi
26713 ac_res=`eval 'as_val=${'$as_ac_Header'}
26714                  $as_echo "$as_val"'`
26715                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26716 $as_echo "$ac_res" >&6; }
26717 else
26718   # Is the header compilable?
26719 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26720 $as_echo_n "checking $ac_header usability... " >&6; }
26721 cat >conftest.$ac_ext <<_ACEOF
26722 /* confdefs.h.  */
26723 _ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h.  */
26727 $ac_includes_default
26728 #include <$ac_header>
26729 _ACEOF
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734   *) ac_try_echo=$ac_try;;
26735 esac
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738   (eval "$ac_compile") 2>conftest.er1
26739   ac_status=$?
26740   grep -v '^ *+' conftest.er1 >conftest.err
26741   rm -f conftest.er1
26742   cat conftest.err >&5
26743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } && {
26745          test -z "$ac_c_werror_flag" ||
26746          test ! -s conftest.err
26747        } && test -s conftest.$ac_objext; then
26748   ac_header_compiler=yes
26749 else
26750   $as_echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26752
26753         ac_header_compiler=no
26754 fi
26755
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26758 $as_echo "$ac_header_compiler" >&6; }
26759
26760 # Is the header present?
26761 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26762 $as_echo_n "checking $ac_header presence... " >&6; }
26763 cat >conftest.$ac_ext <<_ACEOF
26764 /* confdefs.h.  */
26765 _ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h.  */
26769 #include <$ac_header>
26770 _ACEOF
26771 if { (ac_try="$ac_cpp conftest.$ac_ext"
26772 case "(($ac_try" in
26773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774   *) ac_try_echo=$ac_try;;
26775 esac
26776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26777 $as_echo "$ac_try_echo") >&5
26778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26779   ac_status=$?
26780   grep -v '^ *+' conftest.er1 >conftest.err
26781   rm -f conftest.er1
26782   cat conftest.err >&5
26783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784   (exit $ac_status); } >/dev/null && {
26785          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26786          test ! -s conftest.err
26787        }; then
26788   ac_header_preproc=yes
26789 else
26790   $as_echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26792
26793   ac_header_preproc=no
26794 fi
26795
26796 rm -f conftest.err conftest.$ac_ext
26797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26798 $as_echo "$ac_header_preproc" >&6; }
26799
26800 # So?  What about this header?
26801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26802   yes:no: )
26803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26804 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26805     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26807     ac_header_preproc=yes
26808     ;;
26809   no:yes:* )
26810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26811 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26813 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26815 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26817 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26821 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26822
26823     ;;
26824 esac
26825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26826 $as_echo_n "checking for $ac_header... " >&6; }
26827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26828   $as_echo_n "(cached) " >&6
26829 else
26830   eval "$as_ac_Header=\$ac_header_preproc"
26831 fi
26832 ac_res=`eval 'as_val=${'$as_ac_Header'}
26833                  $as_echo "$as_val"'`
26834                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26835 $as_echo "$ac_res" >&6; }
26836
26837 fi
26838 as_val=`eval 'as_val=${'$as_ac_Header'}
26839                  $as_echo "$as_val"'`
26840    if test "x$as_val" = x""yes; then
26841   cat >>confdefs.h <<_ACEOF
26842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26843 _ACEOF
26844
26845 fi
26846
26847 done
26848
26849     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26850 $as_echo_n "checking for SIZE_MAX... " >&6; }
26851   result=
26852   cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858
26859 #include <limits.h>
26860 #if HAVE_STDINT_H
26861 #include <stdint.h>
26862 #endif
26863 #ifdef SIZE_MAX
26864 Found it
26865 #endif
26866
26867 _ACEOF
26868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26869   $EGREP "Found it" >/dev/null 2>&1; then
26870   result=yes
26871 fi
26872 rm -f conftest*
26873
26874   if test -z "$result"; then
26875                 if test "$cross_compiling" = yes; then
26876   # Depending upon the size, compute the lo and hi bounds.
26877 cat >conftest.$ac_ext <<_ACEOF
26878 /* confdefs.h.  */
26879 _ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h.  */
26883 #include <stddef.h>
26884 #include <limits.h>
26885 int
26886 main ()
26887 {
26888 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
26889 test_array [0] = 0
26890
26891   ;
26892   return 0;
26893 }
26894 _ACEOF
26895 rm -f conftest.$ac_objext
26896 if { (ac_try="$ac_compile"
26897 case "(($ac_try" in
26898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899   *) ac_try_echo=$ac_try;;
26900 esac
26901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26902 $as_echo "$ac_try_echo") >&5
26903   (eval "$ac_compile") 2>conftest.er1
26904   ac_status=$?
26905   grep -v '^ *+' conftest.er1 >conftest.err
26906   rm -f conftest.er1
26907   cat conftest.err >&5
26908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); } && {
26910          test -z "$ac_c_werror_flag" ||
26911          test ! -s conftest.err
26912        } && test -s conftest.$ac_objext; then
26913   ac_lo=0 ac_mid=0
26914   while :; do
26915     cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921 #include <stddef.h>
26922 #include <limits.h>
26923 int
26924 main ()
26925 {
26926 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26927 test_array [0] = 0
26928
26929   ;
26930   return 0;
26931 }
26932 _ACEOF
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26940 $as_echo "$ac_try_echo") >&5
26941   (eval "$ac_compile") 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } && {
26948          test -z "$ac_c_werror_flag" ||
26949          test ! -s conftest.err
26950        } && test -s conftest.$ac_objext; then
26951   ac_hi=$ac_mid; break
26952 else
26953   $as_echo "$as_me: failed program was:" >&5
26954 sed 's/^/| /' conftest.$ac_ext >&5
26955
26956         ac_lo=`expr $ac_mid + 1`
26957                         if test $ac_lo -le $ac_mid; then
26958                           ac_lo= ac_hi=
26959                           break
26960                         fi
26961                         ac_mid=`expr 2 '*' $ac_mid + 1`
26962 fi
26963
26964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26965   done
26966 else
26967   $as_echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26969
26970         cat >conftest.$ac_ext <<_ACEOF
26971 /* confdefs.h.  */
26972 _ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h.  */
26976 #include <stddef.h>
26977 #include <limits.h>
26978 int
26979 main ()
26980 {
26981 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
26982 test_array [0] = 0
26983
26984   ;
26985   return 0;
26986 }
26987 _ACEOF
26988 rm -f conftest.$ac_objext
26989 if { (ac_try="$ac_compile"
26990 case "(($ac_try" in
26991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992   *) ac_try_echo=$ac_try;;
26993 esac
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996   (eval "$ac_compile") 2>conftest.er1
26997   ac_status=$?
26998   grep -v '^ *+' conftest.er1 >conftest.err
26999   rm -f conftest.er1
27000   cat conftest.err >&5
27001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); } && {
27003          test -z "$ac_c_werror_flag" ||
27004          test ! -s conftest.err
27005        } && test -s conftest.$ac_objext; then
27006   ac_hi=-1 ac_mid=-1
27007   while :; do
27008     cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h.  */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h.  */
27014 #include <stddef.h>
27015 #include <limits.h>
27016 int
27017 main ()
27018 {
27019 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27020 test_array [0] = 0
27021
27022   ;
27023   return 0;
27024 }
27025 _ACEOF
27026 rm -f conftest.$ac_objext
27027 if { (ac_try="$ac_compile"
27028 case "(($ac_try" in
27029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27030   *) ac_try_echo=$ac_try;;
27031 esac
27032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27033 $as_echo "$ac_try_echo") >&5
27034   (eval "$ac_compile") 2>conftest.er1
27035   ac_status=$?
27036   grep -v '^ *+' conftest.er1 >conftest.err
27037   rm -f conftest.er1
27038   cat conftest.err >&5
27039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); } && {
27041          test -z "$ac_c_werror_flag" ||
27042          test ! -s conftest.err
27043        } && test -s conftest.$ac_objext; then
27044   ac_lo=$ac_mid; break
27045 else
27046   $as_echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049         ac_hi=`expr '(' $ac_mid ')' - 1`
27050                         if test $ac_mid -le $ac_hi; then
27051                           ac_lo= ac_hi=
27052                           break
27053                         fi
27054                         ac_mid=`expr 2 '*' $ac_mid`
27055 fi
27056
27057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058   done
27059 else
27060   $as_echo "$as_me: failed program was:" >&5
27061 sed 's/^/| /' conftest.$ac_ext >&5
27062
27063         ac_lo= ac_hi=
27064 fi
27065
27066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27067 fi
27068
27069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27070 # Binary search between lo and hi bounds.
27071 while test "x$ac_lo" != "x$ac_hi"; do
27072   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27073   cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079 #include <stddef.h>
27080 #include <limits.h>
27081 int
27082 main ()
27083 {
27084 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27085 test_array [0] = 0
27086
27087   ;
27088   return 0;
27089 }
27090 _ACEOF
27091 rm -f conftest.$ac_objext
27092 if { (ac_try="$ac_compile"
27093 case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27098 $as_echo "$ac_try_echo") >&5
27099   (eval "$ac_compile") 2>conftest.er1
27100   ac_status=$?
27101   grep -v '^ *+' conftest.er1 >conftest.err
27102   rm -f conftest.er1
27103   cat conftest.err >&5
27104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); } && {
27106          test -z "$ac_c_werror_flag" ||
27107          test ! -s conftest.err
27108        } && test -s conftest.$ac_objext; then
27109   ac_hi=$ac_mid
27110 else
27111   $as_echo "$as_me: failed program was:" >&5
27112 sed 's/^/| /' conftest.$ac_ext >&5
27113
27114         ac_lo=`expr '(' $ac_mid ')' + 1`
27115 fi
27116
27117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27118 done
27119 case $ac_lo in
27120 ?*) size_t_bits_minus_1=$ac_lo;;
27121 '') size_t_bits_minus_1= ;;
27122 esac
27123 else
27124   cat >conftest.$ac_ext <<_ACEOF
27125 /* confdefs.h.  */
27126 _ACEOF
27127 cat confdefs.h >>conftest.$ac_ext
27128 cat >>conftest.$ac_ext <<_ACEOF
27129 /* end confdefs.h.  */
27130 #include <stddef.h>
27131 #include <limits.h>
27132 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
27133 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
27134 #include <stdio.h>
27135 #include <stdlib.h>
27136 int
27137 main ()
27138 {
27139
27140   FILE *f = fopen ("conftest.val", "w");
27141   if (! f)
27142     return 1;
27143   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
27144     {
27145       long int i = longval ();
27146       if (i != (sizeof (size_t) * CHAR_BIT - 1))
27147         return 1;
27148       fprintf (f, "%ld", i);
27149     }
27150   else
27151     {
27152       unsigned long int i = ulongval ();
27153       if (i != (sizeof (size_t) * CHAR_BIT - 1))
27154         return 1;
27155       fprintf (f, "%lu", i);
27156     }
27157   /* Do not output a trailing newline, as this causes \r\n confusion
27158      on some platforms.  */
27159   return ferror (f) || fclose (f) != 0;
27160
27161   ;
27162   return 0;
27163 }
27164 _ACEOF
27165 rm -f conftest$ac_exeext
27166 if { (ac_try="$ac_link"
27167 case "(($ac_try" in
27168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169   *) ac_try_echo=$ac_try;;
27170 esac
27171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27172 $as_echo "$ac_try_echo") >&5
27173   (eval "$ac_link") 2>&5
27174   ac_status=$?
27175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27177   { (case "(($ac_try" in
27178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27179   *) ac_try_echo=$ac_try;;
27180 esac
27181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27182 $as_echo "$ac_try_echo") >&5
27183   (eval "$ac_try") 2>&5
27184   ac_status=$?
27185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; }; then
27187   size_t_bits_minus_1=`cat conftest.val`
27188 else
27189   $as_echo "$as_me: program exited with status $ac_status" >&5
27190 $as_echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27192
27193 ( exit $ac_status )
27194 size_t_bits_minus_1=
27195 fi
27196 rm -rf conftest.dSYM
27197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27198 fi
27199 rm -f conftest.val
27200
27201     if test "$cross_compiling" = yes; then
27202   # Depending upon the size, compute the lo and hi bounds.
27203 cat >conftest.$ac_ext <<_ACEOF
27204 /* confdefs.h.  */
27205 _ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h.  */
27209 #include <stddef.h>
27210 int
27211 main ()
27212 {
27213 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
27214 test_array [0] = 0
27215
27216   ;
27217   return 0;
27218 }
27219 _ACEOF
27220 rm -f conftest.$ac_objext
27221 if { (ac_try="$ac_compile"
27222 case "(($ac_try" in
27223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224   *) ac_try_echo=$ac_try;;
27225 esac
27226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27227 $as_echo "$ac_try_echo") >&5
27228   (eval "$ac_compile") 2>conftest.er1
27229   ac_status=$?
27230   grep -v '^ *+' conftest.er1 >conftest.err
27231   rm -f conftest.er1
27232   cat conftest.err >&5
27233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234   (exit $ac_status); } && {
27235          test -z "$ac_c_werror_flag" ||
27236          test ! -s conftest.err
27237        } && test -s conftest.$ac_objext; then
27238   ac_lo=0 ac_mid=0
27239   while :; do
27240     cat >conftest.$ac_ext <<_ACEOF
27241 /* confdefs.h.  */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h.  */
27246 #include <stddef.h>
27247 int
27248 main ()
27249 {
27250 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27251 test_array [0] = 0
27252
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261   *) ac_try_echo=$ac_try;;
27262 esac
27263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27264 $as_echo "$ac_try_echo") >&5
27265   (eval "$ac_compile") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } && {
27272          test -z "$ac_c_werror_flag" ||
27273          test ! -s conftest.err
27274        } && test -s conftest.$ac_objext; then
27275   ac_hi=$ac_mid; break
27276 else
27277   $as_echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27279
27280         ac_lo=`expr $ac_mid + 1`
27281                         if test $ac_lo -le $ac_mid; then
27282                           ac_lo= ac_hi=
27283                           break
27284                         fi
27285                         ac_mid=`expr 2 '*' $ac_mid + 1`
27286 fi
27287
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289   done
27290 else
27291   $as_echo "$as_me: failed program was:" >&5
27292 sed 's/^/| /' conftest.$ac_ext >&5
27293
27294         cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300 #include <stddef.h>
27301 int
27302 main ()
27303 {
27304 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
27305 test_array [0] = 0
27306
27307   ;
27308   return 0;
27309 }
27310 _ACEOF
27311 rm -f conftest.$ac_objext
27312 if { (ac_try="$ac_compile"
27313 case "(($ac_try" in
27314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27315   *) ac_try_echo=$ac_try;;
27316 esac
27317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27318 $as_echo "$ac_try_echo") >&5
27319   (eval "$ac_compile") 2>conftest.er1
27320   ac_status=$?
27321   grep -v '^ *+' conftest.er1 >conftest.err
27322   rm -f conftest.er1
27323   cat conftest.err >&5
27324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); } && {
27326          test -z "$ac_c_werror_flag" ||
27327          test ! -s conftest.err
27328        } && test -s conftest.$ac_objext; then
27329   ac_hi=-1 ac_mid=-1
27330   while :; do
27331     cat >conftest.$ac_ext <<_ACEOF
27332 /* confdefs.h.  */
27333 _ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h.  */
27337 #include <stddef.h>
27338 int
27339 main ()
27340 {
27341 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
27342 test_array [0] = 0
27343
27344   ;
27345   return 0;
27346 }
27347 _ACEOF
27348 rm -f conftest.$ac_objext
27349 if { (ac_try="$ac_compile"
27350 case "(($ac_try" in
27351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27352   *) ac_try_echo=$ac_try;;
27353 esac
27354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27355 $as_echo "$ac_try_echo") >&5
27356   (eval "$ac_compile") 2>conftest.er1
27357   ac_status=$?
27358   grep -v '^ *+' conftest.er1 >conftest.err
27359   rm -f conftest.er1
27360   cat conftest.err >&5
27361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27362   (exit $ac_status); } && {
27363          test -z "$ac_c_werror_flag" ||
27364          test ! -s conftest.err
27365        } && test -s conftest.$ac_objext; then
27366   ac_lo=$ac_mid; break
27367 else
27368   $as_echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27370
27371         ac_hi=`expr '(' $ac_mid ')' - 1`
27372                         if test $ac_mid -le $ac_hi; then
27373                           ac_lo= ac_hi=
27374                           break
27375                         fi
27376                         ac_mid=`expr 2 '*' $ac_mid`
27377 fi
27378
27379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27380   done
27381 else
27382   $as_echo "$as_me: failed program was:" >&5
27383 sed 's/^/| /' conftest.$ac_ext >&5
27384
27385         ac_lo= ac_hi=
27386 fi
27387
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389 fi
27390
27391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27392 # Binary search between lo and hi bounds.
27393 while test "x$ac_lo" != "x$ac_hi"; do
27394   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27395   cat >conftest.$ac_ext <<_ACEOF
27396 /* confdefs.h.  */
27397 _ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h.  */
27401 #include <stddef.h>
27402 int
27403 main ()
27404 {
27405 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27406 test_array [0] = 0
27407
27408   ;
27409   return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext
27413 if { (ac_try="$ac_compile"
27414 case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27419 $as_echo "$ac_try_echo") >&5
27420   (eval "$ac_compile") 2>conftest.er1
27421   ac_status=$?
27422   grep -v '^ *+' conftest.er1 >conftest.err
27423   rm -f conftest.er1
27424   cat conftest.err >&5
27425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426   (exit $ac_status); } && {
27427          test -z "$ac_c_werror_flag" ||
27428          test ! -s conftest.err
27429        } && test -s conftest.$ac_objext; then
27430   ac_hi=$ac_mid
27431 else
27432   $as_echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435         ac_lo=`expr '(' $ac_mid ')' + 1`
27436 fi
27437
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27439 done
27440 case $ac_lo in
27441 ?*) fits_in_uint=$ac_lo;;
27442 '') fits_in_uint= ;;
27443 esac
27444 else
27445   cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h.  */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h.  */
27451 #include <stddef.h>
27452 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
27453 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
27454 #include <stdio.h>
27455 #include <stdlib.h>
27456 int
27457 main ()
27458 {
27459
27460   FILE *f = fopen ("conftest.val", "w");
27461   if (! f)
27462     return 1;
27463   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
27464     {
27465       long int i = longval ();
27466       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27467         return 1;
27468       fprintf (f, "%ld", i);
27469     }
27470   else
27471     {
27472       unsigned long int i = ulongval ();
27473       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27474         return 1;
27475       fprintf (f, "%lu", i);
27476     }
27477   /* Do not output a trailing newline, as this causes \r\n confusion
27478      on some platforms.  */
27479   return ferror (f) || fclose (f) != 0;
27480
27481   ;
27482   return 0;
27483 }
27484 _ACEOF
27485 rm -f conftest$ac_exeext
27486 if { (ac_try="$ac_link"
27487 case "(($ac_try" in
27488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489   *) ac_try_echo=$ac_try;;
27490 esac
27491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27492 $as_echo "$ac_try_echo") >&5
27493   (eval "$ac_link") 2>&5
27494   ac_status=$?
27495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27497   { (case "(($ac_try" in
27498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499   *) ac_try_echo=$ac_try;;
27500 esac
27501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27502 $as_echo "$ac_try_echo") >&5
27503   (eval "$ac_try") 2>&5
27504   ac_status=$?
27505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506   (exit $ac_status); }; }; then
27507   fits_in_uint=`cat conftest.val`
27508 else
27509   $as_echo "$as_me: program exited with status $ac_status" >&5
27510 $as_echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27512
27513 ( exit $ac_status )
27514 fits_in_uint=
27515 fi
27516 rm -rf conftest.dSYM
27517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27518 fi
27519 rm -f conftest.val
27520
27521     if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
27522       if test $fits_in_uint = 1; then
27523                         cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h.  */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h.  */
27529 #include <stddef.h>
27530           extern size_t foo;
27531           extern unsigned long foo;
27532
27533 int
27534 main ()
27535 {
27536
27537   ;
27538   return 0;
27539 }
27540 _ACEOF
27541 rm -f conftest.$ac_objext
27542 if { (ac_try="$ac_compile"
27543 case "(($ac_try" in
27544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545   *) ac_try_echo=$ac_try;;
27546 esac
27547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27548 $as_echo "$ac_try_echo") >&5
27549   (eval "$ac_compile") 2>conftest.er1
27550   ac_status=$?
27551   grep -v '^ *+' conftest.er1 >conftest.err
27552   rm -f conftest.er1
27553   cat conftest.err >&5
27554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555   (exit $ac_status); } && {
27556          test -z "$ac_c_werror_flag" ||
27557          test ! -s conftest.err
27558        } && test -s conftest.$ac_objext; then
27559   fits_in_uint=0
27560 else
27561   $as_echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27563
27564
27565 fi
27566
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27568       fi
27569                         if test $fits_in_uint = 1; then
27570         result="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
27571       else
27572         result="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
27573       fi
27574     else
27575             result='((size_t)~(size_t)0)'
27576     fi
27577   fi
27578   { $as_echo "$as_me:$LINENO: result: $result" >&5
27579 $as_echo "$result" >&6; }
27580   if test "$result" != yes; then
27581
27582 cat >>confdefs.h <<_ACEOF
27583 #define SIZE_MAX $result
27584 _ACEOF
27585
27586   fi
27587
27588   # Code from module snprintf:
27589
27590
27591   gl_cv_func_snprintf_usable=no
27592
27593 for ac_func in snprintf
27594 do
27595 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27596 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27597 $as_echo_n "checking for $ac_func... " >&6; }
27598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27599   $as_echo_n "(cached) " >&6
27600 else
27601   cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h.  */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h.  */
27607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27609 #define $ac_func innocuous_$ac_func
27610
27611 /* System header to define __stub macros and hopefully few prototypes,
27612     which can conflict with char $ac_func (); below.
27613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27614     <limits.h> exists even on freestanding compilers.  */
27615
27616 #ifdef __STDC__
27617 # include <limits.h>
27618 #else
27619 # include <assert.h>
27620 #endif
27621
27622 #undef $ac_func
27623
27624 /* Override any GCC internal prototype to avoid an error.
27625    Use char because int might match the return type of a GCC
27626    builtin and then its argument prototype would still apply.  */
27627 #ifdef __cplusplus
27628 extern "C"
27629 #endif
27630 char $ac_func ();
27631 /* The GNU C library defines this for functions which it implements
27632     to always fail with ENOSYS.  Some functions are actually named
27633     something starting with __ and the normal name is an alias.  */
27634 #if defined __stub_$ac_func || defined __stub___$ac_func
27635 choke me
27636 #endif
27637
27638 int
27639 main ()
27640 {
27641 return $ac_func ();
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27653 $as_echo "$ac_try_echo") >&5
27654   (eval "$ac_link") 2>conftest.er1
27655   ac_status=$?
27656   grep -v '^ *+' conftest.er1 >conftest.err
27657   rm -f conftest.er1
27658   cat conftest.err >&5
27659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27660   (exit $ac_status); } && {
27661          test -z "$ac_c_werror_flag" ||
27662          test ! -s conftest.err
27663        } && test -s conftest$ac_exeext && {
27664          test "$cross_compiling" = yes ||
27665          $as_test_x conftest$ac_exeext
27666        }; then
27667   eval "$as_ac_var=yes"
27668 else
27669   $as_echo "$as_me: failed program was:" >&5
27670 sed 's/^/| /' conftest.$ac_ext >&5
27671
27672         eval "$as_ac_var=no"
27673 fi
27674
27675 rm -rf conftest.dSYM
27676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27677       conftest$ac_exeext conftest.$ac_ext
27678 fi
27679 ac_res=`eval 'as_val=${'$as_ac_var'}
27680                  $as_echo "$as_val"'`
27681                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27682 $as_echo "$ac_res" >&6; }
27683 as_val=`eval 'as_val=${'$as_ac_var'}
27684                  $as_echo "$as_val"'`
27685    if test "x$as_val" = x""yes; then
27686   cat >>confdefs.h <<_ACEOF
27687 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27688 _ACEOF
27689
27690 fi
27691 done
27692
27693   if test $ac_cv_func_snprintf = yes; then
27694
27695
27696   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
27697 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
27698 if test "${gl_cv_func_snprintf_size1+set}" = set; then
27699   $as_echo_n "(cached) " >&6
27700 else
27701
27702       if test "$cross_compiling" = yes; then
27703   gl_cv_func_snprintf_size1="guessing yes"
27704 else
27705   cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711
27712 #include <stdio.h>
27713 int main()
27714 {
27715   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
27716   snprintf (buf, 1, "%d", 12345);
27717   return buf[1] != 'E';
27718 }
27719 _ACEOF
27720 rm -f conftest$ac_exeext
27721 if { (ac_try="$ac_link"
27722 case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27727 $as_echo "$ac_try_echo") >&5
27728   (eval "$ac_link") 2>&5
27729   ac_status=$?
27730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27732   { (case "(($ac_try" in
27733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27734   *) ac_try_echo=$ac_try;;
27735 esac
27736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27737 $as_echo "$ac_try_echo") >&5
27738   (eval "$ac_try") 2>&5
27739   ac_status=$?
27740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741   (exit $ac_status); }; }; then
27742   gl_cv_func_snprintf_size1=yes
27743 else
27744   $as_echo "$as_me: program exited with status $ac_status" >&5
27745 $as_echo "$as_me: failed program was:" >&5
27746 sed 's/^/| /' conftest.$ac_ext >&5
27747
27748 ( exit $ac_status )
27749 gl_cv_func_snprintf_size1=no
27750 fi
27751 rm -rf conftest.dSYM
27752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27753 fi
27754
27755
27756
27757 fi
27758 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
27759 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
27760
27761     case "$gl_cv_func_snprintf_size1" in
27762       *yes)
27763         gl_cv_func_snprintf_usable=yes
27764         ;;
27765     esac
27766   fi
27767   if test $gl_cv_func_snprintf_usable = no; then
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
27779
27780   if test $ac_cv_func_snprintf = yes; then
27781     REPLACE_SNPRINTF=1
27782   fi
27783   :
27784
27785   fi
27786
27787   :
27788
27789
27790
27791
27792
27793   if test $ac_cv_have_decl_snprintf = no; then
27794     HAVE_DECL_SNPRINTF=0
27795   fi
27796
27797
27798
27799
27800   GNULIB_SNPRINTF=1
27801
27802
27803
27804 cat >>confdefs.h <<\_ACEOF
27805 #define GNULIB_TEST_SNPRINTF 1
27806 _ACEOF
27807
27808
27809
27810   # Code from module socklen:
27811      { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
27812 $as_echo_n "checking for socklen_t... " >&6; }
27813 if test "${ac_cv_type_socklen_t+set}" = set; then
27814   $as_echo_n "(cached) " >&6
27815 else
27816   ac_cv_type_socklen_t=no
27817 cat >conftest.$ac_ext <<_ACEOF
27818 /* confdefs.h.  */
27819 _ACEOF
27820 cat confdefs.h >>conftest.$ac_ext
27821 cat >>conftest.$ac_ext <<_ACEOF
27822 /* end confdefs.h.  */
27823 #include <sys/types.h>
27824       #if HAVE_SYS_SOCKET_H
27825       # include <sys/socket.h>
27826       #elif HAVE_WS2TCPIP_H
27827       # include <ws2tcpip.h>
27828       #endif
27829
27830 int
27831 main ()
27832 {
27833 if (sizeof (socklen_t))
27834        return 0;
27835   ;
27836   return 0;
27837 }
27838 _ACEOF
27839 rm -f conftest.$ac_objext
27840 if { (ac_try="$ac_compile"
27841 case "(($ac_try" in
27842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27843   *) ac_try_echo=$ac_try;;
27844 esac
27845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27846 $as_echo "$ac_try_echo") >&5
27847   (eval "$ac_compile") 2>conftest.er1
27848   ac_status=$?
27849   grep -v '^ *+' conftest.er1 >conftest.err
27850   rm -f conftest.er1
27851   cat conftest.err >&5
27852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853   (exit $ac_status); } && {
27854          test -z "$ac_c_werror_flag" ||
27855          test ! -s conftest.err
27856        } && test -s conftest.$ac_objext; then
27857   cat >conftest.$ac_ext <<_ACEOF
27858 /* confdefs.h.  */
27859 _ACEOF
27860 cat confdefs.h >>conftest.$ac_ext
27861 cat >>conftest.$ac_ext <<_ACEOF
27862 /* end confdefs.h.  */
27863 #include <sys/types.h>
27864       #if HAVE_SYS_SOCKET_H
27865       # include <sys/socket.h>
27866       #elif HAVE_WS2TCPIP_H
27867       # include <ws2tcpip.h>
27868       #endif
27869
27870 int
27871 main ()
27872 {
27873 if (sizeof ((socklen_t)))
27874           return 0;
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext
27880 if { (ac_try="$ac_compile"
27881 case "(($ac_try" in
27882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27883   *) ac_try_echo=$ac_try;;
27884 esac
27885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27886 $as_echo "$ac_try_echo") >&5
27887   (eval "$ac_compile") 2>conftest.er1
27888   ac_status=$?
27889   grep -v '^ *+' conftest.er1 >conftest.err
27890   rm -f conftest.er1
27891   cat conftest.err >&5
27892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); } && {
27894          test -z "$ac_c_werror_flag" ||
27895          test ! -s conftest.err
27896        } && test -s conftest.$ac_objext; then
27897   :
27898 else
27899   $as_echo "$as_me: failed program was:" >&5
27900 sed 's/^/| /' conftest.$ac_ext >&5
27901
27902         ac_cv_type_socklen_t=yes
27903 fi
27904
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27906 else
27907   $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27909
27910
27911 fi
27912
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27914 fi
27915 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27916 $as_echo "$ac_cv_type_socklen_t" >&6; }
27917 if test "x$ac_cv_type_socklen_t" = x""yes; then
27918   :
27919 else
27920   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
27921 $as_echo_n "checking for socklen_t equivalent... " >&6; }
27922       if test "${gl_cv_socklen_t_equiv+set}" = set; then
27923   $as_echo_n "(cached) " >&6
27924 else
27925   # Systems have either "struct sockaddr *" or
27926          # "void *" as the second argument to getpeername
27927          gl_cv_socklen_t_equiv=
27928          for arg2 in "struct sockaddr" void; do
27929            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
27930              cat >conftest.$ac_ext <<_ACEOF
27931 /* confdefs.h.  */
27932 _ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h.  */
27936 #include <sys/types.h>
27937                    #include <sys/socket.h>
27938
27939                    int getpeername (int, $arg2 *, $t *);
27940 int
27941 main ()
27942 {
27943 $t len;
27944                   getpeername (0, 0, &len);
27945   ;
27946   return 0;
27947 }
27948 _ACEOF
27949 rm -f conftest.$ac_objext
27950 if { (ac_try="$ac_compile"
27951 case "(($ac_try" in
27952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953   *) ac_try_echo=$ac_try;;
27954 esac
27955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27956 $as_echo "$ac_try_echo") >&5
27957   (eval "$ac_compile") 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } && {
27964          test -z "$ac_c_werror_flag" ||
27965          test ! -s conftest.err
27966        } && test -s conftest.$ac_objext; then
27967   gl_cv_socklen_t_equiv="$t"
27968 else
27969   $as_echo "$as_me: failed program was:" >&5
27970 sed 's/^/| /' conftest.$ac_ext >&5
27971
27972
27973 fi
27974
27975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976              test "$gl_cv_socklen_t_equiv" != "" && break
27977            done
27978            test "$gl_cv_socklen_t_equiv" != "" && break
27979          done
27980
27981 fi
27982
27983       if test "$gl_cv_socklen_t_equiv" = ""; then
27984         { { $as_echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
27985 $as_echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
27986    { (exit 1); exit 1; }; }
27987       fi
27988       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
27989 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
27990
27991 cat >>confdefs.h <<_ACEOF
27992 #define socklen_t $gl_cv_socklen_t_equiv
27993 _ACEOF
27994
27995 fi
27996
27997   # Code from module ssize_t:
27998
27999   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
28000 $as_echo_n "checking for ssize_t... " >&6; }
28001 if test "${gt_cv_ssize_t+set}" = set; then
28002   $as_echo_n "(cached) " >&6
28003 else
28004   cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010 #include <sys/types.h>
28011 int
28012 main ()
28013 {
28014 int x = sizeof (ssize_t *) + sizeof (ssize_t);
28015             return !x;
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext
28021 if { (ac_try="$ac_compile"
28022 case "(($ac_try" in
28023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024   *) ac_try_echo=$ac_try;;
28025 esac
28026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28027 $as_echo "$ac_try_echo") >&5
28028   (eval "$ac_compile") 2>conftest.er1
28029   ac_status=$?
28030   grep -v '^ *+' conftest.er1 >conftest.err
28031   rm -f conftest.er1
28032   cat conftest.err >&5
28033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28034   (exit $ac_status); } && {
28035          test -z "$ac_c_werror_flag" ||
28036          test ! -s conftest.err
28037        } && test -s conftest.$ac_objext; then
28038   gt_cv_ssize_t=yes
28039 else
28040   $as_echo "$as_me: failed program was:" >&5
28041 sed 's/^/| /' conftest.$ac_ext >&5
28042
28043         gt_cv_ssize_t=no
28044 fi
28045
28046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28047 fi
28048 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
28049 $as_echo "$gt_cv_ssize_t" >&6; }
28050   if test $gt_cv_ssize_t = no; then
28051
28052 cat >>confdefs.h <<\_ACEOF
28053 #define ssize_t int
28054 _ACEOF
28055
28056   fi
28057
28058   # Code from module stat:
28059
28060
28061
28062
28063   :
28064
28065
28066
28067
28068
28069     { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
28070 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
28071 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
28072   $as_echo_n "(cached) " >&6
28073 else
28074   if test "$cross_compiling" = yes; then
28075   case $host_os in
28076             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
28077             *) gl_cv_func_stat_dir_slash="guessing yes";;
28078           esac
28079 else
28080   cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086 #include <sys/stat.h>
28087
28088 int
28089 main ()
28090 {
28091 struct stat st; return stat (".", &st) != stat ("./", &st);
28092   ;
28093   return 0;
28094 }
28095 _ACEOF
28096 rm -f conftest$ac_exeext
28097 if { (ac_try="$ac_link"
28098 case "(($ac_try" in
28099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100   *) ac_try_echo=$ac_try;;
28101 esac
28102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28103 $as_echo "$ac_try_echo") >&5
28104   (eval "$ac_link") 2>&5
28105   ac_status=$?
28106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28108   { (case "(($ac_try" in
28109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110   *) ac_try_echo=$ac_try;;
28111 esac
28112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28113 $as_echo "$ac_try_echo") >&5
28114   (eval "$ac_try") 2>&5
28115   ac_status=$?
28116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117   (exit $ac_status); }; }; then
28118   gl_cv_func_stat_dir_slash=yes
28119 else
28120   $as_echo "$as_me: program exited with status $ac_status" >&5
28121 $as_echo "$as_me: failed program was:" >&5
28122 sed 's/^/| /' conftest.$ac_ext >&5
28123
28124 ( exit $ac_status )
28125 gl_cv_func_stat_dir_slash=no
28126 fi
28127 rm -rf conftest.dSYM
28128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28129 fi
28130
28131
28132 fi
28133 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
28134 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
28135       { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
28136 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
28137 if test "${gl_cv_func_stat_file_slash+set}" = set; then
28138   $as_echo_n "(cached) " >&6
28139 else
28140   touch conftest.tmp
28141        # Assume that if we have lstat, we can also check symlinks.
28142        if test $ac_cv_func_lstat = yes; then
28143          ln -s conftest.tmp conftest.lnk
28144        fi
28145        if test "$cross_compiling" = yes; then
28146   gl_cv_func_stat_file_slash="guessing no"
28147 else
28148   cat >conftest.$ac_ext <<_ACEOF
28149 /* confdefs.h.  */
28150 _ACEOF
28151 cat confdefs.h >>conftest.$ac_ext
28152 cat >>conftest.$ac_ext <<_ACEOF
28153 /* end confdefs.h.  */
28154 #include <sys/stat.h>
28155
28156 int
28157 main ()
28158 {
28159 struct stat st;
28160       if (!stat ("conftest.tmp/", &st)) return 1;
28161 #if HAVE_LSTAT
28162       if (!stat ("conftest.lnk/", &st)) return 2;
28163 #endif
28164
28165   ;
28166   return 0;
28167 }
28168 _ACEOF
28169 rm -f conftest$ac_exeext
28170 if { (ac_try="$ac_link"
28171 case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28176 $as_echo "$ac_try_echo") >&5
28177   (eval "$ac_link") 2>&5
28178   ac_status=$?
28179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28181   { (case "(($ac_try" in
28182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183   *) ac_try_echo=$ac_try;;
28184 esac
28185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28186 $as_echo "$ac_try_echo") >&5
28187   (eval "$ac_try") 2>&5
28188   ac_status=$?
28189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190   (exit $ac_status); }; }; then
28191   gl_cv_func_stat_file_slash=yes
28192 else
28193   $as_echo "$as_me: program exited with status $ac_status" >&5
28194 $as_echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28196
28197 ( exit $ac_status )
28198 gl_cv_func_stat_file_slash=no
28199 fi
28200 rm -rf conftest.dSYM
28201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28202 fi
28203
28204
28205        rm -f conftest.tmp conftest.lnk
28206 fi
28207 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
28208 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
28209   case $gl_cv_func_stat_dir_slash in
28210     *no) REPLACE_STAT=1
28211
28212 cat >>confdefs.h <<\_ACEOF
28213 #define REPLACE_FUNC_STAT_DIR 1
28214 _ACEOF
28215 ;;
28216   esac
28217   case $gl_cv_func_stat_file_slash in
28218     *no) REPLACE_STAT=1
28219
28220 cat >>confdefs.h <<\_ACEOF
28221 #define REPLACE_FUNC_STAT_FILE 1
28222 _ACEOF
28223 ;;
28224   esac
28225   if test $REPLACE_STAT = 1; then
28226
28227
28228
28229
28230
28231
28232
28233
28234   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
28235
28236
28237   fi
28238
28239
28240
28241
28242   GNULIB_STAT=1
28243
28244
28245
28246 cat >>confdefs.h <<\_ACEOF
28247 #define GNULIB_TEST_STAT 1
28248 _ACEOF
28249
28250
28251
28252   # Code from module stdbool:
28253
28254
28255
28256   # Define two additional variables used in the Makefile substitution.
28257
28258   if test "$ac_cv_header_stdbool_h" = yes; then
28259     STDBOOL_H=''
28260   else
28261     STDBOOL_H='stdbool.h'
28262   fi
28263
28264
28265   if test "$ac_cv_type__Bool" = yes; then
28266     HAVE__BOOL=1
28267   else
28268     HAVE__BOOL=0
28269   fi
28270
28271
28272   # Code from module stddef:
28273
28274
28275
28276   if test $gt_cv_c_wchar_t = no; then
28277     HAVE_WCHAR_T=0
28278     STDDEF_H=stddef.h
28279   fi
28280   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
28281 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
28282 if test "${gl_cv_decl_null_works+set}" = set; then
28283   $as_echo_n "(cached) " >&6
28284 else
28285   cat >conftest.$ac_ext <<_ACEOF
28286 /* confdefs.h.  */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h.  */
28291 #include <stddef.h>
28292       int test[2 * (sizeof NULL == sizeof (void *)) -1];
28293
28294 int
28295 main ()
28296 {
28297
28298   ;
28299   return 0;
28300 }
28301 _ACEOF
28302 rm -f conftest.$ac_objext
28303 if { (ac_try="$ac_compile"
28304 case "(($ac_try" in
28305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306   *) ac_try_echo=$ac_try;;
28307 esac
28308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28309 $as_echo "$ac_try_echo") >&5
28310   (eval "$ac_compile") 2>conftest.er1
28311   ac_status=$?
28312   grep -v '^ *+' conftest.er1 >conftest.err
28313   rm -f conftest.er1
28314   cat conftest.err >&5
28315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); } && {
28317          test -z "$ac_c_werror_flag" ||
28318          test ! -s conftest.err
28319        } && test -s conftest.$ac_objext; then
28320   gl_cv_decl_null_works=yes
28321 else
28322   $as_echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28324
28325         gl_cv_decl_null_works=no
28326 fi
28327
28328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28329 fi
28330 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
28331 $as_echo "$gl_cv_decl_null_works" >&6; }
28332   if test $gl_cv_decl_null_works = no; then
28333     REPLACE_NULL=1
28334     STDDEF_H=stddef.h
28335   fi
28336   if test -n "$STDDEF_H"; then
28337
28338
28339
28340
28341   :
28342
28343
28344
28345
28346
28347
28348
28349      if test $gl_cv_have_include_next = yes; then
28350        gl_cv_next_stddef_h='<'stddef.h'>'
28351      else
28352        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
28353 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
28354 if test "${gl_cv_next_stddef_h+set}" = set; then
28355   $as_echo_n "(cached) " >&6
28356 else
28357
28358           if test $ac_cv_header_stddef_h = yes; then
28359             cat >conftest.$ac_ext <<_ACEOF
28360 /* confdefs.h.  */
28361 _ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h.  */
28365 #include <stddef.h>
28366
28367 _ACEOF
28368                                                                                                 case "$host_os" in
28369               aix*) gl_absname_cpp="$ac_cpp -C" ;;
28370               *)    gl_absname_cpp="$ac_cpp" ;;
28371             esac
28372                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28373                sed -n '\#/stddef.h#{
28374                  s#.*"\(.*/stddef.h\)".*#\1#
28375                  s#^/[^/]#//&#
28376                  p
28377                  q
28378                }'`'"'
28379           else
28380             gl_cv_next_stddef_h='<'stddef.h'>'
28381           fi
28382
28383 fi
28384 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
28385 $as_echo "$gl_cv_next_stddef_h" >&6; }
28386      fi
28387      NEXT_STDDEF_H=$gl_cv_next_stddef_h
28388
28389      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28390        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28391        gl_next_as_first_directive='<'stddef.h'>'
28392      else
28393        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28394        gl_next_as_first_directive=$gl_cv_next_stddef_h
28395      fi
28396      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
28397
28398
28399
28400   fi
28401
28402   # Code from module stdint:
28403
28404
28405
28406   if test $ac_cv_type_long_long_int = yes; then
28407     HAVE_LONG_LONG_INT=1
28408   else
28409     HAVE_LONG_LONG_INT=0
28410   fi
28411
28412
28413   if test $ac_cv_type_unsigned_long_long_int = yes; then
28414     HAVE_UNSIGNED_LONG_LONG_INT=1
28415   else
28416     HAVE_UNSIGNED_LONG_LONG_INT=0
28417   fi
28418
28419
28420       if test $ac_cv_header_inttypes_h = yes; then
28421     HAVE_INTTYPES_H=1
28422   else
28423     HAVE_INTTYPES_H=0
28424   fi
28425
28426
28427       if test $ac_cv_header_sys_types_h = yes; then
28428     HAVE_SYS_TYPES_H=1
28429   else
28430     HAVE_SYS_TYPES_H=0
28431   fi
28432
28433
28434
28435
28436
28437
28438   :
28439
28440
28441
28442
28443
28444
28445
28446      if test $gl_cv_have_include_next = yes; then
28447        gl_cv_next_stdint_h='<'stdint.h'>'
28448      else
28449        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
28450 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
28451 if test "${gl_cv_next_stdint_h+set}" = set; then
28452   $as_echo_n "(cached) " >&6
28453 else
28454
28455           if test $ac_cv_header_stdint_h = yes; then
28456             cat >conftest.$ac_ext <<_ACEOF
28457 /* confdefs.h.  */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h.  */
28462 #include <stdint.h>
28463
28464 _ACEOF
28465                                                                                                 case "$host_os" in
28466               aix*) gl_absname_cpp="$ac_cpp -C" ;;
28467               *)    gl_absname_cpp="$ac_cpp" ;;
28468             esac
28469                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28470                sed -n '\#/stdint.h#{
28471                  s#.*"\(.*/stdint.h\)".*#\1#
28472                  s#^/[^/]#//&#
28473                  p
28474                  q
28475                }'`'"'
28476           else
28477             gl_cv_next_stdint_h='<'stdint.h'>'
28478           fi
28479
28480 fi
28481 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
28482 $as_echo "$gl_cv_next_stdint_h" >&6; }
28483      fi
28484      NEXT_STDINT_H=$gl_cv_next_stdint_h
28485
28486      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28487        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28488        gl_next_as_first_directive='<'stdint.h'>'
28489      else
28490        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28491        gl_next_as_first_directive=$gl_cv_next_stdint_h
28492      fi
28493      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
28494
28495
28496
28497   if test $ac_cv_header_stdint_h = yes; then
28498     HAVE_STDINT_H=1
28499   else
28500     HAVE_STDINT_H=0
28501   fi
28502
28503
28504     if test $ac_cv_header_stdint_h = yes; then
28505     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
28506 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
28507 if test "${gl_cv_header_working_stdint_h+set}" = set; then
28508   $as_echo_n "(cached) " >&6
28509 else
28510   gl_cv_header_working_stdint_h=no
28511        cat >conftest.$ac_ext <<_ACEOF
28512
28513          /* confdefs.h.  */
28514 _ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h.  */
28518
28519 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28520 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28521 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28522 #include <stdint.h>
28523 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
28524 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
28525 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
28526 #endif
28527
28528
28529   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28530      included before <wchar.h>.  */
28531   #include <stddef.h>
28532   #include <signal.h>
28533   #if HAVE_WCHAR_H
28534   # include <stdio.h>
28535   # include <time.h>
28536   # include <wchar.h>
28537   #endif
28538
28539
28540 #ifdef INT8_MAX
28541 int8_t a1 = INT8_MAX;
28542 int8_t a1min = INT8_MIN;
28543 #endif
28544 #ifdef INT16_MAX
28545 int16_t a2 = INT16_MAX;
28546 int16_t a2min = INT16_MIN;
28547 #endif
28548 #ifdef INT32_MAX
28549 int32_t a3 = INT32_MAX;
28550 int32_t a3min = INT32_MIN;
28551 #endif
28552 #ifdef INT64_MAX
28553 int64_t a4 = INT64_MAX;
28554 int64_t a4min = INT64_MIN;
28555 #endif
28556 #ifdef UINT8_MAX
28557 uint8_t b1 = UINT8_MAX;
28558 #else
28559 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
28560 #endif
28561 #ifdef UINT16_MAX
28562 uint16_t b2 = UINT16_MAX;
28563 #endif
28564 #ifdef UINT32_MAX
28565 uint32_t b3 = UINT32_MAX;
28566 #endif
28567 #ifdef UINT64_MAX
28568 uint64_t b4 = UINT64_MAX;
28569 #endif
28570 int_least8_t c1 = INT8_C (0x7f);
28571 int_least8_t c1max = INT_LEAST8_MAX;
28572 int_least8_t c1min = INT_LEAST8_MIN;
28573 int_least16_t c2 = INT16_C (0x7fff);
28574 int_least16_t c2max = INT_LEAST16_MAX;
28575 int_least16_t c2min = INT_LEAST16_MIN;
28576 int_least32_t c3 = INT32_C (0x7fffffff);
28577 int_least32_t c3max = INT_LEAST32_MAX;
28578 int_least32_t c3min = INT_LEAST32_MIN;
28579 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
28580 int_least64_t c4max = INT_LEAST64_MAX;
28581 int_least64_t c4min = INT_LEAST64_MIN;
28582 uint_least8_t d1 = UINT8_C (0xff);
28583 uint_least8_t d1max = UINT_LEAST8_MAX;
28584 uint_least16_t d2 = UINT16_C (0xffff);
28585 uint_least16_t d2max = UINT_LEAST16_MAX;
28586 uint_least32_t d3 = UINT32_C (0xffffffff);
28587 uint_least32_t d3max = UINT_LEAST32_MAX;
28588 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
28589 uint_least64_t d4max = UINT_LEAST64_MAX;
28590 int_fast8_t e1 = INT_FAST8_MAX;
28591 int_fast8_t e1min = INT_FAST8_MIN;
28592 int_fast16_t e2 = INT_FAST16_MAX;
28593 int_fast16_t e2min = INT_FAST16_MIN;
28594 int_fast32_t e3 = INT_FAST32_MAX;
28595 int_fast32_t e3min = INT_FAST32_MIN;
28596 int_fast64_t e4 = INT_FAST64_MAX;
28597 int_fast64_t e4min = INT_FAST64_MIN;
28598 uint_fast8_t f1 = UINT_FAST8_MAX;
28599 uint_fast16_t f2 = UINT_FAST16_MAX;
28600 uint_fast32_t f3 = UINT_FAST32_MAX;
28601 uint_fast64_t f4 = UINT_FAST64_MAX;
28602 #ifdef INTPTR_MAX
28603 intptr_t g = INTPTR_MAX;
28604 intptr_t gmin = INTPTR_MIN;
28605 #endif
28606 #ifdef UINTPTR_MAX
28607 uintptr_t h = UINTPTR_MAX;
28608 #endif
28609 intmax_t i = INTMAX_MAX;
28610 uintmax_t j = UINTMAX_MAX;
28611
28612 #include <limits.h> /* for CHAR_BIT */
28613 #define TYPE_MINIMUM(t) \
28614   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
28615 #define TYPE_MAXIMUM(t) \
28616   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
28617 struct s {
28618   int check_PTRDIFF:
28619       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
28620       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
28621       ? 1 : -1;
28622   /* Detect bug in FreeBSD 6.0 / ia64.  */
28623   int check_SIG_ATOMIC:
28624       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
28625       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
28626       ? 1 : -1;
28627   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
28628   int check_WCHAR:
28629       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
28630       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
28631       ? 1 : -1;
28632   /* Detect bug in mingw.  */
28633   int check_WINT:
28634       WINT_MIN == TYPE_MINIMUM (wint_t)
28635       && WINT_MAX == TYPE_MAXIMUM (wint_t)
28636       ? 1 : -1;
28637
28638   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
28639   int check_UINT8_C:
28640         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
28641   int check_UINT16_C:
28642         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
28643
28644   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
28645 #ifdef UINT8_MAX
28646   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
28647 #endif
28648 #ifdef UINT16_MAX
28649   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
28650 #endif
28651 #ifdef UINT32_MAX
28652   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
28653 #endif
28654 #ifdef UINT64_MAX
28655   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
28656 #endif
28657   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
28658   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
28659   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
28660   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
28661   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
28662   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
28663   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
28664   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
28665   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
28666   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
28667   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
28668 };
28669
28670 int
28671 main ()
28672 {
28673
28674   ;
28675   return 0;
28676 }
28677 _ACEOF
28678 rm -f conftest.$ac_objext
28679 if { (ac_try="$ac_compile"
28680 case "(($ac_try" in
28681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682   *) ac_try_echo=$ac_try;;
28683 esac
28684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28685 $as_echo "$ac_try_echo") >&5
28686   (eval "$ac_compile") 2>conftest.er1
28687   ac_status=$?
28688   grep -v '^ *+' conftest.er1 >conftest.err
28689   rm -f conftest.er1
28690   cat conftest.err >&5
28691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692   (exit $ac_status); } && {
28693          test -z "$ac_c_werror_flag" ||
28694          test ! -s conftest.err
28695        } && test -s conftest.$ac_objext; then
28696                                                     if test "$cross_compiling" = yes; then
28697                  gl_cv_header_working_stdint_h=yes
28698
28699 else
28700   cat >conftest.$ac_ext <<_ACEOF
28701
28702             /* confdefs.h.  */
28703 _ACEOF
28704 cat confdefs.h >>conftest.$ac_ext
28705 cat >>conftest.$ac_ext <<_ACEOF
28706 /* end confdefs.h.  */
28707
28708 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
28709 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
28710 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
28711 #include <stdint.h>
28712
28713
28714   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
28715      included before <wchar.h>.  */
28716   #include <stddef.h>
28717   #include <signal.h>
28718   #if HAVE_WCHAR_H
28719   # include <stdio.h>
28720   # include <time.h>
28721   # include <wchar.h>
28722   #endif
28723
28724
28725 #include <stdio.h>
28726 #include <string.h>
28727 #define MVAL(macro) MVAL1(macro)
28728 #define MVAL1(expression) #expression
28729 static const char *macro_values[] =
28730   {
28731 #ifdef INT8_MAX
28732     MVAL (INT8_MAX),
28733 #endif
28734 #ifdef INT16_MAX
28735     MVAL (INT16_MAX),
28736 #endif
28737 #ifdef INT32_MAX
28738     MVAL (INT32_MAX),
28739 #endif
28740 #ifdef INT64_MAX
28741     MVAL (INT64_MAX),
28742 #endif
28743 #ifdef UINT8_MAX
28744     MVAL (UINT8_MAX),
28745 #endif
28746 #ifdef UINT16_MAX
28747     MVAL (UINT16_MAX),
28748 #endif
28749 #ifdef UINT32_MAX
28750     MVAL (UINT32_MAX),
28751 #endif
28752 #ifdef UINT64_MAX
28753     MVAL (UINT64_MAX),
28754 #endif
28755     NULL
28756   };
28757
28758 int
28759 main ()
28760 {
28761
28762   const char **mv;
28763   for (mv = macro_values; *mv != NULL; mv++)
28764     {
28765       const char *value = *mv;
28766       /* Test whether it looks like a cast expression.  */
28767       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
28768           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
28769           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
28770           || strncmp (value, "((int)"/*)*/, 6) == 0
28771           || strncmp (value, "((signed short)"/*)*/, 15) == 0
28772           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
28773         return 1;
28774     }
28775   return 0;
28776
28777   ;
28778   return 0;
28779 }
28780 _ACEOF
28781 rm -f conftest$ac_exeext
28782 if { (ac_try="$ac_link"
28783 case "(($ac_try" in
28784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785   *) ac_try_echo=$ac_try;;
28786 esac
28787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28788 $as_echo "$ac_try_echo") >&5
28789   (eval "$ac_link") 2>&5
28790   ac_status=$?
28791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28793   { (case "(($ac_try" in
28794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28795   *) ac_try_echo=$ac_try;;
28796 esac
28797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28798 $as_echo "$ac_try_echo") >&5
28799   (eval "$ac_try") 2>&5
28800   ac_status=$?
28801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802   (exit $ac_status); }; }; then
28803   gl_cv_header_working_stdint_h=yes
28804 else
28805   $as_echo "$as_me: program exited with status $ac_status" >&5
28806 $as_echo "$as_me: failed program was:" >&5
28807 sed 's/^/| /' conftest.$ac_ext >&5
28808
28809 fi
28810 rm -rf conftest.dSYM
28811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28812 fi
28813
28814
28815
28816 else
28817   $as_echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820
28821 fi
28822
28823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28824
28825 fi
28826 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
28827 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
28828   fi
28829   if test "$gl_cv_header_working_stdint_h" = yes; then
28830     STDINT_H=
28831   else
28832
28833
28834 for ac_header in sys/inttypes.h sys/bitypes.h
28835 do
28836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28838   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28839 $as_echo_n "checking for $ac_header... " >&6; }
28840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28841   $as_echo_n "(cached) " >&6
28842 fi
28843 ac_res=`eval 'as_val=${'$as_ac_Header'}
28844                  $as_echo "$as_val"'`
28845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28846 $as_echo "$ac_res" >&6; }
28847 else
28848   # Is the header compilable?
28849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28850 $as_echo_n "checking $ac_header usability... " >&6; }
28851 cat >conftest.$ac_ext <<_ACEOF
28852 /* confdefs.h.  */
28853 _ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h.  */
28857 $ac_includes_default
28858 #include <$ac_header>
28859 _ACEOF
28860 rm -f conftest.$ac_objext
28861 if { (ac_try="$ac_compile"
28862 case "(($ac_try" in
28863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28864   *) ac_try_echo=$ac_try;;
28865 esac
28866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28867 $as_echo "$ac_try_echo") >&5
28868   (eval "$ac_compile") 2>conftest.er1
28869   ac_status=$?
28870   grep -v '^ *+' conftest.er1 >conftest.err
28871   rm -f conftest.er1
28872   cat conftest.err >&5
28873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } && {
28875          test -z "$ac_c_werror_flag" ||
28876          test ! -s conftest.err
28877        } && test -s conftest.$ac_objext; then
28878   ac_header_compiler=yes
28879 else
28880   $as_echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28882
28883         ac_header_compiler=no
28884 fi
28885
28886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28888 $as_echo "$ac_header_compiler" >&6; }
28889
28890 # Is the header present?
28891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28892 $as_echo_n "checking $ac_header presence... " >&6; }
28893 cat >conftest.$ac_ext <<_ACEOF
28894 /* confdefs.h.  */
28895 _ACEOF
28896 cat confdefs.h >>conftest.$ac_ext
28897 cat >>conftest.$ac_ext <<_ACEOF
28898 /* end confdefs.h.  */
28899 #include <$ac_header>
28900 _ACEOF
28901 if { (ac_try="$ac_cpp conftest.$ac_ext"
28902 case "(($ac_try" in
28903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904   *) ac_try_echo=$ac_try;;
28905 esac
28906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28907 $as_echo "$ac_try_echo") >&5
28908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28909   ac_status=$?
28910   grep -v '^ *+' conftest.er1 >conftest.err
28911   rm -f conftest.er1
28912   cat conftest.err >&5
28913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914   (exit $ac_status); } >/dev/null && {
28915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28916          test ! -s conftest.err
28917        }; then
28918   ac_header_preproc=yes
28919 else
28920   $as_echo "$as_me: failed program was:" >&5
28921 sed 's/^/| /' conftest.$ac_ext >&5
28922
28923   ac_header_preproc=no
28924 fi
28925
28926 rm -f conftest.err conftest.$ac_ext
28927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928 $as_echo "$ac_header_preproc" >&6; }
28929
28930 # So?  What about this header?
28931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28932   yes:no: )
28933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28937     ac_header_preproc=yes
28938     ;;
28939   no:yes:* )
28940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28943 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28947 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28952
28953     ;;
28954 esac
28955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28956 $as_echo_n "checking for $ac_header... " >&6; }
28957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28958   $as_echo_n "(cached) " >&6
28959 else
28960   eval "$as_ac_Header=\$ac_header_preproc"
28961 fi
28962 ac_res=`eval 'as_val=${'$as_ac_Header'}
28963                  $as_echo "$as_val"'`
28964                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28965 $as_echo "$ac_res" >&6; }
28966
28967 fi
28968 as_val=`eval 'as_val=${'$as_ac_Header'}
28969                  $as_echo "$as_val"'`
28970    if test "x$as_val" = x""yes; then
28971   cat >>confdefs.h <<_ACEOF
28972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28973 _ACEOF
28974
28975 fi
28976
28977 done
28978
28979     if test $ac_cv_header_sys_inttypes_h = yes; then
28980       HAVE_SYS_INTTYPES_H=1
28981     else
28982       HAVE_SYS_INTTYPES_H=0
28983     fi
28984
28985     if test $ac_cv_header_sys_bitypes_h = yes; then
28986       HAVE_SYS_BITYPES_H=1
28987     else
28988       HAVE_SYS_BITYPES_H=0
28989     fi
28990
28991
28992
28993   :
28994
28995
28996
28997
28998
28999
29000
29001
29002   if test $APPLE_UNIVERSAL_BUILD = 0; then
29003
29004
29005
29006
29007   for gltype in ptrdiff_t size_t ; do
29008     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29009 $as_echo_n "checking for bit size of $gltype... " >&6; }
29010 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29011   $as_echo_n "(cached) " >&6
29012 else
29013   if test "$cross_compiling" = yes; then
29014   # Depending upon the size, compute the lo and hi bounds.
29015 cat >conftest.$ac_ext <<_ACEOF
29016 /* confdefs.h.  */
29017 _ACEOF
29018 cat confdefs.h >>conftest.$ac_ext
29019 cat >>conftest.$ac_ext <<_ACEOF
29020 /* end confdefs.h.  */
29021
29022   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29023      included before <wchar.h>.  */
29024   #include <stddef.h>
29025   #include <signal.h>
29026   #if HAVE_WCHAR_H
29027   # include <stdio.h>
29028   # include <time.h>
29029   # include <wchar.h>
29030   #endif
29031
29032 #include <limits.h>
29033 int
29034 main ()
29035 {
29036 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29037 test_array [0] = 0
29038
29039   ;
29040   return 0;
29041 }
29042 _ACEOF
29043 rm -f conftest.$ac_objext
29044 if { (ac_try="$ac_compile"
29045 case "(($ac_try" in
29046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29047   *) ac_try_echo=$ac_try;;
29048 esac
29049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29050 $as_echo "$ac_try_echo") >&5
29051   (eval "$ac_compile") 2>conftest.er1
29052   ac_status=$?
29053   grep -v '^ *+' conftest.er1 >conftest.err
29054   rm -f conftest.er1
29055   cat conftest.err >&5
29056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); } && {
29058          test -z "$ac_c_werror_flag" ||
29059          test ! -s conftest.err
29060        } && test -s conftest.$ac_objext; then
29061   ac_lo=0 ac_mid=0
29062   while :; do
29063     cat >conftest.$ac_ext <<_ACEOF
29064 /* confdefs.h.  */
29065 _ACEOF
29066 cat confdefs.h >>conftest.$ac_ext
29067 cat >>conftest.$ac_ext <<_ACEOF
29068 /* end confdefs.h.  */
29069
29070   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29071      included before <wchar.h>.  */
29072   #include <stddef.h>
29073   #include <signal.h>
29074   #if HAVE_WCHAR_H
29075   # include <stdio.h>
29076   # include <time.h>
29077   # include <wchar.h>
29078   #endif
29079
29080 #include <limits.h>
29081 int
29082 main ()
29083 {
29084 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29085 test_array [0] = 0
29086
29087   ;
29088   return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext
29092 if { (ac_try="$ac_compile"
29093 case "(($ac_try" in
29094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095   *) ac_try_echo=$ac_try;;
29096 esac
29097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29098 $as_echo "$ac_try_echo") >&5
29099   (eval "$ac_compile") 2>conftest.er1
29100   ac_status=$?
29101   grep -v '^ *+' conftest.er1 >conftest.err
29102   rm -f conftest.er1
29103   cat conftest.err >&5
29104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); } && {
29106          test -z "$ac_c_werror_flag" ||
29107          test ! -s conftest.err
29108        } && test -s conftest.$ac_objext; then
29109   ac_hi=$ac_mid; break
29110 else
29111   $as_echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114         ac_lo=`expr $ac_mid + 1`
29115                         if test $ac_lo -le $ac_mid; then
29116                           ac_lo= ac_hi=
29117                           break
29118                         fi
29119                         ac_mid=`expr 2 '*' $ac_mid + 1`
29120 fi
29121
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29123   done
29124 else
29125   $as_echo "$as_me: failed program was:" >&5
29126 sed 's/^/| /' conftest.$ac_ext >&5
29127
29128         cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134
29135   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29136      included before <wchar.h>.  */
29137   #include <stddef.h>
29138   #include <signal.h>
29139   #if HAVE_WCHAR_H
29140   # include <stdio.h>
29141   # include <time.h>
29142   # include <wchar.h>
29143   #endif
29144
29145 #include <limits.h>
29146 int
29147 main ()
29148 {
29149 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29150 test_array [0] = 0
29151
29152   ;
29153   return 0;
29154 }
29155 _ACEOF
29156 rm -f conftest.$ac_objext
29157 if { (ac_try="$ac_compile"
29158 case "(($ac_try" in
29159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29160   *) ac_try_echo=$ac_try;;
29161 esac
29162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29163 $as_echo "$ac_try_echo") >&5
29164   (eval "$ac_compile") 2>conftest.er1
29165   ac_status=$?
29166   grep -v '^ *+' conftest.er1 >conftest.err
29167   rm -f conftest.er1
29168   cat conftest.err >&5
29169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170   (exit $ac_status); } && {
29171          test -z "$ac_c_werror_flag" ||
29172          test ! -s conftest.err
29173        } && test -s conftest.$ac_objext; then
29174   ac_hi=-1 ac_mid=-1
29175   while :; do
29176     cat >conftest.$ac_ext <<_ACEOF
29177 /* confdefs.h.  */
29178 _ACEOF
29179 cat confdefs.h >>conftest.$ac_ext
29180 cat >>conftest.$ac_ext <<_ACEOF
29181 /* end confdefs.h.  */
29182
29183   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29184      included before <wchar.h>.  */
29185   #include <stddef.h>
29186   #include <signal.h>
29187   #if HAVE_WCHAR_H
29188   # include <stdio.h>
29189   # include <time.h>
29190   # include <wchar.h>
29191   #endif
29192
29193 #include <limits.h>
29194 int
29195 main ()
29196 {
29197 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29198 test_array [0] = 0
29199
29200   ;
29201   return 0;
29202 }
29203 _ACEOF
29204 rm -f conftest.$ac_objext
29205 if { (ac_try="$ac_compile"
29206 case "(($ac_try" in
29207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208   *) ac_try_echo=$ac_try;;
29209 esac
29210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29211 $as_echo "$ac_try_echo") >&5
29212   (eval "$ac_compile") 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } && {
29219          test -z "$ac_c_werror_flag" ||
29220          test ! -s conftest.err
29221        } && test -s conftest.$ac_objext; then
29222   ac_lo=$ac_mid; break
29223 else
29224   $as_echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29226
29227         ac_hi=`expr '(' $ac_mid ')' - 1`
29228                         if test $ac_mid -le $ac_hi; then
29229                           ac_lo= ac_hi=
29230                           break
29231                         fi
29232                         ac_mid=`expr 2 '*' $ac_mid`
29233 fi
29234
29235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29236   done
29237 else
29238   $as_echo "$as_me: failed program was:" >&5
29239 sed 's/^/| /' conftest.$ac_ext >&5
29240
29241         ac_lo= ac_hi=
29242 fi
29243
29244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245 fi
29246
29247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29248 # Binary search between lo and hi bounds.
29249 while test "x$ac_lo" != "x$ac_hi"; do
29250   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29251   cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h.  */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h.  */
29257
29258   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29259      included before <wchar.h>.  */
29260   #include <stddef.h>
29261   #include <signal.h>
29262   #if HAVE_WCHAR_H
29263   # include <stdio.h>
29264   # include <time.h>
29265   # include <wchar.h>
29266   #endif
29267
29268 #include <limits.h>
29269 int
29270 main ()
29271 {
29272 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29273 test_array [0] = 0
29274
29275   ;
29276   return 0;
29277 }
29278 _ACEOF
29279 rm -f conftest.$ac_objext
29280 if { (ac_try="$ac_compile"
29281 case "(($ac_try" in
29282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29283   *) ac_try_echo=$ac_try;;
29284 esac
29285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29286 $as_echo "$ac_try_echo") >&5
29287   (eval "$ac_compile") 2>conftest.er1
29288   ac_status=$?
29289   grep -v '^ *+' conftest.er1 >conftest.err
29290   rm -f conftest.er1
29291   cat conftest.err >&5
29292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); } && {
29294          test -z "$ac_c_werror_flag" ||
29295          test ! -s conftest.err
29296        } && test -s conftest.$ac_objext; then
29297   ac_hi=$ac_mid
29298 else
29299   $as_echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302         ac_lo=`expr '(' $ac_mid ')' + 1`
29303 fi
29304
29305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29306 done
29307 case $ac_lo in
29308 ?*) result=$ac_lo;;
29309 '') result=unknown ;;
29310 esac
29311 else
29312   cat >conftest.$ac_ext <<_ACEOF
29313 /* confdefs.h.  */
29314 _ACEOF
29315 cat confdefs.h >>conftest.$ac_ext
29316 cat >>conftest.$ac_ext <<_ACEOF
29317 /* end confdefs.h.  */
29318
29319   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29320      included before <wchar.h>.  */
29321   #include <stddef.h>
29322   #include <signal.h>
29323   #if HAVE_WCHAR_H
29324   # include <stdio.h>
29325   # include <time.h>
29326   # include <wchar.h>
29327   #endif
29328
29329 #include <limits.h>
29330 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29331 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29332 #include <stdio.h>
29333 #include <stdlib.h>
29334 int
29335 main ()
29336 {
29337
29338   FILE *f = fopen ("conftest.val", "w");
29339   if (! f)
29340     return 1;
29341   if ((sizeof ($gltype) * CHAR_BIT) < 0)
29342     {
29343       long int i = longval ();
29344       if (i != (sizeof ($gltype) * CHAR_BIT))
29345         return 1;
29346       fprintf (f, "%ld", i);
29347     }
29348   else
29349     {
29350       unsigned long int i = ulongval ();
29351       if (i != (sizeof ($gltype) * CHAR_BIT))
29352         return 1;
29353       fprintf (f, "%lu", i);
29354     }
29355   /* Do not output a trailing newline, as this causes \r\n confusion
29356      on some platforms.  */
29357   return ferror (f) || fclose (f) != 0;
29358
29359   ;
29360   return 0;
29361 }
29362 _ACEOF
29363 rm -f conftest$ac_exeext
29364 if { (ac_try="$ac_link"
29365 case "(($ac_try" in
29366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367   *) ac_try_echo=$ac_try;;
29368 esac
29369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29370 $as_echo "$ac_try_echo") >&5
29371   (eval "$ac_link") 2>&5
29372   ac_status=$?
29373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29375   { (case "(($ac_try" in
29376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377   *) ac_try_echo=$ac_try;;
29378 esac
29379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29380 $as_echo "$ac_try_echo") >&5
29381   (eval "$ac_try") 2>&5
29382   ac_status=$?
29383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384   (exit $ac_status); }; }; then
29385   result=`cat conftest.val`
29386 else
29387   $as_echo "$as_me: program exited with status $ac_status" >&5
29388 $as_echo "$as_me: failed program was:" >&5
29389 sed 's/^/| /' conftest.$ac_ext >&5
29390
29391 ( exit $ac_status )
29392 result=unknown
29393 fi
29394 rm -rf conftest.dSYM
29395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29396 fi
29397 rm -f conftest.val
29398        eval gl_cv_bitsizeof_${gltype}=\$result
29399
29400 fi
29401 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29402                  $as_echo "$as_val"'`
29403                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29404 $as_echo "$ac_res" >&6; }
29405     eval result=\$gl_cv_bitsizeof_${gltype}
29406     if test $result = unknown; then
29407                                                 result=0
29408     fi
29409     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29410     cat >>confdefs.h <<_ACEOF
29411 #define BITSIZEOF_${GLTYPE} $result
29412 _ACEOF
29413
29414     eval BITSIZEOF_${GLTYPE}=\$result
29415   done
29416
29417
29418   fi
29419
29420
29421
29422
29423
29424   for gltype in sig_atomic_t wchar_t wint_t ; do
29425     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
29426 $as_echo_n "checking for bit size of $gltype... " >&6; }
29427 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
29428   $as_echo_n "(cached) " >&6
29429 else
29430   if test "$cross_compiling" = yes; then
29431   # Depending upon the size, compute the lo and hi bounds.
29432 cat >conftest.$ac_ext <<_ACEOF
29433 /* confdefs.h.  */
29434 _ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h.  */
29438
29439   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29440      included before <wchar.h>.  */
29441   #include <stddef.h>
29442   #include <signal.h>
29443   #if HAVE_WCHAR_H
29444   # include <stdio.h>
29445   # include <time.h>
29446   # include <wchar.h>
29447   #endif
29448
29449 #include <limits.h>
29450 int
29451 main ()
29452 {
29453 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
29454 test_array [0] = 0
29455
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29467 $as_echo "$ac_try_echo") >&5
29468   (eval "$ac_compile") 2>conftest.er1
29469   ac_status=$?
29470   grep -v '^ *+' conftest.er1 >conftest.err
29471   rm -f conftest.er1
29472   cat conftest.err >&5
29473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); } && {
29475          test -z "$ac_c_werror_flag" ||
29476          test ! -s conftest.err
29477        } && test -s conftest.$ac_objext; then
29478   ac_lo=0 ac_mid=0
29479   while :; do
29480     cat >conftest.$ac_ext <<_ACEOF
29481 /* confdefs.h.  */
29482 _ACEOF
29483 cat confdefs.h >>conftest.$ac_ext
29484 cat >>conftest.$ac_ext <<_ACEOF
29485 /* end confdefs.h.  */
29486
29487   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29488      included before <wchar.h>.  */
29489   #include <stddef.h>
29490   #include <signal.h>
29491   #if HAVE_WCHAR_H
29492   # include <stdio.h>
29493   # include <time.h>
29494   # include <wchar.h>
29495   #endif
29496
29497 #include <limits.h>
29498 int
29499 main ()
29500 {
29501 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29502 test_array [0] = 0
29503
29504   ;
29505   return 0;
29506 }
29507 _ACEOF
29508 rm -f conftest.$ac_objext
29509 if { (ac_try="$ac_compile"
29510 case "(($ac_try" in
29511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29512   *) ac_try_echo=$ac_try;;
29513 esac
29514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29515 $as_echo "$ac_try_echo") >&5
29516   (eval "$ac_compile") 2>conftest.er1
29517   ac_status=$?
29518   grep -v '^ *+' conftest.er1 >conftest.err
29519   rm -f conftest.er1
29520   cat conftest.err >&5
29521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } && {
29523          test -z "$ac_c_werror_flag" ||
29524          test ! -s conftest.err
29525        } && test -s conftest.$ac_objext; then
29526   ac_hi=$ac_mid; break
29527 else
29528   $as_echo "$as_me: failed program was:" >&5
29529 sed 's/^/| /' conftest.$ac_ext >&5
29530
29531         ac_lo=`expr $ac_mid + 1`
29532                         if test $ac_lo -le $ac_mid; then
29533                           ac_lo= ac_hi=
29534                           break
29535                         fi
29536                         ac_mid=`expr 2 '*' $ac_mid + 1`
29537 fi
29538
29539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29540   done
29541 else
29542   $as_echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545         cat >conftest.$ac_ext <<_ACEOF
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551
29552   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29553      included before <wchar.h>.  */
29554   #include <stddef.h>
29555   #include <signal.h>
29556   #if HAVE_WCHAR_H
29557   # include <stdio.h>
29558   # include <time.h>
29559   # include <wchar.h>
29560   #endif
29561
29562 #include <limits.h>
29563 int
29564 main ()
29565 {
29566 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
29567 test_array [0] = 0
29568
29569   ;
29570   return 0;
29571 }
29572 _ACEOF
29573 rm -f conftest.$ac_objext
29574 if { (ac_try="$ac_compile"
29575 case "(($ac_try" in
29576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577   *) ac_try_echo=$ac_try;;
29578 esac
29579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29580 $as_echo "$ac_try_echo") >&5
29581   (eval "$ac_compile") 2>conftest.er1
29582   ac_status=$?
29583   grep -v '^ *+' conftest.er1 >conftest.err
29584   rm -f conftest.er1
29585   cat conftest.err >&5
29586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587   (exit $ac_status); } && {
29588          test -z "$ac_c_werror_flag" ||
29589          test ! -s conftest.err
29590        } && test -s conftest.$ac_objext; then
29591   ac_hi=-1 ac_mid=-1
29592   while :; do
29593     cat >conftest.$ac_ext <<_ACEOF
29594 /* confdefs.h.  */
29595 _ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h.  */
29599
29600   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29601      included before <wchar.h>.  */
29602   #include <stddef.h>
29603   #include <signal.h>
29604   #if HAVE_WCHAR_H
29605   # include <stdio.h>
29606   # include <time.h>
29607   # include <wchar.h>
29608   #endif
29609
29610 #include <limits.h>
29611 int
29612 main ()
29613 {
29614 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
29615 test_array [0] = 0
29616
29617   ;
29618   return 0;
29619 }
29620 _ACEOF
29621 rm -f conftest.$ac_objext
29622 if { (ac_try="$ac_compile"
29623 case "(($ac_try" in
29624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29625   *) ac_try_echo=$ac_try;;
29626 esac
29627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29628 $as_echo "$ac_try_echo") >&5
29629   (eval "$ac_compile") 2>conftest.er1
29630   ac_status=$?
29631   grep -v '^ *+' conftest.er1 >conftest.err
29632   rm -f conftest.er1
29633   cat conftest.err >&5
29634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); } && {
29636          test -z "$ac_c_werror_flag" ||
29637          test ! -s conftest.err
29638        } && test -s conftest.$ac_objext; then
29639   ac_lo=$ac_mid; break
29640 else
29641   $as_echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29643
29644         ac_hi=`expr '(' $ac_mid ')' - 1`
29645                         if test $ac_mid -le $ac_hi; then
29646                           ac_lo= ac_hi=
29647                           break
29648                         fi
29649                         ac_mid=`expr 2 '*' $ac_mid`
29650 fi
29651
29652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29653   done
29654 else
29655   $as_echo "$as_me: failed program was:" >&5
29656 sed 's/^/| /' conftest.$ac_ext >&5
29657
29658         ac_lo= ac_hi=
29659 fi
29660
29661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29662 fi
29663
29664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29665 # Binary search between lo and hi bounds.
29666 while test "x$ac_lo" != "x$ac_hi"; do
29667   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29668   cat >conftest.$ac_ext <<_ACEOF
29669 /* confdefs.h.  */
29670 _ACEOF
29671 cat confdefs.h >>conftest.$ac_ext
29672 cat >>conftest.$ac_ext <<_ACEOF
29673 /* end confdefs.h.  */
29674
29675   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29676      included before <wchar.h>.  */
29677   #include <stddef.h>
29678   #include <signal.h>
29679   #if HAVE_WCHAR_H
29680   # include <stdio.h>
29681   # include <time.h>
29682   # include <wchar.h>
29683   #endif
29684
29685 #include <limits.h>
29686 int
29687 main ()
29688 {
29689 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
29690 test_array [0] = 0
29691
29692   ;
29693   return 0;
29694 }
29695 _ACEOF
29696 rm -f conftest.$ac_objext
29697 if { (ac_try="$ac_compile"
29698 case "(($ac_try" in
29699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29700   *) ac_try_echo=$ac_try;;
29701 esac
29702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29703 $as_echo "$ac_try_echo") >&5
29704   (eval "$ac_compile") 2>conftest.er1
29705   ac_status=$?
29706   grep -v '^ *+' conftest.er1 >conftest.err
29707   rm -f conftest.er1
29708   cat conftest.err >&5
29709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); } && {
29711          test -z "$ac_c_werror_flag" ||
29712          test ! -s conftest.err
29713        } && test -s conftest.$ac_objext; then
29714   ac_hi=$ac_mid
29715 else
29716   $as_echo "$as_me: failed program was:" >&5
29717 sed 's/^/| /' conftest.$ac_ext >&5
29718
29719         ac_lo=`expr '(' $ac_mid ')' + 1`
29720 fi
29721
29722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29723 done
29724 case $ac_lo in
29725 ?*) result=$ac_lo;;
29726 '') result=unknown ;;
29727 esac
29728 else
29729   cat >conftest.$ac_ext <<_ACEOF
29730 /* confdefs.h.  */
29731 _ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h.  */
29735
29736   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29737      included before <wchar.h>.  */
29738   #include <stddef.h>
29739   #include <signal.h>
29740   #if HAVE_WCHAR_H
29741   # include <stdio.h>
29742   # include <time.h>
29743   # include <wchar.h>
29744   #endif
29745
29746 #include <limits.h>
29747 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
29748 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
29749 #include <stdio.h>
29750 #include <stdlib.h>
29751 int
29752 main ()
29753 {
29754
29755   FILE *f = fopen ("conftest.val", "w");
29756   if (! f)
29757     return 1;
29758   if ((sizeof ($gltype) * CHAR_BIT) < 0)
29759     {
29760       long int i = longval ();
29761       if (i != (sizeof ($gltype) * CHAR_BIT))
29762         return 1;
29763       fprintf (f, "%ld", i);
29764     }
29765   else
29766     {
29767       unsigned long int i = ulongval ();
29768       if (i != (sizeof ($gltype) * CHAR_BIT))
29769         return 1;
29770       fprintf (f, "%lu", i);
29771     }
29772   /* Do not output a trailing newline, as this causes \r\n confusion
29773      on some platforms.  */
29774   return ferror (f) || fclose (f) != 0;
29775
29776   ;
29777   return 0;
29778 }
29779 _ACEOF
29780 rm -f conftest$ac_exeext
29781 if { (ac_try="$ac_link"
29782 case "(($ac_try" in
29783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29784   *) ac_try_echo=$ac_try;;
29785 esac
29786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29787 $as_echo "$ac_try_echo") >&5
29788   (eval "$ac_link") 2>&5
29789   ac_status=$?
29790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29792   { (case "(($ac_try" in
29793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794   *) ac_try_echo=$ac_try;;
29795 esac
29796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29797 $as_echo "$ac_try_echo") >&5
29798   (eval "$ac_try") 2>&5
29799   ac_status=$?
29800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); }; }; then
29802   result=`cat conftest.val`
29803 else
29804   $as_echo "$as_me: program exited with status $ac_status" >&5
29805 $as_echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29807
29808 ( exit $ac_status )
29809 result=unknown
29810 fi
29811 rm -rf conftest.dSYM
29812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29813 fi
29814 rm -f conftest.val
29815        eval gl_cv_bitsizeof_${gltype}=\$result
29816
29817 fi
29818 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
29819                  $as_echo "$as_val"'`
29820                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29821 $as_echo "$ac_res" >&6; }
29822     eval result=\$gl_cv_bitsizeof_${gltype}
29823     if test $result = unknown; then
29824                                                 result=0
29825     fi
29826     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29827     cat >>confdefs.h <<_ACEOF
29828 #define BITSIZEOF_${GLTYPE} $result
29829 _ACEOF
29830
29831     eval BITSIZEOF_${GLTYPE}=\$result
29832   done
29833
29834
29835
29836
29837
29838
29839
29840   for gltype in sig_atomic_t wchar_t wint_t ; do
29841     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
29842 $as_echo_n "checking whether $gltype is signed... " >&6; }
29843 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
29844   $as_echo_n "(cached) " >&6
29845 else
29846   cat >conftest.$ac_ext <<_ACEOF
29847 /* confdefs.h.  */
29848 _ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h.  */
29852
29853   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29854      included before <wchar.h>.  */
29855   #include <stddef.h>
29856   #include <signal.h>
29857   #if HAVE_WCHAR_H
29858   # include <stdio.h>
29859   # include <time.h>
29860   # include <wchar.h>
29861   #endif
29862
29863             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
29864 int
29865 main ()
29866 {
29867
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 rm -f conftest.$ac_objext
29873 if { (ac_try="$ac_compile"
29874 case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29879 $as_echo "$ac_try_echo") >&5
29880   (eval "$ac_compile") 2>conftest.er1
29881   ac_status=$?
29882   grep -v '^ *+' conftest.er1 >conftest.err
29883   rm -f conftest.er1
29884   cat conftest.err >&5
29885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); } && {
29887          test -z "$ac_c_werror_flag" ||
29888          test ! -s conftest.err
29889        } && test -s conftest.$ac_objext; then
29890   result=yes
29891 else
29892   $as_echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29894
29895         result=no
29896 fi
29897
29898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29899        eval gl_cv_type_${gltype}_signed=\$result
29900
29901 fi
29902 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
29903                  $as_echo "$as_val"'`
29904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29905 $as_echo "$ac_res" >&6; }
29906     eval result=\$gl_cv_type_${gltype}_signed
29907     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
29908     if test "$result" = yes; then
29909       cat >>confdefs.h <<_ACEOF
29910 #define HAVE_SIGNED_${GLTYPE} 1
29911 _ACEOF
29912
29913       eval HAVE_SIGNED_${GLTYPE}=1
29914     else
29915       eval HAVE_SIGNED_${GLTYPE}=0
29916     fi
29917   done
29918
29919
29920   gl_cv_type_ptrdiff_t_signed=yes
29921   gl_cv_type_size_t_signed=no
29922   if test $APPLE_UNIVERSAL_BUILD = 0; then
29923
29924
29925
29926
29927   for gltype in ptrdiff_t size_t ; do
29928     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
29929 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
29930 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
29931   $as_echo_n "(cached) " >&6
29932 else
29933   eval gl_cv_type_${gltype}_suffix=no
29934        eval result=\$gl_cv_type_${gltype}_signed
29935        if test "$result" = yes; then
29936          glsufu=
29937        else
29938          glsufu=u
29939        fi
29940        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
29941          case $glsuf in
29942            '')  gltype1='int';;
29943            l)   gltype1='long int';;
29944            ll)  gltype1='long long int';;
29945            i64) gltype1='__int64';;
29946            u)   gltype1='unsigned int';;
29947            ul)  gltype1='unsigned long int';;
29948            ull) gltype1='unsigned long long int';;
29949            ui64)gltype1='unsigned __int64';;
29950          esac
29951          cat >conftest.$ac_ext <<_ACEOF
29952 /* confdefs.h.  */
29953 _ACEOF
29954 cat confdefs.h >>conftest.$ac_ext
29955 cat >>conftest.$ac_ext <<_ACEOF
29956 /* end confdefs.h.  */
29957
29958   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
29959      included before <wchar.h>.  */
29960   #include <stddef.h>
29961   #include <signal.h>
29962   #if HAVE_WCHAR_H
29963   # include <stdio.h>
29964   # include <time.h>
29965   # include <wchar.h>
29966   #endif
29967
29968               extern $gltype foo;
29969               extern $gltype1 foo;
29970 int
29971 main ()
29972 {
29973
29974   ;
29975   return 0;
29976 }
29977 _ACEOF
29978 rm -f conftest.$ac_objext
29979 if { (ac_try="$ac_compile"
29980 case "(($ac_try" in
29981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982   *) ac_try_echo=$ac_try;;
29983 esac
29984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29985 $as_echo "$ac_try_echo") >&5
29986   (eval "$ac_compile") 2>conftest.er1
29987   ac_status=$?
29988   grep -v '^ *+' conftest.er1 >conftest.err
29989   rm -f conftest.er1
29990   cat conftest.err >&5
29991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992   (exit $ac_status); } && {
29993          test -z "$ac_c_werror_flag" ||
29994          test ! -s conftest.err
29995        } && test -s conftest.$ac_objext; then
29996   eval gl_cv_type_${gltype}_suffix=\$glsuf
29997 else
29998   $as_echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30000
30001
30002 fi
30003
30004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30005          eval result=\$gl_cv_type_${gltype}_suffix
30006          test "$result" != no && break
30007        done
30008 fi
30009 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30010                  $as_echo "$as_val"'`
30011                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30012 $as_echo "$ac_res" >&6; }
30013     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30014     eval result=\$gl_cv_type_${gltype}_suffix
30015     test "$result" = no && result=
30016     eval ${GLTYPE}_SUFFIX=\$result
30017     cat >>confdefs.h <<_ACEOF
30018 #define ${GLTYPE}_SUFFIX $result
30019 _ACEOF
30020
30021   done
30022
30023
30024   fi
30025
30026
30027
30028
30029
30030   for gltype in sig_atomic_t wchar_t wint_t ; do
30031     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
30032 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
30033 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
30034   $as_echo_n "(cached) " >&6
30035 else
30036   eval gl_cv_type_${gltype}_suffix=no
30037        eval result=\$gl_cv_type_${gltype}_signed
30038        if test "$result" = yes; then
30039          glsufu=
30040        else
30041          glsufu=u
30042        fi
30043        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
30044          case $glsuf in
30045            '')  gltype1='int';;
30046            l)   gltype1='long int';;
30047            ll)  gltype1='long long int';;
30048            i64) gltype1='__int64';;
30049            u)   gltype1='unsigned int';;
30050            ul)  gltype1='unsigned long int';;
30051            ull) gltype1='unsigned long long int';;
30052            ui64)gltype1='unsigned __int64';;
30053          esac
30054          cat >conftest.$ac_ext <<_ACEOF
30055 /* confdefs.h.  */
30056 _ACEOF
30057 cat confdefs.h >>conftest.$ac_ext
30058 cat >>conftest.$ac_ext <<_ACEOF
30059 /* end confdefs.h.  */
30060
30061   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30062      included before <wchar.h>.  */
30063   #include <stddef.h>
30064   #include <signal.h>
30065   #if HAVE_WCHAR_H
30066   # include <stdio.h>
30067   # include <time.h>
30068   # include <wchar.h>
30069   #endif
30070
30071               extern $gltype foo;
30072               extern $gltype1 foo;
30073 int
30074 main ()
30075 {
30076
30077   ;
30078   return 0;
30079 }
30080 _ACEOF
30081 rm -f conftest.$ac_objext
30082 if { (ac_try="$ac_compile"
30083 case "(($ac_try" in
30084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30085   *) ac_try_echo=$ac_try;;
30086 esac
30087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30088 $as_echo "$ac_try_echo") >&5
30089   (eval "$ac_compile") 2>conftest.er1
30090   ac_status=$?
30091   grep -v '^ *+' conftest.er1 >conftest.err
30092   rm -f conftest.er1
30093   cat conftest.err >&5
30094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095   (exit $ac_status); } && {
30096          test -z "$ac_c_werror_flag" ||
30097          test ! -s conftest.err
30098        } && test -s conftest.$ac_objext; then
30099   eval gl_cv_type_${gltype}_suffix=\$glsuf
30100 else
30101   $as_echo "$as_me: failed program was:" >&5
30102 sed 's/^/| /' conftest.$ac_ext >&5
30103
30104
30105 fi
30106
30107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30108          eval result=\$gl_cv_type_${gltype}_suffix
30109          test "$result" != no && break
30110        done
30111 fi
30112 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
30113                  $as_echo "$as_val"'`
30114                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30115 $as_echo "$ac_res" >&6; }
30116     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
30117     eval result=\$gl_cv_type_${gltype}_suffix
30118     test "$result" = no && result=
30119     eval ${GLTYPE}_SUFFIX=\$result
30120     cat >>confdefs.h <<_ACEOF
30121 #define ${GLTYPE}_SUFFIX $result
30122 _ACEOF
30123
30124   done
30125
30126
30127
30128     STDINT_H=stdint.h
30129   fi
30130
30131
30132   # Code from module stdio:
30133
30134
30135
30136
30137
30138
30139
30140
30141   :
30142
30143
30144
30145
30146
30147
30148
30149      if test $gl_cv_have_include_next = yes; then
30150        gl_cv_next_stdio_h='<'stdio.h'>'
30151      else
30152        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
30153 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
30154 if test "${gl_cv_next_stdio_h+set}" = set; then
30155   $as_echo_n "(cached) " >&6
30156 else
30157
30158           if test $ac_cv_header_stdio_h = yes; then
30159             cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165 #include <stdio.h>
30166
30167 _ACEOF
30168                                                                                                 case "$host_os" in
30169               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30170               *)    gl_absname_cpp="$ac_cpp" ;;
30171             esac
30172                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30173                sed -n '\#/stdio.h#{
30174                  s#.*"\(.*/stdio.h\)".*#\1#
30175                  s#^/[^/]#//&#
30176                  p
30177                  q
30178                }'`'"'
30179           else
30180             gl_cv_next_stdio_h='<'stdio.h'>'
30181           fi
30182
30183 fi
30184 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
30185 $as_echo "$gl_cv_next_stdio_h" >&6; }
30186      fi
30187      NEXT_STDIO_H=$gl_cv_next_stdio_h
30188
30189      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30190        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30191        gl_next_as_first_directive='<'stdio.h'>'
30192      else
30193        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30194        gl_next_as_first_directive=$gl_cv_next_stdio_h
30195      fi
30196      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
30197
30198
30199
30200       GNULIB_FPRINTF=1
30201   GNULIB_PRINTF=1
30202   GNULIB_VFPRINTF=1
30203   GNULIB_VPRINTF=1
30204   GNULIB_FPUTC=1
30205   GNULIB_PUTC=1
30206   GNULIB_PUTCHAR=1
30207   GNULIB_FPUTS=1
30208   GNULIB_PUTS=1
30209   GNULIB_FWRITE=1
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224
30225   for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
30226     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30227     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30228 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30229 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30230   $as_echo_n "(cached) " >&6
30231 else
30232   cat >conftest.$ac_ext <<_ACEOF
30233 /* confdefs.h.  */
30234 _ACEOF
30235 cat confdefs.h >>conftest.$ac_ext
30236 cat >>conftest.$ac_ext <<_ACEOF
30237 /* end confdefs.h.  */
30238 #include <stdio.h>
30239
30240 int
30241 main ()
30242 {
30243 #undef $gl_func
30244   (void) $gl_func;
30245   ;
30246   return 0;
30247 }
30248 _ACEOF
30249 rm -f conftest.$ac_objext
30250 if { (ac_try="$ac_compile"
30251 case "(($ac_try" in
30252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30253   *) ac_try_echo=$ac_try;;
30254 esac
30255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30256 $as_echo "$ac_try_echo") >&5
30257   (eval "$ac_compile") 2>conftest.er1
30258   ac_status=$?
30259   grep -v '^ *+' conftest.er1 >conftest.err
30260   rm -f conftest.er1
30261   cat conftest.err >&5
30262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263   (exit $ac_status); } && {
30264          test -z "$ac_c_werror_flag" ||
30265          test ! -s conftest.err
30266        } && test -s conftest.$ac_objext; then
30267   eval "$as_gl_Symbol=yes"
30268 else
30269   $as_echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30271
30272         eval "$as_gl_Symbol=no"
30273 fi
30274
30275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30276 fi
30277 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30278                  $as_echo "$as_val"'`
30279                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30280 $as_echo "$ac_res" >&6; }
30281      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30282                  $as_echo "$as_val"'`
30283    if test "x$as_val" = x""yes; then
30284   cat >>confdefs.h <<_ACEOF
30285 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30286 _ACEOF
30287
30288                      eval ac_cv_have_decl_$gl_func=yes
30289 fi
30290
30291       done
30292
30293
30294   # Code from module stdlib:
30295
30296
30297
30298
30299
30300
30301   :
30302
30303
30304
30305
30306
30307
30308
30309      if test $gl_cv_have_include_next = yes; then
30310        gl_cv_next_stdlib_h='<'stdlib.h'>'
30311      else
30312        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
30313 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
30314 if test "${gl_cv_next_stdlib_h+set}" = set; then
30315   $as_echo_n "(cached) " >&6
30316 else
30317
30318           if test $ac_cv_header_stdlib_h = yes; then
30319             cat >conftest.$ac_ext <<_ACEOF
30320 /* confdefs.h.  */
30321 _ACEOF
30322 cat confdefs.h >>conftest.$ac_ext
30323 cat >>conftest.$ac_ext <<_ACEOF
30324 /* end confdefs.h.  */
30325 #include <stdlib.h>
30326
30327 _ACEOF
30328                                                                                                 case "$host_os" in
30329               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30330               *)    gl_absname_cpp="$ac_cpp" ;;
30331             esac
30332                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30333                sed -n '\#/stdlib.h#{
30334                  s#.*"\(.*/stdlib.h\)".*#\1#
30335                  s#^/[^/]#//&#
30336                  p
30337                  q
30338                }'`'"'
30339           else
30340             gl_cv_next_stdlib_h='<'stdlib.h'>'
30341           fi
30342
30343 fi
30344 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
30345 $as_echo "$gl_cv_next_stdlib_h" >&6; }
30346      fi
30347      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
30348
30349      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30350        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30351        gl_next_as_first_directive='<'stdlib.h'>'
30352      else
30353        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30354        gl_next_as_first_directive=$gl_cv_next_stdlib_h
30355      fi
30356      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
30357
30358
30359
30360
30361 for ac_header in random.h
30362 do
30363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30365 $as_echo_n "checking for $ac_header... " >&6; }
30366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30367   $as_echo_n "(cached) " >&6
30368 else
30369   cat >conftest.$ac_ext <<_ACEOF
30370 /* confdefs.h.  */
30371 _ACEOF
30372 cat confdefs.h >>conftest.$ac_ext
30373 cat >>conftest.$ac_ext <<_ACEOF
30374 /* end confdefs.h.  */
30375 $ac_includes_default
30376
30377 #include <$ac_header>
30378 _ACEOF
30379 rm -f conftest.$ac_objext
30380 if { (ac_try="$ac_compile"
30381 case "(($ac_try" in
30382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30383   *) ac_try_echo=$ac_try;;
30384 esac
30385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30386 $as_echo "$ac_try_echo") >&5
30387   (eval "$ac_compile") 2>conftest.er1
30388   ac_status=$?
30389   grep -v '^ *+' conftest.er1 >conftest.err
30390   rm -f conftest.er1
30391   cat conftest.err >&5
30392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30393   (exit $ac_status); } && {
30394          test -z "$ac_c_werror_flag" ||
30395          test ! -s conftest.err
30396        } && test -s conftest.$ac_objext; then
30397   eval "$as_ac_Header=yes"
30398 else
30399   $as_echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.$ac_ext >&5
30401
30402         eval "$as_ac_Header=no"
30403 fi
30404
30405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30406 fi
30407 ac_res=`eval 'as_val=${'$as_ac_Header'}
30408                  $as_echo "$as_val"'`
30409                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30410 $as_echo "$ac_res" >&6; }
30411 as_val=`eval 'as_val=${'$as_ac_Header'}
30412                  $as_echo "$as_val"'`
30413    if test "x$as_val" = x""yes; then
30414   cat >>confdefs.h <<_ACEOF
30415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30416 _ACEOF
30417
30418 fi
30419
30420 done
30421
30422   if test $ac_cv_header_random_h = yes; then
30423     HAVE_RANDOM_H=1
30424   else
30425     HAVE_RANDOM_H=0
30426   fi
30427
30428   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
30429 $as_echo_n "checking for struct random_data... " >&6; }
30430 if test "${ac_cv_type_struct_random_data+set}" = set; then
30431   $as_echo_n "(cached) " >&6
30432 else
30433   ac_cv_type_struct_random_data=no
30434 cat >conftest.$ac_ext <<_ACEOF
30435 /* confdefs.h.  */
30436 _ACEOF
30437 cat confdefs.h >>conftest.$ac_ext
30438 cat >>conftest.$ac_ext <<_ACEOF
30439 /* end confdefs.h.  */
30440 #include <stdlib.h>
30441       #if HAVE_RANDOM_H
30442       # include <random.h>
30443       #endif
30444
30445
30446 int
30447 main ()
30448 {
30449 if (sizeof (struct random_data))
30450        return 0;
30451   ;
30452   return 0;
30453 }
30454 _ACEOF
30455 rm -f conftest.$ac_objext
30456 if { (ac_try="$ac_compile"
30457 case "(($ac_try" in
30458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459   *) ac_try_echo=$ac_try;;
30460 esac
30461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30462 $as_echo "$ac_try_echo") >&5
30463   (eval "$ac_compile") 2>conftest.er1
30464   ac_status=$?
30465   grep -v '^ *+' conftest.er1 >conftest.err
30466   rm -f conftest.er1
30467   cat conftest.err >&5
30468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469   (exit $ac_status); } && {
30470          test -z "$ac_c_werror_flag" ||
30471          test ! -s conftest.err
30472        } && test -s conftest.$ac_objext; then
30473   cat >conftest.$ac_ext <<_ACEOF
30474 /* confdefs.h.  */
30475 _ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h.  */
30479 #include <stdlib.h>
30480       #if HAVE_RANDOM_H
30481       # include <random.h>
30482       #endif
30483
30484
30485 int
30486 main ()
30487 {
30488 if (sizeof ((struct random_data)))
30489           return 0;
30490   ;
30491   return 0;
30492 }
30493 _ACEOF
30494 rm -f conftest.$ac_objext
30495 if { (ac_try="$ac_compile"
30496 case "(($ac_try" in
30497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498   *) ac_try_echo=$ac_try;;
30499 esac
30500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30501 $as_echo "$ac_try_echo") >&5
30502   (eval "$ac_compile") 2>conftest.er1
30503   ac_status=$?
30504   grep -v '^ *+' conftest.er1 >conftest.err
30505   rm -f conftest.er1
30506   cat conftest.err >&5
30507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508   (exit $ac_status); } && {
30509          test -z "$ac_c_werror_flag" ||
30510          test ! -s conftest.err
30511        } && test -s conftest.$ac_objext; then
30512   :
30513 else
30514   $as_echo "$as_me: failed program was:" >&5
30515 sed 's/^/| /' conftest.$ac_ext >&5
30516
30517         ac_cv_type_struct_random_data=yes
30518 fi
30519
30520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30521 else
30522   $as_echo "$as_me: failed program was:" >&5
30523 sed 's/^/| /' conftest.$ac_ext >&5
30524
30525
30526 fi
30527
30528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30529 fi
30530 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
30531 $as_echo "$ac_cv_type_struct_random_data" >&6; }
30532 if test "x$ac_cv_type_struct_random_data" = x""yes; then
30533
30534 cat >>confdefs.h <<_ACEOF
30535 #define HAVE_STRUCT_RANDOM_DATA 1
30536 _ACEOF
30537
30538
30539 else
30540   HAVE_STRUCT_RANDOM_DATA=0
30541 fi
30542
30543
30544
30545
30546
30547
30548
30549
30550
30551
30552
30553
30554
30555
30556
30557
30558
30559
30560
30561
30562
30563
30564
30565
30566
30567
30568
30569   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
30570     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30571     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30572 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30573 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30574   $as_echo_n "(cached) " >&6
30575 else
30576   cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582 #include <stdlib.h>
30583 #if HAVE_SYS_LOADAVG_H
30584 # include <sys/loadavg.h>
30585 #endif
30586 #if HAVE_RANDOM_H
30587 # include <random.h>
30588 #endif
30589
30590 int
30591 main ()
30592 {
30593 #undef $gl_func
30594   (void) $gl_func;
30595   ;
30596   return 0;
30597 }
30598 _ACEOF
30599 rm -f conftest.$ac_objext
30600 if { (ac_try="$ac_compile"
30601 case "(($ac_try" in
30602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603   *) ac_try_echo=$ac_try;;
30604 esac
30605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30606 $as_echo "$ac_try_echo") >&5
30607   (eval "$ac_compile") 2>conftest.er1
30608   ac_status=$?
30609   grep -v '^ *+' conftest.er1 >conftest.err
30610   rm -f conftest.er1
30611   cat conftest.err >&5
30612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); } && {
30614          test -z "$ac_c_werror_flag" ||
30615          test ! -s conftest.err
30616        } && test -s conftest.$ac_objext; then
30617   eval "$as_gl_Symbol=yes"
30618 else
30619   $as_echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.$ac_ext >&5
30621
30622         eval "$as_gl_Symbol=no"
30623 fi
30624
30625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30626 fi
30627 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30628                  $as_echo "$as_val"'`
30629                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30630 $as_echo "$ac_res" >&6; }
30631      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30632                  $as_echo "$as_val"'`
30633    if test "x$as_val" = x""yes; then
30634   cat >>confdefs.h <<_ACEOF
30635 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30636 _ACEOF
30637
30638                      eval ac_cv_have_decl_$gl_func=yes
30639 fi
30640
30641       done
30642
30643
30644   # Code from module streq:
30645   # Code from module string:
30646
30647
30648
30649   # Code from module sys_socket:
30650
30651
30652
30653
30654   { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> is self-contained" >&5
30655 $as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; }
30656 if test "${gl_cv_header_sys_socket_h_selfcontained+set}" = set; then
30657   $as_echo_n "(cached) " >&6
30658 else
30659
30660       cat >conftest.$ac_ext <<_ACEOF
30661 /* confdefs.h.  */
30662 _ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h.  */
30666 #include <sys/socket.h>
30667 int
30668 main ()
30669 {
30670
30671   ;
30672   return 0;
30673 }
30674 _ACEOF
30675 rm -f conftest.$ac_objext
30676 if { (ac_try="$ac_compile"
30677 case "(($ac_try" in
30678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679   *) ac_try_echo=$ac_try;;
30680 esac
30681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30682 $as_echo "$ac_try_echo") >&5
30683   (eval "$ac_compile") 2>conftest.er1
30684   ac_status=$?
30685   grep -v '^ *+' conftest.er1 >conftest.err
30686   rm -f conftest.er1
30687   cat conftest.err >&5
30688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689   (exit $ac_status); } && {
30690          test -z "$ac_c_werror_flag" ||
30691          test ! -s conftest.err
30692        } && test -s conftest.$ac_objext; then
30693   gl_cv_header_sys_socket_h_selfcontained=yes
30694 else
30695   $as_echo "$as_me: failed program was:" >&5
30696 sed 's/^/| /' conftest.$ac_ext >&5
30697
30698         gl_cv_header_sys_socket_h_selfcontained=no
30699 fi
30700
30701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30702
30703 fi
30704 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_selfcontained" >&5
30705 $as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; }
30706   if test $gl_cv_header_sys_socket_h_selfcontained = yes; then
30707
30708 for ac_func in shutdown
30709 do
30710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30712 $as_echo_n "checking for $ac_func... " >&6; }
30713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30714   $as_echo_n "(cached) " >&6
30715 else
30716   cat >conftest.$ac_ext <<_ACEOF
30717 /* confdefs.h.  */
30718 _ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h.  */
30722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30724 #define $ac_func innocuous_$ac_func
30725
30726 /* System header to define __stub macros and hopefully few prototypes,
30727     which can conflict with char $ac_func (); below.
30728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30729     <limits.h> exists even on freestanding compilers.  */
30730
30731 #ifdef __STDC__
30732 # include <limits.h>
30733 #else
30734 # include <assert.h>
30735 #endif
30736
30737 #undef $ac_func
30738
30739 /* Override any GCC internal prototype to avoid an error.
30740    Use char because int might match the return type of a GCC
30741    builtin and then its argument prototype would still apply.  */
30742 #ifdef __cplusplus
30743 extern "C"
30744 #endif
30745 char $ac_func ();
30746 /* The GNU C library defines this for functions which it implements
30747     to always fail with ENOSYS.  Some functions are actually named
30748     something starting with __ and the normal name is an alias.  */
30749 #if defined __stub_$ac_func || defined __stub___$ac_func
30750 choke me
30751 #endif
30752
30753 int
30754 main ()
30755 {
30756 return $ac_func ();
30757   ;
30758   return 0;
30759 }
30760 _ACEOF
30761 rm -f conftest.$ac_objext conftest$ac_exeext
30762 if { (ac_try="$ac_link"
30763 case "(($ac_try" in
30764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765   *) ac_try_echo=$ac_try;;
30766 esac
30767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30768 $as_echo "$ac_try_echo") >&5
30769   (eval "$ac_link") 2>conftest.er1
30770   ac_status=$?
30771   grep -v '^ *+' conftest.er1 >conftest.err
30772   rm -f conftest.er1
30773   cat conftest.err >&5
30774   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775   (exit $ac_status); } && {
30776          test -z "$ac_c_werror_flag" ||
30777          test ! -s conftest.err
30778        } && test -s conftest$ac_exeext && {
30779          test "$cross_compiling" = yes ||
30780          $as_test_x conftest$ac_exeext
30781        }; then
30782   eval "$as_ac_var=yes"
30783 else
30784   $as_echo "$as_me: failed program was:" >&5
30785 sed 's/^/| /' conftest.$ac_ext >&5
30786
30787         eval "$as_ac_var=no"
30788 fi
30789
30790 rm -rf conftest.dSYM
30791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30792       conftest$ac_exeext conftest.$ac_ext
30793 fi
30794 ac_res=`eval 'as_val=${'$as_ac_var'}
30795                  $as_echo "$as_val"'`
30796                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30797 $as_echo "$ac_res" >&6; }
30798 as_val=`eval 'as_val=${'$as_ac_var'}
30799                  $as_echo "$as_val"'`
30800    if test "x$as_val" = x""yes; then
30801   cat >>confdefs.h <<_ACEOF
30802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30803 _ACEOF
30804
30805 fi
30806 done
30807
30808     if test $ac_cv_func_shutdown = yes; then
30809       { $as_echo "$as_me:$LINENO: checking whether <sys/socket.h> defines the SHUT_* macros" >&5
30810 $as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; }
30811 if test "${gl_cv_header_sys_socket_h_shut+set}" = set; then
30812   $as_echo_n "(cached) " >&6
30813 else
30814
30815           cat >conftest.$ac_ext <<_ACEOF
30816 /* confdefs.h.  */
30817 _ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h.  */
30821 #include <sys/socket.h>
30822 int
30823 main ()
30824 {
30825 int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR };
30826   ;
30827   return 0;
30828 }
30829 _ACEOF
30830 rm -f conftest.$ac_objext
30831 if { (ac_try="$ac_compile"
30832 case "(($ac_try" in
30833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834   *) ac_try_echo=$ac_try;;
30835 esac
30836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30837 $as_echo "$ac_try_echo") >&5
30838   (eval "$ac_compile") 2>conftest.er1
30839   ac_status=$?
30840   grep -v '^ *+' conftest.er1 >conftest.err
30841   rm -f conftest.er1
30842   cat conftest.err >&5
30843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); } && {
30845          test -z "$ac_c_werror_flag" ||
30846          test ! -s conftest.err
30847        } && test -s conftest.$ac_objext; then
30848   gl_cv_header_sys_socket_h_shut=yes
30849 else
30850   $as_echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30852
30853         gl_cv_header_sys_socket_h_shut=no
30854 fi
30855
30856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30857
30858 fi
30859 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_sys_socket_h_shut" >&5
30860 $as_echo "$gl_cv_header_sys_socket_h_shut" >&6; }
30861       if test $gl_cv_header_sys_socket_h_shut = no; then
30862         SYS_SOCKET_H='sys/socket.h'
30863       fi
30864     fi
30865   fi
30866   # We need to check for ws2tcpip.h now.
30867
30868
30869
30870
30871
30872   :
30873
30874
30875
30876
30877
30878
30879
30880      if test $gl_cv_have_include_next = yes; then
30881        gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30882      else
30883        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/socket.h>" >&5
30884 $as_echo_n "checking absolute name of <sys/socket.h>... " >&6; }
30885 if test "${gl_cv_next_sys_socket_h+set}" = set; then
30886   $as_echo_n "(cached) " >&6
30887 else
30888
30889           if test $ac_cv_header_sys_socket_h = yes; then
30890             cat >conftest.$ac_ext <<_ACEOF
30891 /* confdefs.h.  */
30892 _ACEOF
30893 cat confdefs.h >>conftest.$ac_ext
30894 cat >>conftest.$ac_ext <<_ACEOF
30895 /* end confdefs.h.  */
30896 #include <sys/socket.h>
30897
30898 _ACEOF
30899                                                                                                 case "$host_os" in
30900               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30901               *)    gl_absname_cpp="$ac_cpp" ;;
30902             esac
30903                                                 gl_cv_next_sys_socket_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30904                sed -n '\#/sys/socket.h#{
30905                  s#.*"\(.*/sys/socket.h\)".*#\1#
30906                  s#^/[^/]#//&#
30907                  p
30908                  q
30909                }'`'"'
30910           else
30911             gl_cv_next_sys_socket_h='<'sys/socket.h'>'
30912           fi
30913
30914 fi
30915 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_socket_h" >&5
30916 $as_echo "$gl_cv_next_sys_socket_h" >&6; }
30917      fi
30918      NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h
30919
30920      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30921        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30922        gl_next_as_first_directive='<'sys/socket.h'>'
30923      else
30924        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30925        gl_next_as_first_directive=$gl_cv_next_sys_socket_h
30926      fi
30927      NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive
30928
30929
30930
30931   if test $ac_cv_header_sys_socket_h = yes; then
30932     HAVE_SYS_SOCKET_H=1
30933     HAVE_WS2TCPIP_H=0
30934   else
30935     HAVE_SYS_SOCKET_H=0
30936
30937 for ac_header in ws2tcpip.h
30938 do
30939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30941   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30942 $as_echo_n "checking for $ac_header... " >&6; }
30943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30944   $as_echo_n "(cached) " >&6
30945 fi
30946 ac_res=`eval 'as_val=${'$as_ac_Header'}
30947                  $as_echo "$as_val"'`
30948                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30949 $as_echo "$ac_res" >&6; }
30950 else
30951   # Is the header compilable?
30952 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30953 $as_echo_n "checking $ac_header usability... " >&6; }
30954 cat >conftest.$ac_ext <<_ACEOF
30955 /* confdefs.h.  */
30956 _ACEOF
30957 cat confdefs.h >>conftest.$ac_ext
30958 cat >>conftest.$ac_ext <<_ACEOF
30959 /* end confdefs.h.  */
30960 $ac_includes_default
30961 #include <$ac_header>
30962 _ACEOF
30963 rm -f conftest.$ac_objext
30964 if { (ac_try="$ac_compile"
30965 case "(($ac_try" in
30966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30967   *) ac_try_echo=$ac_try;;
30968 esac
30969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30970 $as_echo "$ac_try_echo") >&5
30971   (eval "$ac_compile") 2>conftest.er1
30972   ac_status=$?
30973   grep -v '^ *+' conftest.er1 >conftest.err
30974   rm -f conftest.er1
30975   cat conftest.err >&5
30976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977   (exit $ac_status); } && {
30978          test -z "$ac_c_werror_flag" ||
30979          test ! -s conftest.err
30980        } && test -s conftest.$ac_objext; then
30981   ac_header_compiler=yes
30982 else
30983   $as_echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986         ac_header_compiler=no
30987 fi
30988
30989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30990 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30991 $as_echo "$ac_header_compiler" >&6; }
30992
30993 # Is the header present?
30994 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30995 $as_echo_n "checking $ac_header presence... " >&6; }
30996 cat >conftest.$ac_ext <<_ACEOF
30997 /* confdefs.h.  */
30998 _ACEOF
30999 cat confdefs.h >>conftest.$ac_ext
31000 cat >>conftest.$ac_ext <<_ACEOF
31001 /* end confdefs.h.  */
31002 #include <$ac_header>
31003 _ACEOF
31004 if { (ac_try="$ac_cpp conftest.$ac_ext"
31005 case "(($ac_try" in
31006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007   *) ac_try_echo=$ac_try;;
31008 esac
31009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31010 $as_echo "$ac_try_echo") >&5
31011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31012   ac_status=$?
31013   grep -v '^ *+' conftest.er1 >conftest.err
31014   rm -f conftest.er1
31015   cat conftest.err >&5
31016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); } >/dev/null && {
31018          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31019          test ! -s conftest.err
31020        }; then
31021   ac_header_preproc=yes
31022 else
31023   $as_echo "$as_me: failed program was:" >&5
31024 sed 's/^/| /' conftest.$ac_ext >&5
31025
31026   ac_header_preproc=no
31027 fi
31028
31029 rm -f conftest.err conftest.$ac_ext
31030 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31031 $as_echo "$ac_header_preproc" >&6; }
31032
31033 # So?  What about this header?
31034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31035   yes:no: )
31036     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31037 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31038     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31040     ac_header_preproc=yes
31041     ;;
31042   no:yes:* )
31043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31044 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31046 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31048 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31050 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31051     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31052 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31054 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31055
31056     ;;
31057 esac
31058 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31059 $as_echo_n "checking for $ac_header... " >&6; }
31060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31061   $as_echo_n "(cached) " >&6
31062 else
31063   eval "$as_ac_Header=\$ac_header_preproc"
31064 fi
31065 ac_res=`eval 'as_val=${'$as_ac_Header'}
31066                  $as_echo "$as_val"'`
31067                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31068 $as_echo "$ac_res" >&6; }
31069
31070 fi
31071 as_val=`eval 'as_val=${'$as_ac_Header'}
31072                  $as_echo "$as_val"'`
31073    if test "x$as_val" = x""yes; then
31074   cat >>confdefs.h <<_ACEOF
31075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31076 _ACEOF
31077
31078 fi
31079
31080 done
31081
31082     if test $ac_cv_header_ws2tcpip_h = yes; then
31083       HAVE_WS2TCPIP_H=1
31084     else
31085       HAVE_WS2TCPIP_H=0
31086     fi
31087   fi
31088
31089
31090
31091   { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
31092 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
31093 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
31094   $as_echo_n "(cached) " >&6
31095 else
31096   ac_cv_type_struct_sockaddr_storage=no
31097 cat >conftest.$ac_ext <<_ACEOF
31098 /* confdefs.h.  */
31099 _ACEOF
31100 cat confdefs.h >>conftest.$ac_ext
31101 cat >>conftest.$ac_ext <<_ACEOF
31102 /* end confdefs.h.  */
31103
31104   /* sys/types.h is not needed according to POSIX, but the
31105      sys/socket.h in i386-unknown-freebsd4.10 and
31106      powerpc-apple-darwin5.5 required it. */
31107 #include <sys/types.h>
31108 #ifdef HAVE_SYS_SOCKET_H
31109 #include <sys/socket.h>
31110 #endif
31111 #ifdef HAVE_WS2TCPIP_H
31112 #include <ws2tcpip.h>
31113 #endif
31114
31115
31116 int
31117 main ()
31118 {
31119 if (sizeof (struct sockaddr_storage))
31120        return 0;
31121   ;
31122   return 0;
31123 }
31124 _ACEOF
31125 rm -f conftest.$ac_objext
31126 if { (ac_try="$ac_compile"
31127 case "(($ac_try" in
31128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129   *) ac_try_echo=$ac_try;;
31130 esac
31131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31132 $as_echo "$ac_try_echo") >&5
31133   (eval "$ac_compile") 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } && {
31140          test -z "$ac_c_werror_flag" ||
31141          test ! -s conftest.err
31142        } && test -s conftest.$ac_objext; then
31143   cat >conftest.$ac_ext <<_ACEOF
31144 /* confdefs.h.  */
31145 _ACEOF
31146 cat confdefs.h >>conftest.$ac_ext
31147 cat >>conftest.$ac_ext <<_ACEOF
31148 /* end confdefs.h.  */
31149
31150   /* sys/types.h is not needed according to POSIX, but the
31151      sys/socket.h in i386-unknown-freebsd4.10 and
31152      powerpc-apple-darwin5.5 required it. */
31153 #include <sys/types.h>
31154 #ifdef HAVE_SYS_SOCKET_H
31155 #include <sys/socket.h>
31156 #endif
31157 #ifdef HAVE_WS2TCPIP_H
31158 #include <ws2tcpip.h>
31159 #endif
31160
31161
31162 int
31163 main ()
31164 {
31165 if (sizeof ((struct sockaddr_storage)))
31166           return 0;
31167   ;
31168   return 0;
31169 }
31170 _ACEOF
31171 rm -f conftest.$ac_objext
31172 if { (ac_try="$ac_compile"
31173 case "(($ac_try" in
31174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31175   *) ac_try_echo=$ac_try;;
31176 esac
31177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31178 $as_echo "$ac_try_echo") >&5
31179   (eval "$ac_compile") 2>conftest.er1
31180   ac_status=$?
31181   grep -v '^ *+' conftest.er1 >conftest.err
31182   rm -f conftest.er1
31183   cat conftest.err >&5
31184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } && {
31186          test -z "$ac_c_werror_flag" ||
31187          test ! -s conftest.err
31188        } && test -s conftest.$ac_objext; then
31189   :
31190 else
31191   $as_echo "$as_me: failed program was:" >&5
31192 sed 's/^/| /' conftest.$ac_ext >&5
31193
31194         ac_cv_type_struct_sockaddr_storage=yes
31195 fi
31196
31197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31198 else
31199   $as_echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.$ac_ext >&5
31201
31202
31203 fi
31204
31205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206 fi
31207 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
31208 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
31209 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
31210
31211 cat >>confdefs.h <<_ACEOF
31212 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
31213 _ACEOF
31214
31215
31216 fi
31217 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
31218 $as_echo_n "checking for sa_family_t... " >&6; }
31219 if test "${ac_cv_type_sa_family_t+set}" = set; then
31220   $as_echo_n "(cached) " >&6
31221 else
31222   ac_cv_type_sa_family_t=no
31223 cat >conftest.$ac_ext <<_ACEOF
31224 /* confdefs.h.  */
31225 _ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h.  */
31229
31230   /* sys/types.h is not needed according to POSIX, but the
31231      sys/socket.h in i386-unknown-freebsd4.10 and
31232      powerpc-apple-darwin5.5 required it. */
31233 #include <sys/types.h>
31234 #ifdef HAVE_SYS_SOCKET_H
31235 #include <sys/socket.h>
31236 #endif
31237 #ifdef HAVE_WS2TCPIP_H
31238 #include <ws2tcpip.h>
31239 #endif
31240
31241
31242 int
31243 main ()
31244 {
31245 if (sizeof (sa_family_t))
31246        return 0;
31247   ;
31248   return 0;
31249 }
31250 _ACEOF
31251 rm -f conftest.$ac_objext
31252 if { (ac_try="$ac_compile"
31253 case "(($ac_try" in
31254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31255   *) ac_try_echo=$ac_try;;
31256 esac
31257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31258 $as_echo "$ac_try_echo") >&5
31259   (eval "$ac_compile") 2>conftest.er1
31260   ac_status=$?
31261   grep -v '^ *+' conftest.er1 >conftest.err
31262   rm -f conftest.er1
31263   cat conftest.err >&5
31264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265   (exit $ac_status); } && {
31266          test -z "$ac_c_werror_flag" ||
31267          test ! -s conftest.err
31268        } && test -s conftest.$ac_objext; then
31269   cat >conftest.$ac_ext <<_ACEOF
31270 /* confdefs.h.  */
31271 _ACEOF
31272 cat confdefs.h >>conftest.$ac_ext
31273 cat >>conftest.$ac_ext <<_ACEOF
31274 /* end confdefs.h.  */
31275
31276   /* sys/types.h is not needed according to POSIX, but the
31277      sys/socket.h in i386-unknown-freebsd4.10 and
31278      powerpc-apple-darwin5.5 required it. */
31279 #include <sys/types.h>
31280 #ifdef HAVE_SYS_SOCKET_H
31281 #include <sys/socket.h>
31282 #endif
31283 #ifdef HAVE_WS2TCPIP_H
31284 #include <ws2tcpip.h>
31285 #endif
31286
31287
31288 int
31289 main ()
31290 {
31291 if (sizeof ((sa_family_t)))
31292           return 0;
31293   ;
31294   return 0;
31295 }
31296 _ACEOF
31297 rm -f conftest.$ac_objext
31298 if { (ac_try="$ac_compile"
31299 case "(($ac_try" in
31300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31301   *) ac_try_echo=$ac_try;;
31302 esac
31303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31304 $as_echo "$ac_try_echo") >&5
31305   (eval "$ac_compile") 2>conftest.er1
31306   ac_status=$?
31307   grep -v '^ *+' conftest.er1 >conftest.err
31308   rm -f conftest.er1
31309   cat conftest.err >&5
31310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); } && {
31312          test -z "$ac_c_werror_flag" ||
31313          test ! -s conftest.err
31314        } && test -s conftest.$ac_objext; then
31315   :
31316 else
31317   $as_echo "$as_me: failed program was:" >&5
31318 sed 's/^/| /' conftest.$ac_ext >&5
31319
31320         ac_cv_type_sa_family_t=yes
31321 fi
31322
31323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31324 else
31325   $as_echo "$as_me: failed program was:" >&5
31326 sed 's/^/| /' conftest.$ac_ext >&5
31327
31328
31329 fi
31330
31331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31332 fi
31333 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31334 $as_echo "$ac_cv_type_sa_family_t" >&6; }
31335 if test "x$ac_cv_type_sa_family_t" = x""yes; then
31336
31337 cat >>confdefs.h <<_ACEOF
31338 #define HAVE_SA_FAMILY_T 1
31339 _ACEOF
31340
31341
31342 fi
31343
31344   if test $ac_cv_type_struct_sockaddr_storage = no; then
31345     HAVE_STRUCT_SOCKADDR_STORAGE=0
31346   fi
31347   if test $ac_cv_type_sa_family_t = no; then
31348     HAVE_SA_FAMILY_T=0
31349   fi
31350
31351
31352
31353
31354   :
31355
31356
31357
31358
31359
31360   if test $ac_cv_header_sys_socket_h != yes; then
31361
31362 for ac_header in winsock2.h
31363 do
31364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31366   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31367 $as_echo_n "checking for $ac_header... " >&6; }
31368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31369   $as_echo_n "(cached) " >&6
31370 fi
31371 ac_res=`eval 'as_val=${'$as_ac_Header'}
31372                  $as_echo "$as_val"'`
31373                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31374 $as_echo "$ac_res" >&6; }
31375 else
31376   # Is the header compilable?
31377 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31378 $as_echo_n "checking $ac_header usability... " >&6; }
31379 cat >conftest.$ac_ext <<_ACEOF
31380 /* confdefs.h.  */
31381 _ACEOF
31382 cat confdefs.h >>conftest.$ac_ext
31383 cat >>conftest.$ac_ext <<_ACEOF
31384 /* end confdefs.h.  */
31385 $ac_includes_default
31386 #include <$ac_header>
31387 _ACEOF
31388 rm -f conftest.$ac_objext
31389 if { (ac_try="$ac_compile"
31390 case "(($ac_try" in
31391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392   *) ac_try_echo=$ac_try;;
31393 esac
31394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31395 $as_echo "$ac_try_echo") >&5
31396   (eval "$ac_compile") 2>conftest.er1
31397   ac_status=$?
31398   grep -v '^ *+' conftest.er1 >conftest.err
31399   rm -f conftest.er1
31400   cat conftest.err >&5
31401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402   (exit $ac_status); } && {
31403          test -z "$ac_c_werror_flag" ||
31404          test ! -s conftest.err
31405        } && test -s conftest.$ac_objext; then
31406   ac_header_compiler=yes
31407 else
31408   $as_echo "$as_me: failed program was:" >&5
31409 sed 's/^/| /' conftest.$ac_ext >&5
31410
31411         ac_header_compiler=no
31412 fi
31413
31414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31415 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31416 $as_echo "$ac_header_compiler" >&6; }
31417
31418 # Is the header present?
31419 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31420 $as_echo_n "checking $ac_header presence... " >&6; }
31421 cat >conftest.$ac_ext <<_ACEOF
31422 /* confdefs.h.  */
31423 _ACEOF
31424 cat confdefs.h >>conftest.$ac_ext
31425 cat >>conftest.$ac_ext <<_ACEOF
31426 /* end confdefs.h.  */
31427 #include <$ac_header>
31428 _ACEOF
31429 if { (ac_try="$ac_cpp conftest.$ac_ext"
31430 case "(($ac_try" in
31431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432   *) ac_try_echo=$ac_try;;
31433 esac
31434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31435 $as_echo "$ac_try_echo") >&5
31436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31437   ac_status=$?
31438   grep -v '^ *+' conftest.er1 >conftest.err
31439   rm -f conftest.er1
31440   cat conftest.err >&5
31441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442   (exit $ac_status); } >/dev/null && {
31443          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31444          test ! -s conftest.err
31445        }; then
31446   ac_header_preproc=yes
31447 else
31448   $as_echo "$as_me: failed program was:" >&5
31449 sed 's/^/| /' conftest.$ac_ext >&5
31450
31451   ac_header_preproc=no
31452 fi
31453
31454 rm -f conftest.err conftest.$ac_ext
31455 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31456 $as_echo "$ac_header_preproc" >&6; }
31457
31458 # So?  What about this header?
31459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31460   yes:no: )
31461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31462 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31465     ac_header_preproc=yes
31466     ;;
31467   no:yes:* )
31468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31469 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31471 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31473 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31475 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31478     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31479 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31480
31481     ;;
31482 esac
31483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31484 $as_echo_n "checking for $ac_header... " >&6; }
31485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31486   $as_echo_n "(cached) " >&6
31487 else
31488   eval "$as_ac_Header=\$ac_header_preproc"
31489 fi
31490 ac_res=`eval 'as_val=${'$as_ac_Header'}
31491                  $as_echo "$as_val"'`
31492                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31493 $as_echo "$ac_res" >&6; }
31494
31495 fi
31496 as_val=`eval 'as_val=${'$as_ac_Header'}
31497                  $as_echo "$as_val"'`
31498    if test "x$as_val" = x""yes; then
31499   cat >>confdefs.h <<_ACEOF
31500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31501 _ACEOF
31502
31503 fi
31504
31505 done
31506
31507   fi
31508   if test "$ac_cv_header_winsock2_h" = yes; then
31509     HAVE_WINSOCK2_H=1
31510     UNISTD_H_HAVE_WINSOCK2_H=1
31511     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
31512   else
31513     HAVE_WINSOCK2_H=0
31514   fi
31515
31516
31517
31518
31519
31520
31521
31522
31523
31524
31525
31526
31527
31528
31529
31530
31531
31532
31533
31534   for gl_func in socket connect accept bind getpeername getsockname getsockopt     listen recv send recvfrom sendto setsockopt shutdown accept4; do
31535     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31536     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31537 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31538 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31539   $as_echo_n "(cached) " >&6
31540 else
31541   cat >conftest.$ac_ext <<_ACEOF
31542 /* confdefs.h.  */
31543 _ACEOF
31544 cat confdefs.h >>conftest.$ac_ext
31545 cat >>conftest.$ac_ext <<_ACEOF
31546 /* end confdefs.h.  */
31547
31548 /* Some systems require prerequisite headers.  */
31549 #include <sys/types.h>
31550 #if !defined __GLIBC__ && HAVE_SYS_TIME_H
31551 # include <sys/time.h>
31552 #endif
31553 #include <sys/select.h>
31554
31555 int
31556 main ()
31557 {
31558 #undef $gl_func
31559   (void) $gl_func;
31560   ;
31561   return 0;
31562 }
31563 _ACEOF
31564 rm -f conftest.$ac_objext
31565 if { (ac_try="$ac_compile"
31566 case "(($ac_try" in
31567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31568   *) ac_try_echo=$ac_try;;
31569 esac
31570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31571 $as_echo "$ac_try_echo") >&5
31572   (eval "$ac_compile") 2>conftest.er1
31573   ac_status=$?
31574   grep -v '^ *+' conftest.er1 >conftest.err
31575   rm -f conftest.er1
31576   cat conftest.err >&5
31577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578   (exit $ac_status); } && {
31579          test -z "$ac_c_werror_flag" ||
31580          test ! -s conftest.err
31581        } && test -s conftest.$ac_objext; then
31582   eval "$as_gl_Symbol=yes"
31583 else
31584   $as_echo "$as_me: failed program was:" >&5
31585 sed 's/^/| /' conftest.$ac_ext >&5
31586
31587         eval "$as_gl_Symbol=no"
31588 fi
31589
31590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31591 fi
31592 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31593                  $as_echo "$as_val"'`
31594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31595 $as_echo "$ac_res" >&6; }
31596      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31597                  $as_echo "$as_val"'`
31598    if test "x$as_val" = x""yes; then
31599   cat >>confdefs.h <<_ACEOF
31600 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31601 _ACEOF
31602
31603                      eval ac_cv_have_decl_$gl_func=yes
31604 fi
31605
31606       done
31607
31608
31609   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31610 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31611 if test -z "$MKDIR_P"; then
31612   if test "${ac_cv_path_mkdir+set}" = set; then
31613   $as_echo_n "(cached) " >&6
31614 else
31615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31616 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31617 do
31618   IFS=$as_save_IFS
31619   test -z "$as_dir" && as_dir=.
31620   for ac_prog in mkdir gmkdir; do
31621          for ac_exec_ext in '' $ac_executable_extensions; do
31622            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31623            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31624              'mkdir (GNU coreutils) '* | \
31625              'mkdir (coreutils) '* | \
31626              'mkdir (fileutils) '4.1*)
31627                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31628                break 3;;
31629            esac
31630          done
31631        done
31632 done
31633 IFS=$as_save_IFS
31634
31635 fi
31636
31637   if test "${ac_cv_path_mkdir+set}" = set; then
31638     MKDIR_P="$ac_cv_path_mkdir -p"
31639   else
31640     # As a last resort, use the slow shell script.  Don't cache a
31641     # value for MKDIR_P within a source directory, because that will
31642     # break other packages using the cache if that directory is
31643     # removed, or if the value is a relative name.
31644     test -d ./--version && rmdir ./--version
31645     MKDIR_P="$ac_install_sh -d"
31646   fi
31647 fi
31648 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31649 $as_echo "$MKDIR_P" >&6; }
31650
31651
31652   # Code from module sys_stat:
31653
31654
31655
31656
31657
31658
31659
31660
31661
31662
31663
31664   :
31665
31666
31667
31668
31669
31670
31671
31672      if test $gl_cv_have_include_next = yes; then
31673        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31674      else
31675        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
31676 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
31677 if test "${gl_cv_next_sys_stat_h+set}" = set; then
31678   $as_echo_n "(cached) " >&6
31679 else
31680
31681           if test $ac_cv_header_sys_stat_h = yes; then
31682             cat >conftest.$ac_ext <<_ACEOF
31683 /* confdefs.h.  */
31684 _ACEOF
31685 cat confdefs.h >>conftest.$ac_ext
31686 cat >>conftest.$ac_ext <<_ACEOF
31687 /* end confdefs.h.  */
31688 #include <sys/stat.h>
31689
31690 _ACEOF
31691                                                                                                 case "$host_os" in
31692               aix*) gl_absname_cpp="$ac_cpp -C" ;;
31693               *)    gl_absname_cpp="$ac_cpp" ;;
31694             esac
31695                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
31696                sed -n '\#/sys/stat.h#{
31697                  s#.*"\(.*/sys/stat.h\)".*#\1#
31698                  s#^/[^/]#//&#
31699                  p
31700                  q
31701                }'`'"'
31702           else
31703             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
31704           fi
31705
31706 fi
31707 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
31708 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
31709      fi
31710      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
31711
31712      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
31713        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
31714        gl_next_as_first_directive='<'sys/stat.h'>'
31715      else
31716        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
31717        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
31718      fi
31719      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
31720
31721
31722
31723
31724       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
31725 $as_echo_n "checking for nlink_t... " >&6; }
31726 if test "${ac_cv_type_nlink_t+set}" = set; then
31727   $as_echo_n "(cached) " >&6
31728 else
31729   ac_cv_type_nlink_t=no
31730 cat >conftest.$ac_ext <<_ACEOF
31731 /* confdefs.h.  */
31732 _ACEOF
31733 cat confdefs.h >>conftest.$ac_ext
31734 cat >>conftest.$ac_ext <<_ACEOF
31735 /* end confdefs.h.  */
31736 #include <sys/types.h>
31737      #include <sys/stat.h>
31738
31739 int
31740 main ()
31741 {
31742 if (sizeof (nlink_t))
31743        return 0;
31744   ;
31745   return 0;
31746 }
31747 _ACEOF
31748 rm -f conftest.$ac_objext
31749 if { (ac_try="$ac_compile"
31750 case "(($ac_try" in
31751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31752   *) ac_try_echo=$ac_try;;
31753 esac
31754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31755 $as_echo "$ac_try_echo") >&5
31756   (eval "$ac_compile") 2>conftest.er1
31757   ac_status=$?
31758   grep -v '^ *+' conftest.er1 >conftest.err
31759   rm -f conftest.er1
31760   cat conftest.err >&5
31761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762   (exit $ac_status); } && {
31763          test -z "$ac_c_werror_flag" ||
31764          test ! -s conftest.err
31765        } && test -s conftest.$ac_objext; then
31766   cat >conftest.$ac_ext <<_ACEOF
31767 /* confdefs.h.  */
31768 _ACEOF
31769 cat confdefs.h >>conftest.$ac_ext
31770 cat >>conftest.$ac_ext <<_ACEOF
31771 /* end confdefs.h.  */
31772 #include <sys/types.h>
31773      #include <sys/stat.h>
31774
31775 int
31776 main ()
31777 {
31778 if (sizeof ((nlink_t)))
31779           return 0;
31780   ;
31781   return 0;
31782 }
31783 _ACEOF
31784 rm -f conftest.$ac_objext
31785 if { (ac_try="$ac_compile"
31786 case "(($ac_try" in
31787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31788   *) ac_try_echo=$ac_try;;
31789 esac
31790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31791 $as_echo "$ac_try_echo") >&5
31792   (eval "$ac_compile") 2>conftest.er1
31793   ac_status=$?
31794   grep -v '^ *+' conftest.er1 >conftest.err
31795   rm -f conftest.er1
31796   cat conftest.err >&5
31797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798   (exit $ac_status); } && {
31799          test -z "$ac_c_werror_flag" ||
31800          test ! -s conftest.err
31801        } && test -s conftest.$ac_objext; then
31802   :
31803 else
31804   $as_echo "$as_me: failed program was:" >&5
31805 sed 's/^/| /' conftest.$ac_ext >&5
31806
31807         ac_cv_type_nlink_t=yes
31808 fi
31809
31810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31811 else
31812   $as_echo "$as_me: failed program was:" >&5
31813 sed 's/^/| /' conftest.$ac_ext >&5
31814
31815
31816 fi
31817
31818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31819 fi
31820 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
31821 $as_echo "$ac_cv_type_nlink_t" >&6; }
31822 if test "x$ac_cv_type_nlink_t" = x""yes; then
31823   :
31824 else
31825
31826 cat >>confdefs.h <<\_ACEOF
31827 #define nlink_t int
31828 _ACEOF
31829
31830 fi
31831
31832
31833
31834
31835
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846   for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
31847     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
31848     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
31849 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
31850 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
31851   $as_echo_n "(cached) " >&6
31852 else
31853   cat >conftest.$ac_ext <<_ACEOF
31854 /* confdefs.h.  */
31855 _ACEOF
31856 cat confdefs.h >>conftest.$ac_ext
31857 cat >>conftest.$ac_ext <<_ACEOF
31858 /* end confdefs.h.  */
31859 #include <sys/stat.h>
31860
31861 int
31862 main ()
31863 {
31864 #undef $gl_func
31865   (void) $gl_func;
31866   ;
31867   return 0;
31868 }
31869 _ACEOF
31870 rm -f conftest.$ac_objext
31871 if { (ac_try="$ac_compile"
31872 case "(($ac_try" in
31873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874   *) ac_try_echo=$ac_try;;
31875 esac
31876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31877 $as_echo "$ac_try_echo") >&5
31878   (eval "$ac_compile") 2>conftest.er1
31879   ac_status=$?
31880   grep -v '^ *+' conftest.er1 >conftest.err
31881   rm -f conftest.er1
31882   cat conftest.err >&5
31883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884   (exit $ac_status); } && {
31885          test -z "$ac_c_werror_flag" ||
31886          test ! -s conftest.err
31887        } && test -s conftest.$ac_objext; then
31888   eval "$as_gl_Symbol=yes"
31889 else
31890   $as_echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31892
31893         eval "$as_gl_Symbol=no"
31894 fi
31895
31896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 fi
31898 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
31899                  $as_echo "$as_val"'`
31900                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31901 $as_echo "$ac_res" >&6; }
31902      as_val=`eval 'as_val=${'$as_gl_Symbol'}
31903                  $as_echo "$as_val"'`
31904    if test "x$as_val" = x""yes; then
31905   cat >>confdefs.h <<_ACEOF
31906 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
31907 _ACEOF
31908
31909                      eval ac_cv_have_decl_$gl_func=yes
31910 fi
31911
31912       done
31913
31914
31915   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31916 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31917 if test -z "$MKDIR_P"; then
31918   if test "${ac_cv_path_mkdir+set}" = set; then
31919   $as_echo_n "(cached) " >&6
31920 else
31921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31922 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31923 do
31924   IFS=$as_save_IFS
31925   test -z "$as_dir" && as_dir=.
31926   for ac_prog in mkdir gmkdir; do
31927          for ac_exec_ext in '' $ac_executable_extensions; do
31928            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31929            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31930              'mkdir (GNU coreutils) '* | \
31931              'mkdir (coreutils) '* | \
31932              'mkdir (fileutils) '4.1*)
31933                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31934                break 3;;
31935            esac
31936          done
31937        done
31938 done
31939 IFS=$as_save_IFS
31940
31941 fi
31942
31943   if test "${ac_cv_path_mkdir+set}" = set; then
31944     MKDIR_P="$ac_cv_path_mkdir -p"
31945   else
31946     # As a last resort, use the slow shell script.  Don't cache a
31947     # value for MKDIR_P within a source directory, because that will
31948     # break other packages using the cache if that directory is
31949     # removed, or if the value is a relative name.
31950     test -d ./--version && rmdir ./--version
31951     MKDIR_P="$ac_install_sh -d"
31952   fi
31953 fi
31954 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
31955 $as_echo "$MKDIR_P" >&6; }
31956
31957
31958   # Code from module sys_time:
31959
31960
31961
31962   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
31963 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
31964 if test -z "$MKDIR_P"; then
31965   if test "${ac_cv_path_mkdir+set}" = set; then
31966   $as_echo_n "(cached) " >&6
31967 else
31968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
31970 do
31971   IFS=$as_save_IFS
31972   test -z "$as_dir" && as_dir=.
31973   for ac_prog in mkdir gmkdir; do
31974          for ac_exec_ext in '' $ac_executable_extensions; do
31975            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
31976            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
31977              'mkdir (GNU coreutils) '* | \
31978              'mkdir (coreutils) '* | \
31979              'mkdir (fileutils) '4.1*)
31980                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
31981                break 3;;
31982            esac
31983          done
31984        done
31985 done
31986 IFS=$as_save_IFS
31987
31988 fi
31989
31990   if test "${ac_cv_path_mkdir+set}" = set; then
31991     MKDIR_P="$ac_cv_path_mkdir -p"
31992   else
31993     # As a last resort, use the slow shell script.  Don't cache a
31994     # value for MKDIR_P within a source directory, because that will
31995     # break other packages using the cache if that directory is
31996     # removed, or if the value is a relative name.
31997     test -d ./--version && rmdir ./--version
31998     MKDIR_P="$ac_install_sh -d"
31999   fi
32000 fi
32001 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
32002 $as_echo "$MKDIR_P" >&6; }
32003
32004
32005   # Code from module tempname:
32006
32007
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
32018
32019
32020   :
32021
32022
32023   # Code from module threadlib:
32024
32025
32026
32027
32028   # Code from module time:
32029
32030
32031
32032   # Code from module unistd:
32033
32034
32035
32036
32037
32038
32039
32040
32041   :
32042
32043
32044
32045
32046
32047
32048
32049      if test $gl_cv_have_include_next = yes; then
32050        gl_cv_next_unistd_h='<'unistd.h'>'
32051      else
32052        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
32053 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
32054 if test "${gl_cv_next_unistd_h+set}" = set; then
32055   $as_echo_n "(cached) " >&6
32056 else
32057
32058           if test $ac_cv_header_unistd_h = yes; then
32059             cat >conftest.$ac_ext <<_ACEOF
32060 /* confdefs.h.  */
32061 _ACEOF
32062 cat confdefs.h >>conftest.$ac_ext
32063 cat >>conftest.$ac_ext <<_ACEOF
32064 /* end confdefs.h.  */
32065 #include <unistd.h>
32066
32067 _ACEOF
32068                                                                                                 case "$host_os" in
32069               aix*) gl_absname_cpp="$ac_cpp -C" ;;
32070               *)    gl_absname_cpp="$ac_cpp" ;;
32071             esac
32072                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32073                sed -n '\#/unistd.h#{
32074                  s#.*"\(.*/unistd.h\)".*#\1#
32075                  s#^/[^/]#//&#
32076                  p
32077                  q
32078                }'`'"'
32079           else
32080             gl_cv_next_unistd_h='<'unistd.h'>'
32081           fi
32082
32083 fi
32084 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
32085 $as_echo "$gl_cv_next_unistd_h" >&6; }
32086      fi
32087      NEXT_UNISTD_H=$gl_cv_next_unistd_h
32088
32089      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32090        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32091        gl_next_as_first_directive='<'unistd.h'>'
32092      else
32093        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32094        gl_next_as_first_directive=$gl_cv_next_unistd_h
32095      fi
32096      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
32097
32098
32099
32100
32101
32102   :
32103
32104
32105
32106
32107
32108   if test $ac_cv_header_unistd_h = yes; then
32109     HAVE_UNISTD_H=1
32110   else
32111     HAVE_UNISTD_H=0
32112   fi
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
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   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
32155     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32156     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32157 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32158 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32159   $as_echo_n "(cached) " >&6
32160 else
32161   cat >conftest.$ac_ext <<_ACEOF
32162 /* confdefs.h.  */
32163 _ACEOF
32164 cat confdefs.h >>conftest.$ac_ext
32165 cat >>conftest.$ac_ext <<_ACEOF
32166 /* end confdefs.h.  */
32167 #include <unistd.h>
32168 /* Some systems declare various items in the wrong headers.  */
32169 #ifndef __GLIBC__
32170 # include <fcntl.h>
32171 # include <stdio.h>
32172 # include <stdlib.h>
32173 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
32174 #  include <io.h>
32175 # endif
32176 #endif
32177
32178 int
32179 main ()
32180 {
32181 #undef $gl_func
32182   (void) $gl_func;
32183   ;
32184   return 0;
32185 }
32186 _ACEOF
32187 rm -f conftest.$ac_objext
32188 if { (ac_try="$ac_compile"
32189 case "(($ac_try" in
32190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191   *) ac_try_echo=$ac_try;;
32192 esac
32193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32194 $as_echo "$ac_try_echo") >&5
32195   (eval "$ac_compile") 2>conftest.er1
32196   ac_status=$?
32197   grep -v '^ *+' conftest.er1 >conftest.err
32198   rm -f conftest.er1
32199   cat conftest.err >&5
32200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201   (exit $ac_status); } && {
32202          test -z "$ac_c_werror_flag" ||
32203          test ! -s conftest.err
32204        } && test -s conftest.$ac_objext; then
32205   eval "$as_gl_Symbol=yes"
32206 else
32207   $as_echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32209
32210         eval "$as_gl_Symbol=no"
32211 fi
32212
32213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32214 fi
32215 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32216                  $as_echo "$as_val"'`
32217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32218 $as_echo "$ac_res" >&6; }
32219      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32220                  $as_echo "$as_val"'`
32221    if test "x$as_val" = x""yes; then
32222   cat >>confdefs.h <<_ACEOF
32223 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32224 _ACEOF
32225
32226                      eval ac_cv_have_decl_$gl_func=yes
32227 fi
32228
32229       done
32230
32231
32232   # Code from module vasnprintf:
32233
32234
32235   :
32236
32237
32238
32239
32240
32241   if test $ac_cv_func_vasnprintf = no; then
32242
32243
32244   :
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
32259
32260
32261
32262
32263
32264
32265
32266
32267
32268   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
32269
32270
32271
32272
32273
32274
32275
32276
32277
32278   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
32279
32280
32281
32282
32283
32284
32285
32286
32287
32288   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
32289
32290   if test $ac_cv_func_vasnprintf = yes; then
32291
32292 cat >>confdefs.h <<\_ACEOF
32293 #define REPLACE_VASNPRINTF 1
32294 _ACEOF
32295
32296   fi
32297
32298
32299
32300
32301
32302
32303
32304
32305
32306
32307   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32308 $as_echo_n "checking for ptrdiff_t... " >&6; }
32309 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32310   $as_echo_n "(cached) " >&6
32311 else
32312   ac_cv_type_ptrdiff_t=no
32313 cat >conftest.$ac_ext <<_ACEOF
32314 /* confdefs.h.  */
32315 _ACEOF
32316 cat confdefs.h >>conftest.$ac_ext
32317 cat >>conftest.$ac_ext <<_ACEOF
32318 /* end confdefs.h.  */
32319 $ac_includes_default
32320 int
32321 main ()
32322 {
32323 if (sizeof (ptrdiff_t))
32324        return 0;
32325   ;
32326   return 0;
32327 }
32328 _ACEOF
32329 rm -f conftest.$ac_objext
32330 if { (ac_try="$ac_compile"
32331 case "(($ac_try" in
32332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32333   *) ac_try_echo=$ac_try;;
32334 esac
32335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32336 $as_echo "$ac_try_echo") >&5
32337   (eval "$ac_compile") 2>conftest.er1
32338   ac_status=$?
32339   grep -v '^ *+' conftest.er1 >conftest.err
32340   rm -f conftest.er1
32341   cat conftest.err >&5
32342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32343   (exit $ac_status); } && {
32344          test -z "$ac_c_werror_flag" ||
32345          test ! -s conftest.err
32346        } && test -s conftest.$ac_objext; then
32347   cat >conftest.$ac_ext <<_ACEOF
32348 /* confdefs.h.  */
32349 _ACEOF
32350 cat confdefs.h >>conftest.$ac_ext
32351 cat >>conftest.$ac_ext <<_ACEOF
32352 /* end confdefs.h.  */
32353 $ac_includes_default
32354 int
32355 main ()
32356 {
32357 if (sizeof ((ptrdiff_t)))
32358           return 0;
32359   ;
32360   return 0;
32361 }
32362 _ACEOF
32363 rm -f conftest.$ac_objext
32364 if { (ac_try="$ac_compile"
32365 case "(($ac_try" in
32366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367   *) ac_try_echo=$ac_try;;
32368 esac
32369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32370 $as_echo "$ac_try_echo") >&5
32371   (eval "$ac_compile") 2>conftest.er1
32372   ac_status=$?
32373   grep -v '^ *+' conftest.er1 >conftest.err
32374   rm -f conftest.er1
32375   cat conftest.err >&5
32376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32377   (exit $ac_status); } && {
32378          test -z "$ac_c_werror_flag" ||
32379          test ! -s conftest.err
32380        } && test -s conftest.$ac_objext; then
32381   :
32382 else
32383   $as_echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.$ac_ext >&5
32385
32386         ac_cv_type_ptrdiff_t=yes
32387 fi
32388
32389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32390 else
32391   $as_echo "$as_me: failed program was:" >&5
32392 sed 's/^/| /' conftest.$ac_ext >&5
32393
32394
32395 fi
32396
32397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32398 fi
32399 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32400 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
32401 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
32402   :
32403 else
32404
32405 cat >>confdefs.h <<\_ACEOF
32406 #define ptrdiff_t long
32407 _ACEOF
32408
32409
32410 fi
32411
32412
32413
32414
32415
32416
32417
32418   fi
32419
32420   # Code from module verify:
32421   # Code from module warn-on-use:
32422   # Code from module wchar:
32423
32424
32425
32426
32427   :
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437   :
32438
32439
32440
32441
32442
32443
32444
32445      if test $gl_cv_have_include_next = yes; then
32446        gl_cv_next_wchar_h='<'wchar.h'>'
32447      else
32448        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
32449 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
32450 if test "${gl_cv_next_wchar_h+set}" = set; then
32451   $as_echo_n "(cached) " >&6
32452 else
32453
32454           if test $ac_cv_header_wchar_h = yes; then
32455             cat >conftest.$ac_ext <<_ACEOF
32456 /* confdefs.h.  */
32457 _ACEOF
32458 cat confdefs.h >>conftest.$ac_ext
32459 cat >>conftest.$ac_ext <<_ACEOF
32460 /* end confdefs.h.  */
32461 #include <wchar.h>
32462
32463 _ACEOF
32464                                                                                                 case "$host_os" in
32465               aix*) gl_absname_cpp="$ac_cpp -C" ;;
32466               *)    gl_absname_cpp="$ac_cpp" ;;
32467             esac
32468                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32469                sed -n '\#/wchar.h#{
32470                  s#.*"\(.*/wchar.h\)".*#\1#
32471                  s#^/[^/]#//&#
32472                  p
32473                  q
32474                }'`'"'
32475           else
32476             gl_cv_next_wchar_h='<'wchar.h'>'
32477           fi
32478
32479 fi
32480 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
32481 $as_echo "$gl_cv_next_wchar_h" >&6; }
32482      fi
32483      NEXT_WCHAR_H=$gl_cv_next_wchar_h
32484
32485      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32486        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32487        gl_next_as_first_directive='<'wchar.h'>'
32488      else
32489        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32490        gl_next_as_first_directive=$gl_cv_next_wchar_h
32491      fi
32492      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
32493
32494
32495
32496   if test $ac_cv_header_wchar_h = yes; then
32497     HAVE_WCHAR_H=1
32498   else
32499     HAVE_WCHAR_H=0
32500   fi
32501
32502
32503
32504   if test $gt_cv_c_wint_t = yes; then
32505     HAVE_WINT_T=1
32506   else
32507     HAVE_WINT_T=0
32508   fi
32509
32510
32511
32512
32513
32514
32515
32516
32517
32518
32519
32520
32521
32522
32523   for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
32524     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32525     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32526 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32527 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32528   $as_echo_n "(cached) " >&6
32529 else
32530   cat >conftest.$ac_ext <<_ACEOF
32531 /* confdefs.h.  */
32532 _ACEOF
32533 cat confdefs.h >>conftest.$ac_ext
32534 cat >>conftest.$ac_ext <<_ACEOF
32535 /* end confdefs.h.  */
32536
32537 /* Some systems require additional headers.  */
32538 #ifndef __GLIBC__
32539 # include <stddef.h>
32540 # include <stdio.h>
32541 # include <time.h>
32542 #endif
32543 #include <wchar.h>
32544
32545 int
32546 main ()
32547 {
32548 #undef $gl_func
32549   (void) $gl_func;
32550   ;
32551   return 0;
32552 }
32553 _ACEOF
32554 rm -f conftest.$ac_objext
32555 if { (ac_try="$ac_compile"
32556 case "(($ac_try" in
32557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558   *) ac_try_echo=$ac_try;;
32559 esac
32560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32561 $as_echo "$ac_try_echo") >&5
32562   (eval "$ac_compile") 2>conftest.er1
32563   ac_status=$?
32564   grep -v '^ *+' conftest.er1 >conftest.err
32565   rm -f conftest.er1
32566   cat conftest.err >&5
32567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568   (exit $ac_status); } && {
32569          test -z "$ac_c_werror_flag" ||
32570          test ! -s conftest.err
32571        } && test -s conftest.$ac_objext; then
32572   eval "$as_gl_Symbol=yes"
32573 else
32574   $as_echo "$as_me: failed program was:" >&5
32575 sed 's/^/| /' conftest.$ac_ext >&5
32576
32577         eval "$as_gl_Symbol=no"
32578 fi
32579
32580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32581 fi
32582 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32583                  $as_echo "$as_val"'`
32584                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32585 $as_echo "$ac_res" >&6; }
32586      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32587                  $as_echo "$as_val"'`
32588    if test "x$as_val" = x""yes; then
32589   cat >>confdefs.h <<_ACEOF
32590 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32591 _ACEOF
32592
32593                      eval ac_cv_have_decl_$gl_func=yes
32594 fi
32595
32596       done
32597
32598
32599   # Code from module wcrtomb:
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609   :
32610
32611
32612
32613
32614
32615
32616   :
32617
32618
32619
32620
32621
32622   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32623
32624
32625
32626      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
32627 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32628 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
32629   $as_echo_n "(cached) " >&6
32630 else
32631
32632                   case "$host_os" in
32633                      # Guess no on AIX and OSF/1.
32634         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32635                      # Guess yes otherwise.
32636         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32637       esac
32638       if test $LOCALE_JA != none; then
32639         if test "$cross_compiling" = yes; then
32640   :
32641 else
32642   cat >conftest.$ac_ext <<_ACEOF
32643 /* confdefs.h.  */
32644 _ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h.  */
32648
32649 #include <locale.h>
32650 #include <string.h>
32651 #include <wchar.h>
32652 int main ()
32653 {
32654   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32655     {
32656       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32657       mbstate_t state;
32658       wchar_t wc;
32659
32660       memset (&state, '\0', sizeof (mbstate_t));
32661       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32662         if (mbsinit (&state))
32663           return 1;
32664     }
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest$ac_exeext
32669 if { (ac_try="$ac_link"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32675 $as_echo "$ac_try_echo") >&5
32676   (eval "$ac_link") 2>&5
32677   ac_status=$?
32678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32680   { (case "(($ac_try" in
32681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682   *) ac_try_echo=$ac_try;;
32683 esac
32684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32685 $as_echo "$ac_try_echo") >&5
32686   (eval "$ac_try") 2>&5
32687   ac_status=$?
32688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689   (exit $ac_status); }; }; then
32690   gl_cv_func_mbrtowc_incomplete_state=yes
32691 else
32692   $as_echo "$as_me: program exited with status $ac_status" >&5
32693 $as_echo "$as_me: failed program was:" >&5
32694 sed 's/^/| /' conftest.$ac_ext >&5
32695
32696 ( exit $ac_status )
32697 gl_cv_func_mbrtowc_incomplete_state=no
32698 fi
32699 rm -rf conftest.dSYM
32700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32701 fi
32702
32703
32704       fi
32705
32706 fi
32707 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32708 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32709
32710
32711
32712
32713      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32714 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32715 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32716   $as_echo_n "(cached) " >&6
32717 else
32718
32719                   case "$host_os" in
32720                     # Guess no on Solaris 8.
32721         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32722                     # Guess yes otherwise.
32723         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32724       esac
32725       if test $LOCALE_ZH_CN != none; then
32726         if test "$cross_compiling" = yes; then
32727   :
32728 else
32729   cat >conftest.$ac_ext <<_ACEOF
32730 /* confdefs.h.  */
32731 _ACEOF
32732 cat confdefs.h >>conftest.$ac_ext
32733 cat >>conftest.$ac_ext <<_ACEOF
32734 /* end confdefs.h.  */
32735
32736 #include <locale.h>
32737 #include <stdlib.h>
32738 #include <string.h>
32739 #include <wchar.h>
32740 int main ()
32741 {
32742   /* This fails on Solaris 8:
32743      mbrtowc returns 2, and sets wc to 0x00F0.
32744      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
32745   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32746     {
32747       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32748       mbstate_t state;
32749       wchar_t wc;
32750
32751       memset (&state, '\0', sizeof (mbstate_t));
32752       if (mbrtowc (&wc, input + 3, 6, &state) != 4
32753           && mbtowc (&wc, input + 3, 6) == 4)
32754         return 1;
32755     }
32756   return 0;
32757 }
32758 _ACEOF
32759 rm -f conftest$ac_exeext
32760 if { (ac_try="$ac_link"
32761 case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32766 $as_echo "$ac_try_echo") >&5
32767   (eval "$ac_link") 2>&5
32768   ac_status=$?
32769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32771   { (case "(($ac_try" in
32772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773   *) ac_try_echo=$ac_try;;
32774 esac
32775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32776 $as_echo "$ac_try_echo") >&5
32777   (eval "$ac_try") 2>&5
32778   ac_status=$?
32779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780   (exit $ac_status); }; }; then
32781   gl_cv_func_mbrtowc_sanitycheck=yes
32782 else
32783   $as_echo "$as_me: program exited with status $ac_status" >&5
32784 $as_echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787 ( exit $ac_status )
32788 gl_cv_func_mbrtowc_sanitycheck=no
32789 fi
32790 rm -rf conftest.dSYM
32791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32792 fi
32793
32794
32795       fi
32796
32797 fi
32798 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32799 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32800
32801     REPLACE_MBSTATE_T=0
32802     case "$gl_cv_func_mbrtowc_incomplete_state" in
32803       *yes) ;;
32804       *) REPLACE_MBSTATE_T=1 ;;
32805     esac
32806     case "$gl_cv_func_mbrtowc_sanitycheck" in
32807       *yes) ;;
32808       *) REPLACE_MBSTATE_T=1 ;;
32809     esac
32810   else
32811     REPLACE_MBSTATE_T=1
32812   fi
32813   if test $REPLACE_MBSTATE_T = 1; then
32814
32815     :
32816
32817   fi
32818
32819
32820
32821   :
32822
32823
32824
32825
32826
32827   if test $ac_cv_func_wcrtomb = no; then
32828     HAVE_WCRTOMB=0
32829   else
32830     if test $REPLACE_MBSTATE_T = 1; then
32831       REPLACE_WCRTOMB=1
32832     else
32833
32834
32835
32836
32837
32838              { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
32839 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
32840 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
32841   $as_echo_n "(cached) " >&6
32842 else
32843
32844                               case "$host_os" in
32845                                      # Guess no on AIX 4, OSF/1 and Solaris.
32846             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
32847                                      # Guess yes otherwise.
32848             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
32849           esac
32850           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
32851             if test "$cross_compiling" = yes; then
32852   :
32853 else
32854   cat >conftest.$ac_ext <<_ACEOF
32855 /* confdefs.h.  */
32856 _ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h.  */
32860
32861 #include <locale.h>
32862 #include <stdio.h>
32863 #include <string.h>
32864 #include <wchar.h>
32865 int main ()
32866 {
32867   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
32868     {
32869       if (wcrtomb (NULL, 0, NULL) != 1)
32870         return 1;
32871     }
32872   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
32873     {
32874       if (wcrtomb (NULL, 0, NULL) != 1)
32875         return 1;
32876     }
32877   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32878     {
32879       if (wcrtomb (NULL, 0, NULL) != 1)
32880         return 1;
32881     }
32882   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32883     {
32884       if (wcrtomb (NULL, 0, NULL) != 1)
32885         return 1;
32886     }
32887   return 0;
32888 }
32889 _ACEOF
32890 rm -f conftest$ac_exeext
32891 if { (ac_try="$ac_link"
32892 case "(($ac_try" in
32893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894   *) ac_try_echo=$ac_try;;
32895 esac
32896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32897 $as_echo "$ac_try_echo") >&5
32898   (eval "$ac_link") 2>&5
32899   ac_status=$?
32900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32902   { (case "(($ac_try" in
32903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904   *) ac_try_echo=$ac_try;;
32905 esac
32906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32907 $as_echo "$ac_try_echo") >&5
32908   (eval "$ac_try") 2>&5
32909   ac_status=$?
32910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911   (exit $ac_status); }; }; then
32912   gl_cv_func_wcrtomb_retval=yes
32913 else
32914   $as_echo "$as_me: program exited with status $ac_status" >&5
32915 $as_echo "$as_me: failed program was:" >&5
32916 sed 's/^/| /' conftest.$ac_ext >&5
32917
32918 ( exit $ac_status )
32919 gl_cv_func_wcrtomb_retval=no
32920 fi
32921 rm -rf conftest.dSYM
32922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32923 fi
32924
32925
32926           fi
32927
32928 fi
32929 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
32930 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
32931       case "$gl_cv_func_wcrtomb_retval" in
32932         *yes) ;;
32933         *) REPLACE_WCRTOMB=1 ;;
32934       esac
32935     fi
32936   fi
32937   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
32938
32939     :
32940
32941
32942
32943
32944
32945
32946
32947
32948
32949   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
32950
32951
32952   :
32953
32954   fi
32955
32956
32957
32958
32959   GNULIB_WCRTOMB=1
32960
32961
32962
32963 cat >>confdefs.h <<\_ACEOF
32964 #define GNULIB_TEST_WCRTOMB 1
32965 _ACEOF
32966
32967
32968
32969   # Code from module wctype:
32970
32971
32972
32973
32974   :
32975
32976
32977
32978
32979
32980   if test $ac_cv_func_iswcntrl = yes; then
32981     HAVE_ISWCNTRL=1
32982   else
32983     HAVE_ISWCNTRL=0
32984   fi
32985
32986
32987   :
32988
32989
32990
32991
32992
32993
32994   :
32995
32996
32997
32998
32999
33000   if test $ac_cv_func_iswblank = yes; then
33001     HAVE_ISWBLANK=1
33002     REPLACE_ISWBLANK=0
33003   else
33004     HAVE_ISWBLANK=0
33005     if test $ac_cv_have_decl_iswblank = yes; then
33006       REPLACE_ISWBLANK=1
33007     else
33008       REPLACE_ISWBLANK=0
33009     fi
33010   fi
33011
33012
33013
33014
33015   :
33016
33017
33018
33019
33020
33021
33022
33023
33024   if test $gt_cv_c_wint_t = yes; then
33025     HAVE_WINT_T=1
33026   else
33027     HAVE_WINT_T=0
33028   fi
33029
33030
33031   if test $ac_cv_header_wctype_h = yes; then
33032     if test $ac_cv_func_iswcntrl = yes; then
33033                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
33034 $as_echo_n "checking whether iswcntrl works... " >&6; }
33035 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
33036   $as_echo_n "(cached) " >&6
33037 else
33038
33039           if test "$cross_compiling" = yes; then
33040   cat >conftest.$ac_ext <<_ACEOF
33041 /* confdefs.h.  */
33042 _ACEOF
33043 cat confdefs.h >>conftest.$ac_ext
33044 cat >>conftest.$ac_ext <<_ACEOF
33045 /* end confdefs.h.  */
33046 #include <stdlib.h>
33047                           #if __GNU_LIBRARY__ == 1
33048                           Linux libc5 i18n is broken.
33049                           #endif
33050 int
33051 main ()
33052 {
33053
33054   ;
33055   return 0;
33056 }
33057 _ACEOF
33058 rm -f conftest.$ac_objext
33059 if { (ac_try="$ac_compile"
33060 case "(($ac_try" in
33061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062   *) ac_try_echo=$ac_try;;
33063 esac
33064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33065 $as_echo "$ac_try_echo") >&5
33066   (eval "$ac_compile") 2>conftest.er1
33067   ac_status=$?
33068   grep -v '^ *+' conftest.er1 >conftest.err
33069   rm -f conftest.er1
33070   cat conftest.err >&5
33071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); } && {
33073          test -z "$ac_c_werror_flag" ||
33074          test ! -s conftest.err
33075        } && test -s conftest.$ac_objext; then
33076   gl_cv_func_iswcntrl_works=yes
33077 else
33078   $as_echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081         gl_cv_func_iswcntrl_works=no
33082 fi
33083
33084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33085
33086 else
33087   cat >conftest.$ac_ext <<_ACEOF
33088 /* confdefs.h.  */
33089 _ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h.  */
33093
33094                             #include <stddef.h>
33095                             #include <stdio.h>
33096                             #include <time.h>
33097                             #include <wchar.h>
33098                             #include <wctype.h>
33099                             int main () { return iswprint ('x') == 0; }
33100 _ACEOF
33101 rm -f conftest$ac_exeext
33102 if { (ac_try="$ac_link"
33103 case "(($ac_try" in
33104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105   *) ac_try_echo=$ac_try;;
33106 esac
33107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33108 $as_echo "$ac_try_echo") >&5
33109   (eval "$ac_link") 2>&5
33110   ac_status=$?
33111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33113   { (case "(($ac_try" in
33114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33115   *) ac_try_echo=$ac_try;;
33116 esac
33117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33118 $as_echo "$ac_try_echo") >&5
33119   (eval "$ac_try") 2>&5
33120   ac_status=$?
33121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122   (exit $ac_status); }; }; then
33123   gl_cv_func_iswcntrl_works=yes
33124 else
33125   $as_echo "$as_me: program exited with status $ac_status" >&5
33126 $as_echo "$as_me: failed program was:" >&5
33127 sed 's/^/| /' conftest.$ac_ext >&5
33128
33129 ( exit $ac_status )
33130 gl_cv_func_iswcntrl_works=no
33131 fi
33132 rm -rf conftest.dSYM
33133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33134 fi
33135
33136
33137
33138 fi
33139 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
33140 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
33141     fi
33142
33143
33144
33145
33146   :
33147
33148
33149
33150
33151
33152
33153
33154      if test $gl_cv_have_include_next = yes; then
33155        gl_cv_next_wctype_h='<'wctype.h'>'
33156      else
33157        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
33158 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
33159 if test "${gl_cv_next_wctype_h+set}" = set; then
33160   $as_echo_n "(cached) " >&6
33161 else
33162
33163           if test $ac_cv_header_wctype_h = yes; then
33164             cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h.  */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h.  */
33170 #include <wctype.h>
33171
33172 _ACEOF
33173                                                                                                 case "$host_os" in
33174               aix*) gl_absname_cpp="$ac_cpp -C" ;;
33175               *)    gl_absname_cpp="$ac_cpp" ;;
33176             esac
33177                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
33178                sed -n '\#/wctype.h#{
33179                  s#.*"\(.*/wctype.h\)".*#\1#
33180                  s#^/[^/]#//&#
33181                  p
33182                  q
33183                }'`'"'
33184           else
33185             gl_cv_next_wctype_h='<'wctype.h'>'
33186           fi
33187
33188 fi
33189 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
33190 $as_echo "$gl_cv_next_wctype_h" >&6; }
33191      fi
33192      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
33193
33194      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
33195        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
33196        gl_next_as_first_directive='<'wctype.h'>'
33197      else
33198        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
33199        gl_next_as_first_directive=$gl_cv_next_wctype_h
33200      fi
33201      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
33202
33203
33204
33205     HAVE_WCTYPE_H=1
33206   else
33207     HAVE_WCTYPE_H=0
33208   fi
33209
33210
33211   if test "$gl_cv_func_iswcntrl_works" = no; then
33212     REPLACE_ISWCNTRL=1
33213   else
33214     REPLACE_ISWCNTRL=0
33215   fi
33216
33217
33218   # Code from module write:
33219
33220
33221
33222
33223
33224
33225
33226   GNULIB_WRITE=1
33227
33228
33229
33230 cat >>confdefs.h <<\_ACEOF
33231 #define GNULIB_TEST_WRITE 1
33232 _ACEOF
33233
33234
33235
33236   # Code from module xsize:
33237
33238
33239
33240
33241 for ac_header in stdint.h
33242 do
33243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33245   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33246 $as_echo_n "checking for $ac_header... " >&6; }
33247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33248   $as_echo_n "(cached) " >&6
33249 fi
33250 ac_res=`eval 'as_val=${'$as_ac_Header'}
33251                  $as_echo "$as_val"'`
33252                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33253 $as_echo "$ac_res" >&6; }
33254 else
33255   # Is the header compilable?
33256 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33257 $as_echo_n "checking $ac_header usability... " >&6; }
33258 cat >conftest.$ac_ext <<_ACEOF
33259 /* confdefs.h.  */
33260 _ACEOF
33261 cat confdefs.h >>conftest.$ac_ext
33262 cat >>conftest.$ac_ext <<_ACEOF
33263 /* end confdefs.h.  */
33264 $ac_includes_default
33265 #include <$ac_header>
33266 _ACEOF
33267 rm -f conftest.$ac_objext
33268 if { (ac_try="$ac_compile"
33269 case "(($ac_try" in
33270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271   *) ac_try_echo=$ac_try;;
33272 esac
33273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33274 $as_echo "$ac_try_echo") >&5
33275   (eval "$ac_compile") 2>conftest.er1
33276   ac_status=$?
33277   grep -v '^ *+' conftest.er1 >conftest.err
33278   rm -f conftest.er1
33279   cat conftest.err >&5
33280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281   (exit $ac_status); } && {
33282          test -z "$ac_c_werror_flag" ||
33283          test ! -s conftest.err
33284        } && test -s conftest.$ac_objext; then
33285   ac_header_compiler=yes
33286 else
33287   $as_echo "$as_me: failed program was:" >&5
33288 sed 's/^/| /' conftest.$ac_ext >&5
33289
33290         ac_header_compiler=no
33291 fi
33292
33293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33294 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33295 $as_echo "$ac_header_compiler" >&6; }
33296
33297 # Is the header present?
33298 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33299 $as_echo_n "checking $ac_header presence... " >&6; }
33300 cat >conftest.$ac_ext <<_ACEOF
33301 /* confdefs.h.  */
33302 _ACEOF
33303 cat confdefs.h >>conftest.$ac_ext
33304 cat >>conftest.$ac_ext <<_ACEOF
33305 /* end confdefs.h.  */
33306 #include <$ac_header>
33307 _ACEOF
33308 if { (ac_try="$ac_cpp conftest.$ac_ext"
33309 case "(($ac_try" in
33310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33311   *) ac_try_echo=$ac_try;;
33312 esac
33313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33314 $as_echo "$ac_try_echo") >&5
33315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33316   ac_status=$?
33317   grep -v '^ *+' conftest.er1 >conftest.err
33318   rm -f conftest.er1
33319   cat conftest.err >&5
33320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); } >/dev/null && {
33322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33323          test ! -s conftest.err
33324        }; then
33325   ac_header_preproc=yes
33326 else
33327   $as_echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330   ac_header_preproc=no
33331 fi
33332
33333 rm -f conftest.err conftest.$ac_ext
33334 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33335 $as_echo "$ac_header_preproc" >&6; }
33336
33337 # So?  What about this header?
33338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33339   yes:no: )
33340     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33341 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33344     ac_header_preproc=yes
33345     ;;
33346   no:yes:* )
33347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33348 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33349     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33350 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33351     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33352 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33353     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33354 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33356 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33358 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33359
33360     ;;
33361 esac
33362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33363 $as_echo_n "checking for $ac_header... " >&6; }
33364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33365   $as_echo_n "(cached) " >&6
33366 else
33367   eval "$as_ac_Header=\$ac_header_preproc"
33368 fi
33369 ac_res=`eval 'as_val=${'$as_ac_Header'}
33370                  $as_echo "$as_val"'`
33371                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33372 $as_echo "$ac_res" >&6; }
33373
33374 fi
33375 as_val=`eval 'as_val=${'$as_ac_Header'}
33376                  $as_echo "$as_val"'`
33377    if test "x$as_val" = x""yes; then
33378   cat >>confdefs.h <<_ACEOF
33379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33380 _ACEOF
33381
33382 fi
33383
33384 done
33385
33386
33387   # End of code from modules
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397   gltests_libdeps=
33398   gltests_ltlibdeps=
33399
33400
33401
33402
33403
33404
33405
33406
33407
33408   gl_source_base='tests'
33409   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
33410
33411   gl_module_indicator_condition=$gltests_WITNESS
33412
33413
33414
33415
33416
33417
33418
33419
33420
33421
33422
33423
33424
33425     # support deprecated ./configure flags to set various compiler flags
33426
33427
33428 # Check whether --with-cflags was given.
33429 if test "${with_cflags+set}" = set; then
33430   withval=$with_cflags;
33431             case "$withval" in
33432             "" | y | ye | yes | n | no)
33433                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
33434 $as_echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
33435    { (exit 1); exit 1; }; }
33436                 ;;
33437             esac
33438
33439             CFLAGS="$withval"
33440
33441 fi
33442
33443
33444
33445 # Check whether --with-includes was given.
33446 if test "${with_includes+set}" = set; then
33447   withval=$with_includes;
33448             case "$withval" in
33449             "" | y | ye | yes | n | no)
33450                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
33451 $as_echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
33452    { (exit 1); exit 1; }; }
33453               ;;
33454             esac
33455
33456             for dir in $withval; do
33457                 if test -d "$dir"; then
33458                     CPPFLAGS="$CPPFLAGS -I$dir"
33459                 else
33460
33461     { $as_echo "$as_me:$LINENO: WARNING: Include directory $dir does not exist." >&5
33462 $as_echo "$as_me: WARNING: Include directory $dir does not exist." >&2;}
33463
33464
33465     cat <<AAW_EOF >>config.warnings
33466 Include directory $dir does not exist.
33467 AAW_EOF
33468
33469
33470                 fi
33471             done
33472
33473 fi
33474
33475
33476
33477 # Check whether --with-libraries was given.
33478 if test "${with_libraries+set}" = set; then
33479   withval=$with_libraries;
33480             case "$withval" in
33481             "" | y | ye | yes | n | no)
33482                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
33483 $as_echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
33484    { (exit 1); exit 1; }; }
33485               ;;
33486             esac
33487
33488             for dir in $withval; do
33489                 if test -d "$dir"; then
33490                     case "$host" in
33491                       *-solaris2*,*-netbsd*)
33492                             LDFLAGS="$LDFLAGS -R$dir"
33493                             ;;
33494                     esac
33495                     LDFLAGS="$LDFLAGS -L$dir"
33496                 else
33497
33498     { $as_echo "$as_me:$LINENO: WARNING: Library directory $dir does not exist." >&5
33499 $as_echo "$as_me: WARNING: Library directory $dir does not exist." >&2;}
33500
33501
33502     cat <<AAW_EOF >>config.warnings
33503 Library directory $dir does not exist.
33504 AAW_EOF
33505
33506
33507                 fi
33508             done
33509
33510 fi
33511
33512
33513     # Disable strict-aliasing optimizations
33514
33515     # test for -W'feature', then add the 'no-' version.
33516
33517
33518
33519     { $as_echo "$as_me:$LINENO: checking for gcc flag -fstrict-aliasing" >&5
33520 $as_echo_n "checking for gcc flag -fstrict-aliasing... " >&6; }
33521     if test "x$GCC" = "xyes"; then
33522                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33523            $CC -v --help 2>&1) |
33524          $EGREP -- '[^[:alnum:]]-fstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
33525                 if test $? -eq 0; then
33526             found_warning=yes
33527             { $as_echo "$as_me:$LINENO: result: yes" >&5
33528 $as_echo "yes" >&6; }
33529         else
33530             found_warning=no
33531             { $as_echo "$as_me:$LINENO: result: no" >&5
33532 $as_echo "no" >&6; }
33533         fi
33534     else
33535         found_warning=no
33536         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33537 $as_echo "no (not using gcc)" >&6; }
33538     fi
33539
33540     if test x"$found_warning" = x"yes"; then
33541         CFLAGS="$CFLAGS -fno-strict-aliasing"
33542
33543         CPPFLAGS="$CPPFLAGS -fno-strict-aliasing"
33544
33545
33546     else
33547         :
33548     fi
33549
33550
33551
33552     # Warn for just about everything
33553
33554
33555
33556
33557     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wall" >&5
33558 $as_echo_n "checking for gcc flag -Wall... " >&6; }
33559     if test "x$GCC" = "xyes"; then
33560                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33561            $CC -v --help 2>&1) |
33562          $EGREP -- '[^[:alnum:]]-Wall[^[:alnum:]-]' 2>&1 > /dev/null
33563                 if test $? -eq 0; then
33564             found_warning=yes
33565             { $as_echo "$as_me:$LINENO: result: yes" >&5
33566 $as_echo "yes" >&6; }
33567         else
33568             found_warning=no
33569             { $as_echo "$as_me:$LINENO: result: no" >&5
33570 $as_echo "no" >&6; }
33571         fi
33572     else
33573         found_warning=no
33574         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33575 $as_echo "no (not using gcc)" >&6; }
33576     fi
33577
33578     if test x"$found_warning" = x"yes"; then
33579         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wall"
33580
33581
33582     else
33583         :
33584     fi
33585
33586
33587
33588     # And add any extra warnings too
33589
33590
33591
33592     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wextra" >&5
33593 $as_echo_n "checking for gcc flag -Wextra... " >&6; }
33594     if test "x$GCC" = "xyes"; then
33595                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33596            $CC -v --help 2>&1) |
33597          $EGREP -- '[^[:alnum:]]-Wextra[^[:alnum:]-]' 2>&1 > /dev/null
33598                 if test $? -eq 0; then
33599             found_warning=yes
33600             { $as_echo "$as_me:$LINENO: result: yes" >&5
33601 $as_echo "yes" >&6; }
33602         else
33603             found_warning=no
33604             { $as_echo "$as_me:$LINENO: result: no" >&5
33605 $as_echo "no" >&6; }
33606         fi
33607     else
33608         found_warning=no
33609         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33610 $as_echo "no (not using gcc)" >&6; }
33611     fi
33612
33613     if test x"$found_warning" = x"yes"; then
33614         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wextra"
33615
33616
33617     else
33618
33619
33620
33621     { $as_echo "$as_me:$LINENO: checking for gcc flag -W" >&5
33622 $as_echo_n "checking for gcc flag -W... " >&6; }
33623     if test "x$GCC" = "xyes"; then
33624                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
33625            $CC -v --help 2>&1) |
33626          $EGREP -- '^[:alnum:]-W^[:alnum:]-' 2>&1 > /dev/null
33627                 if test $? -eq 0; then
33628             found_warning=yes
33629             { $as_echo "$as_me:$LINENO: result: yes" >&5
33630 $as_echo "yes" >&6; }
33631         else
33632             found_warning=no
33633             { $as_echo "$as_me:$LINENO: result: no" >&5
33634 $as_echo "no" >&6; }
33635         fi
33636     else
33637         found_warning=no
33638         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
33639 $as_echo "no (not using gcc)" >&6; }
33640     fi
33641
33642     if test x"$found_warning" = x"yes"; then
33643         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -W"
33644
33645
33646     else
33647         :
33648     fi
33649
33650
33651     fi
33652
33653
33654
33655 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
33656
33657
33658
33659 #
33660 # Configuration flags (--with-xxx and --enable-xxx)
33661 #
33662
33663
33664
33665 # Check whether --with-user was given.
33666 if test "${with_user+set}" = set; then
33667   withval=$with_user;
33668             case "$withval" in
33669                 "" | y | ye | yes | n | no)
33670                     { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
33671 $as_echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
33672    { (exit 1); exit 1; }; }
33673                   ;;
33674                 *)
33675                     CLIENT_LOGIN="$withval"
33676                   ;;
33677             esac
33678
33679 else
33680
33681
33682     { $as_echo "$as_me:$LINENO: WARNING: no user specified (--with-user) -- using 'amanda'" >&5
33683 $as_echo "$as_me: WARNING: no user specified (--with-user) -- using 'amanda'" >&2;}
33684
33685
33686     cat <<AAW_EOF >>config.warnings
33687 no user specified (--with-user) -- using 'amanda'
33688 AAW_EOF
33689
33690
33691             CLIENT_LOGIN=amanda
33692
33693
33694 fi
33695
33696
33697
33698 cat >>confdefs.h <<_ACEOF
33699 #define CLIENT_LOGIN "$CLIENT_LOGIN"
33700 _ACEOF
33701
33702
33703
33704
33705
33706 # Check whether --with-group was given.
33707 if test "${with_group+set}" = set; then
33708   withval=$with_group;
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-group option." >&5
33712 $as_echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
33713    { (exit 1); exit 1; }; }
33714                   ;;
33715                 *) SETUID_GROUP="$withval"
33716                   ;;
33717             esac
33718
33719 else
33720
33721
33722     { $as_echo "$as_me:$LINENO: WARNING: no group specified (--with-group) -- using 'backup'" >&5
33723 $as_echo "$as_me: WARNING: no group specified (--with-group) -- using 'backup'" >&2;}
33724
33725
33726     cat <<AAW_EOF >>config.warnings
33727 no group specified (--with-group) -- using 'backup'
33728 AAW_EOF
33729
33730
33731             SETUID_GROUP=backup
33732
33733
33734 fi
33735
33736
33737
33738
33739
33740 # Check whether --with-dumperdir was given.
33741 if test "${with_dumperdir+set}" = set; then
33742   withval=$with_dumperdir;
33743
33744     { $as_echo "$as_me:$LINENO: WARNING: --with-dumperdir is no longer used." >&5
33745 $as_echo "$as_me: WARNING: --with-dumperdir is no longer used." >&2;}
33746
33747
33748     cat <<AAW_EOF >>config.warnings
33749 --with-dumperdir is no longer used.
33750 AAW_EOF
33751
33752
33753
33754
33755 fi
33756
33757
33758
33759
33760 # Check whether --with-configdir was given.
33761 if test "${with_configdir+set}" = set; then
33762   withval=$with_configdir;
33763             case "$withval" in
33764             "" | y | ye | yes | n | no)
33765                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
33766 $as_echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
33767    { (exit 1); exit 1; }; }
33768               ;;
33769             *) CONFIG_DIR="$withval"
33770               ;;
33771             esac
33772
33773 else
33774
33775             : ${CONFIG_DIR='${sysconfdir}/amanda'} # (variable will be evaluated below)
33776
33777
33778 fi
33779
33780
33781   prefix_NONE=
33782   exec_prefix_NONE=
33783   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33784   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33785   eval ac_define_dir="\"$CONFIG_DIR\""
33786   eval ac_define_dir="\"$ac_define_dir\""
33787   CONFIG_DIR="$ac_define_dir"
33788
33789
33790 cat >>confdefs.h <<_ACEOF
33791 #define CONFIG_DIR "$ac_define_dir"
33792 _ACEOF
33793
33794   test "$prefix_NONE" && prefix=NONE
33795   test "$exec_prefix_NONE" && exec_prefix=NONE
33796
33797
33798
33799
33800 # Check whether --with-indexdir was given.
33801 if test "${with_indexdir+set}" = set; then
33802   withval=$with_indexdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&5
33803 $as_echo "$as_me: error: *** --with-indexdir is deprecated; use indexdir in amanda.conf instead." >&2;}
33804    { (exit 1); exit 1; }; }
33805
33806 fi
33807
33808
33809
33810
33811 # Check whether --with-dbdir was given.
33812 if test "${with_dbdir+set}" = set; then
33813   withval=$with_dbdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&5
33814 $as_echo "$as_me: error: *** --with-dbdir is deprecated; use infofile in amanda.conf instead." >&2;}
33815    { (exit 1); exit 1; }; }
33816
33817 fi
33818
33819
33820
33821
33822 # Check whether --with-logdir was given.
33823 if test "${with_logdir+set}" = set; then
33824   withval=$with_logdir;    { { $as_echo "$as_me:$LINENO: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&5
33825 $as_echo "$as_me: error: *** --with-logdir is deprecated; use logfile in amanda.conf instead." >&2;}
33826    { (exit 1); exit 1; }; }
33827
33828 fi
33829
33830
33831
33832
33833 # Check whether --with-suffixes was given.
33834 if test "${with_suffixes+set}" = set; then
33835   withval=$with_suffixes;
33836
33837     { $as_echo "$as_me:$LINENO: WARNING: ** --with-suffixes is deprecated" >&5
33838 $as_echo "$as_me: WARNING: ** --with-suffixes is deprecated" >&2;}
33839
33840
33841     cat <<AAW_EOF >>config.warnings
33842 ** --with-suffixes is deprecated
33843 AAW_EOF
33844
33845
33846
33847 fi
33848
33849
33850
33851
33852 # Check whether --with-gnutar-listdir was given.
33853 if test "${with_gnutar_listdir+set}" = set; then
33854   withval=$with_gnutar_listdir;
33855             case "$withval" in
33856                 n | no) GNUTAR_LISTDIR= ;;
33857                 y | ye | yes) GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists' ;;
33858                 *) GNUTAR_LISTDIR="$withval" ;;
33859             esac
33860
33861 else
33862
33863             GNUTAR_LISTDIR='${localstatedir}/amanda/gnutar-lists'
33864
33865
33866 fi
33867
33868
33869     # substitute $prefix, etc. if necessary
33870
33871   prefix_NONE=
33872   exec_prefix_NONE=
33873   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33874   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33875   eval ac_define_dir="\"$GNUTAR_LISTDIR\""
33876   eval ac_define_dir="\"$ac_define_dir\""
33877   GNUTAR_LISTED_INCREMENTAL_DIR="$ac_define_dir"
33878
33879
33880 cat >>confdefs.h <<_ACEOF
33881 #define GNUTAR_LISTED_INCREMENTAL_DIR "$ac_define_dir"
33882 _ACEOF
33883
33884   test "$prefix_NONE" && prefix=NONE
33885   test "$exec_prefix_NONE" && exec_prefix=NONE
33886
33887
33888     # handle deprecated option
33889
33890 # Check whether --with-gnutar-listed-incremental was given.
33891 if test "${with_gnutar_listed_incremental+set}" = set; then
33892   withval=$with_gnutar_listed_incremental;
33893             { { $as_echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&5
33894 $as_echo "$as_me: error: *** The gnutar-listed-incremental option is deprecated; use --with-gnutar-listdir instead" >&2;}
33895    { (exit 1); exit 1; }; }
33896
33897
33898 fi
33899
33900
33901
33902
33903 # Check whether --with-tmpdir was given.
33904 if test "${with_tmpdir+set}" = set; then
33905   withval=$with_tmpdir;
33906             tmpdir="$withval"
33907
33908 else
33909
33910             tmpdir=yes
33911
33912
33913 fi
33914
33915
33916     case "$tmpdir" in
33917         n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
33918 $as_echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
33919    { (exit 1); exit 1; }; };;
33920         y |  ye | yes) AMANDA_TMPDIR="/tmp/amanda";;
33921         *) AMANDA_TMPDIR="$tmpdir";;
33922     esac
33923
33924
33925   prefix_NONE=
33926   exec_prefix_NONE=
33927   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33928   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33929   eval ac_define_dir="\"$AMANDA_TMPDIR\""
33930   eval ac_define_dir="\"$ac_define_dir\""
33931   AMANDA_TMPDIR="$ac_define_dir"
33932
33933
33934 cat >>confdefs.h <<_ACEOF
33935 #define AMANDA_TMPDIR "$ac_define_dir"
33936 _ACEOF
33937
33938   test "$prefix_NONE" && prefix=NONE
33939   test "$exec_prefix_NONE" && exec_prefix=NONE
33940
33941
33942
33943
33944 # Check whether --with-force-uid was given.
33945 if test "${with_force_uid+set}" = set; then
33946   withval=$with_force_uid; CHECK_USERID="$withval"
33947 else
33948   : ${CHECK_USERID=yes}
33949
33950 fi
33951
33952     case "$CHECK_USERID" in
33953         y | ye | yes)
33954             CHECK_USERID=1
33955
33956 cat >>confdefs.h <<\_ACEOF
33957 #define CHECK_USERID 1
33958 _ACEOF
33959
33960           ;;
33961         n | no) :
33962             CHECK_USERID=
33963           ;;
33964         *)
33965             { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
33966 $as_echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
33967    { (exit 1); exit 1; }; }
33968     esac
33969
33970      if test x"$CHECK_USERID" = x"1"; then
33971   CHECK_USERID_TRUE=
33972   CHECK_USERID_FALSE='#'
33973 else
33974   CHECK_USERID_TRUE='#'
33975   CHECK_USERID_FALSE=
33976 fi
33977
33978
33979
33980
33981
33982 # Check whether --with-owner was given.
33983 if test "${with_owner+set}" = set; then
33984   withval=$with_owner;
33985             case "$withval" in
33986             "" | y | ye | yes | n | no)
33987                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
33988 $as_echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
33989    { (exit 1); exit 1; }; }
33990               ;;
33991             *) BINARY_OWNER="$withval"
33992               ;;
33993             esac
33994
33995 else
33996
33997             BINARY_OWNER="$CLIENT_LOGIN"
33998
33999
34000 fi
34001
34002
34003 cat >>confdefs.h <<_ACEOF
34004 #define BINARY_OWNER "$BINARY_OWNER"
34005 _ACEOF
34006
34007
34008
34009
34010
34011 # Check whether --with-fqdn was given.
34012 if test "${with_fqdn+set}" = set; then
34013   withval=$with_fqdn;  USE_FQDN=$withval
34014 else
34015    USE_FQDN=no
34016 fi
34017
34018
34019     case "$USE_FQDN" in
34020     n | no) : ;;
34021     y |  ye | yes)
34022
34023 cat >>confdefs.h <<\_ACEOF
34024 #define USE_FQDN 1
34025 _ACEOF
34026
34027       ;;
34028     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-fqdn option." >&5
34029 $as_echo "$as_me: error: You must not supply an argument to --with-fqdn option." >&2;}
34030    { (exit 1); exit 1; }; }
34031       ;;
34032     esac
34033
34034
34035
34036 # Check whether --with-reuseports was given.
34037 if test "${with_reuseports+set}" = set; then
34038   withval=$with_reuseports;  case "$withval" in
34039             y | ye | yes) USE_REUSEADDR=no;;
34040             n | no) USE_REUSEADDR=yes;;
34041             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --without-reuseports" >&5
34042 $as_echo "$as_me: error: You must not supply an argument to --without-reuseports" >&2;}
34043    { (exit 1); exit 1; }; };;
34044           esac
34045
34046 else
34047    USE_REUSEADDR=yes;
34048 fi
34049
34050     if test x"$USE_REUSEADDR" = x"yes"; then
34051
34052 cat >>confdefs.h <<\_ACEOF
34053 #define USE_REUSEADDR 1
34054 _ACEOF
34055
34056     fi
34057
34058
34059
34060 # Check whether --with-low-tcpportrange was given.
34061 if test "${with_low_tcpportrange+set}" = set; then
34062   withval=$with_low_tcpportrange;  LOW_TCPPORTRANGE="$withval"
34063 else
34064    LOW_TCPPORTRANGE=unlimited
34065 fi
34066
34067
34068     if test x"$LOW_TCPPORTRANGE" != x"unlimited"; then
34069         if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34070             { { $as_echo "$as_me:$LINENO: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&5
34071 $as_echo "$as_me: error: --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
34072    { (exit 1); exit 1; }; }
34073         fi
34074         min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
34075         max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
34076         if test $min_low_tcp_port -gt $max_low_tcp_port; then
34077             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
34078 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
34079    { (exit 1); exit 1; }; }
34080         fi
34081         if test $min_low_tcp_port -lt 512; then
34082
34083     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
34084 $as_echo "$as_me: WARNING: the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
34085
34086
34087     cat <<AAW_EOF >>config.warnings
34088 the low TCP port range should be 512 or greater in --with-low-tcpportrange
34089 AAW_EOF
34090
34091
34092         fi
34093         if test $max_low_tcp_port -ge 1024; then
34094
34095     { $as_echo "$as_me:$LINENO: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
34096 $as_echo "$as_me: WARNING: the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
34097
34098
34099     cat <<AAW_EOF >>config.warnings
34100 the low TCP port range should be less than 1024 in --with-low-tcpportrange
34101 AAW_EOF
34102
34103
34104         fi
34105
34106 cat >>confdefs.h <<_ACEOF
34107 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
34108 _ACEOF
34109
34110     fi
34111
34112
34113 # Check whether --with-tcpportrange was given.
34114 if test "${with_tcpportrange+set}" = set; then
34115   withval=$with_tcpportrange;  TCPPORTRANGE="$withval"
34116 else
34117    TCPPORTRANGE="unlimited"
34118 fi
34119
34120
34121     if test x"$TCPPORTRANGE" != x"unlimited"; then
34122         if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34123             { { $as_echo "$as_me:$LINENO: error: --with-tcpportrange requires two comma-separated positive numbers" >&5
34124 $as_echo "$as_me: error: --with-tcpportrange requires two comma-separated positive numbers" >&2;}
34125    { (exit 1); exit 1; }; }
34126         fi
34127         min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
34128         max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
34129         if test $min_tcp_port -gt $max_tcp_port; then
34130             { { $as_echo "$as_me:$LINENO: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&5
34131 $as_echo "$as_me: error: the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
34132    { (exit 1); exit 1; }; }
34133         fi
34134         if test $min_tcp_port -lt 1024; then
34135
34136     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
34137 $as_echo "$as_me: WARNING: the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
34138
34139
34140     cat <<AAW_EOF >>config.warnings
34141 the TCP port range should be 1024 or greater in --with-tcpportrange
34142 AAW_EOF
34143
34144
34145         fi
34146         if test $max_tcp_port -ge 65536; then
34147
34148     { $as_echo "$as_me:$LINENO: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&5
34149 $as_echo "$as_me: WARNING: the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
34150
34151
34152     cat <<AAW_EOF >>config.warnings
34153 the TCP port range should be less than 65536 in --with-tcpportrange
34154 AAW_EOF
34155
34156
34157         fi
34158
34159 cat >>confdefs.h <<_ACEOF
34160 #define TCPPORTRANGE $TCPPORTRANGE
34161 _ACEOF
34162
34163     fi
34164
34165
34166 # Check whether --with-udpportrange was given.
34167 if test "${with_udpportrange+set}" = set; then
34168   withval=$with_udpportrange;  UDPPORTRANGE="$withval"
34169 else
34170    UDPPORTRANGE="unlimited"
34171 fi
34172
34173     if test x"$UDPPORTRANGE" != x"unlimited"; then
34174         if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
34175             { { $as_echo "$as_me:$LINENO: error: --with-udpportrange requires two comma-separated positive numbers" >&5
34176 $as_echo "$as_me: error: --with-udpportrange requires two comma-separated positive numbers" >&2;}
34177    { (exit 1); exit 1; }; }
34178         fi
34179         min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
34180         max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
34181         if test $min_udp_port -gt $max_udp_port; then
34182             { { $as_echo "$as_me:$LINENO: error: the second UDP port number must be greater than the first in --with-udpportrange" >&5
34183 $as_echo "$as_me: error: the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
34184    { (exit 1); exit 1; }; }
34185         fi
34186         if test $max_udp_port -ge 1024; then
34187
34188     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&5
34189 $as_echo "$as_me: WARNING: the UDP port range should be less than 1025 in --with-udpportrange" >&2;}
34190
34191
34192     cat <<AAW_EOF >>config.warnings
34193 the UDP port range should be less than 1025 in --with-udpportrange
34194 AAW_EOF
34195
34196
34197         fi
34198         if test $min_udp_port -le 0; then
34199
34200     { $as_echo "$as_me:$LINENO: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&5
34201 $as_echo "$as_me: WARNING: the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
34202
34203
34204     cat <<AAW_EOF >>config.warnings
34205 the UDP port range should be greater than 0 in --with-udpportrange
34206 AAW_EOF
34207
34208
34209         fi
34210
34211 cat >>confdefs.h <<_ACEOF
34212 #define UDPPORTRANGE $UDPPORTRANGE
34213 _ACEOF
34214
34215     fi
34216
34217
34218
34219
34220
34221
34222 # Check whether --with-buffered-dump was given.
34223 if test "${with_buffered_dump+set}" = set; then
34224   withval=$with_buffered_dump;  DUMPER_SOCKET_BUFFERING=$withval
34225 else
34226    DUMPER_SOCKET_BUFFERING=no
34227 fi
34228
34229     case "$DUMPER_SOCKET_BUFFERING" in
34230     n | no) ;;
34231     y | ye | yes)
34232
34233 cat >>confdefs.h <<\_ACEOF
34234 #define DUMPER_SOCKET_BUFFERING 1
34235 _ACEOF
34236
34237       ;;
34238     *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-buffered-dump." >&5
34239 $as_echo "$as_me: error: You must not supply an argument to --with-buffered-dump." >&2;}
34240    { (exit 1); exit 1; }; } ;;
34241     esac
34242
34243
34244
34245 # Check whether --with-maxtapeblocksize was given.
34246 if test "${with_maxtapeblocksize+set}" = set; then
34247   withval=$with_maxtapeblocksize;
34248     { $as_echo "$as_me:$LINENO: WARNING: --with-maxtapeblocksize is no longer needed" >&5
34249 $as_echo "$as_me: WARNING: --with-maxtapeblocksize is no longer needed" >&2;}
34250
34251
34252     cat <<AAW_EOF >>config.warnings
34253 --with-maxtapeblocksize is no longer needed
34254 AAW_EOF
34255
34256
34257
34258 fi
34259
34260
34261
34262     ASSERTIONS=
34263
34264 # Check whether --with-assertions was given.
34265 if test "${with_assertions+set}" = set; then
34266   withval=$with_assertions;
34267             case "$withval" in
34268                 n | no) : ;;
34269                 y |  ye | yes)
34270                     ASSERTIONS=1
34271
34272 cat >>confdefs.h <<\_ACEOF
34273 #define ASSERTIONS 1
34274 _ACEOF
34275
34276                   ;;
34277                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
34278 $as_echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
34279    { (exit 1); exit 1; }; }
34280                   ;;
34281             esac
34282
34283
34284 fi
34285
34286
34287
34288
34289
34290
34291 # Check whether --with-debugging was given.
34292 if test "${with_debugging+set}" = set; then
34293   withval=$with_debugging;  debugging="$withval"
34294 else
34295    debugging="yes"
34296
34297 fi
34298
34299
34300     case "$debugging" in
34301         n | no) { { $as_echo "$as_me:$LINENO: error: Amanda no longer supports building with debugging disabled" >&5
34302 $as_echo "$as_me: error: Amanda no longer supports building with debugging disabled" >&2;}
34303    { (exit 1); exit 1; }; };;
34304         y | ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
34305         *) AMANDA_DBGDIR="$debugging";;
34306     esac
34307
34308     # evaluate any extra variables in the directory
34309
34310   prefix_NONE=
34311   exec_prefix_NONE=
34312   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34313   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34314   eval ac_define_dir="\"$AMANDA_DBGDIR\""
34315   eval ac_define_dir="\"$ac_define_dir\""
34316   AMANDA_DBGDIR="$ac_define_dir"
34317
34318
34319 cat >>confdefs.h <<_ACEOF
34320 #define AMANDA_DBGDIR "$ac_define_dir"
34321 _ACEOF
34322
34323   test "$prefix_NONE" && prefix=NONE
34324   test "$exec_prefix_NONE" && exec_prefix=NONE
34325
34326
34327
34328
34329 # Check whether --with-debug_days was given.
34330 if test "${with_debug_days+set}" = set; then
34331   withval=$with_debug_days;
34332             debug_days="$withval"
34333
34334 else
34335
34336             debug_days="yes"
34337
34338
34339 fi
34340
34341     case "$debug_days" in
34342         n | no)
34343             AMANDA_DEBUG_DAYS=0 ;;
34344         y |  ye | yes)
34345             AMANDA_DEBUG_DAYS=4 ;;
34346         [0-9] | [0-9][0-9] | [0-9][0-9][0-9])
34347             AMANDA_DEBUG_DAYS="$debug_days" ;;
34348         *) { { $as_echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
34349 $as_echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
34350    { (exit 1); exit 1; }; }
34351           ;;
34352     esac
34353
34354 cat >>confdefs.h <<_ACEOF
34355 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
34356 _ACEOF
34357
34358
34359
34360
34361
34362 # Check whether --with-testing was given.
34363 if test "${with_testing+set}" = set; then
34364   withval=$with_testing;
34365             TESTING="$withval"
34366
34367 else
34368
34369             TESTING="no"
34370
34371
34372 fi
34373
34374     case "$TESTING" in
34375         n | no) SERVICE_SUFFIX="";;
34376         y |  ye | yes) SERVICE_SUFFIX="-test";;
34377         *) SERVICE_SUFFIX="-$TESTING";;
34378     esac
34379
34380     AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
34381     KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
34382
34383
34384
34385 cat >>confdefs.h <<_ACEOF
34386 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
34387 _ACEOF
34388
34389
34390 cat >>confdefs.h <<_ACEOF
34391 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
34392 _ACEOF
34393
34394
34395 cat >>confdefs.h <<_ACEOF
34396 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
34397 _ACEOF
34398
34399
34400
34401     SINGLE_USERID=${SINGLE_USERID:-no}
34402     WANT_SETUID_CLIENT=${WANT_SETUID_CLIENT:-true}
34403
34404
34405 # Check whether --with-single-userid was given.
34406 if test "${with_single_userid+set}" = set; then
34407   withval=$with_single_userid;    SINGLE_USERID=$withval
34408 fi
34409
34410
34411     case "$host" in
34412         *-pc-cygwin)
34413             WANT_SETUID_CLIENT=false
34414             SINGLE_USERID=yes
34415             ;;
34416     esac
34417
34418     if test x"$WANT_SETUID_CLIENT" = x"true"; then
34419
34420 cat >>confdefs.h <<\_ACEOF
34421 #define WANT_SETUID_CLIENT 1
34422 _ACEOF
34423
34424     fi
34425      if test x"$WANT_SETUID_CLIENT" = x"true"; then
34426   WANT_SETUID_CLIENT_TRUE=
34427   WANT_SETUID_CLIENT_FALSE='#'
34428 else
34429   WANT_SETUID_CLIENT_TRUE='#'
34430   WANT_SETUID_CLIENT_FALSE=
34431 fi
34432
34433
34434     if test x"$SINGLE_USERID" = x"yes"; then
34435
34436 cat >>confdefs.h <<\_ACEOF
34437 #define SINGLE_USERID 1
34438 _ACEOF
34439
34440     fi
34441
34442
34443     WANT_INSTALLPERMS=yes
34444     # Check whether --enable-installperms was given.
34445 if test "${enable_installperms+set}" = set; then
34446   enableval=$enable_installperms;  WANT_INSTALLPERMS="$enableval"
34447 else
34448    WANT_INSTALLPERMS="yes"
34449
34450 fi
34451
34452      if test x"$WANT_INSTALLPERMS" = x"yes"; then
34453   WANT_INSTALLPERMS_TRUE=
34454   WANT_INSTALLPERMS_FALSE='#'
34455 else
34456   WANT_INSTALLPERMS_TRUE='#'
34457   WANT_INSTALLPERMS_FALSE=
34458 fi
34459
34460
34461
34462     # Check whether --enable-syntax-checks was given.
34463 if test "${enable_syntax_checks+set}" = set; then
34464   enableval=$enable_syntax_checks;
34465             case "$enableval" in
34466                 no) SYNTAX_CHECKS=false;;
34467                 *)
34468                     SYNTAX_CHECKS=true
34469
34470     { $as_echo "$as_me:$LINENO: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&5
34471 $as_echo "$as_me: WARNING: --enable-syntax-checks can cause build failures and should only be used by developers" >&2;}
34472
34473
34474     cat <<AAW_EOF >>config.warnings
34475 --enable-syntax-checks can cause build failures and should only be used by developers
34476 AAW_EOF
34477
34478
34479                     ;;
34480             esac
34481
34482 else
34483
34484             SYNTAX_CHECKS=false
34485
34486 fi
34487
34488
34489      if $SYNTAX_CHECKS; then
34490   SYNTAX_CHECKS_TRUE=
34491   SYNTAX_CHECKS_FALSE='#'
34492 else
34493   SYNTAX_CHECKS_TRUE='#'
34494   SYNTAX_CHECKS_FALSE=
34495 fi
34496
34497
34498
34499
34500 #
34501 # Set up for Amanda components and modules
34502 #
34503
34504     WANT_SERVER=true
34505
34506 # Check whether --with-server was given.
34507 if test "${with_server+set}" = set; then
34508   withval=$with_server;
34509             case "$withval" in
34510             y | ye | yes) WANT_SERVER=true;;
34511             n | no) WANT_SERVER=false;;
34512             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-server option." >&5
34513 $as_echo "$as_me: error: You must not supply an argument to the --without-server option." >&2;}
34514    { (exit 1); exit 1; }; } ;;
34515             esac
34516
34517 fi
34518
34519
34520
34521     WANT_CLIENT=true
34522
34523 # Check whether --with-client was given.
34524 if test "${with_client+set}" = set; then
34525   withval=$with_client;
34526             case "$withval" in
34527             y | ye | yes) WANT_CLIENT=true;;
34528             n | no) WANT_CLIENT=false;;
34529             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to the --without-client option." >&5
34530 $as_echo "$as_me: error: You must not supply an argument to the --without-client option." >&2;}
34531    { (exit 1); exit 1; }; } ;;
34532             esac
34533
34534 fi
34535
34536
34537
34538
34539     WANT_RESTORE=${WANT_SERVER-true}
34540
34541 # Check whether --with-restore was given.
34542 if test "${with_restore+set}" = set; then
34543   withval=$with_restore;
34544             case "$withval" in
34545             y | ye | yes) WANT_RESTORE=true;;
34546             n | no) WANT_RESTORE=false;;
34547             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-restore option." >&5
34548 $as_echo "$as_me: error: You must not supply an argument to --with-restore option." >&2;}
34549    { (exit 1); exit 1; }; } ;;
34550             esac
34551
34552 fi
34553
34554
34555
34556
34557     WANT_RECOVER=${WANT_CLIENT-true}
34558
34559 # Check whether --with-amrecover was given.
34560 if test "${with_amrecover+set}" = set; then
34561   withval=$with_amrecover;
34562             case "$withval" in
34563             y | ye | yes) WANT_RECOVER=true;;
34564             n | no) WANT_RECOVER=false;;
34565             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-amrecover option." >&5
34566 $as_echo "$as_me: error: You must not supply an argument to --with-amrecover option." >&2;}
34567    { (exit 1); exit 1; }; } ;;
34568             esac
34569
34570 fi
34571
34572
34573
34574
34575 # Check whether --with-client-only was given.
34576 if test "${with_client_only+set}" = set; then
34577   withval=$with_client_only;    { { $as_echo "$as_me:$LINENO: error: --with-client-only is deprecated, use --without-server instead." >&5
34578 $as_echo "$as_me: error: --with-client-only is deprecated, use --without-server instead." >&2;}
34579    { (exit 1); exit 1; }; }
34580
34581 fi
34582
34583
34584
34585
34586 # Check whether --with-server-only was given.
34587 if test "${with_server_only+set}" = set; then
34588   withval=$with_server_only;    { { $as_echo "$as_me:$LINENO: error: --with-server-only is deprecated, use --without-client instead." >&5
34589 $as_echo "$as_me: error: --with-server-only is deprecated, use --without-client instead." >&2;}
34590    { (exit 1); exit 1; }; }
34591
34592 fi
34593
34594
34595
34596     WANT_NDMP=${WANT_NDMP-true}
34597
34598 # Check whether --with-ndmp was given.
34599 if test "${with_ndmp+set}" = set; then
34600   withval=$with_ndmp;
34601             case "$withval" in
34602             y | ye | yes) WANT_NDMP=true;;
34603             n | no) WANT_NDMP=false;;
34604             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-ndmp option." >&5
34605 $as_echo "$as_me: error: You must not supply an argument to --with-ndmp option." >&2;}
34606    { (exit 1); exit 1; }; } ;;
34607             esac
34608
34609 fi
34610
34611
34612
34613
34614
34615
34616
34617
34618
34619     # detect invalid combinations of components
34620     if ! ${WANT_SERVER-true} && ${WANT_RESTORE-true}; then
34621         { { $as_echo "$as_me:$LINENO: error: --without-server requires --without-restore" >&5
34622 $as_echo "$as_me: error: --without-server requires --without-restore" >&2;}
34623    { (exit 1); exit 1; }; }
34624     fi
34625     if ! ${WANT_CLIENT-true} && ${WANT_RECOVER-true}; then
34626         { { $as_echo "$as_me:$LINENO: error: --without-client requires --without-amrecover" >&5
34627 $as_echo "$as_me: error: --without-client requires --without-amrecover" >&2;}
34628    { (exit 1); exit 1; }; }
34629     fi
34630
34631      if $WANT_CLIENT; then
34632   WANT_CLIENT_TRUE=
34633   WANT_CLIENT_FALSE='#'
34634 else
34635   WANT_CLIENT_TRUE='#'
34636   WANT_CLIENT_FALSE=
34637 fi
34638
34639      if $WANT_RESTORE; then
34640   WANT_RESTORE_TRUE=
34641   WANT_RESTORE_FALSE='#'
34642 else
34643   WANT_RESTORE_TRUE='#'
34644   WANT_RESTORE_FALSE=
34645 fi
34646
34647      if $WANT_SERVER; then
34648   WANT_SERVER_TRUE=
34649   WANT_SERVER_FALSE='#'
34650 else
34651   WANT_SERVER_TRUE='#'
34652   WANT_SERVER_FALSE=
34653 fi
34654
34655      if $WANT_RECOVER; then
34656   WANT_RECOVER_TRUE=
34657   WANT_RECOVER_FALSE='#'
34658 else
34659   WANT_RECOVER_TRUE='#'
34660   WANT_RECOVER_FALSE=
34661 fi
34662
34663      if $WANT_NDMP; then
34664   WANT_NDMP_TRUE=
34665   WANT_NDMP_FALSE='#'
34666 else
34667   WANT_NDMP_TRUE='#'
34668   WANT_NDMP_FALSE=
34669 fi
34670
34671
34672      if $WANT_SERVER || $WANT_RESTORE; then
34673   WANT_TAPE_TRUE=
34674   WANT_TAPE_FALSE='#'
34675 else
34676   WANT_TAPE_TRUE='#'
34677   WANT_TAPE_FALSE=
34678 fi
34679
34680
34681     # AMANDA_COMPONENTS goes to Amanda::Constants; missing_components is just for the
34682     # summary, below
34683     AMANDA_COMPONENTS=''
34684     missing_components=''
34685
34686     if $WANT_SERVER; then
34687         AMANDA_COMPONENTS="$AMANDA_COMPONENTS server";
34688     else
34689         missing_components="$missing_components (no server)";
34690     fi
34691     if $WANT_RESTORE; then
34692         AMANDA_COMPONENTS="$AMANDA_COMPONENTS restore";
34693     else
34694         missing_components="$missing_components (no restore)";
34695     fi
34696     if $WANT_CLIENT; then
34697         AMANDA_COMPONENTS="$AMANDA_COMPONENTS client";
34698     else
34699         missing_components="$missing_components (no client)";
34700     fi
34701     if $WANT_RECOVER; then
34702         AMANDA_COMPONENTS="$AMANDA_COMPONENTS amrecover";
34703     else
34704         missing_components="$missing_components (no amrecover)";
34705     fi
34706     if $WANT_NDMP; then
34707         AMANDA_COMPONENTS="$AMANDA_COMPONENTS ndmp";
34708     else
34709         missing_components="$missing_components (no ndmp)";
34710     fi
34711
34712
34713
34714
34715
34716
34717
34718 # Check whether --with-gnuplot was given.
34719 if test "${with_gnuplot+set}" = set; then
34720   withval=$with_gnuplot;
34721             case "$withval" in
34722                 y | ye | yes) : ;;
34723                 n | no) GNUPLOT=no ;;
34724                 *) GNUPLOT="$withval" ;;
34725             esac
34726
34727 fi
34728
34729     if test "x$GNUPLOT" = "xno"; then
34730         GNUPLOT=
34731     else
34732         # Extract the first word of "gnuplot", so it can be a program name with args.
34733 set dummy gnuplot; ac_word=$2
34734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34735 $as_echo_n "checking for $ac_word... " >&6; }
34736 if test "${ac_cv_path_GNUPLOT+set}" = set; then
34737   $as_echo_n "(cached) " >&6
34738 else
34739   case $GNUPLOT in
34740   [\\/]* | ?:[\\/]*)
34741   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
34742   ;;
34743   *)
34744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34745 for as_dir in $LOCSYSPATH
34746 do
34747   IFS=$as_save_IFS
34748   test -z "$as_dir" && as_dir=.
34749   for ac_exec_ext in '' $ac_executable_extensions; do
34750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34751     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
34752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34753     break 2
34754   fi
34755 done
34756 done
34757 IFS=$as_save_IFS
34758
34759   ;;
34760 esac
34761 fi
34762 GNUPLOT=$ac_cv_path_GNUPLOT
34763 if test -n "$GNUPLOT"; then
34764   { $as_echo "$as_me:$LINENO: result: $GNUPLOT" >&5
34765 $as_echo "$GNUPLOT" >&6; }
34766 else
34767   { $as_echo "$as_me:$LINENO: result: no" >&5
34768 $as_echo "no" >&6; }
34769 fi
34770
34771
34772     fi
34773
34774
34775
34776
34777
34778
34779     # Extract the first word of "pcat", so it can be a program name with args.
34780 set dummy pcat; ac_word=$2
34781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34782 $as_echo_n "checking for $ac_word... " >&6; }
34783 if test "${ac_cv_path_PCAT+set}" = set; then
34784   $as_echo_n "(cached) " >&6
34785 else
34786   case $PCAT in
34787   [\\/]* | ?:[\\/]*)
34788   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
34789   ;;
34790   *)
34791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34792 for as_dir in $LOCSYSPATH
34793 do
34794   IFS=$as_save_IFS
34795   test -z "$as_dir" && as_dir=.
34796   for ac_exec_ext in '' $ac_executable_extensions; do
34797   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34798     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
34799     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34800     break 2
34801   fi
34802 done
34803 done
34804 IFS=$as_save_IFS
34805
34806   ;;
34807 esac
34808 fi
34809 PCAT=$ac_cv_path_PCAT
34810 if test -n "$PCAT"; then
34811   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
34812 $as_echo "$PCAT" >&6; }
34813 else
34814   { $as_echo "$as_me:$LINENO: result: no" >&5
34815 $as_echo "no" >&6; }
34816 fi
34817
34818
34819
34820
34821
34822     # Extract the first word of "compress", so it can be a program name with args.
34823 set dummy compress; ac_word=$2
34824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34825 $as_echo_n "checking for $ac_word... " >&6; }
34826 if test "${ac_cv_path_COMPRESS+set}" = set; then
34827   $as_echo_n "(cached) " >&6
34828 else
34829   case $COMPRESS in
34830   [\\/]* | ?:[\\/]*)
34831   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
34832   ;;
34833   *)
34834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34835 for as_dir in $LOCSYSPATH
34836 do
34837   IFS=$as_save_IFS
34838   test -z "$as_dir" && as_dir=.
34839   for ac_exec_ext in '' $ac_executable_extensions; do
34840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34841     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
34842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34843     break 2
34844   fi
34845 done
34846 done
34847 IFS=$as_save_IFS
34848
34849   ;;
34850 esac
34851 fi
34852 COMPRESS=$ac_cv_path_COMPRESS
34853 if test -n "$COMPRESS"; then
34854   { $as_echo "$as_me:$LINENO: result: $COMPRESS" >&5
34855 $as_echo "$COMPRESS" >&6; }
34856 else
34857   { $as_echo "$as_me:$LINENO: result: no" >&5
34858 $as_echo "no" >&6; }
34859 fi
34860
34861
34862
34863
34864
34865     # Extract the first word of "gzip", so it can be a program name with args.
34866 set dummy gzip; ac_word=$2
34867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
34868 $as_echo_n "checking for $ac_word... " >&6; }
34869 if test "${ac_cv_path_GZIP+set}" = set; then
34870   $as_echo_n "(cached) " >&6
34871 else
34872   case $GZIP in
34873   [\\/]* | ?:[\\/]*)
34874   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
34875   ;;
34876   *)
34877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34878 for as_dir in $LOCSYSPATH
34879 do
34880   IFS=$as_save_IFS
34881   test -z "$as_dir" && as_dir=.
34882   for ac_exec_ext in '' $ac_executable_extensions; do
34883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34884     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
34885     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34886     break 2
34887   fi
34888 done
34889 done
34890 IFS=$as_save_IFS
34891
34892   ;;
34893 esac
34894 fi
34895 GZIP=$ac_cv_path_GZIP
34896 if test -n "$GZIP"; then
34897   { $as_echo "$as_me:$LINENO: result: $GZIP" >&5
34898 $as_echo "$GZIP" >&6; }
34899 else
34900   { $as_echo "$as_me:$LINENO: result: no" >&5
34901 $as_echo "no" >&6; }
34902 fi
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913     if test "x$GNUPLOT" != "x"; then
34914         WANT_AMPLOT=true
34915
34916         # variable substitutions for amcat.awk
34917         if test "$PCAT"; then
34918             AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
34919         else
34920             AMPLOT_CAT_PACK=
34921         fi
34922         if test "$COMPRESS"; then
34923             AMPLOT_COMPRESS=$COMPRESS
34924             AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
34925         else
34926             AMPLOT_CAT_COMPRESS=
34927         fi
34928         if test "$GZIP"; then
34929             AMPLOT_COMPRESS=$GZIP
34930             AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
34931         else
34932             AMPLOT_CAT_GZIP=
34933         fi
34934
34935
34936
34937
34938
34939     else
34940         WANT_AMPLOT=false
34941
34942     { $as_echo "$as_me:$LINENO: WARNING: Not building 'amplot', because gnuplot was not found" >&5
34943 $as_echo "$as_me: WARNING: Not building 'amplot', because gnuplot was not found" >&2;}
34944
34945
34946     cat <<AAW_EOF >>config.warnings
34947 Not building 'amplot', because gnuplot was not found
34948 AAW_EOF
34949
34950
34951     fi
34952
34953      if test x"$WANT_AMPLOT" = x"true"; then
34954   WANT_AMPLOT_TRUE=
34955   WANT_AMPLOT_FALSE='#'
34956 else
34957   WANT_AMPLOT_TRUE='#'
34958   WANT_AMPLOT_FALSE=
34959 fi
34960
34961
34962
34963     # Check whether --enable-manpage-build was given.
34964 if test "${enable_manpage_build+set}" = set; then
34965   enableval=$enable_manpage_build;  ENABLE_MANPAGE_BUILD=$enableval
34966 else
34967    ENABLE_MANPAGE_BUILD=no
34968 fi
34969
34970
34971     # and ensure that everything docbook-related is OK if we'll be using it
34972     if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
34973         DOC_BUILD_DATE=`date '+%d-%m-%Y'`
34974
34975
34976 XSLTPROC_FLAGS="--nonet"
34977
34978
34979 # The (lack of) whitespace and overquoting here are all necessary for
34980 # proper formatting.
34981
34982 # Check whether --with-xsltproc was given.
34983 if test "${with_xsltproc+set}" = set; then
34984   withval=$with_xsltproc;  ac_with_xsltproc=$withval;
34985 else
34986    ac_with_xsltproc=maybe;
34987 fi
34988
34989
34990
34991 # Check whether --with-xsltproc-flags was given.
34992 if test "${with_xsltproc_flags+set}" = set; then
34993   withval=$with_xsltproc_flags;  if test "x$withval" == "xno"; then
34994         XSLTPROC_FLAGS=''
34995     else
34996         if test "x$withval" != "xyes"; then
34997             XSLTPROC_FLAGS="$withval"
34998         fi
34999     fi
35000
35001 fi
35002
35003
35004 # search for xsltproc if it wasn't specified
35005 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
35006     for ac_prog in xsltproc
35007 do
35008   # Extract the first word of "$ac_prog", so it can be a program name with args.
35009 set dummy $ac_prog; ac_word=$2
35010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35011 $as_echo_n "checking for $ac_word... " >&6; }
35012 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35013   $as_echo_n "(cached) " >&6
35014 else
35015   case $XSLTPROC in
35016   [\\/]* | ?:[\\/]*)
35017   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35018   ;;
35019   *)
35020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35021 for as_dir in $LOCSYSPATH
35022 do
35023   IFS=$as_save_IFS
35024   test -z "$as_dir" && as_dir=.
35025   for ac_exec_ext in '' $ac_executable_extensions; do
35026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35027     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35028     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35029     break 2
35030   fi
35031 done
35032 done
35033 IFS=$as_save_IFS
35034
35035   ;;
35036 esac
35037 fi
35038 XSLTPROC=$ac_cv_path_XSLTPROC
35039 if test -n "$XSLTPROC"; then
35040   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35041 $as_echo "$XSLTPROC" >&6; }
35042 else
35043   { $as_echo "$as_me:$LINENO: result: no" >&5
35044 $as_echo "no" >&6; }
35045 fi
35046
35047
35048   test -n "$XSLTPROC" && break
35049 done
35050
35051 else
35052     if test "$ac_with_xsltproc" != "no"; then
35053         if test -x "$ac_with_xsltproc"; then
35054             XSLTPROC="$ac_with_xsltproc";
35055         else
35056
35057     { $as_echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&5
35058 $as_echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative." >&2;}
35059
35060
35061     cat <<AAW_EOF >>config.warnings
35062 Specified xsltproc of $ac_with_xsltproc isn't executable; searching for an alternative.
35063 AAW_EOF
35064
35065
35066             for ac_prog in xsltproc
35067 do
35068   # Extract the first word of "$ac_prog", so it can be a program name with args.
35069 set dummy $ac_prog; ac_word=$2
35070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35071 $as_echo_n "checking for $ac_word... " >&6; }
35072 if test "${ac_cv_path_XSLTPROC+set}" = set; then
35073   $as_echo_n "(cached) " >&6
35074 else
35075   case $XSLTPROC in
35076   [\\/]* | ?:[\\/]*)
35077   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
35078   ;;
35079   *)
35080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35081 for as_dir in $LOCSYSPATH
35082 do
35083   IFS=$as_save_IFS
35084   test -z "$as_dir" && as_dir=.
35085   for ac_exec_ext in '' $ac_executable_extensions; do
35086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35087     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
35088     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35089     break 2
35090   fi
35091 done
35092 done
35093 IFS=$as_save_IFS
35094
35095   ;;
35096 esac
35097 fi
35098 XSLTPROC=$ac_cv_path_XSLTPROC
35099 if test -n "$XSLTPROC"; then
35100   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
35101 $as_echo "$XSLTPROC" >&6; }
35102 else
35103   { $as_echo "$as_me:$LINENO: result: no" >&5
35104 $as_echo "no" >&6; }
35105 fi
35106
35107
35108   test -n "$XSLTPROC" && break
35109 done
35110
35111         fi
35112     fi
35113 fi
35114
35115
35116
35117
35118
35119
35120
35121
35122
35123
35124     { $as_echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
35125 $as_echo_n "checking for Docbook XSLT version 1.72.0... " >&6; }
35126 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
35127   $as_echo_n "(cached) " >&6
35128 else
35129
35130         ac_cv_docbook_xslt_1_72_0=no
35131         if test -n "$XSLTPROC"; then
35132             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
35133             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&5
35134
35135             if test "$?" = 0; then
35136                 ac_cv_docbook_xslt_1_72_0=yes
35137             fi
35138         fi
35139
35140 fi
35141 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
35142 $as_echo "$ac_cv_docbook_xslt_1_72_0" >&6; }
35143
35144     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
35145     HAVE_DOCBOOK_XSLT="$HAVE_DOCBOOK_XSLT_1_72_0"
35146
35147
35148
35149
35150
35151
35152
35153
35154     { $as_echo "$as_me:$LINENO: checking for current Docbook XSLT version" >&5
35155 $as_echo_n "checking for current Docbook XSLT version... " >&6; }
35156 if test "${ac_cv_docbook_xslt_current_version+set}" = set; then
35157   $as_echo_n "(cached) " >&6
35158 else
35159
35160         ac_cv_docbook_xslt_current_version=no
35161
35162         if test -n "$XSLTPROC"; then
35163             cat >conftest.xsl <<EOF
35164                 <xsl:stylesheet
35165                     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
35166                     xmlns:fm="http://freshmeat.net/projects/freshmeat-submit/"
35167                     version="1.0">
35168                     <xsl:output method="text"/>
35169                     <xsl:template match="fm:project/fm:Version">
35170                         <xsl:value-of select="." />
35171                     </xsl:template>
35172                     <!-- do nothing with any other text -->
35173                     <xsl:template match="text()"/>
35174                 </xsl:stylesheet>
35175 EOF
35176             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/current/VERSION' with input:" >&5
35177             echo "====" >&5
35178             cat conftest.xsl >&5
35179             echo "====" >&5
35180
35181             ac_cv_docbook_xslt_current_version=`$XSLTPROC $XSLTPROC_FLAGS conftest.xsl http://docbook.sourceforge.net/release/xsl/current/VERSION 2>&5`
35182
35183             if test "$?" != 0; then
35184                 ac_cv_docbook_xslt_current_version='no'
35185             fi
35186
35187             rm conftest.xsl
35188         fi
35189
35190 fi
35191 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_current_version" >&5
35192 $as_echo "$ac_cv_docbook_xslt_current_version" >&6; }
35193
35194     DOCBOOK_XSLT_CURRENT_VERSION="$ac_cv_docbook_xslt_current_version"
35195     { $as_echo "$as_me:$LINENO: checking whether Docbook XSLT version is 1.72.0 or newer" >&5
35196 $as_echo_n "checking whether Docbook XSLT version is 1.72.0 or newer... " >&6; }
35197
35198     if test x"$DOCBOOK_XSLT_CURRENT_VERSION" = x"no"; then
35199         { $as_echo "$as_me:$LINENO: result: no" >&5
35200 $as_echo "no" >&6; }
35201     else
35202
35203   # Used to indicate true or false condition
35204   ax_compare_version=false
35205
35206   # Convert the two version strings to be compared into a format that
35207   # allows a simple string comparison.  The end result is that a version
35208   # string of the form 1.12.5-r617 will be converted to the form
35209   # 0001001200050617.  In other words, each number is zero padded to four
35210   # digits, and non digits are removed.
35211
35212   ax_compare_version_A=`echo "$DOCBOOK_XSLT_CURRENT_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35213                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35214                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35215                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35216                      -e 's/[^0-9]//g'`
35217
35218
35219   ax_compare_version_B=`echo "1.72.0" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35220                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35221                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35222                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35223                      -e 's/[^0-9]//g'`
35224
35225
35226     ax_compare_version=`echo "x$ax_compare_version_A
35227 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"`
35228
35229
35230
35231     if test "$ax_compare_version" = "true" ; then
35232
35233             # version is less than required, so mark it as "no"
35234             DOCBOOK_XSLT_CURRENT_VERSION=no
35235
35236       fi
35237
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             { $as_echo "$as_me:$LINENO: result: yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&5
35244 $as_echo "yes ($DOCBOOK_XSLT_CURRENT_VERSION)" >&6; }
35245         fi
35246     fi
35247
35248
35249
35250
35251
35252
35253
35254
35255
35256
35257     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
35258 $as_echo_n "checking for Docbook DTD version 4.1.2... " >&6; }
35259 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
35260   $as_echo_n "(cached) " >&6
35261 else
35262
35263         ac_cv_docbook_dtd_4_1_2=no
35264         if test -n "$XSLTPROC"; then
35265             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35266             cat <<EOF >conftest.xml
35267 <?xml version="1.0" encoding='ISO-8859-1'?>
35268 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
35269 <book id="empty">
35270 </book>
35271 EOF
35272             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35273             echo "conftest.xml:" >&5
35274             echo "====" >&5
35275             cat conftest.xml >&5
35276             echo "====" >&5
35277
35278             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35279             if test "$?" = 0 -o "$?" = 5; then
35280                 # failing to load the DTD is just a warning, so check for it in the output.
35281                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35282                     : # no good..
35283                 else
35284                     ac_cv_docbook_dtd_4_1_2=yes
35285                 fi
35286             fi
35287             cat conftest.out >&5
35288
35289             rm -f conftest.xml conftest.out
35290         fi
35291
35292 fi
35293 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
35294 $as_echo "$ac_cv_docbook_dtd_4_1_2" >&6; }
35295
35296     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
35297     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_1_2"
35298
35299
35300
35301
35302
35303
35304
35305
35306
35307
35308
35309
35310
35311
35312     { $as_echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
35313 $as_echo_n "checking for Docbook DTD version 4.2... " >&6; }
35314 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
35315   $as_echo_n "(cached) " >&6
35316 else
35317
35318         ac_cv_docbook_dtd_4_2=no
35319         if test -n "$XSLTPROC"; then
35320             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
35321             cat <<EOF >conftest.xml
35322 <?xml version="1.0" encoding='ISO-8859-1'?>
35323 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
35324 <book id="empty">
35325 </book>
35326 EOF
35327             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
35328             echo "conftest.xml:" >&5
35329             echo "====" >&5
35330             cat conftest.xml >&5
35331             echo "====" >&5
35332
35333             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
35334             if test "$?" = 0 -o "$?" = 5; then
35335                 # failing to load the DTD is just a warning, so check for it in the output.
35336                 if grep 'warning: failed to load external entity' conftest.out >/dev/null 2>&1; then
35337                     : # no good..
35338                 else
35339                     ac_cv_docbook_dtd_4_2=yes
35340                 fi
35341             fi
35342             cat conftest.out >&5
35343
35344             rm -f conftest.xml conftest.out
35345         fi
35346
35347 fi
35348 { $as_echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
35349 $as_echo "$ac_cv_docbook_dtd_4_2" >&6; }
35350
35351     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
35352     HAVE_DOCBOOK_DTD="$HAVE_DOCBOOK_DTD_4_2"
35353
35354
35355
35356
35357
35358
35359         if test -z "$XSLTPROC"; then
35360             { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
35361 $as_echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
35362    { (exit 1); exit 1; }; }
35363         fi
35364
35365         # if the 'current' Docbook revision is good enough, use that; otherwise,
35366         # if 1.72.0 is available, use that.
35367         XSLREL=current
35368         if test "x$DOCBOOK_XSLT_CURRENT_VERSION" = "xno"; then
35369             if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
35370                 { { $as_echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&5
35371 $as_echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 or higher required." >&2;}
35372    { (exit 1); exit 1; }; }
35373             else
35374                 XSLREL=1.72.0
35375             fi
35376         fi
35377
35378         # disable validation if the correct DTDs are not available
35379         if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
35380
35381     { $as_echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
35382 $as_echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
35383
35384
35385     cat <<AAW_EOF >>config.warnings
35386 Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation
35387 AAW_EOF
35388
35389
35390             XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
35391         fi
35392     fi
35393
35394      if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
35395   ENABLE_MANPAGE_BUILD_TRUE=
35396   ENABLE_MANPAGE_BUILD_FALSE='#'
35397 else
35398   ENABLE_MANPAGE_BUILD_TRUE='#'
35399   ENABLE_MANPAGE_BUILD_FALSE=
35400 fi
35401
35402
35403
35404
35405
35406     #allow configure CONFIG_CLOBBER_MY_CONFIG= to be used by make.
35407     CONFIG_CLOBBER_MY_CONFIG=$CLOBBER_MY_CONFIG
35408
35409
35410
35411 # Check whether --with-index-server was given.
35412 if test "${with_index_server+set}" = set; then
35413   withval=$with_index_server;
35414             case "$withval" in
35415             "" | y | ye | yes | n | no)
35416                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
35417 $as_echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
35418    { (exit 1); exit 1; }; }
35419               ;;
35420             *) DEFAULT_SERVER="$withval"
35421               ;;
35422             esac
35423
35424 else
35425   : ${DEFAULT_SERVER=`uname -n`}
35426
35427 fi
35428
35429
35430 cat >>confdefs.h <<_ACEOF
35431 #define DEFAULT_SERVER "$DEFAULT_SERVER"
35432 _ACEOF
35433
35434
35435
35436
35437 # Check whether --with-config was given.
35438 if test "${with_config+set}" = set; then
35439   withval=$with_config;
35440             case "$withval" in
35441             "" | y | ye | yes | n | no)
35442                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
35443 $as_echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
35444    { (exit 1); exit 1; }; }
35445               ;;
35446             *) DEFAULT_CONFIG="$withval"
35447               ;;
35448             esac
35449
35450 else
35451   : ${DEFAULT_CONFIG=DailySet1}
35452
35453 fi
35454
35455
35456 cat >>confdefs.h <<_ACEOF
35457 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
35458 _ACEOF
35459
35460
35461
35462
35463 # Check whether --with-tape-server was given.
35464 if test "${with_tape_server+set}" = set; then
35465   withval=$with_tape_server;
35466             case "$withval" in
35467             "" | y | ye | yes | n | no)
35468                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
35469 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
35470    { (exit 1); exit 1; }; }
35471               ;;
35472             *) DEFAULT_TAPE_SERVER="$withval"
35473               ;;
35474             esac
35475
35476 else
35477   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
35478
35479 fi
35480
35481
35482 cat >>confdefs.h <<_ACEOF
35483 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
35484 _ACEOF
35485
35486
35487
35488
35489 # Check whether --with-tape-device was given.
35490 if test "${with_tape_device+set}" = set; then
35491   withval=$with_tape_device;
35492             case "$withval" in
35493             "" | y | ye | yes | n | no)
35494                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
35495 $as_echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
35496    { (exit 1); exit 1; }; }
35497               ;;
35498             *) DEFAULT_TAPE_DEVICE="$withval"
35499               ;;
35500             esac
35501
35502
35503 fi
35504
35505
35506
35507 cat >>confdefs.h <<_ACEOF
35508 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
35509 _ACEOF
35510
35511
35512
35513     if test "${DEFAULT_TAPE_DEVICE+set}" = "set"; then
35514         EXAMPLE_TAPEDEV="$DEFAULT_TAPE_DEVICE"
35515     else
35516         EXAMPLE_TAPEDEV="tape:/dev/YOUR-TAPE-DEVICE-HERE"
35517     fi
35518
35519
35520
35521 # Check whether --with-changer-device was given.
35522 if test "${with_changer_device+set}" = set; then
35523   withval=$with_changer_device;
35524
35525     { $as_echo "$as_me:$LINENO: WARNING: --with-changer-device is no longer used." >&5
35526 $as_echo "$as_me: WARNING: --with-changer-device is no longer used." >&2;}
35527
35528
35529     cat <<AAW_EOF >>config.warnings
35530 --with-changer-device is no longer used.
35531 AAW_EOF
35532
35533
35534
35535
35536 fi
35537
35538
35539
35540 # Check whether --with-amandates was given.
35541 if test "${with_amandates+set}" = set; then
35542   withval=$with_amandates;
35543             case "$withval" in
35544                 n | no) { { $as_echo "$as_me:$LINENO: error: *** --without-amandates is not allowed." >&5
35545 $as_echo "$as_me: error: *** --without-amandates is not allowed." >&2;}
35546    { (exit 1); exit 1; }; };;
35547                 y |  ye | yes) amandates='$localstatedir/amanda/amandates' ;;
35548                 *) amandates="$withval";;
35549             esac
35550
35551 else
35552   amandates='$localstatedir/amanda/amandates'
35553
35554 fi
35555
35556
35557
35558   prefix_NONE=
35559   exec_prefix_NONE=
35560   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
35561   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
35562   eval ac_define_dir="\"$amandates\""
35563   eval ac_define_dir="\"$ac_define_dir\""
35564   DEFAULT_AMANDATES_FILE="$ac_define_dir"
35565
35566
35567 cat >>confdefs.h <<_ACEOF
35568 #define DEFAULT_AMANDATES_FILE "$ac_define_dir"
35569 _ACEOF
35570
35571   test "$prefix_NONE" && prefix=NONE
35572   test "$exec_prefix_NONE" && exec_prefix=NONE
35573
35574
35575     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
35576     case "$host" in
35577         *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
35578                     ;;
35579     esac
35580
35581 cat >>confdefs.h <<_ACEOF
35582 #define DEFAULT_FSF_AFTER_FILEMARK $DEFAULT_FSF_AFTER_FILEMARK
35583 _ACEOF
35584
35585
35586
35587
35588     # Extract the first word of "getconf", so it can be a program name with args.
35589 set dummy getconf; ac_word=$2
35590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
35591 $as_echo_n "checking for $ac_word... " >&6; }
35592 if test "${ac_cv_path_GETCONF+set}" = set; then
35593   $as_echo_n "(cached) " >&6
35594 else
35595   case $GETCONF in
35596   [\\/]* | ?:[\\/]*)
35597   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
35598   ;;
35599   *)
35600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35601 for as_dir in $SYSPATH
35602 do
35603   IFS=$as_save_IFS
35604   test -z "$as_dir" && as_dir=.
35605   for ac_exec_ext in '' $ac_executable_extensions; do
35606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
35607     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
35608     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35609     break 2
35610   fi
35611 done
35612 done
35613 IFS=$as_save_IFS
35614
35615   ;;
35616 esac
35617 fi
35618 GETCONF=$ac_cv_path_GETCONF
35619 if test -n "$GETCONF"; then
35620   { $as_echo "$as_me:$LINENO: result: $GETCONF" >&5
35621 $as_echo "$GETCONF" >&6; }
35622 else
35623   { $as_echo "$as_me:$LINENO: result: no" >&5
35624 $as_echo "no" >&6; }
35625 fi
35626
35627
35628
35629
35630
35631
35632
35633     # we use 'getconf', if it exists, to get the relevant
35634     # compiler flags.
35635     GETCONF_LFS="LFS"
35636     case "$host" in
35637         *-hp-*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35638         *-ibm-aix*) GETCONF_LFS="XBS5_ILP32_OFFBIG" ;;
35639     esac
35640
35641     # Checks for compilers, typedefs, structures, and compiler characteristics.
35642     # Check for large file compilation environment.
35643     NEED_RESETOFS=yes
35644     { $as_echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
35645 $as_echo_n "checking for large file compilation CFLAGS... " >&6; }
35646 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
35647   $as_echo_n "(cached) " >&6
35648 else
35649
35650         amanda_cv_LFS_CFLAGS=
35651         if test "$GETCONF"; then
35652             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
35653                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
35654                 NEED_RESETOFS=no
35655             fi
35656         fi
35657
35658
35659 fi
35660 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
35661 $as_echo "$amanda_cv_LFS_CFLAGS" >&6; }
35662     CFLAGS="$CFLAGS $amanda_cv_LFS_CFLAGS"
35663
35664
35665     { $as_echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
35666 $as_echo_n "checking for large file compilation LDFLAGS... " >&6; }
35667 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
35668   $as_echo_n "(cached) " >&6
35669 else
35670
35671         amanda_cv_LFS_LDFLAGS=
35672         if test "$GETCONF"; then
35673             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
35674                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
35675                 NEED_RESETOFS=no
35676             fi
35677         fi
35678
35679
35680 fi
35681 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
35682 $as_echo "$amanda_cv_LFS_LDFLAGS" >&6; }
35683     LDFLAGS="$LDFLAGS $amanda_cv_LFS_LDFLAGS"
35684
35685
35686     { $as_echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
35687 $as_echo_n "checking for large file compilation LIBS... " >&6; }
35688 if test "${amanda_cv_LFS_LIBS+set}" = set; then
35689   $as_echo_n "(cached) " >&6
35690 else
35691
35692         amanda_cv_LFS_LIBS=
35693         if test "$GETCONF"; then
35694             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
35695                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
35696                 NEED_RESETOFS=no
35697             fi
35698         fi
35699
35700
35701 fi
35702 { $as_echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
35703 $as_echo "$amanda_cv_LFS_LIBS" >&6; }
35704     LIBS="$amanda_cv_LFS_LIBS $LIBS"
35705
35706
35707     if test x"$NEED_RESETOFS" = x"yes"; then
35708
35709 cat >>confdefs.h <<\_ACEOF
35710 #define NEED_RESETOFS 1
35711 _ACEOF
35712
35713     fi
35714
35715
35716
35717
35718
35719
35720 for ac_header in fstab.h \
35721         mntent.h \
35722         mnttab.h \
35723         sys/vfstab.h \
35724
35725 do
35726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35728   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35729 $as_echo_n "checking for $ac_header... " >&6; }
35730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35731   $as_echo_n "(cached) " >&6
35732 fi
35733 ac_res=`eval 'as_val=${'$as_ac_Header'}
35734                  $as_echo "$as_val"'`
35735                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35736 $as_echo "$ac_res" >&6; }
35737 else
35738   # Is the header compilable?
35739 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35740 $as_echo_n "checking $ac_header usability... " >&6; }
35741 cat >conftest.$ac_ext <<_ACEOF
35742 /* confdefs.h.  */
35743 _ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h.  */
35747 $ac_includes_default
35748 #include <$ac_header>
35749 _ACEOF
35750 rm -f conftest.$ac_objext
35751 if { (ac_try="$ac_compile"
35752 case "(($ac_try" in
35753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35754   *) ac_try_echo=$ac_try;;
35755 esac
35756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35757 $as_echo "$ac_try_echo") >&5
35758   (eval "$ac_compile") 2>conftest.er1
35759   ac_status=$?
35760   grep -v '^ *+' conftest.er1 >conftest.err
35761   rm -f conftest.er1
35762   cat conftest.err >&5
35763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764   (exit $ac_status); } && {
35765          test -z "$ac_c_werror_flag" ||
35766          test ! -s conftest.err
35767        } && test -s conftest.$ac_objext; then
35768   ac_header_compiler=yes
35769 else
35770   $as_echo "$as_me: failed program was:" >&5
35771 sed 's/^/| /' conftest.$ac_ext >&5
35772
35773         ac_header_compiler=no
35774 fi
35775
35776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35778 $as_echo "$ac_header_compiler" >&6; }
35779
35780 # Is the header present?
35781 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35782 $as_echo_n "checking $ac_header presence... " >&6; }
35783 cat >conftest.$ac_ext <<_ACEOF
35784 /* confdefs.h.  */
35785 _ACEOF
35786 cat confdefs.h >>conftest.$ac_ext
35787 cat >>conftest.$ac_ext <<_ACEOF
35788 /* end confdefs.h.  */
35789 #include <$ac_header>
35790 _ACEOF
35791 if { (ac_try="$ac_cpp conftest.$ac_ext"
35792 case "(($ac_try" in
35793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794   *) ac_try_echo=$ac_try;;
35795 esac
35796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35797 $as_echo "$ac_try_echo") >&5
35798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35799   ac_status=$?
35800   grep -v '^ *+' conftest.er1 >conftest.err
35801   rm -f conftest.er1
35802   cat conftest.err >&5
35803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804   (exit $ac_status); } >/dev/null && {
35805          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35806          test ! -s conftest.err
35807        }; then
35808   ac_header_preproc=yes
35809 else
35810   $as_echo "$as_me: failed program was:" >&5
35811 sed 's/^/| /' conftest.$ac_ext >&5
35812
35813   ac_header_preproc=no
35814 fi
35815
35816 rm -f conftest.err conftest.$ac_ext
35817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35818 $as_echo "$ac_header_preproc" >&6; }
35819
35820 # So?  What about this header?
35821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35822   yes:no: )
35823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35824 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35827     ac_header_preproc=yes
35828     ;;
35829   no:yes:* )
35830     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35831 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35832     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35833 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35834     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35835 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35836     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35837 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35838     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35840     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35841 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35842
35843     ;;
35844 esac
35845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35846 $as_echo_n "checking for $ac_header... " >&6; }
35847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35848   $as_echo_n "(cached) " >&6
35849 else
35850   eval "$as_ac_Header=\$ac_header_preproc"
35851 fi
35852 ac_res=`eval 'as_val=${'$as_ac_Header'}
35853                  $as_echo "$as_val"'`
35854                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35855 $as_echo "$ac_res" >&6; }
35856
35857 fi
35858 as_val=`eval 'as_val=${'$as_ac_Header'}
35859                  $as_echo "$as_val"'`
35860    if test "x$as_val" = x""yes; then
35861   cat >>confdefs.h <<_ACEOF
35862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35863 _ACEOF
35864
35865 fi
35866
35867 done
35868
35869
35870
35871 for ac_func in endmntent
35872 do
35873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35875 $as_echo_n "checking for $ac_func... " >&6; }
35876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35877   $as_echo_n "(cached) " >&6
35878 else
35879   cat >conftest.$ac_ext <<_ACEOF
35880 /* confdefs.h.  */
35881 _ACEOF
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h.  */
35885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35887 #define $ac_func innocuous_$ac_func
35888
35889 /* System header to define __stub macros and hopefully few prototypes,
35890     which can conflict with char $ac_func (); below.
35891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35892     <limits.h> exists even on freestanding compilers.  */
35893
35894 #ifdef __STDC__
35895 # include <limits.h>
35896 #else
35897 # include <assert.h>
35898 #endif
35899
35900 #undef $ac_func
35901
35902 /* Override any GCC internal prototype to avoid an error.
35903    Use char because int might match the return type of a GCC
35904    builtin and then its argument prototype would still apply.  */
35905 #ifdef __cplusplus
35906 extern "C"
35907 #endif
35908 char $ac_func ();
35909 /* The GNU C library defines this for functions which it implements
35910     to always fail with ENOSYS.  Some functions are actually named
35911     something starting with __ and the normal name is an alias.  */
35912 #if defined __stub_$ac_func || defined __stub___$ac_func
35913 choke me
35914 #endif
35915
35916 int
35917 main ()
35918 {
35919 return $ac_func ();
35920   ;
35921   return 0;
35922 }
35923 _ACEOF
35924 rm -f conftest.$ac_objext conftest$ac_exeext
35925 if { (ac_try="$ac_link"
35926 case "(($ac_try" in
35927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35928   *) ac_try_echo=$ac_try;;
35929 esac
35930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35931 $as_echo "$ac_try_echo") >&5
35932   (eval "$ac_link") 2>conftest.er1
35933   ac_status=$?
35934   grep -v '^ *+' conftest.er1 >conftest.err
35935   rm -f conftest.er1
35936   cat conftest.err >&5
35937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35938   (exit $ac_status); } && {
35939          test -z "$ac_c_werror_flag" ||
35940          test ! -s conftest.err
35941        } && test -s conftest$ac_exeext && {
35942          test "$cross_compiling" = yes ||
35943          $as_test_x conftest$ac_exeext
35944        }; then
35945   eval "$as_ac_var=yes"
35946 else
35947   $as_echo "$as_me: failed program was:" >&5
35948 sed 's/^/| /' conftest.$ac_ext >&5
35949
35950         eval "$as_ac_var=no"
35951 fi
35952
35953 rm -rf conftest.dSYM
35954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35955       conftest$ac_exeext conftest.$ac_ext
35956 fi
35957 ac_res=`eval 'as_val=${'$as_ac_var'}
35958                  $as_echo "$as_val"'`
35959                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35960 $as_echo "$ac_res" >&6; }
35961 as_val=`eval 'as_val=${'$as_ac_var'}
35962                  $as_echo "$as_val"'`
35963    if test "x$as_val" = x""yes; then
35964   cat >>confdefs.h <<_ACEOF
35965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35966 _ACEOF
35967
35968 fi
35969 done
35970
35971
35972 for ac_func in setmntent
35973 do
35974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35975 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35976 $as_echo_n "checking for $ac_func... " >&6; }
35977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35978   $as_echo_n "(cached) " >&6
35979 else
35980   cat >conftest.$ac_ext <<_ACEOF
35981 /* confdefs.h.  */
35982 _ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h.  */
35986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35988 #define $ac_func innocuous_$ac_func
35989
35990 /* System header to define __stub macros and hopefully few prototypes,
35991     which can conflict with char $ac_func (); below.
35992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35993     <limits.h> exists even on freestanding compilers.  */
35994
35995 #ifdef __STDC__
35996 # include <limits.h>
35997 #else
35998 # include <assert.h>
35999 #endif
36000
36001 #undef $ac_func
36002
36003 /* Override any GCC internal prototype to avoid an error.
36004    Use char because int might match the return type of a GCC
36005    builtin and then its argument prototype would still apply.  */
36006 #ifdef __cplusplus
36007 extern "C"
36008 #endif
36009 char $ac_func ();
36010 /* The GNU C library defines this for functions which it implements
36011     to always fail with ENOSYS.  Some functions are actually named
36012     something starting with __ and the normal name is an alias.  */
36013 #if defined __stub_$ac_func || defined __stub___$ac_func
36014 choke me
36015 #endif
36016
36017 int
36018 main ()
36019 {
36020 return $ac_func ();
36021   ;
36022   return 0;
36023 }
36024 _ACEOF
36025 rm -f conftest.$ac_objext conftest$ac_exeext
36026 if { (ac_try="$ac_link"
36027 case "(($ac_try" in
36028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36029   *) ac_try_echo=$ac_try;;
36030 esac
36031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36032 $as_echo "$ac_try_echo") >&5
36033   (eval "$ac_link") 2>conftest.er1
36034   ac_status=$?
36035   grep -v '^ *+' conftest.er1 >conftest.err
36036   rm -f conftest.er1
36037   cat conftest.err >&5
36038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); } && {
36040          test -z "$ac_c_werror_flag" ||
36041          test ! -s conftest.err
36042        } && test -s conftest$ac_exeext && {
36043          test "$cross_compiling" = yes ||
36044          $as_test_x conftest$ac_exeext
36045        }; then
36046   eval "$as_ac_var=yes"
36047 else
36048   $as_echo "$as_me: failed program was:" >&5
36049 sed 's/^/| /' conftest.$ac_ext >&5
36050
36051         eval "$as_ac_var=no"
36052 fi
36053
36054 rm -rf conftest.dSYM
36055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36056       conftest$ac_exeext conftest.$ac_ext
36057 fi
36058 ac_res=`eval 'as_val=${'$as_ac_var'}
36059                  $as_echo "$as_val"'`
36060                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36061 $as_echo "$ac_res" >&6; }
36062 as_val=`eval 'as_val=${'$as_ac_var'}
36063                  $as_echo "$as_val"'`
36064    if test "x$as_val" = x""yes; then
36065   cat >>confdefs.h <<_ACEOF
36066 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36067 _ACEOF
36068
36069 fi
36070 done
36071
36072
36073
36074
36075
36076
36077
36078
36079 for ac_header in fcntl.h \
36080         sys/fcntl.h \
36081         sys/types.h \
36082         sys/file.h \
36083         unistd.h \
36084
36085 do
36086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36088   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36089 $as_echo_n "checking for $ac_header... " >&6; }
36090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36091   $as_echo_n "(cached) " >&6
36092 fi
36093 ac_res=`eval 'as_val=${'$as_ac_Header'}
36094                  $as_echo "$as_val"'`
36095                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36096 $as_echo "$ac_res" >&6; }
36097 else
36098   # Is the header compilable?
36099 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36100 $as_echo_n "checking $ac_header usability... " >&6; }
36101 cat >conftest.$ac_ext <<_ACEOF
36102 /* confdefs.h.  */
36103 _ACEOF
36104 cat confdefs.h >>conftest.$ac_ext
36105 cat >>conftest.$ac_ext <<_ACEOF
36106 /* end confdefs.h.  */
36107 $ac_includes_default
36108 #include <$ac_header>
36109 _ACEOF
36110 rm -f conftest.$ac_objext
36111 if { (ac_try="$ac_compile"
36112 case "(($ac_try" in
36113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36114   *) ac_try_echo=$ac_try;;
36115 esac
36116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36117 $as_echo "$ac_try_echo") >&5
36118   (eval "$ac_compile") 2>conftest.er1
36119   ac_status=$?
36120   grep -v '^ *+' conftest.er1 >conftest.err
36121   rm -f conftest.er1
36122   cat conftest.err >&5
36123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124   (exit $ac_status); } && {
36125          test -z "$ac_c_werror_flag" ||
36126          test ! -s conftest.err
36127        } && test -s conftest.$ac_objext; then
36128   ac_header_compiler=yes
36129 else
36130   $as_echo "$as_me: failed program was:" >&5
36131 sed 's/^/| /' conftest.$ac_ext >&5
36132
36133         ac_header_compiler=no
36134 fi
36135
36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36137 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36138 $as_echo "$ac_header_compiler" >&6; }
36139
36140 # Is the header present?
36141 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36142 $as_echo_n "checking $ac_header presence... " >&6; }
36143 cat >conftest.$ac_ext <<_ACEOF
36144 /* confdefs.h.  */
36145 _ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h.  */
36149 #include <$ac_header>
36150 _ACEOF
36151 if { (ac_try="$ac_cpp conftest.$ac_ext"
36152 case "(($ac_try" in
36153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36154   *) ac_try_echo=$ac_try;;
36155 esac
36156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36157 $as_echo "$ac_try_echo") >&5
36158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36159   ac_status=$?
36160   grep -v '^ *+' conftest.er1 >conftest.err
36161   rm -f conftest.er1
36162   cat conftest.err >&5
36163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36164   (exit $ac_status); } >/dev/null && {
36165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36166          test ! -s conftest.err
36167        }; then
36168   ac_header_preproc=yes
36169 else
36170   $as_echo "$as_me: failed program was:" >&5
36171 sed 's/^/| /' conftest.$ac_ext >&5
36172
36173   ac_header_preproc=no
36174 fi
36175
36176 rm -f conftest.err conftest.$ac_ext
36177 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36178 $as_echo "$ac_header_preproc" >&6; }
36179
36180 # So?  What about this header?
36181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36182   yes:no: )
36183     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36184 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36185     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36186 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36187     ac_header_preproc=yes
36188     ;;
36189   no:yes:* )
36190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36191 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36193 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36195 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36197 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36201 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36202
36203     ;;
36204 esac
36205 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36206 $as_echo_n "checking for $ac_header... " >&6; }
36207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36208   $as_echo_n "(cached) " >&6
36209 else
36210   eval "$as_ac_Header=\$ac_header_preproc"
36211 fi
36212 ac_res=`eval 'as_val=${'$as_ac_Header'}
36213                  $as_echo "$as_val"'`
36214                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36215 $as_echo "$ac_res" >&6; }
36216
36217 fi
36218 as_val=`eval 'as_val=${'$as_ac_Header'}
36219                  $as_echo "$as_val"'`
36220    if test "x$as_val" = x""yes; then
36221   cat >>confdefs.h <<_ACEOF
36222 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36223 _ACEOF
36224
36225 fi
36226
36227 done
36228
36229
36230     # find a working file-locking mechanism.
36231     # Note: these all use AC_TRY_LINK to make sure that we can compile
36232     # and link each variant.  They do not try to test the variants --
36233     # that is left to runtime.
36234     LOCKING="no"
36235
36236     # check POSIX locking
36237     { $as_echo "$as_me:$LINENO: checking whether POSIX locking (with fcntl(2)) is available" >&5
36238 $as_echo_n "checking whether POSIX locking (with fcntl(2)) is available... " >&6; }
36239 if test "${amanda_cv_posix_filelocking+set}" = set; then
36240   $as_echo_n "(cached) " >&6
36241 else
36242
36243             cat >conftest.$ac_ext <<_ACEOF
36244 /* confdefs.h.  */
36245 _ACEOF
36246 cat confdefs.h >>conftest.$ac_ext
36247 cat >>conftest.$ac_ext <<_ACEOF
36248 /* end confdefs.h.  */
36249
36250 #if HAVE_SYS_TYPES_H
36251 # include <sys/types.h>
36252 #endif
36253 #if HAVE_UNISTD_H
36254 # include <unistd.h>
36255 #endif
36256 #if HAVE_FCNTL_H
36257 # include <fcntl.h>
36258 #endif
36259
36260 int
36261 main ()
36262 {
36263
36264             struct flock lock;
36265
36266             lock.l_type = F_RDLCK;
36267             lock.l_start = 0;
36268             lock.l_whence = SEEK_CUR;
36269             lock.l_len = 0;
36270             return fcntl(1, F_SETLK, &lock);
36271
36272   ;
36273   return 0;
36274 }
36275 _ACEOF
36276 rm -f conftest.$ac_objext conftest$ac_exeext
36277 if { (ac_try="$ac_link"
36278 case "(($ac_try" in
36279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36280   *) ac_try_echo=$ac_try;;
36281 esac
36282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36283 $as_echo "$ac_try_echo") >&5
36284   (eval "$ac_link") 2>conftest.er1
36285   ac_status=$?
36286   grep -v '^ *+' conftest.er1 >conftest.err
36287   rm -f conftest.er1
36288   cat conftest.err >&5
36289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290   (exit $ac_status); } && {
36291          test -z "$ac_c_werror_flag" ||
36292          test ! -s conftest.err
36293        } && test -s conftest$ac_exeext && {
36294          test "$cross_compiling" = yes ||
36295          $as_test_x conftest$ac_exeext
36296        }; then
36297
36298         amanda_cv_posix_filelocking="yes"
36299
36300 else
36301   $as_echo "$as_me: failed program was:" >&5
36302 sed 's/^/| /' conftest.$ac_ext >&5
36303
36304
36305         amanda_cv_posix_filelocking="no"
36306
36307 fi
36308
36309 rm -rf conftest.dSYM
36310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36311       conftest$ac_exeext conftest.$ac_ext
36312
36313 fi
36314 { $as_echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
36315 $as_echo "$amanda_cv_posix_filelocking" >&6; }
36316     if test "x$amanda_cv_posix_filelocking" = xyes; then
36317
36318 cat >>confdefs.h <<\_ACEOF
36319 #define WANT_AMFLOCK_POSIX 1
36320 _ACEOF
36321
36322         WANT_AMFLOCK_POSIX="yes"
36323         LOCKING="POSIX_FCNTL"
36324     fi
36325      if test x"$WANT_AMFLOCK_POSIX" = x"yes"; then
36326   WANT_AMFLOCK_POSIX_TRUE=
36327   WANT_AMFLOCK_POSIX_FALSE='#'
36328 else
36329   WANT_AMFLOCK_POSIX_TRUE='#'
36330   WANT_AMFLOCK_POSIX_FALSE=
36331 fi
36332
36333
36334     # check flock-based (BSD) locking
36335     { $as_echo "$as_me:$LINENO: checking whether flock locking is available" >&5
36336 $as_echo_n "checking whether flock locking is available... " >&6; }
36337 if test "${amanda_cv_flock_filelocking+set}" = set; then
36338   $as_echo_n "(cached) " >&6
36339 else
36340
36341             cat >conftest.$ac_ext <<_ACEOF
36342 /* confdefs.h.  */
36343 _ACEOF
36344 cat confdefs.h >>conftest.$ac_ext
36345 cat >>conftest.$ac_ext <<_ACEOF
36346 /* end confdefs.h.  */
36347
36348 #if HAVE_SYS_FILE_H
36349 # include <sys/file.h>
36350 #endif
36351
36352 int
36353 main ()
36354 {
36355
36356             return flock(1, LOCK_SH);
36357
36358   ;
36359   return 0;
36360 }
36361 _ACEOF
36362 rm -f conftest.$ac_objext conftest$ac_exeext
36363 if { (ac_try="$ac_link"
36364 case "(($ac_try" in
36365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36366   *) ac_try_echo=$ac_try;;
36367 esac
36368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36369 $as_echo "$ac_try_echo") >&5
36370   (eval "$ac_link") 2>conftest.er1
36371   ac_status=$?
36372   grep -v '^ *+' conftest.er1 >conftest.err
36373   rm -f conftest.er1
36374   cat conftest.err >&5
36375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376   (exit $ac_status); } && {
36377          test -z "$ac_c_werror_flag" ||
36378          test ! -s conftest.err
36379        } && test -s conftest$ac_exeext && {
36380          test "$cross_compiling" = yes ||
36381          $as_test_x conftest$ac_exeext
36382        }; then
36383
36384         amanda_cv_flock_filelocking="yes"
36385
36386 else
36387   $as_echo "$as_me: failed program was:" >&5
36388 sed 's/^/| /' conftest.$ac_ext >&5
36389
36390
36391         amanda_cv_flock_filelocking="no"
36392
36393 fi
36394
36395 rm -rf conftest.dSYM
36396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36397       conftest$ac_exeext conftest.$ac_ext
36398
36399 fi
36400 { $as_echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
36401 $as_echo "$amanda_cv_flock_filelocking" >&6; }
36402     if test "x$amanda_cv_flock_filelocking" = xyes; then
36403
36404 cat >>confdefs.h <<\_ACEOF
36405 #define WANT_AMFLOCK_FLOCK 1
36406 _ACEOF
36407
36408         WANT_AMFLOCK_FLOCK="yes"
36409         LOCKING="FLOCK"
36410     fi
36411      if test x"$WANT_AMFLOCK_FLOCK" = x"yes"; then
36412   WANT_AMFLOCK_FLOCK_TRUE=
36413   WANT_AMFLOCK_FLOCK_FALSE='#'
36414 else
36415   WANT_AMFLOCK_FLOCK_TRUE='#'
36416   WANT_AMFLOCK_FLOCK_FALSE=
36417 fi
36418
36419
36420     # check lockf-based (SVR2, SVR3, SVR4) locking
36421     { $as_echo "$as_me:$LINENO: checking whether lockf(3) locking is available" >&5
36422 $as_echo_n "checking whether lockf(3) locking is available... " >&6; }
36423 if test "${amanda_cv_lockf_filelocking+set}" = set; then
36424   $as_echo_n "(cached) " >&6
36425 else
36426
36427             cat >conftest.$ac_ext <<_ACEOF
36428 /* confdefs.h.  */
36429 _ACEOF
36430 cat confdefs.h >>conftest.$ac_ext
36431 cat >>conftest.$ac_ext <<_ACEOF
36432 /* end confdefs.h.  */
36433
36434 #if HAVE_UNISTD_H
36435 # include <unistd.h>
36436 #endif
36437
36438 int
36439 main ()
36440 {
36441
36442             return lockf(1, F_LOCK, 0);
36443
36444   ;
36445   return 0;
36446 }
36447 _ACEOF
36448 rm -f conftest.$ac_objext conftest$ac_exeext
36449 if { (ac_try="$ac_link"
36450 case "(($ac_try" in
36451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36452   *) ac_try_echo=$ac_try;;
36453 esac
36454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36455 $as_echo "$ac_try_echo") >&5
36456   (eval "$ac_link") 2>conftest.er1
36457   ac_status=$?
36458   grep -v '^ *+' conftest.er1 >conftest.err
36459   rm -f conftest.er1
36460   cat conftest.err >&5
36461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462   (exit $ac_status); } && {
36463          test -z "$ac_c_werror_flag" ||
36464          test ! -s conftest.err
36465        } && test -s conftest$ac_exeext && {
36466          test "$cross_compiling" = yes ||
36467          $as_test_x conftest$ac_exeext
36468        }; then
36469
36470         amanda_cv_lockf_filelocking="yes"
36471
36472 else
36473   $as_echo "$as_me: failed program was:" >&5
36474 sed 's/^/| /' conftest.$ac_ext >&5
36475
36476
36477         amanda_cv_lockf_filelocking="no"
36478
36479 fi
36480
36481 rm -rf conftest.dSYM
36482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36483       conftest$ac_exeext conftest.$ac_ext
36484
36485 fi
36486 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
36487 $as_echo "$amanda_cv_lockf_filelocking" >&6; }
36488     if test "x$amanda_cv_lockf_filelocking" = xyes; then
36489
36490 cat >>confdefs.h <<\_ACEOF
36491 #define WANT_AMFLOCK_LOCKF 1
36492 _ACEOF
36493
36494         WANT_AMFLOCK_LOCKF="yes"
36495         LOCKING="LOCKF"
36496     fi
36497      if test x"$WANT_AMFLOCK_LOCKF" = x"yes"; then
36498   WANT_AMFLOCK_LOCKF_TRUE=
36499   WANT_AMFLOCK_LOCKF_FALSE='#'
36500 else
36501   WANT_AMFLOCK_LOCKF_TRUE='#'
36502   WANT_AMFLOCK_LOCKF_FALSE=
36503 fi
36504
36505
36506     # check our homebrew hardlink-based locking (requires hardlinks)
36507     { $as_echo "$as_me:$LINENO: checking whether link(2) is available for locking" >&5
36508 $as_echo_n "checking whether link(2) is available for locking... " >&6; }
36509 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
36510   $as_echo_n "(cached) " >&6
36511 else
36512
36513             cat >conftest.$ac_ext <<_ACEOF
36514 /* confdefs.h.  */
36515 _ACEOF
36516 cat confdefs.h >>conftest.$ac_ext
36517 cat >>conftest.$ac_ext <<_ACEOF
36518 /* end confdefs.h.  */
36519
36520 #if HAVE_UNISTD_H
36521 # include <unistd.h>
36522 #endif
36523
36524 int
36525 main ()
36526 {
36527
36528             return link("/tmp/foo", "/tmp/bar");
36529
36530   ;
36531   return 0;
36532 }
36533 _ACEOF
36534 rm -f conftest.$ac_objext conftest$ac_exeext
36535 if { (ac_try="$ac_link"
36536 case "(($ac_try" in
36537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36538   *) ac_try_echo=$ac_try;;
36539 esac
36540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36541 $as_echo "$ac_try_echo") >&5
36542   (eval "$ac_link") 2>conftest.er1
36543   ac_status=$?
36544   grep -v '^ *+' conftest.er1 >conftest.err
36545   rm -f conftest.er1
36546   cat conftest.err >&5
36547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548   (exit $ac_status); } && {
36549          test -z "$ac_c_werror_flag" ||
36550          test ! -s conftest.err
36551        } && test -s conftest$ac_exeext && {
36552          test "$cross_compiling" = yes ||
36553          $as_test_x conftest$ac_exeext
36554        }; then
36555
36556         amanda_cv_lnlock_filelocking="yes"
36557
36558 else
36559   $as_echo "$as_me: failed program was:" >&5
36560 sed 's/^/| /' conftest.$ac_ext >&5
36561
36562
36563         amanda_cv_lnlock_filelocking="no"
36564
36565 fi
36566
36567 rm -rf conftest.dSYM
36568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36569       conftest$ac_exeext conftest.$ac_ext
36570
36571 fi
36572 { $as_echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
36573 $as_echo "$amanda_cv_lnlock_filelocking" >&6; }
36574     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
36575
36576 cat >>confdefs.h <<\_ACEOF
36577 #define WANT_AMFLOCK_LNLOCK 1
36578 _ACEOF
36579
36580         WANT_AMFLOCK_LNLOCK="yes"
36581         LOCKING="LNLOCK"
36582     fi
36583      if test x"$WANT_AMFLOCK_LNLOCK" = x"yes"; then
36584   WANT_AMFLOCK_LNLOCK_TRUE=
36585   WANT_AMFLOCK_LNLOCK_FALSE='#'
36586 else
36587   WANT_AMFLOCK_LNLOCK_TRUE='#'
36588   WANT_AMFLOCK_LNLOCK_FALSE=
36589 fi
36590
36591
36592     if test x"$LOCKING" = "no"; then
36593         # this shouldn't happen, and is *bad* if it does
36594         { { $as_echo "$as_me:$LINENO: error: *** No working file locking capability found!" >&5
36595 $as_echo "$as_me: error: *** No working file locking capability found!" >&2;}
36596    { (exit 1); exit 1; }; }
36597     fi
36598
36599
36600
36601
36602
36603     for ac_prog in swig
36604 do
36605   # Extract the first word of "$ac_prog", so it can be a program name with args.
36606 set dummy $ac_prog; ac_word=$2
36607 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36608 $as_echo_n "checking for $ac_word... " >&6; }
36609 if test "${ac_cv_path_SWIG+set}" = set; then
36610   $as_echo_n "(cached) " >&6
36611 else
36612   case $SWIG in
36613   [\\/]* | ?:[\\/]*)
36614   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36615   ;;
36616   *)
36617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36618 for as_dir in $LOCSYSPATH
36619 do
36620   IFS=$as_save_IFS
36621   test -z "$as_dir" && as_dir=.
36622   for ac_exec_ext in '' $ac_executable_extensions; do
36623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36624     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36625     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36626     break 2
36627   fi
36628 done
36629 done
36630 IFS=$as_save_IFS
36631
36632   ;;
36633 esac
36634 fi
36635 SWIG=$ac_cv_path_SWIG
36636 if test -n "$SWIG"; then
36637   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36638 $as_echo "$SWIG" >&6; }
36639 else
36640   { $as_echo "$as_me:$LINENO: result: no" >&5
36641 $as_echo "no" >&6; }
36642 fi
36643
36644
36645   test -n "$SWIG" && break
36646 done
36647
36648
36649     # 1.3.32 introduces a change in the way empty strings are handled (old versions
36650     # returned undef in Perl, while new versions return an empty Perl string)
36651     # 1.3.39 is required for the %begin block
36652
36653         # Extract the first word of "swig", so it can be a program name with args.
36654 set dummy swig; ac_word=$2
36655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36656 $as_echo_n "checking for $ac_word... " >&6; }
36657 if test "${ac_cv_path_SWIG+set}" = set; then
36658   $as_echo_n "(cached) " >&6
36659 else
36660   case $SWIG in
36661   [\\/]* | ?:[\\/]*)
36662   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
36663   ;;
36664   *)
36665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36666 for as_dir in $PATH
36667 do
36668   IFS=$as_save_IFS
36669   test -z "$as_dir" && as_dir=.
36670   for ac_exec_ext in '' $ac_executable_extensions; do
36671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36672     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
36673     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36674     break 2
36675   fi
36676 done
36677 done
36678 IFS=$as_save_IFS
36679
36680   ;;
36681 esac
36682 fi
36683 SWIG=$ac_cv_path_SWIG
36684 if test -n "$SWIG"; then
36685   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
36686 $as_echo "$SWIG" >&6; }
36687 else
36688   { $as_echo "$as_me:$LINENO: result: no" >&5
36689 $as_echo "no" >&6; }
36690 fi
36691
36692
36693         if test -z "$SWIG" ; then
36694                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
36695         elif test -n "1.3.39" ; then
36696                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
36697 $as_echo_n "checking for SWIG version... " >&6; }
36698                 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'`
36699                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
36700 $as_echo "$swig_version" >&6; }
36701                 if test -n "$swig_version" ; then
36702
36703   # Used to indicate true or false condition
36704   ax_compare_version=false
36705
36706   # Convert the two version strings to be compared into a format that
36707   # allows a simple string comparison.  The end result is that a version
36708   # string of the form 1.12.5-r617 will be converted to the form
36709   # 0001001200050617.  In other words, each number is zero padded to four
36710   # digits, and non digits are removed.
36711
36712   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36713                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36714                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36715                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36716                      -e 's/[^0-9]//g'`
36717
36718
36719   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36720                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36721                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36722                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36723                      -e 's/[^0-9]//g'`
36724
36725
36726     ax_compare_version=`echo "x$ax_compare_version_A
36727 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"`
36728
36729
36730
36731     if test "$ax_compare_version" = "true" ; then
36732
36733                                                     SWIG_LIB=`$SWIG -swiglib`
36734
36735     else
36736                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
36737
36738   fi
36739
36740                 else
36741                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
36742                 fi
36743         fi
36744
36745
36746
36747
36748
36749     for ac_prog in perl5 perl
36750 do
36751   # Extract the first word of "$ac_prog", so it can be a program name with args.
36752 set dummy $ac_prog; ac_word=$2
36753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36754 $as_echo_n "checking for $ac_word... " >&6; }
36755 if test "${ac_cv_path_PERL+set}" = set; then
36756   $as_echo_n "(cached) " >&6
36757 else
36758   case $PERL in
36759   [\\/]* | ?:[\\/]*)
36760   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36761   ;;
36762   *)
36763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36764 for as_dir in $LOCSYSPATH
36765 do
36766   IFS=$as_save_IFS
36767   test -z "$as_dir" && as_dir=.
36768   for ac_exec_ext in '' $ac_executable_extensions; do
36769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36770     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36772     break 2
36773   fi
36774 done
36775 done
36776 IFS=$as_save_IFS
36777
36778   ;;
36779 esac
36780 fi
36781 PERL=$ac_cv_path_PERL
36782 if test -n "$PERL"; then
36783   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36784 $as_echo "$PERL" >&6; }
36785 else
36786   { $as_echo "$as_me:$LINENO: result: no" >&5
36787 $as_echo "no" >&6; }
36788 fi
36789
36790
36791   test -n "$PERL" && break
36792 done
36793
36794
36795     # Make sure we have perl
36796 if test -z "$PERL"; then
36797 # Extract the first word of "perl", so it can be a program name with args.
36798 set dummy perl; ac_word=$2
36799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36800 $as_echo_n "checking for $ac_word... " >&6; }
36801 if test "${ac_cv_prog_PERL+set}" = set; then
36802   $as_echo_n "(cached) " >&6
36803 else
36804   if test -n "$PERL"; then
36805   ac_cv_prog_PERL="$PERL" # Let the user override the test.
36806 else
36807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36808 for as_dir in $PATH
36809 do
36810   IFS=$as_save_IFS
36811   test -z "$as_dir" && as_dir=.
36812   for ac_exec_ext in '' $ac_executable_extensions; do
36813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36814     ac_cv_prog_PERL="perl"
36815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36816     break 2
36817   fi
36818 done
36819 done
36820 IFS=$as_save_IFS
36821
36822 fi
36823 fi
36824 PERL=$ac_cv_prog_PERL
36825 if test -n "$PERL"; then
36826   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36827 $as_echo "$PERL" >&6; }
36828 else
36829   { $as_echo "$as_me:$LINENO: result: no" >&5
36830 $as_echo "no" >&6; }
36831 fi
36832
36833
36834 fi
36835
36836 # Check if version of Perl is sufficient
36837 ac_perl_version="5.6.0"
36838
36839 if test "x$PERL" != "x"; then
36840   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
36841 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
36842   # NB: It would be nice to log the error if there is one, but we cannot rely
36843   # on autoconf internals
36844   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
36845   if test $? -ne 0; then
36846     { $as_echo "$as_me:$LINENO: result: no" >&5
36847 $as_echo "no" >&6; };
36848
36849         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
36850 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
36851    { (exit 1); exit 1; }; }
36852
36853   else
36854     { $as_echo "$as_me:$LINENO: result: ok" >&5
36855 $as_echo "ok" >&6; };
36856
36857   fi
36858 else
36859   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
36860 $as_echo "$as_me: WARNING: could not find perl" >&2;}
36861 fi
36862
36863
36864
36865
36866
36867
36868     WANT_CYGWIN_COPY_PERL_DLL=false
36869     WANT_MANDATORY_THREAD_CHECK=false
36870
36871     # test for ExtUtils::Embed
36872     ac_perl_list_modules="ExtUtils::Embed 0.0"
36873 # Make sure we have perl
36874 if test -z "$PERL"; then
36875 # Extract the first word of "perl", so it can be a program name with args.
36876 set dummy perl; ac_word=$2
36877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
36878 $as_echo_n "checking for $ac_word... " >&6; }
36879 if test "${ac_cv_prog_PERL+set}" = set; then
36880   $as_echo_n "(cached) " >&6
36881 else
36882   if test -n "$PERL"; then
36883   ac_cv_prog_PERL="$PERL" # Let the user override the test.
36884 else
36885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36886 for as_dir in $PATH
36887 do
36888   IFS=$as_save_IFS
36889   test -z "$as_dir" && as_dir=.
36890   for ac_exec_ext in '' $ac_executable_extensions; do
36891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36892     ac_cv_prog_PERL="perl"
36893     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36894     break 2
36895   fi
36896 done
36897 done
36898 IFS=$as_save_IFS
36899
36900 fi
36901 fi
36902 PERL=$ac_cv_prog_PERL
36903 if test -n "$PERL"; then
36904   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
36905 $as_echo "$PERL" >&6; }
36906 else
36907   { $as_echo "$as_me:$LINENO: result: no" >&5
36908 $as_echo "no" >&6; }
36909 fi
36910
36911
36912 fi
36913
36914 # Check the number of arguments
36915 args_num=`echo $ac_perl_list_modules | wc -w`
36916 let "ckeck_args = $args_num % 2"
36917 if test "$check_args" = "1" ; then
36918   { { $as_echo "$as_me:$LINENO: error: syntax error" >&5
36919 $as_echo "$as_me: error: syntax error" >&2;}
36920    { (exit 1); exit 1; }; }
36921 else
36922   eval
36923 fi
36924
36925 if test "x$PERL" != x; then
36926   ac_failed=0
36927   while test ${#ac_perl_list_modules} -gt 2 ; do
36928         module_name=`echo $ac_perl_list_modules | cut -d " " -f 1`
36929         module_version=`echo $ac_perl_list_modules | cut -d " " -f 2`
36930         ac_perl_list_modules=`echo $ac_perl_list_modules | cut -d " " -f 3-`
36931         { $as_echo "$as_me:$LINENO: checking for perl module $module_name version $module_version" >&5
36932 $as_echo_n "checking for perl module $module_name version $module_version... " >&6; }
36933
36934         $PERL "-M$module_name" -e exit > /dev/null 2>&1
36935         if test $? -ne 0; then
36936           { $as_echo "$as_me:$LINENO: result: no" >&5
36937 $as_echo "no" >&6; };
36938           ac_failed=1
36939           ac_perl_list_modules=""
36940         else
36941           version=`$PERL "-M$module_name" -e 'print $'"$module_name::VERSION" 2>&1`
36942           $PERL -e 'exit(shift cmp shift)' "$version" "$module_version"
36943           if test $? -eq 0 -o $? -eq 1 ; then
36944             { $as_echo "$as_me:$LINENO: result: ok" >&5
36945 $as_echo "ok" >&6; };
36946           else
36947             { $as_echo "$as_me:$LINENO: result: no" >&5
36948 $as_echo "no" >&6; }
36949             ac_failed=1
36950             ac_perl_list_modules=""
36951           fi
36952         fi;
36953   done
36954
36955   if test "$ac_failed" = 0; then
36956     :
36957
36958   else
36959     :
36960
36961         { { $as_echo "$as_me:$LINENO: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&5
36962 $as_echo "$as_me: error: *** Amanda requires the perl package ExtUtils::Embed to build its perl modules" >&2;}
36963    { (exit 1); exit 1; }; }
36964
36965   fi
36966 else
36967   { { $as_echo "$as_me:$LINENO: error: could not find perl" >&5
36968 $as_echo "$as_me: error: could not find perl" >&2;}
36969    { (exit 1); exit 1; }; }
36970 fi
36971
36972     # get the include path for building perl extensions
36973     PERL_INC=`$PERL -MExtUtils::Embed -e perl_inc`
36974
36975
36976     if test x"$enable_shared" = x"no"; then
36977         { { $as_echo "$as_me:$LINENO: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&5
36978 $as_echo "$as_me: error: *** Amanda cannot be compiled without shared-library support (do not use --disable-shared)" >&2;}
36979    { (exit 1); exit 1; }; }
36980     fi
36981
36982     case "$host" in
36983         *freebsd[123456].*) # up to and including FreeBSD 6.*
36984             # Before 7.0, FreeBSD systems don't include a DT_NEEDS segment in
36985             # libgthread to automatically pull in the desired threading library.
36986             # Instead, they assume that any application linking against
36987             # libgthread will pull in the threading library.  This is fine for
36988             # Amanda C applications, but for Perl applications this assumption
36989             # means that the perl binary would pull in the threading library.
36990             # But perl is compiled without threading by default.
36991             #
36992             # Specifically, this occurs on any FreeBSD using gcc-3.*: the linking
36993             # decision is made in gcc's spec files, which were changed in
36994             # gcc-4.0.  For a more in-depth discussion, see
36995             #  http://wiki.zmanda.com/index.php/Installation/OS_Specific_Notes/Installing_Amanda_on_FreeBSD
36996             #
36997             # The easiest solution for the "default" case is to link all perl
36998             # extension libraries against the threading library, so it is loaded
36999             # when perl loads the extension library.  The default threading
37000             # library in FreeBSD is libpthread.  The below default will work on
37001             # such a FreeBSD system, but ports maintainers and those with
37002             # different configurations may need to override this value with
37003             # --with-perlextlibs.
37004             #
37005             # We can't use -pthread because gcc on FreeBSD ignores -pthread in
37006             # combination with -shared.  See
37007             #   http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026229.html
37008
37009             PERLEXTLIBS="-lpthread"
37010             WANT_MANDATORY_THREAD_CHECK=true
37011             ;;
37012
37013         *freebsd*) # all FreeBSD not matched above
37014             # for all FreeBSD (including 1.0-6.0, above), we want to run the
37015             # thread-check rule in perl/Makefile.am to double-check that a Perl
37016             # script can call a C extension that uses threads.
37017             WANT_MANDATORY_THREAD_CHECK=true
37018             ;;
37019
37020         *-pc-cygwin)
37021             # When need -lperl and the '-L' where it is located,
37022             # we don't want the DynaLoader.a
37023             PERLEXTLIBS=`perl -MExtUtils::Embed -e ldopts | sed -e 's/^.*-L/-L/'`
37024             # we want cygwin to copy ddl to modules directory.
37025             WANT_CYGWIN_COPY_PERL_DLL="true";
37026             ;;
37027     esac
37028      if $WANT_CYGWIN_COPY_PERL_DLL; then
37029   WANT_CYGWIN_COPY_PERL_DLL_TRUE=
37030   WANT_CYGWIN_COPY_PERL_DLL_FALSE='#'
37031 else
37032   WANT_CYGWIN_COPY_PERL_DLL_TRUE='#'
37033   WANT_CYGWIN_COPY_PERL_DLL_FALSE=
37034 fi
37035
37036      if $WANT_MANDATORY_THREAD_CHECK; then
37037   WANT_MANDATORY_THREAD_CHECK_TRUE=
37038   WANT_MANDATORY_THREAD_CHECK_FALSE='#'
37039 else
37040   WANT_MANDATORY_THREAD_CHECK_TRUE='#'
37041   WANT_MANDATORY_THREAD_CHECK_FALSE=
37042 fi
37043
37044
37045
37046 # Check whether --with-perlextlibs was given.
37047 if test "${with_perlextlibs+set}" = set; then
37048   withval=$with_perlextlibs;
37049             case "$withval" in
37050                 y|ye|yes) { { $as_echo "$as_me:$LINENO: error: *** You must specify a value for --with-perlextlibs" >&5
37051 $as_echo "$as_me: error: *** You must specify a value for --with-perlextlibs" >&2;}
37052    { (exit 1); exit 1; }; };;
37053                 n|no) PERLEXTLIBS='';;
37054                 *) PERLEXTLIBS="$withval" ;;
37055             esac
37056
37057 fi
37058
37059
37060
37061
37062
37063     # Extract the first word of "cat", so it can be a program name with args.
37064 set dummy cat; ac_word=$2
37065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37066 $as_echo_n "checking for $ac_word... " >&6; }
37067 if test "${ac_cv_path_CAT+set}" = set; then
37068   $as_echo_n "(cached) " >&6
37069 else
37070   case $CAT in
37071   [\\/]* | ?:[\\/]*)
37072   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
37073   ;;
37074   *)
37075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37076 for as_dir in $LOCSYSPATH
37077 do
37078   IFS=$as_save_IFS
37079   test -z "$as_dir" && as_dir=.
37080   for ac_exec_ext in '' $ac_executable_extensions; do
37081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37082     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
37083     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37084     break 2
37085   fi
37086 done
37087 done
37088 IFS=$as_save_IFS
37089
37090   test -z "$ac_cv_path_CAT" && ac_cv_path_CAT="cat"
37091   ;;
37092 esac
37093 fi
37094 CAT=$ac_cv_path_CAT
37095 if test -n "$CAT"; then
37096   { $as_echo "$as_me:$LINENO: result: $CAT" >&5
37097 $as_echo "$CAT" >&6; }
37098 else
37099   { $as_echo "$as_me:$LINENO: result: no" >&5
37100 $as_echo "no" >&6; }
37101 fi
37102
37103
37104
37105
37106
37107
37108
37109
37110     HAVE_GZIP=
37111     if test "$GZIP"; then
37112
37113 cat >>confdefs.h <<\_ACEOF
37114 #define HAVE_GZIP 1
37115 _ACEOF
37116
37117         HAVE_GZIP=1
37118         COMPRESS_PATH="$GZIP"
37119         COMPRESS_SUFFIX=".gz"
37120         COMPRESS_FAST_OPT="--fast"
37121         COMPRESS_BEST_OPT="--best"
37122         UNCOMPRESS_PATH="$GZIP"
37123         UNCOMPRESS_OPT="-dc"
37124     else
37125         if test "$COMPRESS"; then
37126             COMPRESS_PATH="$COMPRESS"
37127             COMPRESS_SUFFIX=".Z"
37128             COMPRESS_FAST_OPT="-f"
37129             COMPRESS_BEST_OPT="-f"
37130             UNCOMPRESS_PATH="$COMPRESS"
37131             UNCOMPRESS_OPT="-dc"
37132         else
37133             # If we have to use cat, we don't define COMPRESS_FAST_OPT,
37134             # COMPRESS_BEST_OPT, or UNCOMPRESS_OPT as "" since cat will look
37135             # look for a file by the name of "".
37136             # XXX is the above true? --dustin
37137
37138
37139     { $as_echo "$as_me:$LINENO: WARNING: Cannot find either gzip or compress.  Using cat." >&5
37140 $as_echo "$as_me: WARNING: Cannot find either gzip or compress.  Using cat." >&2;}
37141
37142
37143     cat <<AAW_EOF >>config.warnings
37144 Cannot find either gzip or compress.  Using cat.
37145 AAW_EOF
37146
37147
37148             COMPRESS_PATH="$CAT"
37149             COMPRESS_SUFFIX=""
37150             COMPRESS_FAST_OPT=""
37151             COMPRESS_BEST_OPT=""
37152             UNCOMPRESS_PATH="$CAT"
37153             UNCOMPRESS_OPT=""
37154         fi
37155     fi
37156
37157
37158 cat >>confdefs.h <<_ACEOF
37159 #define COMPRESS_PATH "$COMPRESS_PATH"
37160 _ACEOF
37161
37162
37163 cat >>confdefs.h <<_ACEOF
37164 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
37165 _ACEOF
37166
37167
37168 cat >>confdefs.h <<_ACEOF
37169 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
37170 _ACEOF
37171
37172
37173 cat >>confdefs.h <<_ACEOF
37174 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
37175 _ACEOF
37176
37177
37178 cat >>confdefs.h <<_ACEOF
37179 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
37180 _ACEOF
37181
37182
37183 cat >>confdefs.h <<_ACEOF
37184 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
37185 _ACEOF
37186
37187
37188
37189
37190
37191
37192
37193
37194
37195
37196     # Empty GZIP so that make dist works.
37197     GZIP=
37198
37199
37200     { $as_echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
37201 $as_echo_n "checking if sockaddr_storage struct exists... " >&6; }
37202 if test "${ac_cv_has_sockaddr_storage+set}" = set; then
37203   $as_echo_n "(cached) " >&6
37204 else
37205
37206         cat >conftest.$ac_ext <<_ACEOF
37207 /* confdefs.h.  */
37208 _ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h.  */
37212
37213 #       include <sys/types.h>
37214 #       include <sys/socket.h>
37215 int
37216 main ()
37217 {
37218 u_int i = sizeof (struct sockaddr_storage)
37219   ;
37220   return 0;
37221 }
37222 _ACEOF
37223 rm -f conftest.$ac_objext
37224 if { (ac_try="$ac_compile"
37225 case "(($ac_try" in
37226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37227   *) ac_try_echo=$ac_try;;
37228 esac
37229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37230 $as_echo "$ac_try_echo") >&5
37231   (eval "$ac_compile") 2>conftest.er1
37232   ac_status=$?
37233   grep -v '^ *+' conftest.er1 >conftest.err
37234   rm -f conftest.er1
37235   cat conftest.err >&5
37236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237   (exit $ac_status); } && {
37238          test -z "$ac_c_werror_flag" ||
37239          test ! -s conftest.err
37240        } && test -s conftest.$ac_objext; then
37241   ac_cv_has_sockaddr_storage=yes
37242 else
37243   $as_echo "$as_me: failed program was:" >&5
37244 sed 's/^/| /' conftest.$ac_ext >&5
37245
37246         ac_cv_has_sockaddr_storage=no
37247 fi
37248
37249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37250
37251 fi
37252 { $as_echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
37253 $as_echo "$ac_cv_has_sockaddr_storage" >&6; }
37254
37255     if test $ac_cv_has_sockaddr_storage = yes ; then
37256
37257 cat >>confdefs.h <<\_ACEOF
37258 #define HAVE_SOCKADDR_STORAGE 1
37259 _ACEOF
37260
37261     fi
37262
37263
37264
37265
37266     WORKING_IPV6=no
37267
37268 # Check whether --with-ipv6 was given.
37269 if test "${with_ipv6+set}" = set; then
37270   withval=$with_ipv6;
37271             case "$withval" in
37272             y | ye | yes) amanda_with_ipv6=yes;;
37273             n | no) amanda_with_ipv6=no;;
37274             *)
37275                 { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
37276 $as_echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
37277    { (exit 1); exit 1; }; }
37278               ;;
37279             esac
37280
37281 else
37282
37283             amanda_with_ipv6=maybe
37284
37285
37286 fi
37287
37288
37289     if test x"$amanda_with_ipv6" = x"yes" ||
37290        test x"$amanda_with_ipv6" = x"maybe" ; then
37291         { $as_echo "$as_me:$LINENO: checking for working IPv6" >&5
37292 $as_echo_n "checking for working IPv6... " >&6; }
37293 if test "${amanda_cv_working_ipv6+set}" = set; then
37294   $as_echo_n "(cached) " >&6
37295 else
37296
37297             case "$host" in
37298                 *-pc-cygwin) amanda_cv_working_ipv6=no;;
37299                 *)
37300                     if test "$cross_compiling" = yes; then
37301    amanda_cv_working_ipv6=yes
37302
37303 else
37304   cat >conftest.$ac_ext <<_ACEOF
37305 /* confdefs.h.  */
37306 _ACEOF
37307 cat confdefs.h >>conftest.$ac_ext
37308 cat >>conftest.$ac_ext <<_ACEOF
37309 /* end confdefs.h.  */
37310
37311 #include <sys/types.h>
37312 #ifdef HAVE_SYS_SOCKET_H
37313 #include <sys/socket.h>
37314 #endif
37315 #ifdef HAVE_NETINET_IN_H
37316 #include <netinet/in.h>
37317 #endif
37318 #ifdef HAVE_WINSOCK2_H
37319 #include <winsock2.h>
37320 #endif
37321 #include <sys/socket.h>
37322 #include <errno.h>
37323
37324 main()
37325 {
37326    int aa;
37327    aa = socket(AF_INET6, SOCK_STREAM, 0);
37328    if (aa > 0) return 0;
37329    return aa;
37330 }
37331 _ACEOF
37332 rm -f conftest$ac_exeext
37333 if { (ac_try="$ac_link"
37334 case "(($ac_try" in
37335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37336   *) ac_try_echo=$ac_try;;
37337 esac
37338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37339 $as_echo "$ac_try_echo") >&5
37340   (eval "$ac_link") 2>&5
37341   ac_status=$?
37342   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37344   { (case "(($ac_try" in
37345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37346   *) ac_try_echo=$ac_try;;
37347 esac
37348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37349 $as_echo "$ac_try_echo") >&5
37350   (eval "$ac_try") 2>&5
37351   ac_status=$?
37352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); }; }; then
37354    amanda_cv_working_ipv6=yes
37355 else
37356   $as_echo "$as_me: program exited with status $ac_status" >&5
37357 $as_echo "$as_me: failed program was:" >&5
37358 sed 's/^/| /' conftest.$ac_ext >&5
37359
37360 ( exit $ac_status )
37361  amanda_cv_working_ipv6=no
37362 fi
37363 rm -rf conftest.dSYM
37364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37365 fi
37366
37367
37368             esac
37369
37370 fi
37371 { $as_echo "$as_me:$LINENO: result: $amanda_cv_working_ipv6" >&5
37372 $as_echo "$amanda_cv_working_ipv6" >&6; }
37373
37374         if test "$amanda_cv_working_ipv6" = yes; then
37375             WORKING_IPV6=yes
37376
37377 cat >>confdefs.h <<\_ACEOF
37378 #define WORKING_IPV6 1
37379 _ACEOF
37380
37381         else
37382             # error out only if the user specifically requested support
37383             if test x"$amanda_with_ipv6" = x"yes"; then
37384                 { { $as_echo "$as_me:$LINENO: error: IPv6 support was requested, but opening an IPv6 socket failed" >&5
37385 $as_echo "$as_me: error: IPv6 support was requested, but opening an IPv6 socket failed" >&2;}
37386    { (exit 1); exit 1; }; }
37387             fi
37388         fi
37389     fi
37390
37391
37392
37393
37394
37395
37396
37397 ac_header_dirent=no
37398 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
37399   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
37400 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
37401 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
37402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37403   $as_echo_n "(cached) " >&6
37404 else
37405   cat >conftest.$ac_ext <<_ACEOF
37406 /* confdefs.h.  */
37407 _ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h.  */
37411 #include <sys/types.h>
37412 #include <$ac_hdr>
37413
37414 int
37415 main ()
37416 {
37417 if ((DIR *) 0)
37418 return 0;
37419   ;
37420   return 0;
37421 }
37422 _ACEOF
37423 rm -f conftest.$ac_objext
37424 if { (ac_try="$ac_compile"
37425 case "(($ac_try" in
37426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37427   *) ac_try_echo=$ac_try;;
37428 esac
37429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37430 $as_echo "$ac_try_echo") >&5
37431   (eval "$ac_compile") 2>conftest.er1
37432   ac_status=$?
37433   grep -v '^ *+' conftest.er1 >conftest.err
37434   rm -f conftest.er1
37435   cat conftest.err >&5
37436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437   (exit $ac_status); } && {
37438          test -z "$ac_c_werror_flag" ||
37439          test ! -s conftest.err
37440        } && test -s conftest.$ac_objext; then
37441   eval "$as_ac_Header=yes"
37442 else
37443   $as_echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37445
37446         eval "$as_ac_Header=no"
37447 fi
37448
37449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37450 fi
37451 ac_res=`eval 'as_val=${'$as_ac_Header'}
37452                  $as_echo "$as_val"'`
37453                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37454 $as_echo "$ac_res" >&6; }
37455 as_val=`eval 'as_val=${'$as_ac_Header'}
37456                  $as_echo "$as_val"'`
37457    if test "x$as_val" = x""yes; then
37458   cat >>confdefs.h <<_ACEOF
37459 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
37460 _ACEOF
37461
37462 ac_header_dirent=$ac_hdr; break
37463 fi
37464
37465 done
37466 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
37467 if test $ac_header_dirent = dirent.h; then
37468   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37469 $as_echo_n "checking for library containing opendir... " >&6; }
37470 if test "${ac_cv_search_opendir+set}" = set; then
37471   $as_echo_n "(cached) " >&6
37472 else
37473   ac_func_search_save_LIBS=$LIBS
37474 cat >conftest.$ac_ext <<_ACEOF
37475 /* confdefs.h.  */
37476 _ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h.  */
37480
37481 /* Override any GCC internal prototype to avoid an error.
37482    Use char because int might match the return type of a GCC
37483    builtin and then its argument prototype would still apply.  */
37484 #ifdef __cplusplus
37485 extern "C"
37486 #endif
37487 char opendir ();
37488 int
37489 main ()
37490 {
37491 return opendir ();
37492   ;
37493   return 0;
37494 }
37495 _ACEOF
37496 for ac_lib in '' dir; do
37497   if test -z "$ac_lib"; then
37498     ac_res="none required"
37499   else
37500     ac_res=-l$ac_lib
37501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37502   fi
37503   rm -f conftest.$ac_objext conftest$ac_exeext
37504 if { (ac_try="$ac_link"
37505 case "(($ac_try" in
37506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37507   *) ac_try_echo=$ac_try;;
37508 esac
37509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37510 $as_echo "$ac_try_echo") >&5
37511   (eval "$ac_link") 2>conftest.er1
37512   ac_status=$?
37513   grep -v '^ *+' conftest.er1 >conftest.err
37514   rm -f conftest.er1
37515   cat conftest.err >&5
37516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517   (exit $ac_status); } && {
37518          test -z "$ac_c_werror_flag" ||
37519          test ! -s conftest.err
37520        } && test -s conftest$ac_exeext && {
37521          test "$cross_compiling" = yes ||
37522          $as_test_x conftest$ac_exeext
37523        }; then
37524   ac_cv_search_opendir=$ac_res
37525 else
37526   $as_echo "$as_me: failed program was:" >&5
37527 sed 's/^/| /' conftest.$ac_ext >&5
37528
37529
37530 fi
37531
37532 rm -rf conftest.dSYM
37533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37534       conftest$ac_exeext
37535   if test "${ac_cv_search_opendir+set}" = set; then
37536   break
37537 fi
37538 done
37539 if test "${ac_cv_search_opendir+set}" = set; then
37540   :
37541 else
37542   ac_cv_search_opendir=no
37543 fi
37544 rm conftest.$ac_ext
37545 LIBS=$ac_func_search_save_LIBS
37546 fi
37547 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37548 $as_echo "$ac_cv_search_opendir" >&6; }
37549 ac_res=$ac_cv_search_opendir
37550 if test "$ac_res" != no; then
37551   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37552
37553 fi
37554
37555 else
37556   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
37557 $as_echo_n "checking for library containing opendir... " >&6; }
37558 if test "${ac_cv_search_opendir+set}" = set; then
37559   $as_echo_n "(cached) " >&6
37560 else
37561   ac_func_search_save_LIBS=$LIBS
37562 cat >conftest.$ac_ext <<_ACEOF
37563 /* confdefs.h.  */
37564 _ACEOF
37565 cat confdefs.h >>conftest.$ac_ext
37566 cat >>conftest.$ac_ext <<_ACEOF
37567 /* end confdefs.h.  */
37568
37569 /* Override any GCC internal prototype to avoid an error.
37570    Use char because int might match the return type of a GCC
37571    builtin and then its argument prototype would still apply.  */
37572 #ifdef __cplusplus
37573 extern "C"
37574 #endif
37575 char opendir ();
37576 int
37577 main ()
37578 {
37579 return opendir ();
37580   ;
37581   return 0;
37582 }
37583 _ACEOF
37584 for ac_lib in '' x; do
37585   if test -z "$ac_lib"; then
37586     ac_res="none required"
37587   else
37588     ac_res=-l$ac_lib
37589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
37590   fi
37591   rm -f conftest.$ac_objext conftest$ac_exeext
37592 if { (ac_try="$ac_link"
37593 case "(($ac_try" in
37594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37595   *) ac_try_echo=$ac_try;;
37596 esac
37597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37598 $as_echo "$ac_try_echo") >&5
37599   (eval "$ac_link") 2>conftest.er1
37600   ac_status=$?
37601   grep -v '^ *+' conftest.er1 >conftest.err
37602   rm -f conftest.er1
37603   cat conftest.err >&5
37604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605   (exit $ac_status); } && {
37606          test -z "$ac_c_werror_flag" ||
37607          test ! -s conftest.err
37608        } && test -s conftest$ac_exeext && {
37609          test "$cross_compiling" = yes ||
37610          $as_test_x conftest$ac_exeext
37611        }; then
37612   ac_cv_search_opendir=$ac_res
37613 else
37614   $as_echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37616
37617
37618 fi
37619
37620 rm -rf conftest.dSYM
37621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37622       conftest$ac_exeext
37623   if test "${ac_cv_search_opendir+set}" = set; then
37624   break
37625 fi
37626 done
37627 if test "${ac_cv_search_opendir+set}" = set; then
37628   :
37629 else
37630   ac_cv_search_opendir=no
37631 fi
37632 rm conftest.$ac_ext
37633 LIBS=$ac_func_search_save_LIBS
37634 fi
37635 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
37636 $as_echo "$ac_cv_search_opendir" >&6; }
37637 ac_res=$ac_cv_search_opendir
37638 if test "$ac_res" != no; then
37639   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
37640
37641 fi
37642
37643 fi
37644
37645
37646     # include the dirent headers as described in the autoconf documentation.
37647     { $as_echo "$as_me:$LINENO: checking whether readdir is declared" >&5
37648 $as_echo_n "checking whether readdir is declared... " >&6; }
37649 if test "${ac_cv_have_decl_readdir+set}" = set; then
37650   $as_echo_n "(cached) " >&6
37651 else
37652   cat >conftest.$ac_ext <<_ACEOF
37653 /* confdefs.h.  */
37654 _ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h.  */
37658
37659 #if HAVE_DIRENT_H
37660 # include <dirent.h>
37661 # define NAMLEN(dirent) strlen((dirent)->d_name)
37662 #else
37663 # define dirent direct
37664 # define NAMLEN(dirent) (dirent)->d_namlen
37665 # if HAVE_SYS_NDIR_H
37666 #  include <sys/ndir.h>
37667 # endif
37668 # if HAVE_SYS_DIR_H
37669 #  include <sys/dir.h>
37670 # endif
37671 # if HAVE_NDIR_H
37672 #  include <ndir.h>
37673 # endif
37674 #endif
37675
37676
37677 int
37678 main ()
37679 {
37680 #ifndef readdir
37681   (void) readdir;
37682 #endif
37683
37684   ;
37685   return 0;
37686 }
37687 _ACEOF
37688 rm -f conftest.$ac_objext
37689 if { (ac_try="$ac_compile"
37690 case "(($ac_try" in
37691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37692   *) ac_try_echo=$ac_try;;
37693 esac
37694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37695 $as_echo "$ac_try_echo") >&5
37696   (eval "$ac_compile") 2>conftest.er1
37697   ac_status=$?
37698   grep -v '^ *+' conftest.er1 >conftest.err
37699   rm -f conftest.er1
37700   cat conftest.err >&5
37701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702   (exit $ac_status); } && {
37703          test -z "$ac_c_werror_flag" ||
37704          test ! -s conftest.err
37705        } && test -s conftest.$ac_objext; then
37706   ac_cv_have_decl_readdir=yes
37707 else
37708   $as_echo "$as_me: failed program was:" >&5
37709 sed 's/^/| /' conftest.$ac_ext >&5
37710
37711         ac_cv_have_decl_readdir=no
37712 fi
37713
37714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 fi
37716 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir" >&5
37717 $as_echo "$ac_cv_have_decl_readdir" >&6; }
37718 if test "x$ac_cv_have_decl_readdir" = x""yes; then
37719
37720 cat >>confdefs.h <<_ACEOF
37721 #define HAVE_DECL_READDIR 1
37722 _ACEOF
37723
37724
37725 else
37726   cat >>confdefs.h <<_ACEOF
37727 #define HAVE_DECL_READDIR 0
37728 _ACEOF
37729
37730
37731 fi
37732 { $as_echo "$as_me:$LINENO: checking whether readdir_r is declared" >&5
37733 $as_echo_n "checking whether readdir_r is declared... " >&6; }
37734 if test "${ac_cv_have_decl_readdir_r+set}" = set; then
37735   $as_echo_n "(cached) " >&6
37736 else
37737   cat >conftest.$ac_ext <<_ACEOF
37738 /* confdefs.h.  */
37739 _ACEOF
37740 cat confdefs.h >>conftest.$ac_ext
37741 cat >>conftest.$ac_ext <<_ACEOF
37742 /* end confdefs.h.  */
37743
37744 #if HAVE_DIRENT_H
37745 # include <dirent.h>
37746 # define NAMLEN(dirent) strlen((dirent)->d_name)
37747 #else
37748 # define dirent direct
37749 # define NAMLEN(dirent) (dirent)->d_namlen
37750 # if HAVE_SYS_NDIR_H
37751 #  include <sys/ndir.h>
37752 # endif
37753 # if HAVE_SYS_DIR_H
37754 #  include <sys/dir.h>
37755 # endif
37756 # if HAVE_NDIR_H
37757 #  include <ndir.h>
37758 # endif
37759 #endif
37760
37761
37762 int
37763 main ()
37764 {
37765 #ifndef readdir_r
37766   (void) readdir_r;
37767 #endif
37768
37769   ;
37770   return 0;
37771 }
37772 _ACEOF
37773 rm -f conftest.$ac_objext
37774 if { (ac_try="$ac_compile"
37775 case "(($ac_try" in
37776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37777   *) ac_try_echo=$ac_try;;
37778 esac
37779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37780 $as_echo "$ac_try_echo") >&5
37781   (eval "$ac_compile") 2>conftest.er1
37782   ac_status=$?
37783   grep -v '^ *+' conftest.er1 >conftest.err
37784   rm -f conftest.er1
37785   cat conftest.err >&5
37786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787   (exit $ac_status); } && {
37788          test -z "$ac_c_werror_flag" ||
37789          test ! -s conftest.err
37790        } && test -s conftest.$ac_objext; then
37791   ac_cv_have_decl_readdir_r=yes
37792 else
37793   $as_echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37795
37796         ac_cv_have_decl_readdir_r=no
37797 fi
37798
37799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37800 fi
37801 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir_r" >&5
37802 $as_echo "$ac_cv_have_decl_readdir_r" >&6; }
37803 if test "x$ac_cv_have_decl_readdir_r" = x""yes; then
37804
37805 cat >>confdefs.h <<_ACEOF
37806 #define HAVE_DECL_READDIR_R 1
37807 _ACEOF
37808
37809
37810 else
37811   cat >>confdefs.h <<_ACEOF
37812 #define HAVE_DECL_READDIR_R 0
37813 _ACEOF
37814
37815
37816 fi
37817 { $as_echo "$as_me:$LINENO: checking whether readdir64 is declared" >&5
37818 $as_echo_n "checking whether readdir64 is declared... " >&6; }
37819 if test "${ac_cv_have_decl_readdir64+set}" = set; then
37820   $as_echo_n "(cached) " >&6
37821 else
37822   cat >conftest.$ac_ext <<_ACEOF
37823 /* confdefs.h.  */
37824 _ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h.  */
37828
37829 #if HAVE_DIRENT_H
37830 # include <dirent.h>
37831 # define NAMLEN(dirent) strlen((dirent)->d_name)
37832 #else
37833 # define dirent direct
37834 # define NAMLEN(dirent) (dirent)->d_namlen
37835 # if HAVE_SYS_NDIR_H
37836 #  include <sys/ndir.h>
37837 # endif
37838 # if HAVE_SYS_DIR_H
37839 #  include <sys/dir.h>
37840 # endif
37841 # if HAVE_NDIR_H
37842 #  include <ndir.h>
37843 # endif
37844 #endif
37845
37846
37847 int
37848 main ()
37849 {
37850 #ifndef readdir64
37851   (void) readdir64;
37852 #endif
37853
37854   ;
37855   return 0;
37856 }
37857 _ACEOF
37858 rm -f conftest.$ac_objext
37859 if { (ac_try="$ac_compile"
37860 case "(($ac_try" in
37861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37862   *) ac_try_echo=$ac_try;;
37863 esac
37864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37865 $as_echo "$ac_try_echo") >&5
37866   (eval "$ac_compile") 2>conftest.er1
37867   ac_status=$?
37868   grep -v '^ *+' conftest.er1 >conftest.err
37869   rm -f conftest.er1
37870   cat conftest.err >&5
37871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37872   (exit $ac_status); } && {
37873          test -z "$ac_c_werror_flag" ||
37874          test ! -s conftest.err
37875        } && test -s conftest.$ac_objext; then
37876   ac_cv_have_decl_readdir64=yes
37877 else
37878   $as_echo "$as_me: failed program was:" >&5
37879 sed 's/^/| /' conftest.$ac_ext >&5
37880
37881         ac_cv_have_decl_readdir64=no
37882 fi
37883
37884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37885 fi
37886 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64" >&5
37887 $as_echo "$ac_cv_have_decl_readdir64" >&6; }
37888 if test "x$ac_cv_have_decl_readdir64" = x""yes; then
37889
37890 cat >>confdefs.h <<_ACEOF
37891 #define HAVE_DECL_READDIR64 1
37892 _ACEOF
37893
37894
37895 else
37896   cat >>confdefs.h <<_ACEOF
37897 #define HAVE_DECL_READDIR64 0
37898 _ACEOF
37899
37900
37901 fi
37902 { $as_echo "$as_me:$LINENO: checking whether readdir64_r is declared" >&5
37903 $as_echo_n "checking whether readdir64_r is declared... " >&6; }
37904 if test "${ac_cv_have_decl_readdir64_r+set}" = set; then
37905   $as_echo_n "(cached) " >&6
37906 else
37907   cat >conftest.$ac_ext <<_ACEOF
37908 /* confdefs.h.  */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h.  */
37913
37914 #if HAVE_DIRENT_H
37915 # include <dirent.h>
37916 # define NAMLEN(dirent) strlen((dirent)->d_name)
37917 #else
37918 # define dirent direct
37919 # define NAMLEN(dirent) (dirent)->d_namlen
37920 # if HAVE_SYS_NDIR_H
37921 #  include <sys/ndir.h>
37922 # endif
37923 # if HAVE_SYS_DIR_H
37924 #  include <sys/dir.h>
37925 # endif
37926 # if HAVE_NDIR_H
37927 #  include <ndir.h>
37928 # endif
37929 #endif
37930
37931
37932 int
37933 main ()
37934 {
37935 #ifndef readdir64_r
37936   (void) readdir64_r;
37937 #endif
37938
37939   ;
37940   return 0;
37941 }
37942 _ACEOF
37943 rm -f conftest.$ac_objext
37944 if { (ac_try="$ac_compile"
37945 case "(($ac_try" in
37946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37947   *) ac_try_echo=$ac_try;;
37948 esac
37949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37950 $as_echo "$ac_try_echo") >&5
37951   (eval "$ac_compile") 2>conftest.er1
37952   ac_status=$?
37953   grep -v '^ *+' conftest.er1 >conftest.err
37954   rm -f conftest.er1
37955   cat conftest.err >&5
37956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957   (exit $ac_status); } && {
37958          test -z "$ac_c_werror_flag" ||
37959          test ! -s conftest.err
37960        } && test -s conftest.$ac_objext; then
37961   ac_cv_have_decl_readdir64_r=yes
37962 else
37963   $as_echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37965
37966         ac_cv_have_decl_readdir64_r=no
37967 fi
37968
37969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37970 fi
37971 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_readdir64_r" >&5
37972 $as_echo "$ac_cv_have_decl_readdir64_r" >&6; }
37973 if test "x$ac_cv_have_decl_readdir64_r" = x""yes; then
37974
37975 cat >>confdefs.h <<_ACEOF
37976 #define HAVE_DECL_READDIR64_R 1
37977 _ACEOF
37978
37979
37980 else
37981   cat >>confdefs.h <<_ACEOF
37982 #define HAVE_DECL_READDIR64_R 0
37983 _ACEOF
37984
37985
37986 fi
37987
37988
37989
37990
37991     # disk device prefixes
37992     { $as_echo "$as_me:$LINENO: checking disk device prefixes" >&5
37993 $as_echo_n "checking disk device prefixes... " >&6; }
37994
37995     # Use df to find the mount point for the root filesystem.  Use
37996     # the positional parameters to find the particular line from df
37997     # that contains the root paritition.  We put it in a subshell so
37998     # that the original positional parameters are not messed with.
37999     dfline=`(
38000         df / | while read line; do
38001             set -- $line
38002                     while test $# -gt 0; do
38003                 if test "x$1" = "x/"; then
38004                     echo $line
38005                     break 2
38006                 fi
38007                 shift
38008             done
38009         done
38010     ) | sed 's/(//' | sed 's/)//' `
38011
38012     # Search for the mount point by using expr to find the parameter
38013     # with dev in it.
38014     mount=`(
38015         set -- $dfline
38016                 while test $# -gt 0; do
38017             if expr "$1" : '.*dev' >/dev/null 2>&1; then
38018                 echo $1
38019                 break
38020             fi
38021             shift
38022         done
38023     )`
38024
38025     # get any system-specific configuration information
38026     case "$host" in
38027         *-hp-*)
38028             CLIENT_SCRIPTS_OPT=amhpfixdevs
38029             case $mount in
38030                 /dev/vg*)
38031
38032     { $as_echo "$as_me:$LINENO: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&5
38033 $as_echo "$as_me: WARNING: Run amhpfixdevs on HP-UX systems using /dev/vg??." >&2;}
38034
38035
38036     cat <<AAW_EOF >>config.warnings
38037 Run amhpfixdevs on HP-UX systems using /dev/vg??.
38038 AAW_EOF
38039
38040
38041                     ;;
38042             esac
38043             ;;
38044         *-sni-sysv4)
38045             DEV_PREFIX=/dev/dsk/
38046             RDEV_PREFIX=/dev/rdsk/
38047             CLIENT_SCRIPTS_OPT=amsinixfixdevs
38048             if ! test -d /dev/dsk; then
38049
38050     { $as_echo "$as_me:$LINENO: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&5
38051 $as_echo "$as_me: WARNING: Run amsinixfixdevs on Sinix systems using VxFS." >&2;}
38052
38053
38054     cat <<AAW_EOF >>config.warnings
38055 Run amsinixfixdevs on Sinix systems using VxFS.
38056 AAW_EOF
38057
38058
38059             fi
38060             ;;
38061         *-sco3.2v4*)
38062             DEV_PREFIX=/dev/
38063             RDEV_PREFIX=/dev/
38064             ;;
38065         *)
38066             CLIENT_SCRIPTS_OPT=
38067             ;;
38068     esac
38069
38070     if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
38071         { $as_echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
38072 $as_echo "(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6; }
38073     else
38074         if test -d /dev/dsk; then
38075             DEV_PREFIX=/dev/dsk/
38076             if test -d /dev/rdsk; then
38077                 RDEV_PREFIX=/dev/rdsk/
38078             else
38079                 RDEV_PREFIX=/dev/dsk/
38080             fi
38081         elif test -d /dev; then
38082             DEV_PREFIX=/dev/
38083
38084             # Some systems, notably Linux, do not have raw disk devices
38085             # names.  Check this by trying to see if a raw disk device name
38086             # exists using the normal raw device path prepended to the
38087             # mount point of the root filesystem.
38088             if test "$mount"; then
38089                 dev_name="/dev/r`basename $mount`"
38090                 if test -b $dev_name -o -c $dev_name; then
38091                     RDEV_PREFIX=/dev/r
38092                 else
38093                     RDEV_PREFIX=/dev/
38094                 fi
38095             else
38096                 RDEV_PREFIX=/dev/r
38097             fi
38098         else
38099             # just fake it..
38100             DEV_PREFIX=/
38101             RDEV_PREFIX=/
38102         fi
38103         { $as_echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
38104 $as_echo "$DEV_PREFIX - $RDEV_PREFIX" >&6; }
38105     fi
38106
38107
38108 cat >>confdefs.h <<_ACEOF
38109 #define DEV_PREFIX "${DEV_PREFIX}"
38110 _ACEOF
38111
38112
38113 cat >>confdefs.h <<_ACEOF
38114 #define RDEV_PREFIX "${RDEV_PREFIX}"
38115 _ACEOF
38116
38117
38118
38119
38120     case "$host" in
38121         *-dec-osf*)
38122                     ;;
38123         *-dg-*)
38124                     ;;
38125         *-netbsd*)
38126                     ;;
38127         *-freebsd*)
38128                     ;;
38129         *-openbsd*)
38130                     ;;
38131         *-hp-*)
38132                     case "$CC" in
38133                         *gcc*)
38134                             CPPFLAGS="$CPPFLAGS -D__STDC_EXT__"
38135
38136                             ;;
38137                         *cc*)
38138                             CFLAGS="$CFLAGS -Ae"
38139
38140                             ;;
38141                     esac
38142                     ;;
38143         *-ibm-aix*)
38144                     ;;
38145         m88k-motorola-sysv4)
38146                     ;;
38147         *-nextstep3)
38148                     ;;
38149         *-pc-bsdi*)
38150                     ;;
38151         *-pc-linux-*)
38152                     ;;
38153         *-redhat-linux-*)
38154                     ;;
38155         *-suse-linux-*)
38156                     ;;
38157         x86_64-*-linux-*)
38158                     ;;
38159         alpha*-*-linux-*)
38160                     ;;
38161         sparc*-*-linux-*)
38162                     ;;
38163         powerpc-*-linux-*)
38164                     ;;
38165         *-sgi-irix3*)
38166                     # The old cc won't work!
38167                     if test "x$GCC" != "xyes"; then
38168                         { { $as_echo "$as_me:$LINENO: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&5
38169 $as_echo "$as_me: error: The old SGI IRIX compiler ($CC) will not compile Amanda; use CC=gcc" >&2;}
38170    { (exit 1); exit 1; }; }
38171                     fi
38172                     ;;
38173         *-sgi-irix4*)
38174                     ;;
38175         *-sgi-irix5*)
38176                     ;;
38177         *-sgi-irix6*)
38178                     ;;
38179         *-solaris2*)
38180                     ;;
38181         *-sun-sunos4.1*)
38182                     ;;
38183         *-ultrix*)
38184                     ;;
38185         *-sysv4.2uw2*)
38186                     ;;
38187         *-sco3.2v5*)
38188                     ;;
38189         i386-pc-isc4*)
38190                     ;;
38191         *-sni-sysv4)
38192                     ;;
38193         *-pc-cygwin)
38194
38195 cat >>confdefs.h <<\_ACEOF
38196 #define IGNORE_TAR_ERRORS 1
38197 _ACEOF
38198
38199                     # Cygwin needs PATH to find cygwin1.dll
38200
38201 cat >>confdefs.h <<\_ACEOF
38202 #define NEED_PATH_ENV 1
38203 _ACEOF
38204
38205
38206 cat >>confdefs.h <<\_ACEOF
38207 #define IGNORE_FSTAB 1
38208 _ACEOF
38209
38210                     LDFLAGS="$LDFLAGS -Wl,-enable-runtime-pseudo-reloc -no-undefined"
38211
38212                     ;;
38213         *-apple-darwin7*) # MacOS X 10.3.* (Panther)
38214                     ;;
38215         *-apple-darwin8*) # MacOS X 10.4.* (Tiger)
38216                     ;;
38217         *-apple-darwin9*) # MacOS X 10.5.* (Leopard)
38218                     ;;
38219         *-apple-darwin10*) # MacOS X 10.6.* (Snow Leopard)
38220                     ;;
38221       *)
38222
38223
38224     cat <<AAW_EOF >>config.warnings
38225 *****
38226 This machine, target type $host, is not known to be fully supported
38227 by this configure script.  If the installation of Amanda on this system
38228 succeeds or needed any patches, please email amanda-hackers@amanda.org
38229 with the patches or an indication of the sucess or failure of the
38230 Amanda installation on your system.
38231 *****
38232 AAW_EOF
38233
38234                     ;;
38235     esac
38236
38237
38238
38239
38240
38241   prefix_NONE=
38242   exec_prefix_NONE=
38243   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38244   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38245   eval ac_define_dir="\"$bindir\""
38246   eval ac_define_dir="\"$ac_define_dir\""
38247   bindir="$ac_define_dir"
38248
38249
38250 cat >>confdefs.h <<_ACEOF
38251 #define bindir "$ac_define_dir"
38252 _ACEOF
38253
38254   test "$prefix_NONE" && prefix=NONE
38255   test "$exec_prefix_NONE" && exec_prefix=NONE
38256
38257
38258
38259   prefix_NONE=
38260   exec_prefix_NONE=
38261   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38262   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38263   eval ac_define_dir="\"$sbindir\""
38264   eval ac_define_dir="\"$ac_define_dir\""
38265   sbindir="$ac_define_dir"
38266
38267
38268 cat >>confdefs.h <<_ACEOF
38269 #define sbindir "$ac_define_dir"
38270 _ACEOF
38271
38272   test "$prefix_NONE" && prefix=NONE
38273   test "$exec_prefix_NONE" && exec_prefix=NONE
38274
38275
38276
38277   prefix_NONE=
38278   exec_prefix_NONE=
38279   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38280   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38281   eval ac_define_dir="\"$libexecdir\""
38282   eval ac_define_dir="\"$ac_define_dir\""
38283   libexecdir="$ac_define_dir"
38284
38285
38286 cat >>confdefs.h <<_ACEOF
38287 #define libexecdir "$ac_define_dir"
38288 _ACEOF
38289
38290   test "$prefix_NONE" && prefix=NONE
38291   test "$exec_prefix_NONE" && exec_prefix=NONE
38292
38293
38294
38295   prefix_NONE=
38296   exec_prefix_NONE=
38297   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38298   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38299   eval ac_define_dir="\"$mandir\""
38300   eval ac_define_dir="\"$ac_define_dir\""
38301   mandir="$ac_define_dir"
38302
38303
38304 cat >>confdefs.h <<_ACEOF
38305 #define mandir "$ac_define_dir"
38306 _ACEOF
38307
38308   test "$prefix_NONE" && prefix=NONE
38309   test "$exec_prefix_NONE" && exec_prefix=NONE
38310
38311
38312
38313     # amanda-specific directories
38314     AMLIBDIR=$libdir/amanda
38315
38316 # Check whether --with-amlibdir was given.
38317 if test "${with_amlibdir+set}" = set; then
38318   withval=$with_amlibdir;
38319             case "$withval" in
38320                 n | no) AMLIBDIR=$libdir ;;
38321                 y | ye | yes) AMLIBDIR=$libdir/amanda ;;
38322                 *) AMLIBDIR=$withval ;;
38323             esac
38324
38325
38326 fi
38327
38328
38329   prefix_NONE=
38330   exec_prefix_NONE=
38331   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38332   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38333   eval ac_define_dir="\"$AMLIBDIR\""
38334   eval ac_define_dir="\"$ac_define_dir\""
38335   amlibdir="$ac_define_dir"
38336
38337
38338 cat >>confdefs.h <<_ACEOF
38339 #define amlibdir "$ac_define_dir"
38340 _ACEOF
38341
38342   test "$prefix_NONE" && prefix=NONE
38343   test "$exec_prefix_NONE" && exec_prefix=NONE
38344
38345
38346     AMLIBEXECDIR=$libexecdir/amanda
38347
38348 # Check whether --with-amlibexecdir was given.
38349 if test "${with_amlibexecdir+set}" = set; then
38350   withval=$with_amlibexecdir;
38351             case "$withval" in
38352                 n | no) AMLIBEXECDIR=$libexecdir ;;
38353                 y | ye | yes) AMLIBEXECDIR=$libexecdir/amanda ;;
38354                 *) AMLIBEXECDIR=$withval ;;
38355             esac
38356
38357
38358 fi
38359
38360
38361   prefix_NONE=
38362   exec_prefix_NONE=
38363   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38364   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38365   eval ac_define_dir="\"$AMLIBEXECDIR\""
38366   eval ac_define_dir="\"$ac_define_dir\""
38367   amlibexecdir="$ac_define_dir"
38368
38369
38370 cat >>confdefs.h <<_ACEOF
38371 #define amlibexecdir "$ac_define_dir"
38372 _ACEOF
38373
38374   test "$prefix_NONE" && prefix=NONE
38375   test "$exec_prefix_NONE" && exec_prefix=NONE
38376
38377
38378     amincludedir="${includedir}/amanda"
38379
38380   prefix_NONE=
38381   exec_prefix_NONE=
38382   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38383   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38384   eval ac_define_dir="\"$amincludedir\""
38385   eval ac_define_dir="\"$ac_define_dir\""
38386   amincludedir="$ac_define_dir"
38387
38388
38389 cat >>confdefs.h <<_ACEOF
38390 #define amincludedir "$ac_define_dir"
38391 _ACEOF
38392
38393   test "$prefix_NONE" && prefix=NONE
38394   test "$exec_prefix_NONE" && exec_prefix=NONE
38395
38396
38397
38398 # Check whether --with-amperldir was given.
38399 if test "${with_amperldir+set}" = set; then
38400   withval=$with_amperldir;
38401             case "$withval" in
38402                 y | ye | yes) AMPERLLIB=DEFAULT ;;
38403                 n | no) AMPERLLIB=$amlibdir/perl ;;
38404                 *) AMPERLLIB=$withval ;;
38405             esac
38406
38407 else
38408
38409             AMPERLLIB=DEFAULT
38410
38411
38412 fi
38413
38414     # apply the default if no value was given.
38415     if test x"$AMPERLLIB" = x"DEFAULT"; then
38416         eval `$PERL -V:installsitelib`
38417         AMPERLLIB=$installsitelib
38418     fi
38419
38420   prefix_NONE=
38421   exec_prefix_NONE=
38422   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38423   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38424   eval ac_define_dir="\"$AMPERLLIB\""
38425   eval ac_define_dir="\"$ac_define_dir\""
38426   amperldir="$ac_define_dir"
38427
38428
38429 cat >>confdefs.h <<_ACEOF
38430 #define amperldir "$ac_define_dir"
38431 _ACEOF
38432
38433   test "$prefix_NONE" && prefix=NONE
38434   test "$exec_prefix_NONE" && exec_prefix=NONE
38435
38436
38437     APPLICATION_DIR='${amlibexecdir}/application'
38438
38439   prefix_NONE=
38440   exec_prefix_NONE=
38441   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38442   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38443   eval ac_define_dir="\"$APPLICATION_DIR\""
38444   eval ac_define_dir="\"$ac_define_dir\""
38445   APPLICATION_DIR="$ac_define_dir"
38446
38447
38448 cat >>confdefs.h <<_ACEOF
38449 #define APPLICATION_DIR "$ac_define_dir"
38450 _ACEOF
38451
38452   test "$prefix_NONE" && prefix=NONE
38453   test "$exec_prefix_NONE" && exec_prefix=NONE
38454
38455
38456
38457 # Check whether --with-amdatadir was given.
38458 if test "${with_amdatadir+set}" = set; then
38459   withval=$with_amdatadir;
38460             AMDATADIR=$withval
38461
38462 else
38463
38464             AMDATADIR=$datadir/amanda
38465
38466
38467 fi
38468
38469
38470   prefix_NONE=
38471   exec_prefix_NONE=
38472   test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
38473   test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
38474   eval ac_define_dir="\"$AMDATADIR\""
38475   eval ac_define_dir="\"$ac_define_dir\""
38476   amdatadir="$ac_define_dir"
38477
38478
38479 cat >>confdefs.h <<_ACEOF
38480 #define amdatadir "$ac_define_dir"
38481 _ACEOF
38482
38483   test "$prefix_NONE" && prefix=NONE
38484   test "$exec_prefix_NONE" && exec_prefix=NONE
38485
38486
38487
38488 #
38489 # Internationalization
38490 #
38491
38492     # FreeBSD needs to link libxpg4
38493
38494 { $as_echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
38495 $as_echo_n "checking for setlocale in -lxpg4... " >&6; }
38496 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
38497   $as_echo_n "(cached) " >&6
38498 else
38499   ac_check_lib_save_LIBS=$LIBS
38500 LIBS="-lxpg4  $LIBS"
38501 cat >conftest.$ac_ext <<_ACEOF
38502 /* confdefs.h.  */
38503 _ACEOF
38504 cat confdefs.h >>conftest.$ac_ext
38505 cat >>conftest.$ac_ext <<_ACEOF
38506 /* end confdefs.h.  */
38507
38508 /* Override any GCC internal prototype to avoid an error.
38509    Use char because int might match the return type of a GCC
38510    builtin and then its argument prototype would still apply.  */
38511 #ifdef __cplusplus
38512 extern "C"
38513 #endif
38514 char setlocale ();
38515 int
38516 main ()
38517 {
38518 return setlocale ();
38519   ;
38520   return 0;
38521 }
38522 _ACEOF
38523 rm -f conftest.$ac_objext conftest$ac_exeext
38524 if { (ac_try="$ac_link"
38525 case "(($ac_try" in
38526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38527   *) ac_try_echo=$ac_try;;
38528 esac
38529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38530 $as_echo "$ac_try_echo") >&5
38531   (eval "$ac_link") 2>conftest.er1
38532   ac_status=$?
38533   grep -v '^ *+' conftest.er1 >conftest.err
38534   rm -f conftest.er1
38535   cat conftest.err >&5
38536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38537   (exit $ac_status); } && {
38538          test -z "$ac_c_werror_flag" ||
38539          test ! -s conftest.err
38540        } && test -s conftest$ac_exeext && {
38541          test "$cross_compiling" = yes ||
38542          $as_test_x conftest$ac_exeext
38543        }; then
38544   ac_cv_lib_xpg4_setlocale=yes
38545 else
38546   $as_echo "$as_me: failed program was:" >&5
38547 sed 's/^/| /' conftest.$ac_ext >&5
38548
38549         ac_cv_lib_xpg4_setlocale=no
38550 fi
38551
38552 rm -rf conftest.dSYM
38553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38554       conftest$ac_exeext conftest.$ac_ext
38555 LIBS=$ac_check_lib_save_LIBS
38556 fi
38557 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
38558 $as_echo "$ac_cv_lib_xpg4_setlocale" >&6; }
38559 if test "x$ac_cv_lib_xpg4_setlocale" = x""yes; then
38560   cat >>confdefs.h <<_ACEOF
38561 #define HAVE_LIBXPG4 1
38562 _ACEOF
38563
38564   LIBS="-lxpg4 $LIBS"
38565
38566 fi
38567
38568
38569     # ------------------------------------------------------------------
38570     # All list of languages for which a translation exist. Each
38571     #  language is separated by a space.
38572     # ------------------------------------------------------------------
38573     ALL_LINGUAS=""
38574
38575
38576     # Extract the first word of "msgfmt", so it can be a program name with args.
38577 set dummy msgfmt; ac_word=$2
38578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38579 $as_echo_n "checking for $ac_word... " >&6; }
38580 if test "${ac_cv_path_MSGFMT+set}" = set; then
38581   $as_echo_n "(cached) " >&6
38582 else
38583   case $MSGFMT in
38584   [\\/]* | ?:[\\/]*)
38585   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38586   ;;
38587   *)
38588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38589 for as_dir in $LOCSYSPATH
38590 do
38591   IFS=$as_save_IFS
38592   test -z "$as_dir" && as_dir=.
38593   for ac_exec_ext in '' $ac_executable_extensions; do
38594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38595     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
38596     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38597     break 2
38598   fi
38599 done
38600 done
38601 IFS=$as_save_IFS
38602
38603   ;;
38604 esac
38605 fi
38606 MSGFMT=$ac_cv_path_MSGFMT
38607 if test -n "$MSGFMT"; then
38608   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38609 $as_echo "$MSGFMT" >&6; }
38610 else
38611   { $as_echo "$as_me:$LINENO: result: no" >&5
38612 $as_echo "no" >&6; }
38613 fi
38614
38615
38616     # Extract the first word of "gettext", so it can be a program name with args.
38617 set dummy gettext; ac_word=$2
38618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38619 $as_echo_n "checking for $ac_word... " >&6; }
38620 if test "${ac_cv_path_GETTEXT+set}" = set; then
38621   $as_echo_n "(cached) " >&6
38622 else
38623   case $GETTEXT in
38624   [\\/]* | ?:[\\/]*)
38625   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
38626   ;;
38627   *)
38628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38629 for as_dir in $LOCSYSPATH
38630 do
38631   IFS=$as_save_IFS
38632   test -z "$as_dir" && as_dir=.
38633   for ac_exec_ext in '' $ac_executable_extensions; do
38634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38635     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
38636     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38637     break 2
38638   fi
38639 done
38640 done
38641 IFS=$as_save_IFS
38642
38643   ;;
38644 esac
38645 fi
38646 GETTEXT=$ac_cv_path_GETTEXT
38647 if test -n "$GETTEXT"; then
38648   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
38649 $as_echo "$GETTEXT" >&6; }
38650 else
38651   { $as_echo "$as_me:$LINENO: result: no" >&5
38652 $as_echo "no" >&6; }
38653 fi
38654
38655
38656
38657
38658
38659   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
38660 $as_echo_n "checking whether NLS is requested... " >&6; }
38661     # Check whether --enable-nls was given.
38662 if test "${enable_nls+set}" = set; then
38663   enableval=$enable_nls; USE_NLS=$enableval
38664 else
38665   USE_NLS=yes
38666 fi
38667
38668   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
38669 $as_echo "$USE_NLS" >&6; }
38670
38671
38672
38673
38674
38675
38676 # Prepare PATH_SEPARATOR.
38677 # The user is always right.
38678 if test "${PATH_SEPARATOR+set}" != set; then
38679   echo "#! /bin/sh" >conf$$.sh
38680   echo  "exit 0"   >>conf$$.sh
38681   chmod +x conf$$.sh
38682   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38683     PATH_SEPARATOR=';'
38684   else
38685     PATH_SEPARATOR=:
38686   fi
38687   rm -f conf$$.sh
38688 fi
38689
38690 # Find out how to test for executable files. Don't use a zero-byte file,
38691 # as systems may use methods other than mode bits to determine executability.
38692 cat >conf$$.file <<_ASEOF
38693 #! /bin/sh
38694 exit 0
38695 _ASEOF
38696 chmod +x conf$$.file
38697 if test -x conf$$.file >/dev/null 2>&1; then
38698   ac_executable_p="test -x"
38699 else
38700   ac_executable_p="test -f"
38701 fi
38702 rm -f conf$$.file
38703
38704 # Extract the first word of "msgfmt", so it can be a program name with args.
38705 set dummy msgfmt; ac_word=$2
38706 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38707 $as_echo_n "checking for $ac_word... " >&6; }
38708 if test "${ac_cv_path_MSGFMT+set}" = set; then
38709   $as_echo_n "(cached) " >&6
38710 else
38711   case "$MSGFMT" in
38712   [\\/]* | ?:[\\/]*)
38713     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
38714     ;;
38715   *)
38716     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38717     for ac_dir in $PATH; do
38718       IFS="$ac_save_IFS"
38719       test -z "$ac_dir" && ac_dir=.
38720       for ac_exec_ext in '' $ac_executable_extensions; do
38721         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38722           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38723           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
38724      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
38725             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
38726             break 2
38727           fi
38728         fi
38729       done
38730     done
38731     IFS="$ac_save_IFS"
38732   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
38733     ;;
38734 esac
38735 fi
38736 MSGFMT="$ac_cv_path_MSGFMT"
38737 if test "$MSGFMT" != ":"; then
38738   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
38739 $as_echo "$MSGFMT" >&6; }
38740 else
38741   { $as_echo "$as_me:$LINENO: result: no" >&5
38742 $as_echo "no" >&6; }
38743 fi
38744
38745   # Extract the first word of "gmsgfmt", so it can be a program name with args.
38746 set dummy gmsgfmt; 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_GMSGFMT+set}" = set; then
38750   $as_echo_n "(cached) " >&6
38751 else
38752   case $GMSGFMT in
38753   [\\/]* | ?:[\\/]*)
38754   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
38755   ;;
38756   *)
38757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38758 for as_dir in $PATH
38759 do
38760   IFS=$as_save_IFS
38761   test -z "$as_dir" && as_dir=.
38762   for ac_exec_ext in '' $ac_executable_extensions; do
38763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38764     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
38765     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38766     break 2
38767   fi
38768 done
38769 done
38770 IFS=$as_save_IFS
38771
38772   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
38773   ;;
38774 esac
38775 fi
38776 GMSGFMT=$ac_cv_path_GMSGFMT
38777 if test -n "$GMSGFMT"; then
38778   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
38779 $as_echo "$GMSGFMT" >&6; }
38780 else
38781   { $as_echo "$as_me:$LINENO: result: no" >&5
38782 $as_echo "no" >&6; }
38783 fi
38784
38785
38786
38787     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38788     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
38789     *) MSGFMT_015=$MSGFMT ;;
38790   esac
38791
38792   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38793     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
38794     *) GMSGFMT_015=$GMSGFMT ;;
38795   esac
38796
38797
38798
38799 # Prepare PATH_SEPARATOR.
38800 # The user is always right.
38801 if test "${PATH_SEPARATOR+set}" != set; then
38802   echo "#! /bin/sh" >conf$$.sh
38803   echo  "exit 0"   >>conf$$.sh
38804   chmod +x conf$$.sh
38805   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38806     PATH_SEPARATOR=';'
38807   else
38808     PATH_SEPARATOR=:
38809   fi
38810   rm -f conf$$.sh
38811 fi
38812
38813 # Find out how to test for executable files. Don't use a zero-byte file,
38814 # as systems may use methods other than mode bits to determine executability.
38815 cat >conf$$.file <<_ASEOF
38816 #! /bin/sh
38817 exit 0
38818 _ASEOF
38819 chmod +x conf$$.file
38820 if test -x conf$$.file >/dev/null 2>&1; then
38821   ac_executable_p="test -x"
38822 else
38823   ac_executable_p="test -f"
38824 fi
38825 rm -f conf$$.file
38826
38827 # Extract the first word of "xgettext", so it can be a program name with args.
38828 set dummy xgettext; ac_word=$2
38829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38830 $as_echo_n "checking for $ac_word... " >&6; }
38831 if test "${ac_cv_path_XGETTEXT+set}" = set; then
38832   $as_echo_n "(cached) " >&6
38833 else
38834   case "$XGETTEXT" in
38835   [\\/]* | ?:[\\/]*)
38836     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
38837     ;;
38838   *)
38839     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38840     for ac_dir in $PATH; do
38841       IFS="$ac_save_IFS"
38842       test -z "$ac_dir" && ac_dir=.
38843       for ac_exec_ext in '' $ac_executable_extensions; do
38844         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38845           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38846           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
38847      (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
38848             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
38849             break 2
38850           fi
38851         fi
38852       done
38853     done
38854     IFS="$ac_save_IFS"
38855   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
38856     ;;
38857 esac
38858 fi
38859 XGETTEXT="$ac_cv_path_XGETTEXT"
38860 if test "$XGETTEXT" != ":"; then
38861   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
38862 $as_echo "$XGETTEXT" >&6; }
38863 else
38864   { $as_echo "$as_me:$LINENO: result: no" >&5
38865 $as_echo "no" >&6; }
38866 fi
38867
38868     rm -f messages.po
38869
38870     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
38871     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
38872     *) XGETTEXT_015=$XGETTEXT ;;
38873   esac
38874
38875
38876
38877 # Prepare PATH_SEPARATOR.
38878 # The user is always right.
38879 if test "${PATH_SEPARATOR+set}" != set; then
38880   echo "#! /bin/sh" >conf$$.sh
38881   echo  "exit 0"   >>conf$$.sh
38882   chmod +x conf$$.sh
38883   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38884     PATH_SEPARATOR=';'
38885   else
38886     PATH_SEPARATOR=:
38887   fi
38888   rm -f conf$$.sh
38889 fi
38890
38891 # Find out how to test for executable files. Don't use a zero-byte file,
38892 # as systems may use methods other than mode bits to determine executability.
38893 cat >conf$$.file <<_ASEOF
38894 #! /bin/sh
38895 exit 0
38896 _ASEOF
38897 chmod +x conf$$.file
38898 if test -x conf$$.file >/dev/null 2>&1; then
38899   ac_executable_p="test -x"
38900 else
38901   ac_executable_p="test -f"
38902 fi
38903 rm -f conf$$.file
38904
38905 # Extract the first word of "msgmerge", so it can be a program name with args.
38906 set dummy msgmerge; ac_word=$2
38907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38908 $as_echo_n "checking for $ac_word... " >&6; }
38909 if test "${ac_cv_path_MSGMERGE+set}" = set; then
38910   $as_echo_n "(cached) " >&6
38911 else
38912   case "$MSGMERGE" in
38913   [\\/]* | ?:[\\/]*)
38914     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
38915     ;;
38916   *)
38917     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
38918     for ac_dir in $PATH; do
38919       IFS="$ac_save_IFS"
38920       test -z "$ac_dir" && ac_dir=.
38921       for ac_exec_ext in '' $ac_executable_extensions; do
38922         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
38923           echo "$as_me: trying $ac_dir/$ac_word..." >&5
38924           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
38925             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
38926             break 2
38927           fi
38928         fi
38929       done
38930     done
38931     IFS="$ac_save_IFS"
38932   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
38933     ;;
38934 esac
38935 fi
38936 MSGMERGE="$ac_cv_path_MSGMERGE"
38937 if test "$MSGMERGE" != ":"; then
38938   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
38939 $as_echo "$MSGMERGE" >&6; }
38940 else
38941   { $as_echo "$as_me:$LINENO: result: no" >&5
38942 $as_echo "no" >&6; }
38943 fi
38944
38945
38946         test -n "$localedir" || localedir='${datadir}/locale'
38947
38948
38949   ac_config_commands="$ac_config_commands po-directories"
38950
38951
38952
38953
38954
38955
38956
38957
38958
38959     use_additional=yes
38960
38961   acl_save_prefix="$prefix"
38962   prefix="$acl_final_prefix"
38963   acl_save_exec_prefix="$exec_prefix"
38964   exec_prefix="$acl_final_exec_prefix"
38965
38966     eval additional_includedir=\"$includedir\"
38967     eval additional_libdir=\"$libdir\"
38968
38969   exec_prefix="$acl_save_exec_prefix"
38970   prefix="$acl_save_prefix"
38971
38972
38973 # Check whether --with-libiconv-prefix was given.
38974 if test "${with_libiconv_prefix+set}" = set; then
38975   withval=$with_libiconv_prefix;
38976     if test "X$withval" = "Xno"; then
38977       use_additional=no
38978     else
38979       if test "X$withval" = "X"; then
38980
38981   acl_save_prefix="$prefix"
38982   prefix="$acl_final_prefix"
38983   acl_save_exec_prefix="$exec_prefix"
38984   exec_prefix="$acl_final_exec_prefix"
38985
38986           eval additional_includedir=\"$includedir\"
38987           eval additional_libdir=\"$libdir\"
38988
38989   exec_prefix="$acl_save_exec_prefix"
38990   prefix="$acl_save_prefix"
38991
38992       else
38993         additional_includedir="$withval/include"
38994         additional_libdir="$withval/$acl_libdirstem"
38995       fi
38996     fi
38997
38998 fi
38999
39000       LIBICONV=
39001   LTLIBICONV=
39002   INCICONV=
39003   rpathdirs=
39004   ltrpathdirs=
39005   names_already_handled=
39006   names_next_round='iconv '
39007   while test -n "$names_next_round"; do
39008     names_this_round="$names_next_round"
39009     names_next_round=
39010     for name in $names_this_round; do
39011       already_handled=
39012       for n in $names_already_handled; do
39013         if test "$n" = "$name"; then
39014           already_handled=yes
39015           break
39016         fi
39017       done
39018       if test -z "$already_handled"; then
39019         names_already_handled="$names_already_handled $name"
39020                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39021         eval value=\"\$HAVE_LIB$uppername\"
39022         if test -n "$value"; then
39023           if test "$value" = yes; then
39024             eval value=\"\$LIB$uppername\"
39025             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
39026             eval value=\"\$LTLIB$uppername\"
39027             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
39028           else
39029                                     :
39030           fi
39031         else
39032                               found_dir=
39033           found_la=
39034           found_so=
39035           found_a=
39036           if test $use_additional = yes; then
39037             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39038               found_dir="$additional_libdir"
39039               found_so="$additional_libdir/lib$name.$shlibext"
39040               if test -f "$additional_libdir/lib$name.la"; then
39041                 found_la="$additional_libdir/lib$name.la"
39042               fi
39043             else
39044               if test -f "$additional_libdir/lib$name.$libext"; then
39045                 found_dir="$additional_libdir"
39046                 found_a="$additional_libdir/lib$name.$libext"
39047                 if test -f "$additional_libdir/lib$name.la"; then
39048                   found_la="$additional_libdir/lib$name.la"
39049                 fi
39050               fi
39051             fi
39052           fi
39053           if test "X$found_dir" = "X"; then
39054             for x in $LDFLAGS $LTLIBICONV; do
39055
39056   acl_save_prefix="$prefix"
39057   prefix="$acl_final_prefix"
39058   acl_save_exec_prefix="$exec_prefix"
39059   exec_prefix="$acl_final_exec_prefix"
39060   eval x=\"$x\"
39061   exec_prefix="$acl_save_exec_prefix"
39062   prefix="$acl_save_prefix"
39063
39064               case "$x" in
39065                 -L*)
39066                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39067                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39068                     found_dir="$dir"
39069                     found_so="$dir/lib$name.$shlibext"
39070                     if test -f "$dir/lib$name.la"; then
39071                       found_la="$dir/lib$name.la"
39072                     fi
39073                   else
39074                     if test -f "$dir/lib$name.$libext"; then
39075                       found_dir="$dir"
39076                       found_a="$dir/lib$name.$libext"
39077                       if test -f "$dir/lib$name.la"; then
39078                         found_la="$dir/lib$name.la"
39079                       fi
39080                     fi
39081                   fi
39082                   ;;
39083               esac
39084               if test "X$found_dir" != "X"; then
39085                 break
39086               fi
39087             done
39088           fi
39089           if test "X$found_dir" != "X"; then
39090                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
39091             if test "X$found_so" != "X"; then
39092                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39093                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39094               else
39095                                                                                 haveit=
39096                 for x in $ltrpathdirs; do
39097                   if test "X$x" = "X$found_dir"; then
39098                     haveit=yes
39099                     break
39100                   fi
39101                 done
39102                 if test -z "$haveit"; then
39103                   ltrpathdirs="$ltrpathdirs $found_dir"
39104                 fi
39105                                 if test "$hardcode_direct" = yes; then
39106                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39107                 else
39108                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39109                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39110                                                             haveit=
39111                     for x in $rpathdirs; do
39112                       if test "X$x" = "X$found_dir"; then
39113                         haveit=yes
39114                         break
39115                       fi
39116                     done
39117                     if test -z "$haveit"; then
39118                       rpathdirs="$rpathdirs $found_dir"
39119                     fi
39120                   else
39121                                                                                 haveit=
39122                     for x in $LDFLAGS $LIBICONV; do
39123
39124   acl_save_prefix="$prefix"
39125   prefix="$acl_final_prefix"
39126   acl_save_exec_prefix="$exec_prefix"
39127   exec_prefix="$acl_final_exec_prefix"
39128   eval x=\"$x\"
39129   exec_prefix="$acl_save_exec_prefix"
39130   prefix="$acl_save_prefix"
39131
39132                       if test "X$x" = "X-L$found_dir"; then
39133                         haveit=yes
39134                         break
39135                       fi
39136                     done
39137                     if test -z "$haveit"; then
39138                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
39139                     fi
39140                     if test "$hardcode_minus_L" != no; then
39141                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
39142                     else
39143                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39144                     fi
39145                   fi
39146                 fi
39147               fi
39148             else
39149               if test "X$found_a" != "X"; then
39150                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
39151               else
39152                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
39153               fi
39154             fi
39155                         additional_includedir=
39156             case "$found_dir" in
39157               */$acl_libdirstem | */$acl_libdirstem/)
39158                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39159                 additional_includedir="$basedir/include"
39160                 ;;
39161             esac
39162             if test "X$additional_includedir" != "X"; then
39163                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39164                 haveit=
39165                 if test "X$additional_includedir" = "X/usr/local/include"; then
39166                   if test -n "$GCC"; then
39167                     case $host_os in
39168                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39169                     esac
39170                   fi
39171                 fi
39172                 if test -z "$haveit"; then
39173                   for x in $CPPFLAGS $INCICONV; do
39174
39175   acl_save_prefix="$prefix"
39176   prefix="$acl_final_prefix"
39177   acl_save_exec_prefix="$exec_prefix"
39178   exec_prefix="$acl_final_exec_prefix"
39179   eval x=\"$x\"
39180   exec_prefix="$acl_save_exec_prefix"
39181   prefix="$acl_save_prefix"
39182
39183                     if test "X$x" = "X-I$additional_includedir"; then
39184                       haveit=yes
39185                       break
39186                     fi
39187                   done
39188                   if test -z "$haveit"; then
39189                     if test -d "$additional_includedir"; then
39190                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
39191                     fi
39192                   fi
39193                 fi
39194               fi
39195             fi
39196                         if test -n "$found_la"; then
39197                                                         save_libdir="$libdir"
39198               case "$found_la" in
39199                 */* | *\\*) . "$found_la" ;;
39200                 *) . "./$found_la" ;;
39201               esac
39202               libdir="$save_libdir"
39203                             for dep in $dependency_libs; do
39204                 case "$dep" in
39205                   -L*)
39206                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39207                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39208                       haveit=
39209                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39210                         if test -n "$GCC"; then
39211                           case $host_os in
39212                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39213                           esac
39214                         fi
39215                       fi
39216                       if test -z "$haveit"; then
39217                         haveit=
39218                         for x in $LDFLAGS $LIBICONV; do
39219
39220   acl_save_prefix="$prefix"
39221   prefix="$acl_final_prefix"
39222   acl_save_exec_prefix="$exec_prefix"
39223   exec_prefix="$acl_final_exec_prefix"
39224   eval x=\"$x\"
39225   exec_prefix="$acl_save_exec_prefix"
39226   prefix="$acl_save_prefix"
39227
39228                           if test "X$x" = "X-L$additional_libdir"; then
39229                             haveit=yes
39230                             break
39231                           fi
39232                         done
39233                         if test -z "$haveit"; then
39234                           if test -d "$additional_libdir"; then
39235                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
39236                           fi
39237                         fi
39238                         haveit=
39239                         for x in $LDFLAGS $LTLIBICONV; do
39240
39241   acl_save_prefix="$prefix"
39242   prefix="$acl_final_prefix"
39243   acl_save_exec_prefix="$exec_prefix"
39244   exec_prefix="$acl_final_exec_prefix"
39245   eval x=\"$x\"
39246   exec_prefix="$acl_save_exec_prefix"
39247   prefix="$acl_save_prefix"
39248
39249                           if test "X$x" = "X-L$additional_libdir"; then
39250                             haveit=yes
39251                             break
39252                           fi
39253                         done
39254                         if test -z "$haveit"; then
39255                           if test -d "$additional_libdir"; then
39256                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
39257                           fi
39258                         fi
39259                       fi
39260                     fi
39261                     ;;
39262                   -R*)
39263                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
39264                     if test "$enable_rpath" != no; then
39265                                                                   haveit=
39266                       for x in $rpathdirs; do
39267                         if test "X$x" = "X$dir"; then
39268                           haveit=yes
39269                           break
39270                         fi
39271                       done
39272                       if test -z "$haveit"; then
39273                         rpathdirs="$rpathdirs $dir"
39274                       fi
39275                                                                   haveit=
39276                       for x in $ltrpathdirs; do
39277                         if test "X$x" = "X$dir"; then
39278                           haveit=yes
39279                           break
39280                         fi
39281                       done
39282                       if test -z "$haveit"; then
39283                         ltrpathdirs="$ltrpathdirs $dir"
39284                       fi
39285                     fi
39286                     ;;
39287                   -l*)
39288                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
39289                     ;;
39290                   *.la)
39291                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
39292                     ;;
39293                   *)
39294                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
39295                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
39296                     ;;
39297                 esac
39298               done
39299             fi
39300           else
39301                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
39302             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
39303           fi
39304         fi
39305       fi
39306     done
39307   done
39308   if test "X$rpathdirs" != "X"; then
39309     if test -n "$hardcode_libdir_separator"; then
39310                         alldirs=
39311       for found_dir in $rpathdirs; do
39312         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
39313       done
39314             acl_save_libdir="$libdir"
39315       libdir="$alldirs"
39316       eval flag=\"$hardcode_libdir_flag_spec\"
39317       libdir="$acl_save_libdir"
39318       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39319     else
39320             for found_dir in $rpathdirs; do
39321         acl_save_libdir="$libdir"
39322         libdir="$found_dir"
39323         eval flag=\"$hardcode_libdir_flag_spec\"
39324         libdir="$acl_save_libdir"
39325         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
39326       done
39327     fi
39328   fi
39329   if test "X$ltrpathdirs" != "X"; then
39330             for found_dir in $ltrpathdirs; do
39331       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
39332     done
39333   fi
39334
39335
39336
39337
39338
39339
39340
39341
39342
39343
39344
39345
39346
39347
39348
39349
39350
39351
39352     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
39353 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
39354 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
39355   $as_echo_n "(cached) " >&6
39356 else
39357   gt_save_LIBS="$LIBS"
39358      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39359      cat >conftest.$ac_ext <<_ACEOF
39360 /* confdefs.h.  */
39361 _ACEOF
39362 cat confdefs.h >>conftest.$ac_ext
39363 cat >>conftest.$ac_ext <<_ACEOF
39364 /* end confdefs.h.  */
39365 #include <CoreFoundation/CFPreferences.h>
39366 int
39367 main ()
39368 {
39369 CFPreferencesCopyAppValue(NULL, NULL)
39370   ;
39371   return 0;
39372 }
39373 _ACEOF
39374 rm -f conftest.$ac_objext conftest$ac_exeext
39375 if { (ac_try="$ac_link"
39376 case "(($ac_try" in
39377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39378   *) ac_try_echo=$ac_try;;
39379 esac
39380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39381 $as_echo "$ac_try_echo") >&5
39382   (eval "$ac_link") 2>conftest.er1
39383   ac_status=$?
39384   grep -v '^ *+' conftest.er1 >conftest.err
39385   rm -f conftest.er1
39386   cat conftest.err >&5
39387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388   (exit $ac_status); } && {
39389          test -z "$ac_c_werror_flag" ||
39390          test ! -s conftest.err
39391        } && test -s conftest$ac_exeext && {
39392          test "$cross_compiling" = yes ||
39393          $as_test_x conftest$ac_exeext
39394        }; then
39395   gt_cv_func_CFPreferencesCopyAppValue=yes
39396 else
39397   $as_echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39399
39400         gt_cv_func_CFPreferencesCopyAppValue=no
39401 fi
39402
39403 rm -rf conftest.dSYM
39404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39405       conftest$ac_exeext conftest.$ac_ext
39406      LIBS="$gt_save_LIBS"
39407 fi
39408 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
39409 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
39410   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
39411
39412 cat >>confdefs.h <<\_ACEOF
39413 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
39414 _ACEOF
39415
39416   fi
39417     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
39418 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
39419 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
39420   $as_echo_n "(cached) " >&6
39421 else
39422   gt_save_LIBS="$LIBS"
39423      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
39424      cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430 #include <CoreFoundation/CFLocale.h>
39431 int
39432 main ()
39433 {
39434 CFLocaleCopyCurrent();
39435   ;
39436   return 0;
39437 }
39438 _ACEOF
39439 rm -f conftest.$ac_objext conftest$ac_exeext
39440 if { (ac_try="$ac_link"
39441 case "(($ac_try" in
39442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39443   *) ac_try_echo=$ac_try;;
39444 esac
39445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39446 $as_echo "$ac_try_echo") >&5
39447   (eval "$ac_link") 2>conftest.er1
39448   ac_status=$?
39449   grep -v '^ *+' conftest.er1 >conftest.err
39450   rm -f conftest.er1
39451   cat conftest.err >&5
39452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39453   (exit $ac_status); } && {
39454          test -z "$ac_c_werror_flag" ||
39455          test ! -s conftest.err
39456        } && test -s conftest$ac_exeext && {
39457          test "$cross_compiling" = yes ||
39458          $as_test_x conftest$ac_exeext
39459        }; then
39460   gt_cv_func_CFLocaleCopyCurrent=yes
39461 else
39462   $as_echo "$as_me: failed program was:" >&5
39463 sed 's/^/| /' conftest.$ac_ext >&5
39464
39465         gt_cv_func_CFLocaleCopyCurrent=no
39466 fi
39467
39468 rm -rf conftest.dSYM
39469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39470       conftest$ac_exeext conftest.$ac_ext
39471      LIBS="$gt_save_LIBS"
39472 fi
39473 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
39474 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
39475   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39476
39477 cat >>confdefs.h <<\_ACEOF
39478 #define HAVE_CFLOCALECOPYCURRENT 1
39479 _ACEOF
39480
39481   fi
39482   INTL_MACOSX_LIBS=
39483   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
39484     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
39485   fi
39486
39487
39488
39489
39490
39491
39492   LIBINTL=
39493   LTLIBINTL=
39494   POSUB=
39495
39496     if test "$USE_NLS" = "yes"; then
39497     gt_use_preinstalled_gnugettext=no
39498
39499
39500
39501
39502
39503
39504         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
39505 $as_echo_n "checking for GNU gettext in libc... " >&6; }
39506 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
39507   $as_echo_n "(cached) " >&6
39508 else
39509   cat >conftest.$ac_ext <<_ACEOF
39510 /* confdefs.h.  */
39511 _ACEOF
39512 cat confdefs.h >>conftest.$ac_ext
39513 cat >>conftest.$ac_ext <<_ACEOF
39514 /* end confdefs.h.  */
39515 #include <libintl.h>
39516 extern int _nl_msg_cat_cntr;
39517 extern int *_nl_domain_bindings;
39518 int
39519 main ()
39520 {
39521 bindtextdomain ("", "");
39522 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
39523   ;
39524   return 0;
39525 }
39526 _ACEOF
39527 rm -f conftest.$ac_objext conftest$ac_exeext
39528 if { (ac_try="$ac_link"
39529 case "(($ac_try" in
39530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39531   *) ac_try_echo=$ac_try;;
39532 esac
39533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39534 $as_echo "$ac_try_echo") >&5
39535   (eval "$ac_link") 2>conftest.er1
39536   ac_status=$?
39537   grep -v '^ *+' conftest.er1 >conftest.err
39538   rm -f conftest.er1
39539   cat conftest.err >&5
39540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541   (exit $ac_status); } && {
39542          test -z "$ac_c_werror_flag" ||
39543          test ! -s conftest.err
39544        } && test -s conftest$ac_exeext && {
39545          test "$cross_compiling" = yes ||
39546          $as_test_x conftest$ac_exeext
39547        }; then
39548   gt_cv_func_gnugettext1_libc=yes
39549 else
39550   $as_echo "$as_me: failed program was:" >&5
39551 sed 's/^/| /' conftest.$ac_ext >&5
39552
39553         gt_cv_func_gnugettext1_libc=no
39554 fi
39555
39556 rm -rf conftest.dSYM
39557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39558       conftest$ac_exeext conftest.$ac_ext
39559 fi
39560 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
39561 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
39562
39563         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
39564
39565
39566
39567
39568
39569           am_save_CPPFLAGS="$CPPFLAGS"
39570
39571   for element in $INCICONV; do
39572     haveit=
39573     for x in $CPPFLAGS; do
39574
39575   acl_save_prefix="$prefix"
39576   prefix="$acl_final_prefix"
39577   acl_save_exec_prefix="$exec_prefix"
39578   exec_prefix="$acl_final_exec_prefix"
39579   eval x=\"$x\"
39580   exec_prefix="$acl_save_exec_prefix"
39581   prefix="$acl_save_prefix"
39582
39583       if test "X$x" = "X$element"; then
39584         haveit=yes
39585         break
39586       fi
39587     done
39588     if test -z "$haveit"; then
39589       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
39590     fi
39591   done
39592
39593
39594   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
39595 $as_echo_n "checking for iconv... " >&6; }
39596 if test "${am_cv_func_iconv+set}" = set; then
39597   $as_echo_n "(cached) " >&6
39598 else
39599
39600     am_cv_func_iconv="no, consider installing GNU libiconv"
39601     am_cv_lib_iconv=no
39602     cat >conftest.$ac_ext <<_ACEOF
39603 /* confdefs.h.  */
39604 _ACEOF
39605 cat confdefs.h >>conftest.$ac_ext
39606 cat >>conftest.$ac_ext <<_ACEOF
39607 /* end confdefs.h.  */
39608 #include <stdlib.h>
39609 #include <iconv.h>
39610 int
39611 main ()
39612 {
39613 iconv_t cd = iconv_open("","");
39614        iconv(cd,NULL,NULL,NULL,NULL);
39615        iconv_close(cd);
39616   ;
39617   return 0;
39618 }
39619 _ACEOF
39620 rm -f conftest.$ac_objext conftest$ac_exeext
39621 if { (ac_try="$ac_link"
39622 case "(($ac_try" in
39623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39624   *) ac_try_echo=$ac_try;;
39625 esac
39626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39627 $as_echo "$ac_try_echo") >&5
39628   (eval "$ac_link") 2>conftest.er1
39629   ac_status=$?
39630   grep -v '^ *+' conftest.er1 >conftest.err
39631   rm -f conftest.er1
39632   cat conftest.err >&5
39633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39634   (exit $ac_status); } && {
39635          test -z "$ac_c_werror_flag" ||
39636          test ! -s conftest.err
39637        } && test -s conftest$ac_exeext && {
39638          test "$cross_compiling" = yes ||
39639          $as_test_x conftest$ac_exeext
39640        }; then
39641   am_cv_func_iconv=yes
39642 else
39643   $as_echo "$as_me: failed program was:" >&5
39644 sed 's/^/| /' conftest.$ac_ext >&5
39645
39646
39647 fi
39648
39649 rm -rf conftest.dSYM
39650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39651       conftest$ac_exeext conftest.$ac_ext
39652     if test "$am_cv_func_iconv" != yes; then
39653       am_save_LIBS="$LIBS"
39654       LIBS="$LIBS $LIBICONV"
39655       cat >conftest.$ac_ext <<_ACEOF
39656 /* confdefs.h.  */
39657 _ACEOF
39658 cat confdefs.h >>conftest.$ac_ext
39659 cat >>conftest.$ac_ext <<_ACEOF
39660 /* end confdefs.h.  */
39661 #include <stdlib.h>
39662 #include <iconv.h>
39663 int
39664 main ()
39665 {
39666 iconv_t cd = iconv_open("","");
39667          iconv(cd,NULL,NULL,NULL,NULL);
39668          iconv_close(cd);
39669   ;
39670   return 0;
39671 }
39672 _ACEOF
39673 rm -f conftest.$ac_objext conftest$ac_exeext
39674 if { (ac_try="$ac_link"
39675 case "(($ac_try" in
39676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39677   *) ac_try_echo=$ac_try;;
39678 esac
39679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39680 $as_echo "$ac_try_echo") >&5
39681   (eval "$ac_link") 2>conftest.er1
39682   ac_status=$?
39683   grep -v '^ *+' conftest.er1 >conftest.err
39684   rm -f conftest.er1
39685   cat conftest.err >&5
39686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687   (exit $ac_status); } && {
39688          test -z "$ac_c_werror_flag" ||
39689          test ! -s conftest.err
39690        } && test -s conftest$ac_exeext && {
39691          test "$cross_compiling" = yes ||
39692          $as_test_x conftest$ac_exeext
39693        }; then
39694   am_cv_lib_iconv=yes
39695         am_cv_func_iconv=yes
39696 else
39697   $as_echo "$as_me: failed program was:" >&5
39698 sed 's/^/| /' conftest.$ac_ext >&5
39699
39700
39701 fi
39702
39703 rm -rf conftest.dSYM
39704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39705       conftest$ac_exeext conftest.$ac_ext
39706       LIBS="$am_save_LIBS"
39707     fi
39708
39709 fi
39710 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39711 $as_echo "$am_cv_func_iconv" >&6; }
39712   if test "$am_cv_func_iconv" = yes; then
39713
39714 cat >>confdefs.h <<\_ACEOF
39715 #define HAVE_ICONV 1
39716 _ACEOF
39717
39718   fi
39719   if test "$am_cv_lib_iconv" = yes; then
39720     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
39721 $as_echo_n "checking how to link with libiconv... " >&6; }
39722     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
39723 $as_echo "$LIBICONV" >&6; }
39724   else
39725             CPPFLAGS="$am_save_CPPFLAGS"
39726     LIBICONV=
39727     LTLIBICONV=
39728   fi
39729
39730
39731
39732
39733
39734
39735
39736     use_additional=yes
39737
39738   acl_save_prefix="$prefix"
39739   prefix="$acl_final_prefix"
39740   acl_save_exec_prefix="$exec_prefix"
39741   exec_prefix="$acl_final_exec_prefix"
39742
39743     eval additional_includedir=\"$includedir\"
39744     eval additional_libdir=\"$libdir\"
39745
39746   exec_prefix="$acl_save_exec_prefix"
39747   prefix="$acl_save_prefix"
39748
39749
39750 # Check whether --with-libintl-prefix was given.
39751 if test "${with_libintl_prefix+set}" = set; then
39752   withval=$with_libintl_prefix;
39753     if test "X$withval" = "Xno"; then
39754       use_additional=no
39755     else
39756       if test "X$withval" = "X"; then
39757
39758   acl_save_prefix="$prefix"
39759   prefix="$acl_final_prefix"
39760   acl_save_exec_prefix="$exec_prefix"
39761   exec_prefix="$acl_final_exec_prefix"
39762
39763           eval additional_includedir=\"$includedir\"
39764           eval additional_libdir=\"$libdir\"
39765
39766   exec_prefix="$acl_save_exec_prefix"
39767   prefix="$acl_save_prefix"
39768
39769       else
39770         additional_includedir="$withval/include"
39771         additional_libdir="$withval/$acl_libdirstem"
39772       fi
39773     fi
39774
39775 fi
39776
39777       LIBINTL=
39778   LTLIBINTL=
39779   INCINTL=
39780   rpathdirs=
39781   ltrpathdirs=
39782   names_already_handled=
39783   names_next_round='intl '
39784   while test -n "$names_next_round"; do
39785     names_this_round="$names_next_round"
39786     names_next_round=
39787     for name in $names_this_round; do
39788       already_handled=
39789       for n in $names_already_handled; do
39790         if test "$n" = "$name"; then
39791           already_handled=yes
39792           break
39793         fi
39794       done
39795       if test -z "$already_handled"; then
39796         names_already_handled="$names_already_handled $name"
39797                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
39798         eval value=\"\$HAVE_LIB$uppername\"
39799         if test -n "$value"; then
39800           if test "$value" = yes; then
39801             eval value=\"\$LIB$uppername\"
39802             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
39803             eval value=\"\$LTLIB$uppername\"
39804             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
39805           else
39806                                     :
39807           fi
39808         else
39809                               found_dir=
39810           found_la=
39811           found_so=
39812           found_a=
39813           if test $use_additional = yes; then
39814             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
39815               found_dir="$additional_libdir"
39816               found_so="$additional_libdir/lib$name.$shlibext"
39817               if test -f "$additional_libdir/lib$name.la"; then
39818                 found_la="$additional_libdir/lib$name.la"
39819               fi
39820             else
39821               if test -f "$additional_libdir/lib$name.$libext"; then
39822                 found_dir="$additional_libdir"
39823                 found_a="$additional_libdir/lib$name.$libext"
39824                 if test -f "$additional_libdir/lib$name.la"; then
39825                   found_la="$additional_libdir/lib$name.la"
39826                 fi
39827               fi
39828             fi
39829           fi
39830           if test "X$found_dir" = "X"; then
39831             for x in $LDFLAGS $LTLIBINTL; do
39832
39833   acl_save_prefix="$prefix"
39834   prefix="$acl_final_prefix"
39835   acl_save_exec_prefix="$exec_prefix"
39836   exec_prefix="$acl_final_exec_prefix"
39837   eval x=\"$x\"
39838   exec_prefix="$acl_save_exec_prefix"
39839   prefix="$acl_save_prefix"
39840
39841               case "$x" in
39842                 -L*)
39843                   dir=`echo "X$x" | sed -e 's/^X-L//'`
39844                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
39845                     found_dir="$dir"
39846                     found_so="$dir/lib$name.$shlibext"
39847                     if test -f "$dir/lib$name.la"; then
39848                       found_la="$dir/lib$name.la"
39849                     fi
39850                   else
39851                     if test -f "$dir/lib$name.$libext"; then
39852                       found_dir="$dir"
39853                       found_a="$dir/lib$name.$libext"
39854                       if test -f "$dir/lib$name.la"; then
39855                         found_la="$dir/lib$name.la"
39856                       fi
39857                     fi
39858                   fi
39859                   ;;
39860               esac
39861               if test "X$found_dir" != "X"; then
39862                 break
39863               fi
39864             done
39865           fi
39866           if test "X$found_dir" != "X"; then
39867                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
39868             if test "X$found_so" != "X"; then
39869                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
39870                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39871               else
39872                                                                                 haveit=
39873                 for x in $ltrpathdirs; do
39874                   if test "X$x" = "X$found_dir"; then
39875                     haveit=yes
39876                     break
39877                   fi
39878                 done
39879                 if test -z "$haveit"; then
39880                   ltrpathdirs="$ltrpathdirs $found_dir"
39881                 fi
39882                                 if test "$hardcode_direct" = yes; then
39883                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39884                 else
39885                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
39886                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39887                                                             haveit=
39888                     for x in $rpathdirs; do
39889                       if test "X$x" = "X$found_dir"; then
39890                         haveit=yes
39891                         break
39892                       fi
39893                     done
39894                     if test -z "$haveit"; then
39895                       rpathdirs="$rpathdirs $found_dir"
39896                     fi
39897                   else
39898                                                                                 haveit=
39899                     for x in $LDFLAGS $LIBINTL; do
39900
39901   acl_save_prefix="$prefix"
39902   prefix="$acl_final_prefix"
39903   acl_save_exec_prefix="$exec_prefix"
39904   exec_prefix="$acl_final_exec_prefix"
39905   eval x=\"$x\"
39906   exec_prefix="$acl_save_exec_prefix"
39907   prefix="$acl_save_prefix"
39908
39909                       if test "X$x" = "X-L$found_dir"; then
39910                         haveit=yes
39911                         break
39912                       fi
39913                     done
39914                     if test -z "$haveit"; then
39915                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
39916                     fi
39917                     if test "$hardcode_minus_L" != no; then
39918                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
39919                     else
39920                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
39921                     fi
39922                   fi
39923                 fi
39924               fi
39925             else
39926               if test "X$found_a" != "X"; then
39927                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
39928               else
39929                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
39930               fi
39931             fi
39932                         additional_includedir=
39933             case "$found_dir" in
39934               */$acl_libdirstem | */$acl_libdirstem/)
39935                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
39936                 additional_includedir="$basedir/include"
39937                 ;;
39938             esac
39939             if test "X$additional_includedir" != "X"; then
39940                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
39941                 haveit=
39942                 if test "X$additional_includedir" = "X/usr/local/include"; then
39943                   if test -n "$GCC"; then
39944                     case $host_os in
39945                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39946                     esac
39947                   fi
39948                 fi
39949                 if test -z "$haveit"; then
39950                   for x in $CPPFLAGS $INCINTL; do
39951
39952   acl_save_prefix="$prefix"
39953   prefix="$acl_final_prefix"
39954   acl_save_exec_prefix="$exec_prefix"
39955   exec_prefix="$acl_final_exec_prefix"
39956   eval x=\"$x\"
39957   exec_prefix="$acl_save_exec_prefix"
39958   prefix="$acl_save_prefix"
39959
39960                     if test "X$x" = "X-I$additional_includedir"; then
39961                       haveit=yes
39962                       break
39963                     fi
39964                   done
39965                   if test -z "$haveit"; then
39966                     if test -d "$additional_includedir"; then
39967                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
39968                     fi
39969                   fi
39970                 fi
39971               fi
39972             fi
39973                         if test -n "$found_la"; then
39974                                                         save_libdir="$libdir"
39975               case "$found_la" in
39976                 */* | *\\*) . "$found_la" ;;
39977                 *) . "./$found_la" ;;
39978               esac
39979               libdir="$save_libdir"
39980                             for dep in $dependency_libs; do
39981                 case "$dep" in
39982                   -L*)
39983                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
39984                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
39985                       haveit=
39986                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
39987                         if test -n "$GCC"; then
39988                           case $host_os in
39989                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
39990                           esac
39991                         fi
39992                       fi
39993                       if test -z "$haveit"; then
39994                         haveit=
39995                         for x in $LDFLAGS $LIBINTL; do
39996
39997   acl_save_prefix="$prefix"
39998   prefix="$acl_final_prefix"
39999   acl_save_exec_prefix="$exec_prefix"
40000   exec_prefix="$acl_final_exec_prefix"
40001   eval x=\"$x\"
40002   exec_prefix="$acl_save_exec_prefix"
40003   prefix="$acl_save_prefix"
40004
40005                           if test "X$x" = "X-L$additional_libdir"; then
40006                             haveit=yes
40007                             break
40008                           fi
40009                         done
40010                         if test -z "$haveit"; then
40011                           if test -d "$additional_libdir"; then
40012                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40013                           fi
40014                         fi
40015                         haveit=
40016                         for x in $LDFLAGS $LTLIBINTL; do
40017
40018   acl_save_prefix="$prefix"
40019   prefix="$acl_final_prefix"
40020   acl_save_exec_prefix="$exec_prefix"
40021   exec_prefix="$acl_final_exec_prefix"
40022   eval x=\"$x\"
40023   exec_prefix="$acl_save_exec_prefix"
40024   prefix="$acl_save_prefix"
40025
40026                           if test "X$x" = "X-L$additional_libdir"; then
40027                             haveit=yes
40028                             break
40029                           fi
40030                         done
40031                         if test -z "$haveit"; then
40032                           if test -d "$additional_libdir"; then
40033                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40034                           fi
40035                         fi
40036                       fi
40037                     fi
40038                     ;;
40039                   -R*)
40040                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
40041                     if test "$enable_rpath" != no; then
40042                                                                   haveit=
40043                       for x in $rpathdirs; do
40044                         if test "X$x" = "X$dir"; then
40045                           haveit=yes
40046                           break
40047                         fi
40048                       done
40049                       if test -z "$haveit"; then
40050                         rpathdirs="$rpathdirs $dir"
40051                       fi
40052                                                                   haveit=
40053                       for x in $ltrpathdirs; do
40054                         if test "X$x" = "X$dir"; then
40055                           haveit=yes
40056                           break
40057                         fi
40058                       done
40059                       if test -z "$haveit"; then
40060                         ltrpathdirs="$ltrpathdirs $dir"
40061                       fi
40062                     fi
40063                     ;;
40064                   -l*)
40065                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40066                     ;;
40067                   *.la)
40068                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40069                     ;;
40070                   *)
40071                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40072                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40073                     ;;
40074                 esac
40075               done
40076             fi
40077           else
40078                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40079             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40080           fi
40081         fi
40082       fi
40083     done
40084   done
40085   if test "X$rpathdirs" != "X"; then
40086     if test -n "$hardcode_libdir_separator"; then
40087                         alldirs=
40088       for found_dir in $rpathdirs; do
40089         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40090       done
40091             acl_save_libdir="$libdir"
40092       libdir="$alldirs"
40093       eval flag=\"$hardcode_libdir_flag_spec\"
40094       libdir="$acl_save_libdir"
40095       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40096     else
40097             for found_dir in $rpathdirs; do
40098         acl_save_libdir="$libdir"
40099         libdir="$found_dir"
40100         eval flag=\"$hardcode_libdir_flag_spec\"
40101         libdir="$acl_save_libdir"
40102         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40103       done
40104     fi
40105   fi
40106   if test "X$ltrpathdirs" != "X"; then
40107             for found_dir in $ltrpathdirs; do
40108       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40109     done
40110   fi
40111
40112           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40113 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
40114 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
40115   $as_echo_n "(cached) " >&6
40116 else
40117   gt_save_CPPFLAGS="$CPPFLAGS"
40118             CPPFLAGS="$CPPFLAGS $INCINTL"
40119             gt_save_LIBS="$LIBS"
40120             LIBS="$LIBS $LIBINTL"
40121                         cat >conftest.$ac_ext <<_ACEOF
40122 /* confdefs.h.  */
40123 _ACEOF
40124 cat confdefs.h >>conftest.$ac_ext
40125 cat >>conftest.$ac_ext <<_ACEOF
40126 /* end confdefs.h.  */
40127 #include <libintl.h>
40128 extern int _nl_msg_cat_cntr;
40129 extern
40130 #ifdef __cplusplus
40131 "C"
40132 #endif
40133 const char *_nl_expand_alias (const char *);
40134 int
40135 main ()
40136 {
40137 bindtextdomain ("", "");
40138 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40139   ;
40140   return 0;
40141 }
40142 _ACEOF
40143 rm -f conftest.$ac_objext conftest$ac_exeext
40144 if { (ac_try="$ac_link"
40145 case "(($ac_try" in
40146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40147   *) ac_try_echo=$ac_try;;
40148 esac
40149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40150 $as_echo "$ac_try_echo") >&5
40151   (eval "$ac_link") 2>conftest.er1
40152   ac_status=$?
40153   grep -v '^ *+' conftest.er1 >conftest.err
40154   rm -f conftest.er1
40155   cat conftest.err >&5
40156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157   (exit $ac_status); } && {
40158          test -z "$ac_c_werror_flag" ||
40159          test ! -s conftest.err
40160        } && test -s conftest$ac_exeext && {
40161          test "$cross_compiling" = yes ||
40162          $as_test_x conftest$ac_exeext
40163        }; then
40164   gt_cv_func_gnugettext1_libintl=yes
40165 else
40166   $as_echo "$as_me: failed program was:" >&5
40167 sed 's/^/| /' conftest.$ac_ext >&5
40168
40169         gt_cv_func_gnugettext1_libintl=no
40170 fi
40171
40172 rm -rf conftest.dSYM
40173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40174       conftest$ac_exeext conftest.$ac_ext
40175                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
40176               LIBS="$LIBS $LIBICONV"
40177               cat >conftest.$ac_ext <<_ACEOF
40178 /* confdefs.h.  */
40179 _ACEOF
40180 cat confdefs.h >>conftest.$ac_ext
40181 cat >>conftest.$ac_ext <<_ACEOF
40182 /* end confdefs.h.  */
40183 #include <libintl.h>
40184 extern int _nl_msg_cat_cntr;
40185 extern
40186 #ifdef __cplusplus
40187 "C"
40188 #endif
40189 const char *_nl_expand_alias (const char *);
40190 int
40191 main ()
40192 {
40193 bindtextdomain ("", "");
40194 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
40195   ;
40196   return 0;
40197 }
40198 _ACEOF
40199 rm -f conftest.$ac_objext conftest$ac_exeext
40200 if { (ac_try="$ac_link"
40201 case "(($ac_try" in
40202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40203   *) ac_try_echo=$ac_try;;
40204 esac
40205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40206 $as_echo "$ac_try_echo") >&5
40207   (eval "$ac_link") 2>conftest.er1
40208   ac_status=$?
40209   grep -v '^ *+' conftest.er1 >conftest.err
40210   rm -f conftest.er1
40211   cat conftest.err >&5
40212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213   (exit $ac_status); } && {
40214          test -z "$ac_c_werror_flag" ||
40215          test ! -s conftest.err
40216        } && test -s conftest$ac_exeext && {
40217          test "$cross_compiling" = yes ||
40218          $as_test_x conftest$ac_exeext
40219        }; then
40220   LIBINTL="$LIBINTL $LIBICONV"
40221                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40222                 gt_cv_func_gnugettext1_libintl=yes
40223
40224 else
40225   $as_echo "$as_me: failed program was:" >&5
40226 sed 's/^/| /' conftest.$ac_ext >&5
40227
40228
40229 fi
40230
40231 rm -rf conftest.dSYM
40232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40233       conftest$ac_exeext conftest.$ac_ext
40234             fi
40235             CPPFLAGS="$gt_save_CPPFLAGS"
40236             LIBS="$gt_save_LIBS"
40237 fi
40238 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
40239 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
40240         fi
40241
40242                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
40243            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
40244                 && test "$PACKAGE" != gettext-runtime \
40245                 && test "$PACKAGE" != gettext-tools; }; then
40246           gt_use_preinstalled_gnugettext=yes
40247         else
40248                     LIBINTL=
40249           LTLIBINTL=
40250           INCINTL=
40251         fi
40252
40253
40254
40255     if test -n "$INTL_MACOSX_LIBS"; then
40256       if test "$gt_use_preinstalled_gnugettext" = "yes" \
40257          || test "$nls_cv_use_gnu_gettext" = "yes"; then
40258                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
40259         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
40260       fi
40261     fi
40262
40263     if test "$gt_use_preinstalled_gnugettext" = "yes" \
40264        || test "$nls_cv_use_gnu_gettext" = "yes"; then
40265
40266 cat >>confdefs.h <<\_ACEOF
40267 #define ENABLE_NLS 1
40268 _ACEOF
40269
40270     else
40271       USE_NLS=no
40272     fi
40273   fi
40274
40275   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
40276 $as_echo_n "checking whether to use NLS... " >&6; }
40277   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
40278 $as_echo "$USE_NLS" >&6; }
40279   if test "$USE_NLS" = "yes"; then
40280     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
40281 $as_echo_n "checking where the gettext function comes from... " >&6; }
40282     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40283       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40284         gt_source="external libintl"
40285       else
40286         gt_source="libc"
40287       fi
40288     else
40289       gt_source="included intl directory"
40290     fi
40291     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
40292 $as_echo "$gt_source" >&6; }
40293   fi
40294
40295   if test "$USE_NLS" = "yes"; then
40296
40297     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40298       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
40299         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
40300 $as_echo_n "checking how to link with libintl... " >&6; }
40301         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
40302 $as_echo "$LIBINTL" >&6; }
40303
40304   for element in $INCINTL; do
40305     haveit=
40306     for x in $CPPFLAGS; do
40307
40308   acl_save_prefix="$prefix"
40309   prefix="$acl_final_prefix"
40310   acl_save_exec_prefix="$exec_prefix"
40311   exec_prefix="$acl_final_exec_prefix"
40312   eval x=\"$x\"
40313   exec_prefix="$acl_save_exec_prefix"
40314   prefix="$acl_save_prefix"
40315
40316       if test "X$x" = "X$element"; then
40317         haveit=yes
40318         break
40319       fi
40320     done
40321     if test -z "$haveit"; then
40322       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40323     fi
40324   done
40325
40326       fi
40327
40328
40329 cat >>confdefs.h <<\_ACEOF
40330 #define HAVE_GETTEXT 1
40331 _ACEOF
40332
40333
40334 cat >>confdefs.h <<\_ACEOF
40335 #define HAVE_DCGETTEXT 1
40336 _ACEOF
40337
40338     fi
40339
40340         POSUB=po
40341   fi
40342
40343
40344
40345     INTLLIBS="$LIBINTL"
40346
40347
40348
40349
40350
40351
40352
40353 #
40354 # Devices
40355 #
40356
40357     case "$host" in
40358         sparc-sun-solaris2.10) # Solaris 10
40359         # curl is not in the LD_LIBRARY_PATH on Solaris 10, so we search
40360         # for it in a few common paths; we then extract the -L flags and
40361         # translate them to -R flags, as required by the runtime linker.
40362         # Extract the first word of "curl-config", so it can be a program name with args.
40363 set dummy curl-config; ac_word=$2
40364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40365 $as_echo_n "checking for $ac_word... " >&6; }
40366 if test "${ac_cv_path_CURL_CONFIG+set}" = set; then
40367   $as_echo_n "(cached) " >&6
40368 else
40369   case $CURL_CONFIG in
40370   [\\/]* | ?:[\\/]*)
40371   ac_cv_path_CURL_CONFIG="$CURL_CONFIG" # Let the user override the test with a path.
40372   ;;
40373   *)
40374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40375 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
40376 for as_dir in $as_dummy
40377 do
40378   IFS=$as_save_IFS
40379   test -z "$as_dir" && as_dir=.
40380   for ac_exec_ext in '' $ac_executable_extensions; do
40381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40382     ac_cv_path_CURL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40383     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40384     break 2
40385   fi
40386 done
40387 done
40388 IFS=$as_save_IFS
40389
40390   ;;
40391 esac
40392 fi
40393 CURL_CONFIG=$ac_cv_path_CURL_CONFIG
40394 if test -n "$CURL_CONFIG"; then
40395   { $as_echo "$as_me:$LINENO: result: $CURL_CONFIG" >&5
40396 $as_echo "$CURL_CONFIG" >&6; }
40397 else
40398   { $as_echo "$as_me:$LINENO: result: no" >&5
40399 $as_echo "no" >&6; }
40400 fi
40401
40402
40403         if test -n "$CURL_CONFIG"; then
40404             curlflags=`$CURL_CONFIG --libs 2>/dev/null`
40405             for flag in curlflags; do
40406                 case $flag in
40407                     -L*) LDFLAGS="$LDFLAGS "`echo "x$flag" | sed -e 's/^x-L/-R/'`;;
40408                 esac
40409             done
40410         fi
40411         ;;
40412     esac
40413
40414
40415
40416
40417
40418
40419
40420
40421
40422
40423
40424
40425
40426
40427
40428
40429
40430
40431
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451
40452 # Check whether --with-libcurl was given.
40453 if test "${with_libcurl+set}" = set; then
40454   withval=$with_libcurl; _libcurl_with=$withval
40455 else
40456   _libcurl_with=yes
40457 fi
40458
40459
40460   if test "$_libcurl_with" != "no" ; then
40461
40462      for ac_prog in gawk mawk nawk awk
40463 do
40464   # Extract the first word of "$ac_prog", so it can be a program name with args.
40465 set dummy $ac_prog; ac_word=$2
40466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40467 $as_echo_n "checking for $ac_word... " >&6; }
40468 if test "${ac_cv_prog_AWK+set}" = set; then
40469   $as_echo_n "(cached) " >&6
40470 else
40471   if test -n "$AWK"; then
40472   ac_cv_prog_AWK="$AWK" # Let the user override the test.
40473 else
40474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40475 for as_dir in $PATH
40476 do
40477   IFS=$as_save_IFS
40478   test -z "$as_dir" && as_dir=.
40479   for ac_exec_ext in '' $ac_executable_extensions; do
40480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40481     ac_cv_prog_AWK="$ac_prog"
40482     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40483     break 2
40484   fi
40485 done
40486 done
40487 IFS=$as_save_IFS
40488
40489 fi
40490 fi
40491 AWK=$ac_cv_prog_AWK
40492 if test -n "$AWK"; then
40493   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
40494 $as_echo "$AWK" >&6; }
40495 else
40496   { $as_echo "$as_me:$LINENO: result: no" >&5
40497 $as_echo "no" >&6; }
40498 fi
40499
40500
40501   test -n "$AWK" && break
40502 done
40503
40504
40505      _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
40506
40507      _libcurl_try_link=yes
40508
40509      if test -d "$_libcurl_with" ; then
40510         LIBCURL_CPPFLAGS="-I$withval/include"
40511         _libcurl_ldflags="-L$withval/lib"
40512         # Extract the first word of "curl-config", so it can be a program name with args.
40513 set dummy curl-config; ac_word=$2
40514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40515 $as_echo_n "checking for $ac_word... " >&6; }
40516 if test "${ac_cv_path__libcurl_config+set}" = set; then
40517   $as_echo_n "(cached) " >&6
40518 else
40519   case $_libcurl_config in
40520   [\\/]* | ?:[\\/]*)
40521   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
40522   ;;
40523   *)
40524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40525 for as_dir in "$withval/bin"
40526 do
40527   IFS=$as_save_IFS
40528   test -z "$as_dir" && as_dir=.
40529   for ac_exec_ext in '' $ac_executable_extensions; do
40530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40531     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
40532     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40533     break 2
40534   fi
40535 done
40536 done
40537 IFS=$as_save_IFS
40538
40539   test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
40540   ;;
40541 esac
40542 fi
40543 _libcurl_config=$ac_cv_path__libcurl_config
40544 if test -n "$_libcurl_config"; then
40545   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
40546 $as_echo "$_libcurl_config" >&6; }
40547 else
40548   { $as_echo "$as_me:$LINENO: result: no" >&5
40549 $as_echo "no" >&6; }
40550 fi
40551
40552
40553      else
40554         # Extract the first word of "curl-config", so it can be a program name with args.
40555 set dummy curl-config; ac_word=$2
40556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
40557 $as_echo_n "checking for $ac_word... " >&6; }
40558 if test "${ac_cv_path__libcurl_config+set}" = set; then
40559   $as_echo_n "(cached) " >&6
40560 else
40561   case $_libcurl_config in
40562   [\\/]* | ?:[\\/]*)
40563   ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
40564   ;;
40565   *)
40566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40567 for as_dir in $PATH
40568 do
40569   IFS=$as_save_IFS
40570   test -z "$as_dir" && as_dir=.
40571   for ac_exec_ext in '' $ac_executable_extensions; do
40572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
40573     ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
40574     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40575     break 2
40576   fi
40577 done
40578 done
40579 IFS=$as_save_IFS
40580
40581   ;;
40582 esac
40583 fi
40584 _libcurl_config=$ac_cv_path__libcurl_config
40585 if test -n "$_libcurl_config"; then
40586   { $as_echo "$as_me:$LINENO: result: $_libcurl_config" >&5
40587 $as_echo "$_libcurl_config" >&6; }
40588 else
40589   { $as_echo "$as_me:$LINENO: result: no" >&5
40590 $as_echo "no" >&6; }
40591 fi
40592
40593
40594      fi
40595
40596      if test x$_libcurl_config != "x" ; then
40597         { $as_echo "$as_me:$LINENO: checking for the version of libcurl" >&5
40598 $as_echo_n "checking for the version of libcurl... " >&6; }
40599 if test "${libcurl_cv_lib_curl_version+set}" = set; then
40600   $as_echo_n "(cached) " >&6
40601 else
40602   libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
40603 fi
40604 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_version" >&5
40605 $as_echo "$libcurl_cv_lib_curl_version" >&6; }
40606
40607         _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
40608         _libcurl_wanted=`echo 7.10.0 | $_libcurl_version_parse`
40609
40610         if test $_libcurl_wanted -gt 0 ; then
40611            { $as_echo "$as_me:$LINENO: checking for libcurl >= version 7.10.0" >&5
40612 $as_echo_n "checking for libcurl >= version 7.10.0... " >&6; }
40613 if test "${libcurl_cv_lib_version_ok+set}" = set; then
40614   $as_echo_n "(cached) " >&6
40615 else
40616
40617               if test $_libcurl_version -ge $_libcurl_wanted ; then
40618                  libcurl_cv_lib_version_ok=yes
40619               else
40620                  libcurl_cv_lib_version_ok=no
40621               fi
40622
40623 fi
40624 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_version_ok" >&5
40625 $as_echo "$libcurl_cv_lib_version_ok" >&6; }
40626         fi
40627
40628         if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
40629            if test x"$LIBCURL_CPPFLAGS" = "x" ; then
40630               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
40631            fi
40632            if test x"$LIBCURL" = "x" ; then
40633               LIBCURL=`$_libcurl_config --libs`
40634
40635               # This is so silly, but Apple actually has a bug in their
40636               # curl-config script.  Fixed in Tiger, but there are still
40637               # lots of Panther installs around.
40638               case "${host}" in
40639                  powerpc-apple-darwin7*)
40640                     LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
40641                  ;;
40642               esac
40643            fi
40644
40645            # All curl-config scripts support --feature
40646            _libcurl_features=`$_libcurl_config --feature`
40647
40648            # Is it modern enough to have --protocols? (7.12.4)
40649            if test $_libcurl_version -ge 461828 ; then
40650               _libcurl_protocols=`$_libcurl_config --protocols`
40651            fi
40652         else
40653            _libcurl_try_link=no
40654         fi
40655
40656         unset _libcurl_wanted
40657      fi
40658
40659      if test $_libcurl_try_link = yes ; then
40660
40661         # we didn't find curl-config, so let's see if the user-supplied
40662         # link line (or failing that, "-lcurl") is enough.
40663         LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
40664
40665         { $as_echo "$as_me:$LINENO: checking whether libcurl is usable" >&5
40666 $as_echo_n "checking whether libcurl is usable... " >&6; }
40667 if test "${libcurl_cv_lib_curl_usable+set}" = set; then
40668   $as_echo_n "(cached) " >&6
40669 else
40670
40671            _libcurl_save_cppflags=$CPPFLAGS
40672            CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
40673            _libcurl_save_libs=$LIBS
40674            LIBS="$LIBCURL $LIBS"
40675
40676            cat >conftest.$ac_ext <<_ACEOF
40677 /* confdefs.h.  */
40678 _ACEOF
40679 cat confdefs.h >>conftest.$ac_ext
40680 cat >>conftest.$ac_ext <<_ACEOF
40681 /* end confdefs.h.  */
40682 #include <curl/curl.h>
40683 int
40684 main ()
40685 {
40686
40687 /* Try and use a few common options to force a failure if we are
40688    missing symbols or can't link. */
40689 int x;
40690 curl_easy_setopt(NULL,CURLOPT_URL,NULL);
40691 x=CURL_ERROR_SIZE;
40692 x=CURLOPT_WRITEFUNCTION;
40693 x=CURLOPT_FILE;
40694 x=CURLOPT_ERRORBUFFER;
40695 x=CURLOPT_STDERR;
40696 x=CURLOPT_VERBOSE;
40697
40698   ;
40699   return 0;
40700 }
40701 _ACEOF
40702 rm -f conftest.$ac_objext conftest$ac_exeext
40703 if { (ac_try="$ac_link"
40704 case "(($ac_try" in
40705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40706   *) ac_try_echo=$ac_try;;
40707 esac
40708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40709 $as_echo "$ac_try_echo") >&5
40710   (eval "$ac_link") 2>conftest.er1
40711   ac_status=$?
40712   grep -v '^ *+' conftest.er1 >conftest.err
40713   rm -f conftest.er1
40714   cat conftest.err >&5
40715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40716   (exit $ac_status); } && {
40717          test -z "$ac_c_werror_flag" ||
40718          test ! -s conftest.err
40719        } && test -s conftest$ac_exeext && {
40720          test "$cross_compiling" = yes ||
40721          $as_test_x conftest$ac_exeext
40722        }; then
40723   libcurl_cv_lib_curl_usable=yes
40724 else
40725   $as_echo "$as_me: failed program was:" >&5
40726 sed 's/^/| /' conftest.$ac_ext >&5
40727
40728         libcurl_cv_lib_curl_usable=no
40729 fi
40730
40731 rm -rf conftest.dSYM
40732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40733       conftest$ac_exeext conftest.$ac_ext
40734
40735            CPPFLAGS=$_libcurl_save_cppflags
40736            LIBS=$_libcurl_save_libs
40737            unset _libcurl_save_cppflags
40738            unset _libcurl_save_libs
40739
40740 fi
40741 { $as_echo "$as_me:$LINENO: result: $libcurl_cv_lib_curl_usable" >&5
40742 $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
40743
40744         if test $libcurl_cv_lib_curl_usable = yes ; then
40745
40746            # Does curl_free() exist in this version of libcurl?
40747            # If not, fake it with free()
40748
40749            _libcurl_save_cppflags=$CPPFLAGS
40750            CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
40751            _libcurl_save_libs=$LIBS
40752            LIBS="$LIBS $LIBCURL"
40753
40754            { $as_echo "$as_me:$LINENO: checking for curl_free" >&5
40755 $as_echo_n "checking for curl_free... " >&6; }
40756 if test "${ac_cv_func_curl_free+set}" = set; then
40757   $as_echo_n "(cached) " >&6
40758 else
40759   cat >conftest.$ac_ext <<_ACEOF
40760 /* confdefs.h.  */
40761 _ACEOF
40762 cat confdefs.h >>conftest.$ac_ext
40763 cat >>conftest.$ac_ext <<_ACEOF
40764 /* end confdefs.h.  */
40765 /* Define curl_free to an innocuous variant, in case <limits.h> declares curl_free.
40766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40767 #define curl_free innocuous_curl_free
40768
40769 /* System header to define __stub macros and hopefully few prototypes,
40770     which can conflict with char curl_free (); below.
40771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40772     <limits.h> exists even on freestanding compilers.  */
40773
40774 #ifdef __STDC__
40775 # include <limits.h>
40776 #else
40777 # include <assert.h>
40778 #endif
40779
40780 #undef curl_free
40781
40782 /* Override any GCC internal prototype to avoid an error.
40783    Use char because int might match the return type of a GCC
40784    builtin and then its argument prototype would still apply.  */
40785 #ifdef __cplusplus
40786 extern "C"
40787 #endif
40788 char curl_free ();
40789 /* The GNU C library defines this for functions which it implements
40790     to always fail with ENOSYS.  Some functions are actually named
40791     something starting with __ and the normal name is an alias.  */
40792 #if defined __stub_curl_free || defined __stub___curl_free
40793 choke me
40794 #endif
40795
40796 int
40797 main ()
40798 {
40799 return curl_free ();
40800   ;
40801   return 0;
40802 }
40803 _ACEOF
40804 rm -f conftest.$ac_objext conftest$ac_exeext
40805 if { (ac_try="$ac_link"
40806 case "(($ac_try" in
40807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40808   *) ac_try_echo=$ac_try;;
40809 esac
40810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40811 $as_echo "$ac_try_echo") >&5
40812   (eval "$ac_link") 2>conftest.er1
40813   ac_status=$?
40814   grep -v '^ *+' conftest.er1 >conftest.err
40815   rm -f conftest.er1
40816   cat conftest.err >&5
40817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); } && {
40819          test -z "$ac_c_werror_flag" ||
40820          test ! -s conftest.err
40821        } && test -s conftest$ac_exeext && {
40822          test "$cross_compiling" = yes ||
40823          $as_test_x conftest$ac_exeext
40824        }; then
40825   ac_cv_func_curl_free=yes
40826 else
40827   $as_echo "$as_me: failed program was:" >&5
40828 sed 's/^/| /' conftest.$ac_ext >&5
40829
40830         ac_cv_func_curl_free=no
40831 fi
40832
40833 rm -rf conftest.dSYM
40834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40835       conftest$ac_exeext conftest.$ac_ext
40836 fi
40837 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_curl_free" >&5
40838 $as_echo "$ac_cv_func_curl_free" >&6; }
40839 if test "x$ac_cv_func_curl_free" = x""yes; then
40840   :
40841 else
40842
40843 cat >>confdefs.h <<\_ACEOF
40844 #define curl_free free
40845 _ACEOF
40846
40847 fi
40848
40849
40850            CPPFLAGS=$_libcurl_save_cppflags
40851            LIBS=$_libcurl_save_libs
40852            unset _libcurl_save_cppflags
40853            unset _libcurl_save_libs
40854
40855
40856 cat >>confdefs.h <<\_ACEOF
40857 #define HAVE_LIBCURL 1
40858 _ACEOF
40859
40860
40861
40862
40863            for _libcurl_feature in $_libcurl_features ; do
40864               cat >>confdefs.h <<_ACEOF
40865 #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
40866 _ACEOF
40867
40868               eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
40869            done
40870
40871            if test "x$_libcurl_protocols" = "x" ; then
40872
40873               # We don't have --protocols, so just assume that all
40874               # protocols are available
40875               _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
40876
40877               if test x$libcurl_feature_SSL = xyes ; then
40878                  _libcurl_protocols="$_libcurl_protocols HTTPS"
40879
40880                  # FTPS wasn't standards-compliant until version
40881                  # 7.11.0
40882                  if test $_libcurl_version -ge 461568; then
40883                     _libcurl_protocols="$_libcurl_protocols FTPS"
40884                  fi
40885               fi
40886            fi
40887
40888            for _libcurl_protocol in $_libcurl_protocols ; do
40889               cat >>confdefs.h <<_ACEOF
40890 #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
40891 _ACEOF
40892
40893               eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
40894            done
40895         else
40896            unset LIBCURL
40897            unset LIBCURL_CPPFLAGS
40898         fi
40899      fi
40900
40901      unset _libcurl_try_link
40902      unset _libcurl_version_parse
40903      unset _libcurl_config
40904      unset _libcurl_feature
40905      unset _libcurl_features
40906      unset _libcurl_protocol
40907      unset _libcurl_protocols
40908      unset _libcurl_version
40909      unset _libcurl_ldflags
40910   fi
40911
40912   if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
40913      # This is the IF-NO path
40914      HAVE_CURL=no
40915   else
40916      # This is the IF-YES path
40917      HAVE_CURL=yes
40918   fi
40919
40920   unset _libcurl_with
40921
40922     if test x"$HAVE_CURL" = x"yes"; then
40923         LIBS="$LIBCURL $LIBS"
40924
40925         CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
40926
40927
40928
40929
40930     { $as_echo "$as_me:$LINENO: checking for curl_off_t" >&5
40931 $as_echo_n "checking for curl_off_t... " >&6; }
40932 if test "${ac_cv_type_curl_off_t+set}" = set; then
40933   $as_echo_n "(cached) " >&6
40934 else
40935   ac_cv_type_curl_off_t=no
40936 cat >conftest.$ac_ext <<_ACEOF
40937 /* confdefs.h.  */
40938 _ACEOF
40939 cat confdefs.h >>conftest.$ac_ext
40940 cat >>conftest.$ac_ext <<_ACEOF
40941 /* end confdefs.h.  */
40942
40943 #ifdef HAVE_SYS_TYPES_H
40944 #include <sys/types.h>
40945 #endif
40946 #ifdef STDC_HEADERS
40947 #include <stdlib.h>
40948 #include <stddef.h>
40949 #endif
40950 #include <curl/curl.h>
40951
40952
40953
40954 int
40955 main ()
40956 {
40957 if (sizeof (curl_off_t))
40958        return 0;
40959   ;
40960   return 0;
40961 }
40962 _ACEOF
40963 rm -f conftest.$ac_objext
40964 if { (ac_try="$ac_compile"
40965 case "(($ac_try" in
40966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40967   *) ac_try_echo=$ac_try;;
40968 esac
40969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40970 $as_echo "$ac_try_echo") >&5
40971   (eval "$ac_compile") 2>conftest.er1
40972   ac_status=$?
40973   grep -v '^ *+' conftest.er1 >conftest.err
40974   rm -f conftest.er1
40975   cat conftest.err >&5
40976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977   (exit $ac_status); } && {
40978          test -z "$ac_c_werror_flag" ||
40979          test ! -s conftest.err
40980        } && test -s conftest.$ac_objext; then
40981   cat >conftest.$ac_ext <<_ACEOF
40982 /* confdefs.h.  */
40983 _ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h.  */
40987
40988 #ifdef HAVE_SYS_TYPES_H
40989 #include <sys/types.h>
40990 #endif
40991 #ifdef STDC_HEADERS
40992 #include <stdlib.h>
40993 #include <stddef.h>
40994 #endif
40995 #include <curl/curl.h>
40996
40997
40998
40999 int
41000 main ()
41001 {
41002 if (sizeof ((curl_off_t)))
41003           return 0;
41004   ;
41005   return 0;
41006 }
41007 _ACEOF
41008 rm -f conftest.$ac_objext
41009 if { (ac_try="$ac_compile"
41010 case "(($ac_try" in
41011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41012   *) ac_try_echo=$ac_try;;
41013 esac
41014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41015 $as_echo "$ac_try_echo") >&5
41016   (eval "$ac_compile") 2>conftest.er1
41017   ac_status=$?
41018   grep -v '^ *+' conftest.er1 >conftest.err
41019   rm -f conftest.er1
41020   cat conftest.err >&5
41021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41022   (exit $ac_status); } && {
41023          test -z "$ac_c_werror_flag" ||
41024          test ! -s conftest.err
41025        } && test -s conftest.$ac_objext; then
41026   :
41027 else
41028   $as_echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41030
41031         ac_cv_type_curl_off_t=yes
41032 fi
41033
41034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41035 else
41036   $as_echo "$as_me: failed program was:" >&5
41037 sed 's/^/| /' conftest.$ac_ext >&5
41038
41039
41040 fi
41041
41042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41043 fi
41044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_curl_off_t" >&5
41045 $as_echo "$ac_cv_type_curl_off_t" >&6; }
41046 if test "x$ac_cv_type_curl_off_t" = x""yes; then
41047   :
41048 else
41049
41050
41051 cat >>confdefs.h <<\_ACEOF
41052 #define curl_off_t off_t
41053 _ACEOF
41054
41055
41056 fi
41057
41058
41059     fi
41060
41061
41062     HAVE_HMAC=yes
41063
41064 { $as_echo "$as_me:$LINENO: checking for HMAC_CTX_init in -lcrypto" >&5
41065 $as_echo_n "checking for HMAC_CTX_init in -lcrypto... " >&6; }
41066 if test "${ac_cv_lib_crypto_HMAC_CTX_init+set}" = set; then
41067   $as_echo_n "(cached) " >&6
41068 else
41069   ac_check_lib_save_LIBS=$LIBS
41070 LIBS="-lcrypto  $LIBS"
41071 cat >conftest.$ac_ext <<_ACEOF
41072 /* confdefs.h.  */
41073 _ACEOF
41074 cat confdefs.h >>conftest.$ac_ext
41075 cat >>conftest.$ac_ext <<_ACEOF
41076 /* end confdefs.h.  */
41077
41078 /* Override any GCC internal prototype to avoid an error.
41079    Use char because int might match the return type of a GCC
41080    builtin and then its argument prototype would still apply.  */
41081 #ifdef __cplusplus
41082 extern "C"
41083 #endif
41084 char HMAC_CTX_init ();
41085 int
41086 main ()
41087 {
41088 return HMAC_CTX_init ();
41089   ;
41090   return 0;
41091 }
41092 _ACEOF
41093 rm -f conftest.$ac_objext conftest$ac_exeext
41094 if { (ac_try="$ac_link"
41095 case "(($ac_try" in
41096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41097   *) ac_try_echo=$ac_try;;
41098 esac
41099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41100 $as_echo "$ac_try_echo") >&5
41101   (eval "$ac_link") 2>conftest.er1
41102   ac_status=$?
41103   grep -v '^ *+' conftest.er1 >conftest.err
41104   rm -f conftest.er1
41105   cat conftest.err >&5
41106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41107   (exit $ac_status); } && {
41108          test -z "$ac_c_werror_flag" ||
41109          test ! -s conftest.err
41110        } && test -s conftest$ac_exeext && {
41111          test "$cross_compiling" = yes ||
41112          $as_test_x conftest$ac_exeext
41113        }; then
41114   ac_cv_lib_crypto_HMAC_CTX_init=yes
41115 else
41116   $as_echo "$as_me: failed program was:" >&5
41117 sed 's/^/| /' conftest.$ac_ext >&5
41118
41119         ac_cv_lib_crypto_HMAC_CTX_init=no
41120 fi
41121
41122 rm -rf conftest.dSYM
41123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41124       conftest$ac_exeext conftest.$ac_ext
41125 LIBS=$ac_check_lib_save_LIBS
41126 fi
41127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_HMAC_CTX_init" >&5
41128 $as_echo "$ac_cv_lib_crypto_HMAC_CTX_init" >&6; }
41129 if test "x$ac_cv_lib_crypto_HMAC_CTX_init" = x""yes; then
41130   cat >>confdefs.h <<_ACEOF
41131 #define HAVE_LIBCRYPTO 1
41132 _ACEOF
41133
41134   LIBS="-lcrypto $LIBS"
41135
41136 else
41137   HAVE_HMAC=no
41138 fi
41139
41140
41141     found_hmac_h=no
41142
41143
41144
41145 for ac_header in openssl/hmac.h crypto/hmac.h hmac.h
41146 do
41147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41149   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41150 $as_echo_n "checking for $ac_header... " >&6; }
41151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41152   $as_echo_n "(cached) " >&6
41153 fi
41154 ac_res=`eval 'as_val=${'$as_ac_Header'}
41155                  $as_echo "$as_val"'`
41156                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41157 $as_echo "$ac_res" >&6; }
41158 else
41159   # Is the header compilable?
41160 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41161 $as_echo_n "checking $ac_header usability... " >&6; }
41162 cat >conftest.$ac_ext <<_ACEOF
41163 /* confdefs.h.  */
41164 _ACEOF
41165 cat confdefs.h >>conftest.$ac_ext
41166 cat >>conftest.$ac_ext <<_ACEOF
41167 /* end confdefs.h.  */
41168 $ac_includes_default
41169 #include <$ac_header>
41170 _ACEOF
41171 rm -f conftest.$ac_objext
41172 if { (ac_try="$ac_compile"
41173 case "(($ac_try" in
41174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41175   *) ac_try_echo=$ac_try;;
41176 esac
41177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41178 $as_echo "$ac_try_echo") >&5
41179   (eval "$ac_compile") 2>conftest.er1
41180   ac_status=$?
41181   grep -v '^ *+' conftest.er1 >conftest.err
41182   rm -f conftest.er1
41183   cat conftest.err >&5
41184   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41185   (exit $ac_status); } && {
41186          test -z "$ac_c_werror_flag" ||
41187          test ! -s conftest.err
41188        } && test -s conftest.$ac_objext; then
41189   ac_header_compiler=yes
41190 else
41191   $as_echo "$as_me: failed program was:" >&5
41192 sed 's/^/| /' conftest.$ac_ext >&5
41193
41194         ac_header_compiler=no
41195 fi
41196
41197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41199 $as_echo "$ac_header_compiler" >&6; }
41200
41201 # Is the header present?
41202 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41203 $as_echo_n "checking $ac_header presence... " >&6; }
41204 cat >conftest.$ac_ext <<_ACEOF
41205 /* confdefs.h.  */
41206 _ACEOF
41207 cat confdefs.h >>conftest.$ac_ext
41208 cat >>conftest.$ac_ext <<_ACEOF
41209 /* end confdefs.h.  */
41210 #include <$ac_header>
41211 _ACEOF
41212 if { (ac_try="$ac_cpp conftest.$ac_ext"
41213 case "(($ac_try" in
41214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41215   *) ac_try_echo=$ac_try;;
41216 esac
41217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41218 $as_echo "$ac_try_echo") >&5
41219   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41220   ac_status=$?
41221   grep -v '^ *+' conftest.er1 >conftest.err
41222   rm -f conftest.er1
41223   cat conftest.err >&5
41224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225   (exit $ac_status); } >/dev/null && {
41226          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41227          test ! -s conftest.err
41228        }; then
41229   ac_header_preproc=yes
41230 else
41231   $as_echo "$as_me: failed program was:" >&5
41232 sed 's/^/| /' conftest.$ac_ext >&5
41233
41234   ac_header_preproc=no
41235 fi
41236
41237 rm -f conftest.err conftest.$ac_ext
41238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41239 $as_echo "$ac_header_preproc" >&6; }
41240
41241 # So?  What about this header?
41242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41243   yes:no: )
41244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41245 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41246     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41247 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41248     ac_header_preproc=yes
41249     ;;
41250   no:yes:* )
41251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41252 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41254 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41256 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41257     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41258 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41259     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41260 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41261     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41262 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41263
41264     ;;
41265 esac
41266 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41267 $as_echo_n "checking for $ac_header... " >&6; }
41268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41269   $as_echo_n "(cached) " >&6
41270 else
41271   eval "$as_ac_Header=\$ac_header_preproc"
41272 fi
41273 ac_res=`eval 'as_val=${'$as_ac_Header'}
41274                  $as_echo "$as_val"'`
41275                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41276 $as_echo "$ac_res" >&6; }
41277
41278 fi
41279 as_val=`eval 'as_val=${'$as_ac_Header'}
41280                  $as_echo "$as_val"'`
41281    if test "x$as_val" = x""yes; then
41282   cat >>confdefs.h <<_ACEOF
41283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41284 _ACEOF
41285  found_hmac_h=yes; break
41286 fi
41287
41288 done
41289
41290     if test x"$found_hmac_h" != x"yes"; then
41291         HAVE_HMAC=no
41292     fi
41293
41294
41295
41296
41297
41298     # Check whether --enable-s3-device was given.
41299 if test "${enable_s3_device+set}" = set; then
41300   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
41301 else
41302    WANT_S3_DEVICE=maybe
41303 fi
41304
41305
41306     { $as_echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
41307 $as_echo_n "checking whether to include the Amazon S3 device... " >&6; }
41308     # if the user didn't specify 'no', then check for support
41309     if test x"$WANT_S3_DEVICE" != x"no"; then
41310         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
41311             WANT_S3_DEVICE=yes
41312         else
41313             # no support -- if the user explicitly enabled the device,
41314             # then this is an error
41315             if test x"$WANT_S3_DEVICE" = x"yes"; then
41316                 { $as_echo "$as_me:$LINENO: result: no" >&5
41317 $as_echo "no" >&6; }
41318                 { { $as_echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
41319 $as_echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
41320    { (exit 1); exit 1; }; }
41321             else
41322                 WANT_S3_DEVICE=no
41323             fi
41324         fi
41325     fi
41326     { $as_echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
41327 $as_echo "$WANT_S3_DEVICE" >&6; }
41328
41329      if test x"$WANT_S3_DEVICE" = x"yes"; then
41330   WANT_S3_DEVICE_TRUE=
41331   WANT_S3_DEVICE_FALSE='#'
41332 else
41333   WANT_S3_DEVICE_TRUE='#'
41334   WANT_S3_DEVICE_FALSE=
41335 fi
41336
41337
41338     # Now handle any setup for S3, if we want it.
41339     if test x"$WANT_S3_DEVICE" = x"yes"; then
41340
41341 cat >>confdefs.h <<\_ACEOF
41342 #define WANT_S3_DEVICE /**/
41343 _ACEOF
41344
41345     fi
41346
41347
41348
41349
41350
41351 for ac_header in \
41352         linux/zftape.h \
41353         sys/tape.h \
41354         sys/mtio.h \
41355
41356 do
41357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41359   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41360 $as_echo_n "checking for $ac_header... " >&6; }
41361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41362   $as_echo_n "(cached) " >&6
41363 fi
41364 ac_res=`eval 'as_val=${'$as_ac_Header'}
41365                  $as_echo "$as_val"'`
41366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41367 $as_echo "$ac_res" >&6; }
41368 else
41369   # Is the header compilable?
41370 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41371 $as_echo_n "checking $ac_header usability... " >&6; }
41372 cat >conftest.$ac_ext <<_ACEOF
41373 /* confdefs.h.  */
41374 _ACEOF
41375 cat confdefs.h >>conftest.$ac_ext
41376 cat >>conftest.$ac_ext <<_ACEOF
41377 /* end confdefs.h.  */
41378 $ac_includes_default
41379 #include <$ac_header>
41380 _ACEOF
41381 rm -f conftest.$ac_objext
41382 if { (ac_try="$ac_compile"
41383 case "(($ac_try" in
41384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41385   *) ac_try_echo=$ac_try;;
41386 esac
41387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41388 $as_echo "$ac_try_echo") >&5
41389   (eval "$ac_compile") 2>conftest.er1
41390   ac_status=$?
41391   grep -v '^ *+' conftest.er1 >conftest.err
41392   rm -f conftest.er1
41393   cat conftest.err >&5
41394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395   (exit $ac_status); } && {
41396          test -z "$ac_c_werror_flag" ||
41397          test ! -s conftest.err
41398        } && test -s conftest.$ac_objext; then
41399   ac_header_compiler=yes
41400 else
41401   $as_echo "$as_me: failed program was:" >&5
41402 sed 's/^/| /' conftest.$ac_ext >&5
41403
41404         ac_header_compiler=no
41405 fi
41406
41407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41409 $as_echo "$ac_header_compiler" >&6; }
41410
41411 # Is the header present?
41412 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41413 $as_echo_n "checking $ac_header presence... " >&6; }
41414 cat >conftest.$ac_ext <<_ACEOF
41415 /* confdefs.h.  */
41416 _ACEOF
41417 cat confdefs.h >>conftest.$ac_ext
41418 cat >>conftest.$ac_ext <<_ACEOF
41419 /* end confdefs.h.  */
41420 #include <$ac_header>
41421 _ACEOF
41422 if { (ac_try="$ac_cpp conftest.$ac_ext"
41423 case "(($ac_try" in
41424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41425   *) ac_try_echo=$ac_try;;
41426 esac
41427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41428 $as_echo "$ac_try_echo") >&5
41429   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41430   ac_status=$?
41431   grep -v '^ *+' conftest.er1 >conftest.err
41432   rm -f conftest.er1
41433   cat conftest.err >&5
41434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41435   (exit $ac_status); } >/dev/null && {
41436          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41437          test ! -s conftest.err
41438        }; then
41439   ac_header_preproc=yes
41440 else
41441   $as_echo "$as_me: failed program was:" >&5
41442 sed 's/^/| /' conftest.$ac_ext >&5
41443
41444   ac_header_preproc=no
41445 fi
41446
41447 rm -f conftest.err conftest.$ac_ext
41448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41449 $as_echo "$ac_header_preproc" >&6; }
41450
41451 # So?  What about this header?
41452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41453   yes:no: )
41454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41455 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41458     ac_header_preproc=yes
41459     ;;
41460   no:yes:* )
41461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41462 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41464 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41466 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41467     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41468 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41469     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41471     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41472 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41473
41474     ;;
41475 esac
41476 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41477 $as_echo_n "checking for $ac_header... " >&6; }
41478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41479   $as_echo_n "(cached) " >&6
41480 else
41481   eval "$as_ac_Header=\$ac_header_preproc"
41482 fi
41483 ac_res=`eval 'as_val=${'$as_ac_Header'}
41484                  $as_echo "$as_val"'`
41485                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41486 $as_echo "$ac_res" >&6; }
41487
41488 fi
41489 as_val=`eval 'as_val=${'$as_ac_Header'}
41490                  $as_echo "$as_val"'`
41491    if test "x$as_val" = x""yes; then
41492   cat >>confdefs.h <<_ACEOF
41493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41494 _ACEOF
41495
41496 fi
41497
41498 done
41499
41500
41501     # check for MTIOCTOP, an indicator of POSIX tape support
41502     { $as_echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
41503 $as_echo_n "checking for MTIOCTOP... " >&6; }
41504 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
41505   $as_echo_n "(cached) " >&6
41506 else
41507
41508         cat >conftest.$ac_ext <<_ACEOF
41509 /* confdefs.h.  */
41510 _ACEOF
41511 cat confdefs.h >>conftest.$ac_ext
41512 cat >>conftest.$ac_ext <<_ACEOF
41513 /* end confdefs.h.  */
41514
41515 #ifdef HAVE_SYS_TAPE_H
41516 # include <sys/tape.h>
41517 #endif
41518 #ifdef HAVE_SYS_MTIO_H
41519 # include <sys/mtio.h>
41520 #endif
41521 #ifndef MTIOCTOP
41522 #error MTIOCTOP not defined
41523 #endif
41524
41525 int
41526 main ()
41527 {
41528  int dummy = 0;
41529   ;
41530   return 0;
41531 }
41532 _ACEOF
41533 rm -f conftest.$ac_objext
41534 if { (ac_try="$ac_compile"
41535 case "(($ac_try" in
41536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41537   *) ac_try_echo=$ac_try;;
41538 esac
41539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41540 $as_echo "$ac_try_echo") >&5
41541   (eval "$ac_compile") 2>conftest.er1
41542   ac_status=$?
41543   grep -v '^ *+' conftest.er1 >conftest.err
41544   rm -f conftest.er1
41545   cat conftest.err >&5
41546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41547   (exit $ac_status); } && {
41548          test -z "$ac_c_werror_flag" ||
41549          test ! -s conftest.err
41550        } && test -s conftest.$ac_objext; then
41551   amanda_cv_HAVE_MTIOCTOP=yes
41552 else
41553   $as_echo "$as_me: failed program was:" >&5
41554 sed 's/^/| /' conftest.$ac_ext >&5
41555
41556         amanda_cv_HAVE_MTIOCTOP=no
41557 fi
41558
41559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41560
41561         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
41562
41563 fi
41564 { $as_echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
41565 $as_echo "$amanda_cv_HAVE_MTIOCTOP" >&6; }
41566
41567     # maybe we have no tape device at all (e.g., Mac OS X)?
41568     if test x"$HAVE_MTIOCTOP" = x"yes"; then
41569         want_tape_device=yes
41570
41571 cat >>confdefs.h <<\_ACEOF
41572 #define WANT_TAPE_DEVICE 1
41573 _ACEOF
41574
41575     fi
41576      if test -n "$want_tape_device"; then
41577   WANT_TAPE_DEVICE_TRUE=
41578   WANT_TAPE_DEVICE_FALSE='#'
41579 else
41580   WANT_TAPE_DEVICE_TRUE='#'
41581   WANT_TAPE_DEVICE_FALSE=
41582 fi
41583
41584
41585     #
41586     # Check for various "mt status" related structure elements.
41587     #
41588     { $as_echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
41589 $as_echo_n "checking for mt_flags mtget structure element... " >&6; }
41590     cat >conftest.$ac_ext <<_ACEOF
41591 /* confdefs.h.  */
41592 _ACEOF
41593 cat confdefs.h >>conftest.$ac_ext
41594 cat >>conftest.$ac_ext <<_ACEOF
41595 /* end confdefs.h.  */
41596
41597 #include <stdio.h>
41598 #include <sys/types.h>
41599 #include <sys/mtio.h>
41600
41601 int
41602 main ()
41603 {
41604
41605             struct mtget buf;
41606             long ds;
41607
41608             ds = buf.mt_flags;
41609
41610   ;
41611   return 0;
41612 }
41613 _ACEOF
41614 rm -f conftest.$ac_objext
41615 if { (ac_try="$ac_compile"
41616 case "(($ac_try" in
41617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41618   *) ac_try_echo=$ac_try;;
41619 esac
41620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41621 $as_echo "$ac_try_echo") >&5
41622   (eval "$ac_compile") 2>conftest.er1
41623   ac_status=$?
41624   grep -v '^ *+' conftest.er1 >conftest.err
41625   rm -f conftest.er1
41626   cat conftest.err >&5
41627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628   (exit $ac_status); } && {
41629          test -z "$ac_c_werror_flag" ||
41630          test ! -s conftest.err
41631        } && test -s conftest.$ac_objext; then
41632
41633             { $as_echo "$as_me:$LINENO: result: yes" >&5
41634 $as_echo "yes" >&6; }
41635
41636 cat >>confdefs.h <<\_ACEOF
41637 #define HAVE_MT_FLAGS 1
41638 _ACEOF
41639
41640
41641 else
41642   $as_echo "$as_me: failed program was:" >&5
41643 sed 's/^/| /' conftest.$ac_ext >&5
41644
41645
41646             { $as_echo "$as_me:$LINENO: result: no" >&5
41647 $as_echo "no" >&6; }
41648
41649 fi
41650
41651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41652
41653     { $as_echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
41654 $as_echo_n "checking for mt_fileno mtget structure element... " >&6; }
41655     mt_fileno_result="found"
41656     cat >conftest.$ac_ext <<_ACEOF
41657 /* confdefs.h.  */
41658 _ACEOF
41659 cat confdefs.h >>conftest.$ac_ext
41660 cat >>conftest.$ac_ext <<_ACEOF
41661 /* end confdefs.h.  */
41662
41663 #include <stdio.h>
41664 #include <sys/types.h>
41665 #include <sys/mtio.h>
41666
41667 int
41668 main ()
41669 {
41670
41671             struct mtget buf;
41672             long ds;
41673
41674             ds = buf.mt_fileno;
41675
41676   ;
41677   return 0;
41678 }
41679 _ACEOF
41680 rm -f conftest.$ac_objext
41681 if { (ac_try="$ac_compile"
41682 case "(($ac_try" in
41683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41684   *) ac_try_echo=$ac_try;;
41685 esac
41686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41687 $as_echo "$ac_try_echo") >&5
41688   (eval "$ac_compile") 2>conftest.er1
41689   ac_status=$?
41690   grep -v '^ *+' conftest.er1 >conftest.err
41691   rm -f conftest.er1
41692   cat conftest.err >&5
41693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694   (exit $ac_status); } && {
41695          test -z "$ac_c_werror_flag" ||
41696          test ! -s conftest.err
41697        } && test -s conftest.$ac_objext; then
41698
41699             { $as_echo "$as_me:$LINENO: result: yes" >&5
41700 $as_echo "yes" >&6; }
41701
41702 cat >>confdefs.h <<\_ACEOF
41703 #define HAVE_MT_FILENO 1
41704 _ACEOF
41705
41706
41707 else
41708   $as_echo "$as_me: failed program was:" >&5
41709 sed 's/^/| /' conftest.$ac_ext >&5
41710
41711
41712             { $as_echo "$as_me:$LINENO: result: no" >&5
41713 $as_echo "no" >&6; }
41714
41715 fi
41716
41717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41718
41719     { $as_echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
41720 $as_echo_n "checking for mt_blkno mtget structure element... " >&6; }
41721     cat >conftest.$ac_ext <<_ACEOF
41722 /* confdefs.h.  */
41723 _ACEOF
41724 cat confdefs.h >>conftest.$ac_ext
41725 cat >>conftest.$ac_ext <<_ACEOF
41726 /* end confdefs.h.  */
41727
41728 #include <stdio.h>
41729 #include <sys/types.h>
41730 #include <sys/mtio.h>
41731
41732 int
41733 main ()
41734 {
41735
41736             struct mtget buf;
41737             long ds;
41738
41739             ds = buf.mt_blkno;
41740
41741   ;
41742   return 0;
41743 }
41744 _ACEOF
41745 rm -f conftest.$ac_objext
41746 if { (ac_try="$ac_compile"
41747 case "(($ac_try" in
41748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41749   *) ac_try_echo=$ac_try;;
41750 esac
41751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41752 $as_echo "$ac_try_echo") >&5
41753   (eval "$ac_compile") 2>conftest.er1
41754   ac_status=$?
41755   grep -v '^ *+' conftest.er1 >conftest.err
41756   rm -f conftest.er1
41757   cat conftest.err >&5
41758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41759   (exit $ac_status); } && {
41760          test -z "$ac_c_werror_flag" ||
41761          test ! -s conftest.err
41762        } && test -s conftest.$ac_objext; then
41763
41764             { $as_echo "$as_me:$LINENO: result: yes" >&5
41765 $as_echo "yes" >&6; }
41766
41767 cat >>confdefs.h <<\_ACEOF
41768 #define HAVE_MT_BLKNO 1
41769 _ACEOF
41770
41771
41772 else
41773   $as_echo "$as_me: failed program was:" >&5
41774 sed 's/^/| /' conftest.$ac_ext >&5
41775
41776
41777             { $as_echo "$as_me:$LINENO: result: no" >&5
41778 $as_echo "no" >&6; }
41779
41780 fi
41781
41782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41783
41784     { $as_echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
41785 $as_echo_n "checking for mt_dsreg mtget structure element... " >&6; }
41786     cat >conftest.$ac_ext <<_ACEOF
41787 /* confdefs.h.  */
41788 _ACEOF
41789 cat confdefs.h >>conftest.$ac_ext
41790 cat >>conftest.$ac_ext <<_ACEOF
41791 /* end confdefs.h.  */
41792
41793 #include <stdio.h>
41794 #include <sys/types.h>
41795 #include <sys/mtio.h>
41796
41797 int
41798 main ()
41799 {
41800
41801             struct mtget buf;
41802             long ds;
41803
41804             ds = buf.mt_dsreg;
41805
41806   ;
41807   return 0;
41808 }
41809 _ACEOF
41810 rm -f conftest.$ac_objext
41811 if { (ac_try="$ac_compile"
41812 case "(($ac_try" in
41813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41814   *) ac_try_echo=$ac_try;;
41815 esac
41816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41817 $as_echo "$ac_try_echo") >&5
41818   (eval "$ac_compile") 2>conftest.er1
41819   ac_status=$?
41820   grep -v '^ *+' conftest.er1 >conftest.err
41821   rm -f conftest.er1
41822   cat conftest.err >&5
41823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824   (exit $ac_status); } && {
41825          test -z "$ac_c_werror_flag" ||
41826          test ! -s conftest.err
41827        } && test -s conftest.$ac_objext; then
41828
41829             { $as_echo "$as_me:$LINENO: result: yes" >&5
41830 $as_echo "yes" >&6; }
41831
41832 cat >>confdefs.h <<\_ACEOF
41833 #define HAVE_MT_DSREG 1
41834 _ACEOF
41835
41836
41837 else
41838   $as_echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41840
41841
41842             { $as_echo "$as_me:$LINENO: result: no" >&5
41843 $as_echo "no" >&6; }
41844
41845 fi
41846
41847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41848
41849     { $as_echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
41850 $as_echo_n "checking for mt_erreg mtget structure element... " >&6; }
41851     cat >conftest.$ac_ext <<_ACEOF
41852 /* confdefs.h.  */
41853 _ACEOF
41854 cat confdefs.h >>conftest.$ac_ext
41855 cat >>conftest.$ac_ext <<_ACEOF
41856 /* end confdefs.h.  */
41857
41858 #include <stdio.h>
41859 #include <sys/types.h>
41860 #include <sys/mtio.h>
41861
41862 int
41863 main ()
41864 {
41865
41866             struct mtget buf;
41867             long ds;
41868
41869             ds = buf.mt_erreg;
41870
41871   ;
41872   return 0;
41873 }
41874 _ACEOF
41875 rm -f conftest.$ac_objext
41876 if { (ac_try="$ac_compile"
41877 case "(($ac_try" in
41878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41879   *) ac_try_echo=$ac_try;;
41880 esac
41881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41882 $as_echo "$ac_try_echo") >&5
41883   (eval "$ac_compile") 2>conftest.er1
41884   ac_status=$?
41885   grep -v '^ *+' conftest.er1 >conftest.err
41886   rm -f conftest.er1
41887   cat conftest.err >&5
41888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889   (exit $ac_status); } && {
41890          test -z "$ac_c_werror_flag" ||
41891          test ! -s conftest.err
41892        } && test -s conftest.$ac_objext; then
41893
41894             { $as_echo "$as_me:$LINENO: result: yes" >&5
41895 $as_echo "yes" >&6; }
41896
41897 cat >>confdefs.h <<\_ACEOF
41898 #define HAVE_MT_ERREG 1
41899 _ACEOF
41900
41901
41902 else
41903   $as_echo "$as_me: failed program was:" >&5
41904 sed 's/^/| /' conftest.$ac_ext >&5
41905
41906
41907             { $as_echo "$as_me:$LINENO: result: no" >&5
41908 $as_echo "no" >&6; }
41909
41910 fi
41911
41912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41913
41914     case "$host" in
41915         *linux*)
41916 cat >>confdefs.h <<\_ACEOF
41917 #define DEFAULT_TAPE_NON_BLOCKING_OPEN 1
41918 _ACEOF
41919 ;;
41920     esac
41921
41922
41923         # Check whether --enable-dvdrw-device was given.
41924 if test "${enable_dvdrw_device+set}" = set; then
41925   enableval=$enable_dvdrw_device;  WANT_DVDRW_DEVICE=$enableval
41926 else
41927    WANT_DVDRW_DEVICE=yes
41928 fi
41929
41930
41931         { $as_echo "$as_me:$LINENO: checking whether to include the DVD-RW device" >&5
41932 $as_echo_n "checking whether to include the DVD-RW device... " >&6; }
41933         { $as_echo "$as_me:$LINENO: result: $WANT_DVDRW_DEVICE" >&5
41934 $as_echo "$WANT_DVDRW_DEVICE" >&6; }
41935
41936          if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
41937   WANT_DVDRW_DEVICE_TRUE=
41938   WANT_DVDRW_DEVICE_FALSE='#'
41939 else
41940   WANT_DVDRW_DEVICE_TRUE='#'
41941   WANT_DVDRW_DEVICE_FALSE=
41942 fi
41943
41944
41945         # Now handle any setup for DVDRW, if we want it.
41946         if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
41947
41948 cat >>confdefs.h <<\_ACEOF
41949 #define WANT_DVDRW_DEVICE /**/
41950 _ACEOF
41951
41952         fi
41953
41954
41955
41956
41957     # Check whether --enable-ndmp-device was given.
41958 if test "${enable_ndmp_device+set}" = set; then
41959   enableval=$enable_ndmp_device;  WANT_NDMP_DEVICE=$enableval
41960 else
41961    WANT_NDMP_DEVICE=$WANT_NDMP
41962 fi
41963
41964
41965     if test x"$WANT_NDMP" != x"true" -a x"$WANT_NDMP_DEVICE" = x"true"; then
41966         { { $as_echo "$as_me:$LINENO: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&5
41967 $as_echo "$as_me: error: NDMP support is required to build the ndmp device (--with-ndmp)" >&2;}
41968    { (exit 1); exit 1; }; }
41969     fi
41970
41971     if test x"$WANT_NDMP_DEVICE" = x"true"; then
41972
41973 cat >>confdefs.h <<\_ACEOF
41974 #define WANT_NDMP_DEVICE 1
41975 _ACEOF
41976
41977     fi
41978
41979      if test x"$WANT_NDMP_DEVICE" = x"true"; then
41980   WANT_NDMP_DEVICE_TRUE=
41981   WANT_NDMP_DEVICE_FALSE='#'
41982 else
41983   WANT_NDMP_DEVICE_TRUE='#'
41984   WANT_NDMP_DEVICE_FALSE=
41985 fi
41986
41987
41988
41989 #
41990 # Security (authentication) mechansims
41991 #
41992
41993     BSD_SECURITY="yes"
41994
41995 # Check whether --with-bsd-security was given.
41996 if test "${with_bsd_security+set}" = set; then
41997   withval=$with_bsd_security;
41998             case "$withval" in
41999                 n | no) BSD_SECURITY=no ;;
42000                 y |  ye | yes) BSD_SECURITY=yes ;;
42001                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
42002 $as_echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
42003    { (exit 1); exit 1; }; }
42004                     ;;
42005             esac
42006
42007 fi
42008
42009
42010     USE_AMANDAHOSTS=yes
42011
42012 # Check whether --with-amandahosts was given.
42013 if test "${with_amandahosts+set}" = set; then
42014   withval=$with_amandahosts;
42015             case "$withval" in
42016                 n | no ) USE_AMANDAHOSTS=no ;;
42017                 y |  ye | yes) USE_AMANDAHOSTS=yes ;;
42018                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
42019 $as_echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
42020    { (exit 1); exit 1; }; }
42021                   ;;
42022             esac
42023
42024
42025 fi
42026
42027
42028     if test "x$BSD_SECURITY" = "xyes"; then
42029
42030 cat >>confdefs.h <<\_ACEOF
42031 #define BSD_SECURITY 1
42032 _ACEOF
42033
42034         if test "x$USE_AMANDAHOSTS" = "xyes"; then
42035
42036 cat >>confdefs.h <<\_ACEOF
42037 #define USE_AMANDAHOSTS 1
42038 _ACEOF
42039
42040         fi
42041     fi
42042
42043      if test x"$BSD_SECURITY" = x"yes"; then
42044   WANT_BSD_SECURITY_TRUE=
42045   WANT_BSD_SECURITY_FALSE='#'
42046 else
42047   WANT_BSD_SECURITY_TRUE='#'
42048   WANT_BSD_SECURITY_FALSE=
42049 fi
42050
42051
42052
42053
42054
42055     BSDTCP_SECURITY="yes"
42056
42057 # Check whether --with-bsdtcp-security was given.
42058 if test "${with_bsdtcp_security+set}" = set; then
42059   withval=$with_bsdtcp_security;
42060             case "$withval" in
42061                 n | no) BSDTCP_SECURITY=no ;;
42062                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
42063                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
42064 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
42065    { (exit 1); exit 1; }; }
42066               ;;
42067             esac
42068
42069 fi
42070
42071
42072     if test "x$BSDTCP_SECURITY" = "xyes"; then
42073
42074 cat >>confdefs.h <<\_ACEOF
42075 #define BSDTCP_SECURITY 1
42076 _ACEOF
42077
42078     fi
42079
42080      if test x"$BSDTCP_SECURITY" = x"yes"; then
42081   WANT_BSDTCP_SECURITY_TRUE=
42082   WANT_BSDTCP_SECURITY_FALSE='#'
42083 else
42084   WANT_BSDTCP_SECURITY_TRUE='#'
42085   WANT_BSDTCP_SECURITY_FALSE=
42086 fi
42087
42088
42089
42090
42091     BSDUDP_SECURITY="no"
42092
42093 # Check whether --with-bsdudp-security was given.
42094 if test "${with_bsdudp_security+set}" = set; then
42095   withval=$with_bsdudp_security;
42096             case "$withval" in
42097                 n | no) : ;;
42098                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
42099                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
42100 $as_echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
42101    { (exit 1); exit 1; }; }
42102               ;;
42103             esac
42104
42105 fi
42106
42107
42108     if test "x$BSDUDP_SECURITY" = "xyes"; then
42109
42110 cat >>confdefs.h <<\_ACEOF
42111 #define BSDUDP_SECURITY 1
42112 _ACEOF
42113
42114     fi
42115
42116      if test x"$BSDUDP_SECURITY" = x"yes"; then
42117   WANT_BSDUDP_SECURITY_TRUE=
42118   WANT_BSDUDP_SECURITY_FALSE='#'
42119 else
42120   WANT_BSDUDP_SECURITY_TRUE='#'
42121   WANT_BSDUDP_SECURITY_FALSE=
42122 fi
42123
42124
42125
42126
42127     RSH_SECURITY=no
42128
42129 # Check whether --with-rsh-security was given.
42130 if test "${with_rsh_security+set}" = set; then
42131   withval=$with_rsh_security;
42132             case "$withval" in
42133                 n | no) : ;;
42134                 y |  ye | yes) RSH_SECURITY=yes ;;
42135                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
42136 $as_echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
42137    { (exit 1); exit 1; }; }
42138               ;;
42139             esac
42140
42141 fi
42142
42143
42144     if test "x$RSH_SECURITY" = "xyes"; then
42145
42146 cat >>confdefs.h <<\_ACEOF
42147 #define RSH_SECURITY 1
42148 _ACEOF
42149
42150     fi
42151      if test x"$RSH_SECURITY" = x"yes"; then
42152   WANT_RSH_SECURITY_TRUE=
42153   WANT_RSH_SECURITY_FALSE='#'
42154 else
42155   WANT_RSH_SECURITY_TRUE='#'
42156   WANT_RSH_SECURITY_FALSE=
42157 fi
42158
42159
42160
42161
42162     SSH_SECURITY=yes
42163
42164 # Check whether --with-ssh-security was given.
42165 if test "${with_ssh_security+set}" = set; then
42166   withval=$with_ssh_security;
42167             case "$withval" in
42168                 n | no) SSH_SECURITY=no ;;
42169                 y |  ye | yes) SSH_SECURITY=yes ;;
42170                 *) { { $as_echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
42171 $as_echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
42172    { (exit 1); exit 1; }; }
42173               ;;
42174             esac
42175
42176 fi
42177
42178
42179     if test "x$SSH_SECURITY" = "xyes"; then
42180         # find the SSH binary
42181         for ac_prog in ssh
42182 do
42183   # Extract the first word of "$ac_prog", so it can be a program name with args.
42184 set dummy $ac_prog; ac_word=$2
42185 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42186 $as_echo_n "checking for $ac_word... " >&6; }
42187 if test "${ac_cv_path_SSH+set}" = set; then
42188   $as_echo_n "(cached) " >&6
42189 else
42190   case $SSH in
42191   [\\/]* | ?:[\\/]*)
42192   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
42193   ;;
42194   *)
42195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42196 for as_dir in $LOCSYSPATH
42197 do
42198   IFS=$as_save_IFS
42199   test -z "$as_dir" && as_dir=.
42200   for ac_exec_ext in '' $ac_executable_extensions; do
42201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42202     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
42203     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42204     break 2
42205   fi
42206 done
42207 done
42208 IFS=$as_save_IFS
42209
42210   ;;
42211 esac
42212 fi
42213 SSH=$ac_cv_path_SSH
42214 if test -n "$SSH"; then
42215   { $as_echo "$as_me:$LINENO: result: $SSH" >&5
42216 $as_echo "$SSH" >&6; }
42217 else
42218   { $as_echo "$as_me:$LINENO: result: no" >&5
42219 $as_echo "no" >&6; }
42220 fi
42221
42222
42223   test -n "$SSH" && break
42224 done
42225
42226
42227         # see what options we should use
42228
42229 # Check whether --with-ssh-options was given.
42230 if test "${with_ssh_options+set}" = set; then
42231   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
42232 else
42233    SSH_OPTIONS=''
42234
42235 fi
42236
42237
42238         case "$SSH_OPTIONS" in
42239             y | ye | yes | n | no)
42240                 { { $as_echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
42241 $as_echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
42242    { (exit 1); exit 1; }; };;
42243             *) : ;;
42244         esac
42245
42246         { $as_echo "$as_me:$LINENO: checking SSH options" >&5
42247 $as_echo_n "checking SSH options... " >&6; }
42248         # if we didn't get SSH options from the user, figure them out for ourselves
42249         if test -z "$SSH_OPTIONS"; then
42250             case `$SSH -V 2>&1` in
42251                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
42252                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
42253             esac
42254         fi
42255
42256         # now convert that to a comma-separated list of C strings
42257         eval "set dummy ${SSH_OPTIONS}"; shift
42258         SSH_OPTIONS=''
42259         for i in "${@}"; do
42260             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
42261             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
42262         done
42263         { $as_echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
42264 $as_echo "$SSH_OPTIONS" >&6; }
42265
42266         # finally, make the various outputs for all of this
42267
42268 cat >>confdefs.h <<\_ACEOF
42269 #define SSH_SECURITY 1
42270 _ACEOF
42271
42272
42273 cat >>confdefs.h <<_ACEOF
42274 #define SSH "$SSH"
42275 _ACEOF
42276
42277
42278 cat >>confdefs.h <<_ACEOF
42279 #define SSH_OPTIONS $SSH_OPTIONS
42280 _ACEOF
42281
42282     fi
42283      if test x"$SSH_SECURITY" = x"yes"; then
42284   WANT_SSH_SECURITY_TRUE=
42285   WANT_SSH_SECURITY_FALSE='#'
42286 else
42287   WANT_SSH_SECURITY_TRUE='#'
42288   WANT_SSH_SECURITY_FALSE=
42289 fi
42290
42291
42292
42293     # (note -- don't just substitute SSH_OPTIONS -- shell quoting will break)
42294
42295
42296     # Specify --with-krb5-security if Kerberos software is in somewhere
42297     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
42298     # if the right files are there.
42299
42300     KRB5_SECURITY="no"
42301     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
42302
42303
42304 # Check whether --with-krb5-security was given.
42305 if test "${with_krb5_security+set}" = set; then
42306   withval=$with_krb5_security;
42307             case "$withval" in
42308                 n | no) KRB5_SECURITY=no ;;
42309                 y | ye | yes) KRB5_SECURITY=yes ;;
42310                 *) KRB5_SPOTS="$KRB5_SECURITY"
42311                    KRB5_SECURITY=yes
42312                    ;;
42313             esac
42314
42315
42316 fi
42317
42318
42319     if test "x$KRB5_SECURITY" = "xyes"; then
42320         # if found, force the static versions of these libs (.a) by linking directly
42321         # with the .a files.  I don't know how to get -R dependancies checked
42322         # in autoconf at this time. -kashmir
42323         { $as_echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
42324 $as_echo_n "checking for Kerberos V libraries... " >&6; }
42325         KRB5_DIR_FOUND=""
42326         for dir in $KRB5_SPOTS; do
42327           for lib in lib lib64; do
42328             k5libdir=${dir}/${lib}
42329             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
42330                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
42331                     K5CRYPTO=-lk5crypto
42332                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
42333                     K5CRYPTO=-lcrypto
42334                 else
42335                     K5CRYPTO=""
42336                 fi
42337                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
42338                     K5SUPPORT=-lkrb5support
42339                 else
42340                     K5SUPPORT=""
42341                 fi
42342                 KRB5_DIR_FOUND=$dir
42343                 KRB5_LIBDIR_FOUND=$k5libdir
42344                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
42345
42346                 break
42347             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
42348                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
42349
42350                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
42351
42352                 break
42353             fi
42354           done
42355         done
42356
42357         if test "$KRB5_DIR_FOUND"; then
42358             { $as_echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
42359 $as_echo "found in $KRB5_DIR_FOUND" >&6; }
42360             #
42361             # some OS's, such as NetBSD, stick krb5 includes out of the way...
42362             # should probably just use autoconf to look for various include
42363             # options and set them, but don't quite want to do that until I've
42364             # dug into it a bit more.
42365             #
42366             if test -d "$KRB5_DIR_FOUND/krb5" ; then
42367                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
42368
42369             else
42370                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
42371
42372             fi
42373
42374 { $as_echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
42375 $as_echo_n "checking for main in -lkrb5support... " >&6; }
42376 if test "${ac_cv_lib_krb5support_main+set}" = set; then
42377   $as_echo_n "(cached) " >&6
42378 else
42379   ac_check_lib_save_LIBS=$LIBS
42380 LIBS="-lkrb5support  $LIBS"
42381 cat >conftest.$ac_ext <<_ACEOF
42382 /* confdefs.h.  */
42383 _ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h.  */
42387
42388
42389 int
42390 main ()
42391 {
42392 return main ();
42393   ;
42394   return 0;
42395 }
42396 _ACEOF
42397 rm -f conftest.$ac_objext conftest$ac_exeext
42398 if { (ac_try="$ac_link"
42399 case "(($ac_try" in
42400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42401   *) ac_try_echo=$ac_try;;
42402 esac
42403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42404 $as_echo "$ac_try_echo") >&5
42405   (eval "$ac_link") 2>conftest.er1
42406   ac_status=$?
42407   grep -v '^ *+' conftest.er1 >conftest.err
42408   rm -f conftest.er1
42409   cat conftest.err >&5
42410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411   (exit $ac_status); } && {
42412          test -z "$ac_c_werror_flag" ||
42413          test ! -s conftest.err
42414        } && test -s conftest$ac_exeext && {
42415          test "$cross_compiling" = yes ||
42416          $as_test_x conftest$ac_exeext
42417        }; then
42418   ac_cv_lib_krb5support_main=yes
42419 else
42420   $as_echo "$as_me: failed program was:" >&5
42421 sed 's/^/| /' conftest.$ac_ext >&5
42422
42423         ac_cv_lib_krb5support_main=no
42424 fi
42425
42426 rm -rf conftest.dSYM
42427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42428       conftest$ac_exeext conftest.$ac_ext
42429 LIBS=$ac_check_lib_save_LIBS
42430 fi
42431 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
42432 $as_echo "$ac_cv_lib_krb5support_main" >&6; }
42433 if test "x$ac_cv_lib_krb5support_main" = x""yes; then
42434   cat >>confdefs.h <<_ACEOF
42435 #define HAVE_LIBKRB5SUPPORT 1
42436 _ACEOF
42437
42438   LIBS="-lkrb5support $LIBS"
42439
42440 fi
42441
42442             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
42443
42444
42445
42446 cat >>confdefs.h <<\_ACEOF
42447 #define KRB5_SECURITY 1
42448 _ACEOF
42449
42450         else
42451             { $as_echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
42452 $as_echo "no krb5 system libraries found" >&6; }
42453             { { $as_echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
42454 $as_echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
42455    { (exit 1); exit 1; }; }
42456             KRB5_SECURITY="no"
42457         fi
42458     fi
42459
42460      if test x"$KRB5_SECURITY" = x"yes"; then
42461   WANT_KRB5_SECURITY_TRUE=
42462   WANT_KRB5_SECURITY_FALSE='#'
42463 else
42464   WANT_KRB5_SECURITY_TRUE='#'
42465   WANT_KRB5_SECURITY_FALSE=
42466 fi
42467
42468
42469
42470
42471 #
42472 # Dumpers
42473 #
42474
42475
42476
42477     for ac_prog in xfsdump
42478 do
42479   # Extract the first word of "$ac_prog", so it can be a program name with args.
42480 set dummy $ac_prog; ac_word=$2
42481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42482 $as_echo_n "checking for $ac_word... " >&6; }
42483 if test "${ac_cv_path_XFSDUMP+set}" = set; then
42484   $as_echo_n "(cached) " >&6
42485 else
42486   case $XFSDUMP in
42487   [\\/]* | ?:[\\/]*)
42488   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
42489   ;;
42490   *)
42491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42492 for as_dir in $SYSLOCPATH
42493 do
42494   IFS=$as_save_IFS
42495   test -z "$as_dir" && as_dir=.
42496   for ac_exec_ext in '' $ac_executable_extensions; do
42497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42498     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
42499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42500     break 2
42501   fi
42502 done
42503 done
42504 IFS=$as_save_IFS
42505
42506   ;;
42507 esac
42508 fi
42509 XFSDUMP=$ac_cv_path_XFSDUMP
42510 if test -n "$XFSDUMP"; then
42511   { $as_echo "$as_me:$LINENO: result: $XFSDUMP" >&5
42512 $as_echo "$XFSDUMP" >&6; }
42513 else
42514   { $as_echo "$as_me:$LINENO: result: no" >&5
42515 $as_echo "no" >&6; }
42516 fi
42517
42518
42519   test -n "$XFSDUMP" && break
42520 done
42521
42522     for ac_prog in xfsrestore
42523 do
42524   # Extract the first word of "$ac_prog", so it can be a program name with args.
42525 set dummy $ac_prog; ac_word=$2
42526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42527 $as_echo_n "checking for $ac_word... " >&6; }
42528 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
42529   $as_echo_n "(cached) " >&6
42530 else
42531   case $XFSRESTORE in
42532   [\\/]* | ?:[\\/]*)
42533   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
42534   ;;
42535   *)
42536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42537 for as_dir in $SYSLOCPATH
42538 do
42539   IFS=$as_save_IFS
42540   test -z "$as_dir" && as_dir=.
42541   for ac_exec_ext in '' $ac_executable_extensions; do
42542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42543     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
42544     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42545     break 2
42546   fi
42547 done
42548 done
42549 IFS=$as_save_IFS
42550
42551   ;;
42552 esac
42553 fi
42554 XFSRESTORE=$ac_cv_path_XFSRESTORE
42555 if test -n "$XFSRESTORE"; then
42556   { $as_echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
42557 $as_echo "$XFSRESTORE" >&6; }
42558 else
42559   { $as_echo "$as_me:$LINENO: result: no" >&5
42560 $as_echo "no" >&6; }
42561 fi
42562
42563
42564   test -n "$XFSRESTORE" && break
42565 done
42566
42567     if test "$XFSDUMP" -a "$XFSRESTORE"; then
42568
42569 cat >>confdefs.h <<_ACEOF
42570 #define XFSDUMP "$XFSDUMP"
42571 _ACEOF
42572
42573
42574 cat >>confdefs.h <<_ACEOF
42575 #define XFSRESTORE "$XFSRESTORE"
42576 _ACEOF
42577
42578
42579     { $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
42580 $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;}
42581
42582
42583     cat <<AAW_EOF >>config.warnings
42584 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
42585 AAW_EOF
42586
42587
42588     fi
42589
42590
42591
42592
42593     # Extract the first word of "vxdump", so it can be a program name with args.
42594 set dummy vxdump; ac_word=$2
42595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42596 $as_echo_n "checking for $ac_word... " >&6; }
42597 if test "${ac_cv_path_VXDUMP+set}" = set; then
42598   $as_echo_n "(cached) " >&6
42599 else
42600   case $VXDUMP in
42601   [\\/]* | ?:[\\/]*)
42602   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
42603   ;;
42604   *)
42605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42606 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
42607 for as_dir in $as_dummy
42608 do
42609   IFS=$as_save_IFS
42610   test -z "$as_dir" && as_dir=.
42611   for ac_exec_ext in '' $ac_executable_extensions; do
42612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42613     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
42614     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42615     break 2
42616   fi
42617 done
42618 done
42619 IFS=$as_save_IFS
42620
42621   ;;
42622 esac
42623 fi
42624 VXDUMP=$ac_cv_path_VXDUMP
42625 if test -n "$VXDUMP"; then
42626   { $as_echo "$as_me:$LINENO: result: $VXDUMP" >&5
42627 $as_echo "$VXDUMP" >&6; }
42628 else
42629   { $as_echo "$as_me:$LINENO: result: no" >&5
42630 $as_echo "no" >&6; }
42631 fi
42632
42633
42634     # Extract the first word of "vxrestore", so it can be a program name with args.
42635 set dummy vxrestore; ac_word=$2
42636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42637 $as_echo_n "checking for $ac_word... " >&6; }
42638 if test "${ac_cv_path_VXRESTORE+set}" = set; then
42639   $as_echo_n "(cached) " >&6
42640 else
42641   case $VXRESTORE in
42642   [\\/]* | ?:[\\/]*)
42643   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
42644   ;;
42645   *)
42646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42647 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
42648 for as_dir in $as_dummy
42649 do
42650   IFS=$as_save_IFS
42651   test -z "$as_dir" && as_dir=.
42652   for ac_exec_ext in '' $ac_executable_extensions; do
42653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42654     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
42655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42656     break 2
42657   fi
42658 done
42659 done
42660 IFS=$as_save_IFS
42661
42662   ;;
42663 esac
42664 fi
42665 VXRESTORE=$ac_cv_path_VXRESTORE
42666 if test -n "$VXRESTORE"; then
42667   { $as_echo "$as_me:$LINENO: result: $VXRESTORE" >&5
42668 $as_echo "$VXRESTORE" >&6; }
42669 else
42670   { $as_echo "$as_me:$LINENO: result: no" >&5
42671 $as_echo "no" >&6; }
42672 fi
42673
42674
42675     if test "$VXDUMP" -a "$VXRESTORE"; then
42676
42677 cat >>confdefs.h <<_ACEOF
42678 #define VXDUMP "$VXDUMP"
42679 _ACEOF
42680
42681
42682 cat >>confdefs.h <<_ACEOF
42683 #define VXRESTORE "$VXRESTORE"
42684 _ACEOF
42685
42686     fi
42687
42688
42689
42690
42691     # Extract the first word of "vdump", so it can be a program name with args.
42692 set dummy vdump; ac_word=$2
42693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42694 $as_echo_n "checking for $ac_word... " >&6; }
42695 if test "${ac_cv_path_VDUMP+set}" = set; then
42696   $as_echo_n "(cached) " >&6
42697 else
42698   case $VDUMP in
42699   [\\/]* | ?:[\\/]*)
42700   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
42701   ;;
42702   *)
42703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42704 for as_dir in $SYSLOCPATH
42705 do
42706   IFS=$as_save_IFS
42707   test -z "$as_dir" && as_dir=.
42708   for ac_exec_ext in '' $ac_executable_extensions; do
42709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42710     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
42711     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42712     break 2
42713   fi
42714 done
42715 done
42716 IFS=$as_save_IFS
42717
42718   ;;
42719 esac
42720 fi
42721 VDUMP=$ac_cv_path_VDUMP
42722 if test -n "$VDUMP"; then
42723   { $as_echo "$as_me:$LINENO: result: $VDUMP" >&5
42724 $as_echo "$VDUMP" >&6; }
42725 else
42726   { $as_echo "$as_me:$LINENO: result: no" >&5
42727 $as_echo "no" >&6; }
42728 fi
42729
42730
42731     # Extract the first word of "vrestore", so it can be a program name with args.
42732 set dummy vrestore; ac_word=$2
42733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42734 $as_echo_n "checking for $ac_word... " >&6; }
42735 if test "${ac_cv_path_VRESTORE+set}" = set; then
42736   $as_echo_n "(cached) " >&6
42737 else
42738   case $VRESTORE in
42739   [\\/]* | ?:[\\/]*)
42740   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
42741   ;;
42742   *)
42743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42744 for as_dir in $SYSLOCPATH
42745 do
42746   IFS=$as_save_IFS
42747   test -z "$as_dir" && as_dir=.
42748   for ac_exec_ext in '' $ac_executable_extensions; do
42749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42750     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
42751     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42752     break 2
42753   fi
42754 done
42755 done
42756 IFS=$as_save_IFS
42757
42758   ;;
42759 esac
42760 fi
42761 VRESTORE=$ac_cv_path_VRESTORE
42762 if test -n "$VRESTORE"; then
42763   { $as_echo "$as_me:$LINENO: result: $VRESTORE" >&5
42764 $as_echo "$VRESTORE" >&6; }
42765 else
42766   { $as_echo "$as_me:$LINENO: result: no" >&5
42767 $as_echo "no" >&6; }
42768 fi
42769
42770
42771     if test "$VDUMP" -a "$VRESTORE"; then
42772
42773 cat >>confdefs.h <<_ACEOF
42774 #define VDUMP "$VDUMP"
42775 _ACEOF
42776
42777
42778 cat >>confdefs.h <<_ACEOF
42779 #define VRESTORE "$VRESTORE"
42780 _ACEOF
42781
42782     fi
42783
42784
42785
42786
42787
42788     # Set the order of dump programs to look for.  Finding the proper file
42789     # system dumping program is problematic.  Some systems, notably HP-UX
42790     # and AIX, have both the backup and dump programs.  HP-UX can't use the
42791     # the backup program while AIX systems can't use the dump program.  So
42792     # a variable is set up here to specify the order of dump programs to
42793     # search for on the system.
42794     DUMP_PROGRAMS="ufsdump dump backup"
42795     DUMP_RETURNS_1=
42796     AIX_BACKUP=
42797     case "$host" in
42798         *-dg-*)
42799             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
42800             DUMP_RETURNS_1=1
42801             ;;
42802       *-ibm-aix*)
42803             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
42804             AIX_BACKUP=1
42805
42806 cat >>confdefs.h <<\_ACEOF
42807 #define AIX_BACKUP 1
42808 _ACEOF
42809
42810             ;;
42811       *-ultrix*)
42812             DUMP_RETURNS_1=1
42813             ;;
42814     esac
42815
42816     if test -n "$DUMP_RETURNS_1"; then
42817
42818 cat >>confdefs.h <<\_ACEOF
42819 #define DUMP_RETURNS_1 1
42820 _ACEOF
42821
42822     fi
42823
42824     for ac_prog in $DUMP_PROGRAMS
42825 do
42826   # Extract the first word of "$ac_prog", so it can be a program name with args.
42827 set dummy $ac_prog; ac_word=$2
42828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42829 $as_echo_n "checking for $ac_word... " >&6; }
42830 if test "${ac_cv_path_DUMP+set}" = set; then
42831   $as_echo_n "(cached) " >&6
42832 else
42833   case $DUMP in
42834   [\\/]* | ?:[\\/]*)
42835   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
42836   ;;
42837   *)
42838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42839 for as_dir in $SYSLOCPATH
42840 do
42841   IFS=$as_save_IFS
42842   test -z "$as_dir" && as_dir=.
42843   for ac_exec_ext in '' $ac_executable_extensions; do
42844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42845     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
42846     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42847     break 2
42848   fi
42849 done
42850 done
42851 IFS=$as_save_IFS
42852
42853   ;;
42854 esac
42855 fi
42856 DUMP=$ac_cv_path_DUMP
42857 if test -n "$DUMP"; then
42858   { $as_echo "$as_me:$LINENO: result: $DUMP" >&5
42859 $as_echo "$DUMP" >&6; }
42860 else
42861   { $as_echo "$as_me:$LINENO: result: no" >&5
42862 $as_echo "no" >&6; }
42863 fi
42864
42865
42866   test -n "$DUMP" && break
42867 done
42868
42869     for ac_prog in ufsrestore restore
42870 do
42871   # Extract the first word of "$ac_prog", so it can be a program name with args.
42872 set dummy $ac_prog; ac_word=$2
42873 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42874 $as_echo_n "checking for $ac_word... " >&6; }
42875 if test "${ac_cv_path_RESTORE+set}" = set; then
42876   $as_echo_n "(cached) " >&6
42877 else
42878   case $RESTORE in
42879   [\\/]* | ?:[\\/]*)
42880   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
42881   ;;
42882   *)
42883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42884 for as_dir in $SYSLOCPATH
42885 do
42886   IFS=$as_save_IFS
42887   test -z "$as_dir" && as_dir=.
42888   for ac_exec_ext in '' $ac_executable_extensions; do
42889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42890     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
42891     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42892     break 2
42893   fi
42894 done
42895 done
42896 IFS=$as_save_IFS
42897
42898   ;;
42899 esac
42900 fi
42901 RESTORE=$ac_cv_path_RESTORE
42902 if test -n "$RESTORE"; then
42903   { $as_echo "$as_me:$LINENO: result: $RESTORE" >&5
42904 $as_echo "$RESTORE" >&6; }
42905 else
42906   { $as_echo "$as_me:$LINENO: result: no" >&5
42907 $as_echo "no" >&6; }
42908 fi
42909
42910
42911   test -n "$RESTORE" && break
42912 done
42913
42914
42915     # newer versions of GNU tar include a program named 'backup' which
42916     # does *not* implement the expected 'dump' interface.  Detect that here
42917     # and pretend we never saw it.
42918     if test -n "$DUMP"; then
42919       if test "`basename $DUMP`" = "backup"; then
42920         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
42921         if test $? -eq 0; then
42922           DUMP=
42923         fi
42924       fi
42925     fi
42926
42927     if test "$DUMP" -a "$RESTORE"; then
42928
42929 cat >>confdefs.h <<_ACEOF
42930 #define DUMP "$DUMP"
42931 _ACEOF
42932
42933
42934 cat >>confdefs.h <<_ACEOF
42935 #define RESTORE "$RESTORE"
42936 _ACEOF
42937
42938
42939         # check for an estimate flag
42940         if test -x $DUMP; then
42941             { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
42942 $as_echo_n "checking whether $DUMP supports -E or -S for estimates... " >&6; }
42943 if test "${amanda_cv_dump_estimate+set}" = set; then
42944   $as_echo_n "(cached) " >&6
42945 else
42946
42947                     case "$DUMP" in
42948                     *dump)
42949                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
42950                             | $GREP -v Dumping
42951                             | $GREP -v Date
42952                             | $GREP -v Label >conftest.d-E 2>&1'
42953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954   (eval $ac_try) 2>&5
42955   ac_status=$?
42956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957   (exit $ac_status); }; }
42958                         cat conftest.d-E >&5
42959                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
42960                             | $GREP -v Dumping
42961                             | $GREP -v Date
42962                             | $GREP -v Label >conftest.d-S 2>&1'
42963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42964   (eval $ac_try) 2>&5
42965   ac_status=$?
42966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967   (exit $ac_status); }; }
42968                         cat conftest.d-S >&5
42969                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
42970                             | $GREP -v Dumping
42971                             | $GREP -v Date
42972                             | $GREP -v Label >conftest.d 2>&1'
42973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42974   (eval $ac_try) 2>&5
42975   ac_status=$?
42976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42977   (exit $ac_status); }; }
42978                         cat conftest.d >&5
42979                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
42980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42981   (eval $ac_try) 2>&5
42982   ac_status=$?
42983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42984   (exit $ac_status); }; }; then
42985                             amanda_cv_dump_estimate=E
42986                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
42987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42988   (eval $ac_try) 2>&5
42989   ac_status=$?
42990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991   (exit $ac_status); }; }; then
42992                             amanda_cv_dump_estimate=S
42993                         else
42994                             amanda_cv_dump_estimate=no
42995                         fi
42996                         rm -f conftest.d conftest.d-E conftest.d-S
42997                       ;;
42998                     *) amanda_cv_dump_estimate=no
42999                       ;;
43000                     esac
43001
43002 fi
43003 { $as_echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
43004 $as_echo "$amanda_cv_dump_estimate" >&6; }
43005         else
43006
43007     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
43008 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
43009
43010
43011     cat <<AAW_EOF >>config.warnings
43012 $DUMP is not executable, cannot run -E/-S test
43013 AAW_EOF
43014
43015
43016             amanda_cv_dump_estimate=no
43017         fi
43018         if test "x$amanda_cv_dump_estimate" != xno; then
43019
43020 cat >>confdefs.h <<_ACEOF
43021 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
43022 _ACEOF
43023
43024         fi
43025
43026
43027 # Check whether --with-dump-honor-nodump was given.
43028 if test "${with_dump_honor_nodump+set}" = set; then
43029   withval=$with_dump_honor_nodump;
43030             if test -x $DUMP; then
43031                 { $as_echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
43032 $as_echo_n "checking whether $DUMP supports -h (honor nodump flag)... " >&6; }
43033 if test "${amanda_cv_honor_nodump+set}" = set; then
43034   $as_echo_n "(cached) " >&6
43035 else
43036
43037                     case "$DUMP" in
43038                     *dump)
43039                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
43040                             | $GREP -v Dumping
43041                             | $GREP -v Date
43042                             | $GREP -v Label >conftest.d-h 2>&1'
43043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43044   (eval $ac_try) 2>&5
43045   ac_status=$?
43046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43047   (exit $ac_status); }; }
43048                         cat conftest.d-h >&5
43049                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
43050                             | $GREP -v Dumping
43051                             | $GREP -v Date
43052                             | $GREP -v Label >conftest.d 2>&1'
43053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43054   (eval $ac_try) 2>&5
43055   ac_status=$?
43056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057   (exit $ac_status); }; }
43058                         cat conftest.d >&5
43059                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
43060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43061   (eval $ac_try) 2>&5
43062   ac_status=$?
43063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064   (exit $ac_status); }; }; then
43065                             amanda_cv_honor_nodump=yes
43066                         else
43067                             amanda_cv_honor_nodump=no
43068                         fi
43069                         rm -f conftest.d conftest.d-h
43070                       ;;
43071                     *) amanda_cv_honor_nodump=no
43072                       ;;
43073                     esac
43074
43075 fi
43076 { $as_echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
43077 $as_echo "$amanda_cv_honor_nodump" >&6; }
43078             else
43079
43080     { $as_echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
43081 $as_echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
43082
43083
43084     cat <<AAW_EOF >>config.warnings
43085 $DUMP is not executable, cannot run -h test
43086 AAW_EOF
43087
43088
43089                 amanda_cv_honor_nodump=no
43090             fi
43091             if test "x$amanda_cv_honor_nodump" = xyes; then
43092
43093 cat >>confdefs.h <<\_ACEOF
43094 #define HAVE_HONOR_NODUMP 1
43095 _ACEOF
43096
43097             fi
43098
43099 fi
43100
43101     fi
43102
43103
43104
43105
43106
43107
43108
43109     # call with
43110
43111 # Check whether --with-gnutar was given.
43112 if test "${with_gnutar+set}" = set; then
43113   withval=$with_gnutar;
43114             # check withval
43115             case "$withval" in
43116                 /*) GNUTAR="$withval";;
43117                 y|ye|yes) :;;
43118                 n|no) GNUTAR=no ;;
43119                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
43120 $as_echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
43121    { (exit 1); exit 1; }; };;
43122             esac
43123             # done
43124
43125
43126 fi
43127
43128
43129     if test "x$GNUTAR" = "xno"; then
43130         GNUTAR=
43131     else
43132         OLD_GNUTAR=$GNUTAR
43133         for gnutar_name in gtar gnutar tar; do
43134             for ac_prog in $gnutar_name
43135 do
43136   # Extract the first word of "$ac_prog", so it can be a program name with args.
43137 set dummy $ac_prog; ac_word=$2
43138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43139 $as_echo_n "checking for $ac_word... " >&6; }
43140 if test "${ac_cv_path_GNUTAR+set}" = set; then
43141   $as_echo_n "(cached) " >&6
43142 else
43143   case $GNUTAR in
43144   [\\/]* | ?:[\\/]*)
43145   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
43146   ;;
43147   *)
43148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43149 for as_dir in $LOCSYSPATH
43150 do
43151   IFS=$as_save_IFS
43152   test -z "$as_dir" && as_dir=.
43153   for ac_exec_ext in '' $ac_executable_extensions; do
43154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43155     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
43156     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43157     break 2
43158   fi
43159 done
43160 done
43161 IFS=$as_save_IFS
43162
43163   ;;
43164 esac
43165 fi
43166 GNUTAR=$ac_cv_path_GNUTAR
43167 if test -n "$GNUTAR"; then
43168   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
43169 $as_echo "$GNUTAR" >&6; }
43170 else
43171   { $as_echo "$as_me:$LINENO: result: no" >&5
43172 $as_echo "no" >&6; }
43173 fi
43174
43175
43176   test -n "$GNUTAR" && break
43177 done
43178
43179             if test -n "$GNUTAR"; then
43180               case `"$GNUTAR" --version 2>&1` in
43181                *GNU*tar* | *Free*paxutils* )
43182                             # OK, it is GNU tar
43183                             break
43184                             ;;
43185                *)
43186                             if test -n "$OLD_GNUTAR"; then
43187
43188     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, it will be used." >&5
43189 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, it will be used." >&2;}
43190
43191
43192     cat <<AAW_EOF >>config.warnings
43193 $GNUTAR is not GNU tar, it will be used.
43194 AAW_EOF
43195
43196
43197                             else
43198                                     # warning..
43199
43200     { $as_echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
43201 $as_echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
43202
43203
43204     cat <<AAW_EOF >>config.warnings
43205 $GNUTAR is not GNU tar, so it will not be used.
43206 AAW_EOF
43207
43208
43209                                     # reset the cache for GNUTAR so AC_PATH_PROGS will search again
43210                                     GNUTAR=''
43211                                     unset ac_cv_path_GNUTAR
43212                             fi
43213                             ;;
43214               esac
43215             fi
43216         done
43217     fi
43218
43219     if test "x$GNUTAR" != "x"; then
43220         # define unquoted
43221
43222 cat >>confdefs.h <<_ACEOF
43223 #define GNUTAR "$GNUTAR"
43224 _ACEOF
43225
43226     fi
43227
43228
43229
43230
43231
43232
43233     # call with
43234
43235 # Check whether --with-star was given.
43236 if test "${with_star+set}" = set; then
43237   withval=$with_star;
43238             # check withval
43239             case "$withval" in
43240                 /*) STAR="$withval";;
43241                 y|ye|yes) :;;
43242                 n|no) STAR=no ;;
43243                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-star" >&5
43244 $as_echo "$as_me: error: *** You must supply a full pathname to --with-star" >&2;}
43245    { (exit 1); exit 1; }; };;
43246             esac
43247             # done
43248
43249
43250 fi
43251
43252
43253     if test "x$STAR" = "xno"; then
43254         STAR=
43255     else
43256         OLD_STAR=$STAR
43257         for ac_prog in star
43258 do
43259   # Extract the first word of "$ac_prog", so it can be a program name with args.
43260 set dummy $ac_prog; ac_word=$2
43261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43262 $as_echo_n "checking for $ac_word... " >&6; }
43263 if test "${ac_cv_path_STAR+set}" = set; then
43264   $as_echo_n "(cached) " >&6
43265 else
43266   case $STAR in
43267   [\\/]* | ?:[\\/]*)
43268   ac_cv_path_STAR="$STAR" # Let the user override the test with a path.
43269   ;;
43270   *)
43271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43272 for as_dir in $LOCSYSPATH
43273 do
43274   IFS=$as_save_IFS
43275   test -z "$as_dir" && as_dir=.
43276   for ac_exec_ext in '' $ac_executable_extensions; do
43277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43278     ac_cv_path_STAR="$as_dir/$ac_word$ac_exec_ext"
43279     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43280     break 2
43281   fi
43282 done
43283 done
43284 IFS=$as_save_IFS
43285
43286   ;;
43287 esac
43288 fi
43289 STAR=$ac_cv_path_STAR
43290 if test -n "$STAR"; then
43291   { $as_echo "$as_me:$LINENO: result: $STAR" >&5
43292 $as_echo "$STAR" >&6; }
43293 else
43294   { $as_echo "$as_me:$LINENO: result: no" >&5
43295 $as_echo "no" >&6; }
43296 fi
43297
43298
43299   test -n "$STAR" && break
43300 done
43301
43302         if test -n "$STAR"; then
43303             case `"$STAR" --version 2>/dev/null` in
43304              *star*)
43305                     # OK, it is star
43306                     break
43307                     ;;
43308              *)
43309                     if test -n "$OLD_STAR"; then
43310
43311     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, it will be used." >&5
43312 $as_echo "$as_me: WARNING: $STAR is not star, it will be used." >&2;}
43313
43314
43315     cat <<AAW_EOF >>config.warnings
43316 $STAR is not star, it will be used.
43317 AAW_EOF
43318
43319
43320                     else
43321                         # warning..
43322
43323     { $as_echo "$as_me:$LINENO: WARNING: $STAR is not star, so it will not be used." >&5
43324 $as_echo "$as_me: WARNING: $STAR is not star, so it will not be used." >&2;}
43325
43326
43327     cat <<AAW_EOF >>config.warnings
43328 $STAR is not star, so it will not be used.
43329 AAW_EOF
43330
43331
43332                         # reset the cache for STAR so AC_PATH_PROGS will search again
43333                         STAR=''
43334                         unset ac_cv_path_STAR
43335                     fi
43336                     ;;
43337             esac
43338         fi
43339     fi
43340
43341     if test "x$STAR" != "x"; then
43342         # define unquoted
43343
43344 cat >>confdefs.h <<_ACEOF
43345 #define STAR "$STAR"
43346 _ACEOF
43347
43348     fi
43349
43350
43351
43352
43353
43354
43355
43356 # Check whether --with-smbclient was given.
43357 if test "${with_smbclient+set}" = set; then
43358   withval=$with_smbclient;
43359             case "$withval" in
43360                 /*) SAMBA_CLIENT="$withval";;
43361                 y|ye|yes) :;;
43362                 n|no) SAMBA_CLIENT=no ;;
43363                 *)  { { $as_echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
43364 $as_echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
43365    { (exit 1); exit 1; }; };;
43366             esac
43367
43368
43369 fi
43370
43371
43372
43373 # Check whether --with-samba-user was given.
43374 if test "${with_samba_user+set}" = set; then
43375   withval=$with_samba_user;  { { $as_echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
43376 $as_echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
43377    { (exit 1); exit 1; }; }
43378
43379 fi
43380
43381
43382     if test "x$SAMBA_CLIENT" != "xno"; then
43383       # Extract the first word of "smbclient", so it can be a program name with args.
43384 set dummy smbclient; ac_word=$2
43385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43386 $as_echo_n "checking for $ac_word... " >&6; }
43387 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
43388   $as_echo_n "(cached) " >&6
43389 else
43390   case $SAMBA_CLIENT in
43391   [\\/]* | ?:[\\/]*)
43392   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
43393   ;;
43394   *)
43395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43396 for as_dir in $LOCSYSPATH
43397 do
43398   IFS=$as_save_IFS
43399   test -z "$as_dir" && as_dir=.
43400   for ac_exec_ext in '' $ac_executable_extensions; do
43401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43402     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
43403     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43404     break 2
43405   fi
43406 done
43407 done
43408 IFS=$as_save_IFS
43409
43410   ;;
43411 esac
43412 fi
43413 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
43414 if test -n "$SAMBA_CLIENT"; then
43415   { $as_echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
43416 $as_echo "$SAMBA_CLIENT" >&6; }
43417 else
43418   { $as_echo "$as_me:$LINENO: result: no" >&5
43419 $as_echo "no" >&6; }
43420 fi
43421
43422
43423       smbversion=0
43424       if test ! -z "$SAMBA_CLIENT"; then
43425         case `"$SAMBA_CLIENT" '\\\\nosuchhost.amanda.org\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1` in
43426         *"Unknown host"*)
43427                       smbversion=1
43428                       ;;
43429         *"Connection to nosuchhost.amanda.org failed"*)
43430                       smbversion=2
43431                       ;;
43432         *)
43433
43434     { $as_echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
43435 $as_echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
43436
43437
43438     cat <<AAW_EOF >>config.warnings
43439 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
43440 AAW_EOF
43441
43442
43443                       SAMBA_CLIENT=
43444                       ;;
43445         esac
43446         if test -n "$SAMBA_CLIENT"; then
43447
43448 cat >>confdefs.h <<_ACEOF
43449 #define SAMBA_CLIENT "$SAMBA_CLIENT"
43450 _ACEOF
43451
43452
43453 cat >>confdefs.h <<_ACEOF
43454 #define SAMBA_VERSION $smbversion
43455 _ACEOF
43456
43457         fi
43458       fi
43459     fi
43460
43461      if test -n "$SAMBA_CLIENT"; then
43462   WANT_SAMBA_TRUE=
43463   WANT_SAMBA_FALSE='#'
43464 else
43465   WANT_SAMBA_TRUE='#'
43466   WANT_SAMBA_FALSE=
43467 fi
43468
43469
43470
43471     USE_RUNDUMP=no
43472
43473     # some systems require rundump unconditionally
43474     case "$host" in
43475         *-ultrix*) USE_RUNDUMP=yes ;;
43476         *-dg-*) USE_RUNDUMP=yes ;;
43477     esac
43478
43479
43480 # Check whether --with-rundump was given.
43481 if test "${with_rundump+set}" = set; then
43482   withval=$with_rundump;
43483         case "$withval" in
43484             n | no) USE_RUNDUMP=no ;;
43485             y | ye | yes) USE_RUNDUMP=yes ;;
43486             *) { { $as_echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
43487 $as_echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
43488    { (exit 1); exit 1; }; };;
43489         esac
43490
43491 fi
43492
43493
43494     if test x"$USE_RUNDUMP" = x"yes"; then
43495         USE_RUNDUMP=1
43496
43497 cat >>confdefs.h <<\_ACEOF
43498 #define USE_RUNDUMP 1
43499 _ACEOF
43500
43501     else
43502         USE_RUNDUMP=
43503     fi
43504
43505
43506
43507
43508 #
43509 # Look for other programs Amanda will use
43510 #
43511
43512
43513     # Extract the first word of "grep", so it can be a program name with args.
43514 set dummy grep; ac_word=$2
43515 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43516 $as_echo_n "checking for $ac_word... " >&6; }
43517 if test "${ac_cv_path_GREP+set}" = set; then
43518   $as_echo_n "(cached) " >&6
43519 else
43520   case $GREP in
43521   [\\/]* | ?:[\\/]*)
43522   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
43523   ;;
43524   *)
43525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43526 for as_dir in $LOCSYSPATH
43527 do
43528   IFS=$as_save_IFS
43529   test -z "$as_dir" && as_dir=.
43530   for ac_exec_ext in '' $ac_executable_extensions; do
43531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43532     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
43533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43534     break 2
43535   fi
43536 done
43537 done
43538 IFS=$as_save_IFS
43539
43540   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
43541   ;;
43542 esac
43543 fi
43544 GREP=$ac_cv_path_GREP
43545 if test -n "$GREP"; then
43546   { $as_echo "$as_me:$LINENO: result: $GREP" >&5
43547 $as_echo "$GREP" >&6; }
43548 else
43549   { $as_echo "$as_me:$LINENO: result: no" >&5
43550 $as_echo "no" >&6; }
43551 fi
43552
43553
43554
43555 cat >>confdefs.h <<_ACEOF
43556 #define GREP "$GREP"
43557 _ACEOF
43558
43559
43560 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
43561 $as_echo_n "checking for egrep... " >&6; }
43562 if test "${ac_cv_path_EGREP+set}" = set; then
43563   $as_echo_n "(cached) " >&6
43564 else
43565   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43566    then ac_cv_path_EGREP="$GREP -E"
43567    else
43568      if test -z "$EGREP"; then
43569   ac_path_EGREP_found=false
43570   # Loop through the user's path and test for each of PROGNAME-LIST
43571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
43573 do
43574   IFS=$as_save_IFS
43575   test -z "$as_dir" && as_dir=.
43576   for ac_prog in egrep; do
43577     for ac_exec_ext in '' $ac_executable_extensions; do
43578       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
43579       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
43580 # Check for GNU ac_path_EGREP and select it if it is found.
43581   # Check for GNU $ac_path_EGREP
43582 case `"$ac_path_EGREP" --version 2>&1` in
43583 *GNU*)
43584   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
43585 *)
43586   ac_count=0
43587   $as_echo_n 0123456789 >"conftest.in"
43588   while :
43589   do
43590     cat "conftest.in" "conftest.in" >"conftest.tmp"
43591     mv "conftest.tmp" "conftest.in"
43592     cp "conftest.in" "conftest.nl"
43593     $as_echo 'EGREP' >> "conftest.nl"
43594     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
43595     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
43596     ac_count=`expr $ac_count + 1`
43597     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
43598       # Best one so far, save it but keep looking for a better one
43599       ac_cv_path_EGREP="$ac_path_EGREP"
43600       ac_path_EGREP_max=$ac_count
43601     fi
43602     # 10*(2^10) chars as input seems more than enough
43603     test $ac_count -gt 10 && break
43604   done
43605   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
43606 esac
43607
43608       $ac_path_EGREP_found && break 3
43609     done
43610   done
43611 done
43612 IFS=$as_save_IFS
43613   if test -z "$ac_cv_path_EGREP"; then
43614     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
43615 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
43616    { (exit 1); exit 1; }; }
43617   fi
43618 else
43619   ac_cv_path_EGREP=$EGREP
43620 fi
43621
43622    fi
43623 fi
43624 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
43625 $as_echo "$ac_cv_path_EGREP" >&6; }
43626  EGREP="$ac_cv_path_EGREP"
43627
43628
43629
43630
43631
43632
43633     # Extract the first word of "lint", so it can be a program name with args.
43634 set dummy lint; ac_word=$2
43635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43636 $as_echo_n "checking for $ac_word... " >&6; }
43637 if test "${ac_cv_path_AMLINT+set}" = set; then
43638   $as_echo_n "(cached) " >&6
43639 else
43640   case $AMLINT in
43641   [\\/]* | ?:[\\/]*)
43642   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
43643   ;;
43644   *)
43645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43646 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
43647 for as_dir in $as_dummy
43648 do
43649   IFS=$as_save_IFS
43650   test -z "$as_dir" && as_dir=.
43651   for ac_exec_ext in '' $ac_executable_extensions; do
43652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43653     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
43654     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43655     break 2
43656   fi
43657 done
43658 done
43659 IFS=$as_save_IFS
43660
43661   ;;
43662 esac
43663 fi
43664 AMLINT=$ac_cv_path_AMLINT
43665 if test -n "$AMLINT"; then
43666   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
43667 $as_echo "$AMLINT" >&6; }
43668 else
43669   { $as_echo "$as_me:$LINENO: result: no" >&5
43670 $as_echo "no" >&6; }
43671 fi
43672
43673
43674     if test ! -z "$AMLINT"; then
43675       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
43676       if test $? -eq 0; then
43677         AMLINTFLAGS="-n -s -u -m -x"
43678         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
43679         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
43680         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
43681         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
43682         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
43683         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
43684         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
43685         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
43686         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
43687         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
43688         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
43689         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
43690         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
43691         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
43692         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
43693         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
43694         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
43695         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
43696         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
43697         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
43698         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
43699         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
43700         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
43701         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
43702         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
43703         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
43704         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
43705         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
43706         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
43707         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
43708         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
43709         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
43710         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
43711         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
43712         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
43713         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
43714         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
43715         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
43716         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
43717         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
43718         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
43719         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
43720         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
43721         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
43722         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
43723         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
43724         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
43725         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
43726         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
43727         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
43728       else
43729         AMLINTFLAGS=""
43730       fi
43731     else
43732       # Extract the first word of "splint", so it can be a program name with args.
43733 set dummy splint; ac_word=$2
43734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43735 $as_echo_n "checking for $ac_word... " >&6; }
43736 if test "${ac_cv_path_AMLINT+set}" = set; then
43737   $as_echo_n "(cached) " >&6
43738 else
43739   case $AMLINT in
43740   [\\/]* | ?:[\\/]*)
43741   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
43742   ;;
43743   *)
43744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43745 for as_dir in $SYSLOCPATH
43746 do
43747   IFS=$as_save_IFS
43748   test -z "$as_dir" && as_dir=.
43749   for ac_exec_ext in '' $ac_executable_extensions; do
43750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43751     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
43752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43753     break 2
43754   fi
43755 done
43756 done
43757 IFS=$as_save_IFS
43758
43759   ;;
43760 esac
43761 fi
43762 AMLINT=$ac_cv_path_AMLINT
43763 if test -n "$AMLINT"; then
43764   { $as_echo "$as_me:$LINENO: result: $AMLINT" >&5
43765 $as_echo "$AMLINT" >&6; }
43766 else
43767   { $as_echo "$as_me:$LINENO: result: no" >&5
43768 $as_echo "no" >&6; }
43769 fi
43770
43771
43772       if test ! -z "$AMLINT"; then
43773         AMLINT="splint"
43774         AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
43775       else
43776         AMLINT='echo "Error: LINT is not installed" ; false'
43777         AMLINTFLAGS=''
43778       fi
43779     fi
43780
43781
43782 for ac_prog in flex lex
43783 do
43784   # Extract the first word of "$ac_prog", so it can be a program name with args.
43785 set dummy $ac_prog; ac_word=$2
43786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43787 $as_echo_n "checking for $ac_word... " >&6; }
43788 if test "${ac_cv_prog_LEX+set}" = set; then
43789   $as_echo_n "(cached) " >&6
43790 else
43791   if test -n "$LEX"; then
43792   ac_cv_prog_LEX="$LEX" # Let the user override the test.
43793 else
43794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43795 for as_dir in $PATH
43796 do
43797   IFS=$as_save_IFS
43798   test -z "$as_dir" && as_dir=.
43799   for ac_exec_ext in '' $ac_executable_extensions; do
43800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43801     ac_cv_prog_LEX="$ac_prog"
43802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43803     break 2
43804   fi
43805 done
43806 done
43807 IFS=$as_save_IFS
43808
43809 fi
43810 fi
43811 LEX=$ac_cv_prog_LEX
43812 if test -n "$LEX"; then
43813   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
43814 $as_echo "$LEX" >&6; }
43815 else
43816   { $as_echo "$as_me:$LINENO: result: no" >&5
43817 $as_echo "no" >&6; }
43818 fi
43819
43820
43821   test -n "$LEX" && break
43822 done
43823 test -n "$LEX" || LEX=":"
43824
43825 if test "x$LEX" != "x:"; then
43826   cat >conftest.l <<_ACEOF
43827 %%
43828 a { ECHO; }
43829 b { REJECT; }
43830 c { yymore (); }
43831 d { yyless (1); }
43832 e { yyless (input () != 0); }
43833 f { unput (yytext[0]); }
43834 . { BEGIN INITIAL; }
43835 %%
43836 #ifdef YYTEXT_POINTER
43837 extern char *yytext;
43838 #endif
43839 int
43840 main (void)
43841 {
43842   return ! yylex () + ! yywrap ();
43843 }
43844 _ACEOF
43845 { (ac_try="$LEX conftest.l"
43846 case "(($ac_try" in
43847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43848   *) ac_try_echo=$ac_try;;
43849 esac
43850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43851 $as_echo "$ac_try_echo") >&5
43852   (eval "$LEX conftest.l") 2>&5
43853   ac_status=$?
43854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43855   (exit $ac_status); }
43856 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
43857 $as_echo_n "checking lex output file root... " >&6; }
43858 if test "${ac_cv_prog_lex_root+set}" = set; then
43859   $as_echo_n "(cached) " >&6
43860 else
43861
43862 if test -f lex.yy.c; then
43863   ac_cv_prog_lex_root=lex.yy
43864 elif test -f lexyy.c; then
43865   ac_cv_prog_lex_root=lexyy
43866 else
43867   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
43868 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
43869    { (exit 1); exit 1; }; }
43870 fi
43871 fi
43872 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
43873 $as_echo "$ac_cv_prog_lex_root" >&6; }
43874 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
43875
43876 if test -z "${LEXLIB+set}"; then
43877   { $as_echo "$as_me:$LINENO: checking lex library" >&5
43878 $as_echo_n "checking lex library... " >&6; }
43879 if test "${ac_cv_lib_lex+set}" = set; then
43880   $as_echo_n "(cached) " >&6
43881 else
43882
43883     ac_save_LIBS=$LIBS
43884     ac_cv_lib_lex='none needed'
43885     for ac_lib in '' -lfl -ll; do
43886       LIBS="$ac_lib $ac_save_LIBS"
43887       cat >conftest.$ac_ext <<_ACEOF
43888 `cat $LEX_OUTPUT_ROOT.c`
43889 _ACEOF
43890 rm -f conftest.$ac_objext conftest$ac_exeext
43891 if { (ac_try="$ac_link"
43892 case "(($ac_try" in
43893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43894   *) ac_try_echo=$ac_try;;
43895 esac
43896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43897 $as_echo "$ac_try_echo") >&5
43898   (eval "$ac_link") 2>conftest.er1
43899   ac_status=$?
43900   grep -v '^ *+' conftest.er1 >conftest.err
43901   rm -f conftest.er1
43902   cat conftest.err >&5
43903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43904   (exit $ac_status); } && {
43905          test -z "$ac_c_werror_flag" ||
43906          test ! -s conftest.err
43907        } && test -s conftest$ac_exeext && {
43908          test "$cross_compiling" = yes ||
43909          $as_test_x conftest$ac_exeext
43910        }; then
43911   ac_cv_lib_lex=$ac_lib
43912 else
43913   $as_echo "$as_me: failed program was:" >&5
43914 sed 's/^/| /' conftest.$ac_ext >&5
43915
43916
43917 fi
43918
43919 rm -rf conftest.dSYM
43920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43921       conftest$ac_exeext conftest.$ac_ext
43922       test "$ac_cv_lib_lex" != 'none needed' && break
43923     done
43924     LIBS=$ac_save_LIBS
43925
43926 fi
43927 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
43928 $as_echo "$ac_cv_lib_lex" >&6; }
43929   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
43930 fi
43931
43932
43933 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
43934 $as_echo_n "checking whether yytext is a pointer... " >&6; }
43935 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
43936   $as_echo_n "(cached) " >&6
43937 else
43938   # POSIX says lex can declare yytext either as a pointer or an array; the
43939 # default is implementation-dependent.  Figure out which it is, since
43940 # not all implementations provide the %pointer and %array declarations.
43941 ac_cv_prog_lex_yytext_pointer=no
43942 ac_save_LIBS=$LIBS
43943 LIBS="$LEXLIB $ac_save_LIBS"
43944 cat >conftest.$ac_ext <<_ACEOF
43945 #define YYTEXT_POINTER 1
43946 `cat $LEX_OUTPUT_ROOT.c`
43947 _ACEOF
43948 rm -f conftest.$ac_objext conftest$ac_exeext
43949 if { (ac_try="$ac_link"
43950 case "(($ac_try" in
43951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43952   *) ac_try_echo=$ac_try;;
43953 esac
43954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43955 $as_echo "$ac_try_echo") >&5
43956   (eval "$ac_link") 2>conftest.er1
43957   ac_status=$?
43958   grep -v '^ *+' conftest.er1 >conftest.err
43959   rm -f conftest.er1
43960   cat conftest.err >&5
43961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962   (exit $ac_status); } && {
43963          test -z "$ac_c_werror_flag" ||
43964          test ! -s conftest.err
43965        } && test -s conftest$ac_exeext && {
43966          test "$cross_compiling" = yes ||
43967          $as_test_x conftest$ac_exeext
43968        }; then
43969   ac_cv_prog_lex_yytext_pointer=yes
43970 else
43971   $as_echo "$as_me: failed program was:" >&5
43972 sed 's/^/| /' conftest.$ac_ext >&5
43973
43974
43975 fi
43976
43977 rm -rf conftest.dSYM
43978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43979       conftest$ac_exeext conftest.$ac_ext
43980 LIBS=$ac_save_LIBS
43981
43982 fi
43983 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
43984 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
43985 if test $ac_cv_prog_lex_yytext_pointer = yes; then
43986
43987 cat >>confdefs.h <<\_ACEOF
43988 #define YYTEXT_POINTER 1
43989 _ACEOF
43990
43991 fi
43992 rm -f conftest.l $LEX_OUTPUT_ROOT.c
43993
43994 fi
43995 if test "$LEX" = :; then
43996   LEX=${am_missing_run}flex
43997 fi
43998
43999
44000
44001     if test x"$LEX" != x""; then
44002         { $as_echo "$as_me:$LINENO: checking whether lex is broken Solaris (SGU) lex" >&5
44003 $as_echo_n "checking whether lex is broken Solaris (SGU) lex... " >&6; }
44004         $LEX -V < /dev/null >/dev/null 2>conftest.out
44005         if grep SGU conftest.out >/dev/null; then
44006             { $as_echo "$as_me:$LINENO: result: yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&5
44007 $as_echo "yes - disabled (set LEX=/path/to/lex to use a specific binary)" >&6; }
44008             LEX='echo no lex equivalent available; false'
44009         else
44010             { $as_echo "$as_me:$LINENO: result: no" >&5
44011 $as_echo "no" >&6; }
44012         fi
44013         rm conftest.out
44014     fi
44015
44016
44017
44018     # Extract the first word of "ar", so it can be a program name with args.
44019 set dummy ar; ac_word=$2
44020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44021 $as_echo_n "checking for $ac_word... " >&6; }
44022 if test "${ac_cv_path_AR+set}" = set; then
44023   $as_echo_n "(cached) " >&6
44024 else
44025   case $AR in
44026   [\\/]* | ?:[\\/]*)
44027   ac_cv_path_AR="$AR" # Let the user override the test with a path.
44028   ;;
44029   *)
44030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44031 for as_dir in $LOCSYSPATH
44032 do
44033   IFS=$as_save_IFS
44034   test -z "$as_dir" && as_dir=.
44035   for ac_exec_ext in '' $ac_executable_extensions; do
44036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44037     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
44038     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44039     break 2
44040   fi
44041 done
44042 done
44043 IFS=$as_save_IFS
44044
44045   ;;
44046 esac
44047 fi
44048 AR=$ac_cv_path_AR
44049 if test -n "$AR"; then
44050   { $as_echo "$as_me:$LINENO: result: $AR" >&5
44051 $as_echo "$AR" >&6; }
44052 else
44053   { $as_echo "$as_me:$LINENO: result: no" >&5
44054 $as_echo "no" >&6; }
44055 fi
44056
44057
44058
44059
44060
44061     # Extract the first word of "gettext", so it can be a program name with args.
44062 set dummy gettext; ac_word=$2
44063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44064 $as_echo_n "checking for $ac_word... " >&6; }
44065 if test "${ac_cv_path_GETTEXT+set}" = set; then
44066   $as_echo_n "(cached) " >&6
44067 else
44068   case $GETTEXT in
44069   [\\/]* | ?:[\\/]*)
44070   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
44071   ;;
44072   *)
44073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44074 for as_dir in $LOCSYSPATH
44075 do
44076   IFS=$as_save_IFS
44077   test -z "$as_dir" && as_dir=.
44078   for ac_exec_ext in '' $ac_executable_extensions; do
44079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44080     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
44081     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44082     break 2
44083   fi
44084 done
44085 done
44086 IFS=$as_save_IFS
44087
44088   ;;
44089 esac
44090 fi
44091 GETTEXT=$ac_cv_path_GETTEXT
44092 if test -n "$GETTEXT"; then
44093   { $as_echo "$as_me:$LINENO: result: $GETTEXT" >&5
44094 $as_echo "$GETTEXT" >&6; }
44095 else
44096   { $as_echo "$as_me:$LINENO: result: no" >&5
44097 $as_echo "no" >&6; }
44098 fi
44099
44100
44101
44102 for ac_prog in gawk mawk nawk awk
44103 do
44104   # Extract the first word of "$ac_prog", so it can be a program name with args.
44105 set dummy $ac_prog; ac_word=$2
44106 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44107 $as_echo_n "checking for $ac_word... " >&6; }
44108 if test "${ac_cv_prog_AWK+set}" = set; then
44109   $as_echo_n "(cached) " >&6
44110 else
44111   if test -n "$AWK"; then
44112   ac_cv_prog_AWK="$AWK" # Let the user override the test.
44113 else
44114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44115 for as_dir in $PATH
44116 do
44117   IFS=$as_save_IFS
44118   test -z "$as_dir" && as_dir=.
44119   for ac_exec_ext in '' $ac_executable_extensions; do
44120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44121     ac_cv_prog_AWK="$ac_prog"
44122     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44123     break 2
44124   fi
44125 done
44126 done
44127 IFS=$as_save_IFS
44128
44129 fi
44130 fi
44131 AWK=$ac_cv_prog_AWK
44132 if test -n "$AWK"; then
44133   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
44134 $as_echo "$AWK" >&6; }
44135 else
44136   { $as_echo "$as_me:$LINENO: result: no" >&5
44137 $as_echo "no" >&6; }
44138 fi
44139
44140
44141   test -n "$AWK" && break
44142 done
44143
44144 for ac_prog in 'bison -y' byacc
44145 do
44146   # Extract the first word of "$ac_prog", so it can be a program name with args.
44147 set dummy $ac_prog; ac_word=$2
44148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44149 $as_echo_n "checking for $ac_word... " >&6; }
44150 if test "${ac_cv_prog_YACC+set}" = set; then
44151   $as_echo_n "(cached) " >&6
44152 else
44153   if test -n "$YACC"; then
44154   ac_cv_prog_YACC="$YACC" # Let the user override the test.
44155 else
44156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44157 for as_dir in $PATH
44158 do
44159   IFS=$as_save_IFS
44160   test -z "$as_dir" && as_dir=.
44161   for ac_exec_ext in '' $ac_executable_extensions; do
44162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44163     ac_cv_prog_YACC="$ac_prog"
44164     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44165     break 2
44166   fi
44167 done
44168 done
44169 IFS=$as_save_IFS
44170
44171 fi
44172 fi
44173 YACC=$ac_cv_prog_YACC
44174 if test -n "$YACC"; then
44175   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
44176 $as_echo "$YACC" >&6; }
44177 else
44178   { $as_echo "$as_me:$LINENO: result: no" >&5
44179 $as_echo "no" >&6; }
44180 fi
44181
44182
44183   test -n "$YACC" && break
44184 done
44185 test -n "$YACC" || YACC="yacc"
44186
44187 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
44188 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
44189 if test -z "$MKDIR_P"; then
44190   if test "${ac_cv_path_mkdir+set}" = set; then
44191   $as_echo_n "(cached) " >&6
44192 else
44193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44194 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
44195 do
44196   IFS=$as_save_IFS
44197   test -z "$as_dir" && as_dir=.
44198   for ac_prog in mkdir gmkdir; do
44199          for ac_exec_ext in '' $ac_executable_extensions; do
44200            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
44201            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
44202              'mkdir (GNU coreutils) '* | \
44203              'mkdir (coreutils) '* | \
44204              'mkdir (fileutils) '4.1*)
44205                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
44206                break 3;;
44207            esac
44208          done
44209        done
44210 done
44211 IFS=$as_save_IFS
44212
44213 fi
44214
44215   if test "${ac_cv_path_mkdir+set}" = set; then
44216     MKDIR_P="$ac_cv_path_mkdir -p"
44217   else
44218     # As a last resort, use the slow shell script.  Don't cache a
44219     # value for MKDIR_P within a source directory, because that will
44220     # break other packages using the cache if that directory is
44221     # removed, or if the value is a relative name.
44222     test -d ./--version && rmdir ./--version
44223     MKDIR_P="$ac_install_sh -d"
44224   fi
44225 fi
44226 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
44227 $as_echo "$MKDIR_P" >&6; }
44228
44229
44230
44231
44232     # Extract the first word of "dd", so it can be a program name with args.
44233 set dummy dd; ac_word=$2
44234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44235 $as_echo_n "checking for $ac_word... " >&6; }
44236 if test "${ac_cv_path_DD+set}" = set; then
44237   $as_echo_n "(cached) " >&6
44238 else
44239   case $DD in
44240   [\\/]* | ?:[\\/]*)
44241   ac_cv_path_DD="$DD" # Let the user override the test with a path.
44242   ;;
44243   *)
44244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44245 for as_dir in $LOCSYSPATH
44246 do
44247   IFS=$as_save_IFS
44248   test -z "$as_dir" && as_dir=.
44249   for ac_exec_ext in '' $ac_executable_extensions; do
44250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44251     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
44252     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44253     break 2
44254   fi
44255 done
44256 done
44257 IFS=$as_save_IFS
44258
44259   ;;
44260 esac
44261 fi
44262 DD=$ac_cv_path_DD
44263 if test -n "$DD"; then
44264   { $as_echo "$as_me:$LINENO: result: $DD" >&5
44265 $as_echo "$DD" >&6; }
44266 else
44267   { $as_echo "$as_me:$LINENO: result: no" >&5
44268 $as_echo "no" >&6; }
44269 fi
44270
44271
44272
44273
44274
44275     # Extract the first word of "bash", so it can be a program name with args.
44276 set dummy bash; ac_word=$2
44277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44278 $as_echo_n "checking for $ac_word... " >&6; }
44279 if test "${ac_cv_path_BASH+set}" = set; then
44280   $as_echo_n "(cached) " >&6
44281 else
44282   case $BASH in
44283   [\\/]* | ?:[\\/]*)
44284   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
44285   ;;
44286   *)
44287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44288 for as_dir in $SYSPATH
44289 do
44290   IFS=$as_save_IFS
44291   test -z "$as_dir" && as_dir=.
44292   for ac_exec_ext in '' $ac_executable_extensions; do
44293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44294     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
44295     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44296     break 2
44297   fi
44298 done
44299 done
44300 IFS=$as_save_IFS
44301
44302   ;;
44303 esac
44304 fi
44305 BASH=$ac_cv_path_BASH
44306 if test -n "$BASH"; then
44307   { $as_echo "$as_me:$LINENO: result: $BASH" >&5
44308 $as_echo "$BASH" >&6; }
44309 else
44310   { $as_echo "$as_me:$LINENO: result: no" >&5
44311 $as_echo "no" >&6; }
44312 fi
44313
44314
44315
44316
44317
44318
44319
44320     # Extract the first word of "sort", so it can be a program name with args.
44321 set dummy sort; ac_word=$2
44322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44323 $as_echo_n "checking for $ac_word... " >&6; }
44324 if test "${ac_cv_path_SORT+set}" = set; then
44325   $as_echo_n "(cached) " >&6
44326 else
44327   case $SORT in
44328   [\\/]* | ?:[\\/]*)
44329   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
44330   ;;
44331   *)
44332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44333 for as_dir in $LOCSYSPATH
44334 do
44335   IFS=$as_save_IFS
44336   test -z "$as_dir" && as_dir=.
44337   for ac_exec_ext in '' $ac_executable_extensions; do
44338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44339     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
44340     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44341     break 2
44342   fi
44343 done
44344 done
44345 IFS=$as_save_IFS
44346
44347   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
44348   ;;
44349 esac
44350 fi
44351 SORT=$ac_cv_path_SORT
44352 if test -n "$SORT"; then
44353   { $as_echo "$as_me:$LINENO: result: $SORT" >&5
44354 $as_echo "$SORT" >&6; }
44355 else
44356   { $as_echo "$as_me:$LINENO: result: no" >&5
44357 $as_echo "no" >&6; }
44358 fi
44359
44360
44361
44362     # sort is only needed in the server build
44363     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
44364         { { $as_echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
44365 $as_echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
44366    { (exit 1); exit 1; }; }
44367     fi
44368
44369
44370 cat >>confdefs.h <<_ACEOF
44371 #define SORT_PATH "$SORT"
44372 _ACEOF
44373
44374
44375
44376
44377     for ac_prog in Mail mailx mail
44378 do
44379   # Extract the first word of "$ac_prog", so it can be a program name with args.
44380 set dummy $ac_prog; ac_word=$2
44381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44382 $as_echo_n "checking for $ac_word... " >&6; }
44383 if test "${ac_cv_path_MAILER+set}" = set; then
44384   $as_echo_n "(cached) " >&6
44385 else
44386   case $MAILER in
44387   [\\/]* | ?:[\\/]*)
44388   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
44389   ;;
44390   *)
44391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44392 for as_dir in $PATH
44393 do
44394   IFS=$as_save_IFS
44395   test -z "$as_dir" && as_dir=.
44396   for ac_exec_ext in '' $ac_executable_extensions; do
44397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44398     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
44399     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44400     break 2
44401   fi
44402 done
44403 done
44404 IFS=$as_save_IFS
44405
44406   ;;
44407 esac
44408 fi
44409 MAILER=$ac_cv_path_MAILER
44410 if test -n "$MAILER"; then
44411   { $as_echo "$as_me:$LINENO: result: $MAILER" >&5
44412 $as_echo "$MAILER" >&6; }
44413 else
44414   { $as_echo "$as_me:$LINENO: result: no" >&5
44415 $as_echo "no" >&6; }
44416 fi
44417
44418
44419   test -n "$MAILER" && break
44420 done
44421 test -n "$MAILER" || MAILER="NONE"
44422
44423     if test x"$MAILER" = x"NONE"; then
44424
44425     { $as_echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
44426 $as_echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
44427
44428
44429     cat <<AAW_EOF >>config.warnings
44430 WARNING: Amanda cannot send mail reports without a mailer.
44431 AAW_EOF
44432
44433
44434         DEFAULT_MAILER=""
44435     else
44436         DEFAULT_MAILER="$MAILER"
44437     fi
44438
44439 cat >>confdefs.h <<_ACEOF
44440 #define DEFAULT_MAILER "$DEFAULT_MAILER"
44441 _ACEOF
44442
44443
44444
44445
44446
44447     # Extract the first word of "mt", so it can be a program name with args.
44448 set dummy mt; ac_word=$2
44449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44450 $as_echo_n "checking for $ac_word... " >&6; }
44451 if test "${ac_cv_path_MT+set}" = set; then
44452   $as_echo_n "(cached) " >&6
44453 else
44454   case $MT in
44455   [\\/]* | ?:[\\/]*)
44456   ac_cv_path_MT="$MT" # Let the user override the test with a path.
44457   ;;
44458   *)
44459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44460 for as_dir in $SYSLOCPATH
44461 do
44462   IFS=$as_save_IFS
44463   test -z "$as_dir" && as_dir=.
44464   for ac_exec_ext in '' $ac_executable_extensions; do
44465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44466     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
44467     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44468     break 2
44469   fi
44470 done
44471 done
44472 IFS=$as_save_IFS
44473
44474   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
44475   ;;
44476 esac
44477 fi
44478 MT=$ac_cv_path_MT
44479 if test -n "$MT"; then
44480   { $as_echo "$as_me:$LINENO: result: $MT" >&5
44481 $as_echo "$MT" >&6; }
44482 else
44483   { $as_echo "$as_me:$LINENO: result: no" >&5
44484 $as_echo "no" >&6; }
44485 fi
44486
44487
44488
44489     case "$host" in
44490         *-hp-*) MT_FILE_FLAG="-t" ;;
44491         *) MT_FILE_FLAG="-f" ;;
44492     esac
44493
44494
44495
44496 cat >>confdefs.h <<_ACEOF
44497 #define MT_FILE_FLAG "$MT_FILE_FLAG"
44498 _ACEOF
44499
44500
44501
44502
44503     # Extract the first word of "mtx", so it can be a program name with args.
44504 set dummy mtx; ac_word=$2
44505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44506 $as_echo_n "checking for $ac_word... " >&6; }
44507 if test "${ac_cv_path_MTX+set}" = set; then
44508   $as_echo_n "(cached) " >&6
44509 else
44510   case $MTX in
44511   [\\/]* | ?:[\\/]*)
44512   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
44513   ;;
44514   *)
44515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44516 for as_dir in $LOCSYSPATH
44517 do
44518   IFS=$as_save_IFS
44519   test -z "$as_dir" && as_dir=.
44520   for ac_exec_ext in '' $ac_executable_extensions; do
44521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44522     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
44523     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44524     break 2
44525   fi
44526 done
44527 done
44528 IFS=$as_save_IFS
44529
44530   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
44531   ;;
44532 esac
44533 fi
44534 MTX=$ac_cv_path_MTX
44535 if test -n "$MTX"; then
44536   { $as_echo "$as_me:$LINENO: result: $MTX" >&5
44537 $as_echo "$MTX" >&6; }
44538 else
44539   { $as_echo "$as_me:$LINENO: result: no" >&5
44540 $as_echo "no" >&6; }
44541 fi
44542
44543
44544
44545
44546
44547
44548
44549     for ac_prog in lpr lp
44550 do
44551   # Extract the first word of "$ac_prog", so it can be a program name with args.
44552 set dummy $ac_prog; ac_word=$2
44553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44554 $as_echo_n "checking for $ac_word... " >&6; }
44555 if test "${ac_cv_path_LPR+set}" = set; then
44556   $as_echo_n "(cached) " >&6
44557 else
44558   case $LPR in
44559   [\\/]* | ?:[\\/]*)
44560   ac_cv_path_LPR="$LPR" # Let the user override the test with a path.
44561   ;;
44562   *)
44563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44564 for as_dir in $PATH
44565 do
44566   IFS=$as_save_IFS
44567   test -z "$as_dir" && as_dir=.
44568   for ac_exec_ext in '' $ac_executable_extensions; do
44569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44570     ac_cv_path_LPR="$as_dir/$ac_word$ac_exec_ext"
44571     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44572     break 2
44573   fi
44574 done
44575 done
44576 IFS=$as_save_IFS
44577
44578   ;;
44579 esac
44580 fi
44581 LPR=$ac_cv_path_LPR
44582 if test -n "$LPR"; then
44583   { $as_echo "$as_me:$LINENO: result: $LPR" >&5
44584 $as_echo "$LPR" >&6; }
44585 else
44586   { $as_echo "$as_me:$LINENO: result: no" >&5
44587 $as_echo "no" >&6; }
44588 fi
44589
44590
44591   test -n "$LPR" && break
44592 done
44593
44594     if test ! -z "$LPR"; then
44595
44596 cat >>confdefs.h <<\_ACEOF
44597 #define HAVE_LPR_CMD 1
44598 _ACEOF
44599
44600
44601         { $as_echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
44602 $as_echo_n "checking which flag to use to select a printer... " >&6; }
44603 if test "${amanda_cv_printer_flag+set}" = set; then
44604   $as_echo_n "(cached) " >&6
44605 else
44606
44607             amanda_cv_printer_flag=$LPRFLAG
44608             case "$LPR" in
44609                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
44610                 lp|*/lp) amanda_cv_printer_flag="-d";;
44611             esac
44612
44613 fi
44614 { $as_echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
44615 $as_echo "$amanda_cv_printer_flag" >&6; }
44616         if test -z "$amanda_cv_printer_flag"; then
44617
44618     { $as_echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
44619 $as_echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
44620
44621
44622     cat <<AAW_EOF >>config.warnings
44623 WARNING: amanda will always print to the default printer
44624 AAW_EOF
44625
44626
44627         fi
44628     fi
44629
44630
44631
44632
44633
44634
44635     # Extract the first word of "pcat", so it can be a program name with args.
44636 set dummy pcat; ac_word=$2
44637 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44638 $as_echo_n "checking for $ac_word... " >&6; }
44639 if test "${ac_cv_path_PCAT+set}" = set; then
44640   $as_echo_n "(cached) " >&6
44641 else
44642   case $PCAT in
44643   [\\/]* | ?:[\\/]*)
44644   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
44645   ;;
44646   *)
44647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44648 for as_dir in $LOCSYSPATH
44649 do
44650   IFS=$as_save_IFS
44651   test -z "$as_dir" && as_dir=.
44652   for ac_exec_ext in '' $ac_executable_extensions; do
44653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44654     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
44655     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44656     break 2
44657   fi
44658 done
44659 done
44660 IFS=$as_save_IFS
44661
44662   ;;
44663 esac
44664 fi
44665 PCAT=$ac_cv_path_PCAT
44666 if test -n "$PCAT"; then
44667   { $as_echo "$as_me:$LINENO: result: $PCAT" >&5
44668 $as_echo "$PCAT" >&6; }
44669 else
44670   { $as_echo "$as_me:$LINENO: result: no" >&5
44671 $as_echo "no" >&6; }
44672 fi
44673
44674
44675
44676
44677
44678     for ac_prog in perl5 perl
44679 do
44680   # Extract the first word of "$ac_prog", so it can be a program name with args.
44681 set dummy $ac_prog; ac_word=$2
44682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44683 $as_echo_n "checking for $ac_word... " >&6; }
44684 if test "${ac_cv_path_PERL+set}" = set; then
44685   $as_echo_n "(cached) " >&6
44686 else
44687   case $PERL in
44688   [\\/]* | ?:[\\/]*)
44689   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
44690   ;;
44691   *)
44692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44693 for as_dir in $LOCSYSPATH
44694 do
44695   IFS=$as_save_IFS
44696   test -z "$as_dir" && as_dir=.
44697   for ac_exec_ext in '' $ac_executable_extensions; do
44698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44699     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
44700     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44701     break 2
44702   fi
44703 done
44704 done
44705 IFS=$as_save_IFS
44706
44707   ;;
44708 esac
44709 fi
44710 PERL=$ac_cv_path_PERL
44711 if test -n "$PERL"; then
44712   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44713 $as_echo "$PERL" >&6; }
44714 else
44715   { $as_echo "$as_me:$LINENO: result: no" >&5
44716 $as_echo "no" >&6; }
44717 fi
44718
44719
44720   test -n "$PERL" && break
44721 done
44722
44723
44724     # Make sure we have perl
44725 if test -z "$PERL"; then
44726 # Extract the first word of "perl", so it can be a program name with args.
44727 set dummy perl; ac_word=$2
44728 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44729 $as_echo_n "checking for $ac_word... " >&6; }
44730 if test "${ac_cv_prog_PERL+set}" = set; then
44731   $as_echo_n "(cached) " >&6
44732 else
44733   if test -n "$PERL"; then
44734   ac_cv_prog_PERL="$PERL" # Let the user override the test.
44735 else
44736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44737 for as_dir in $PATH
44738 do
44739   IFS=$as_save_IFS
44740   test -z "$as_dir" && as_dir=.
44741   for ac_exec_ext in '' $ac_executable_extensions; do
44742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44743     ac_cv_prog_PERL="perl"
44744     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44745     break 2
44746   fi
44747 done
44748 done
44749 IFS=$as_save_IFS
44750
44751 fi
44752 fi
44753 PERL=$ac_cv_prog_PERL
44754 if test -n "$PERL"; then
44755   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44756 $as_echo "$PERL" >&6; }
44757 else
44758   { $as_echo "$as_me:$LINENO: result: no" >&5
44759 $as_echo "no" >&6; }
44760 fi
44761
44762
44763 fi
44764
44765 # Check if version of Perl is sufficient
44766 ac_perl_version="5.6.0"
44767
44768 if test "x$PERL" != "x"; then
44769   { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
44770 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
44771   # NB: It would be nice to log the error if there is one, but we cannot rely
44772   # on autoconf internals
44773   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
44774   if test $? -ne 0; then
44775     { $as_echo "$as_me:$LINENO: result: no" >&5
44776 $as_echo "no" >&6; };
44777
44778         { { $as_echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
44779 $as_echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
44780    { (exit 1); exit 1; }; }
44781
44782   else
44783     { $as_echo "$as_me:$LINENO: result: ok" >&5
44784 $as_echo "ok" >&6; };
44785
44786   fi
44787 else
44788   { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
44789 $as_echo "$as_me: WARNING: could not find perl" >&2;}
44790 fi
44791
44792
44793
44794
44795     for ac_prog in swig
44796 do
44797   # Extract the first word of "$ac_prog", so it can be a program name with args.
44798 set dummy $ac_prog; ac_word=$2
44799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44800 $as_echo_n "checking for $ac_word... " >&6; }
44801 if test "${ac_cv_path_SWIG+set}" = set; then
44802   $as_echo_n "(cached) " >&6
44803 else
44804   case $SWIG in
44805   [\\/]* | ?:[\\/]*)
44806   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
44807   ;;
44808   *)
44809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44810 for as_dir in $LOCSYSPATH
44811 do
44812   IFS=$as_save_IFS
44813   test -z "$as_dir" && as_dir=.
44814   for ac_exec_ext in '' $ac_executable_extensions; do
44815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44816     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
44817     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44818     break 2
44819   fi
44820 done
44821 done
44822 IFS=$as_save_IFS
44823
44824   ;;
44825 esac
44826 fi
44827 SWIG=$ac_cv_path_SWIG
44828 if test -n "$SWIG"; then
44829   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
44830 $as_echo "$SWIG" >&6; }
44831 else
44832   { $as_echo "$as_me:$LINENO: result: no" >&5
44833 $as_echo "no" >&6; }
44834 fi
44835
44836
44837   test -n "$SWIG" && break
44838 done
44839
44840
44841     # 1.3.32 introduces a change in the way empty strings are handled (old versions
44842     # returned undef in Perl, while new versions return an empty Perl string)
44843     # 1.3.39 is required for the %begin block
44844
44845         # Extract the first word of "swig", so it can be a program name with args.
44846 set dummy swig; ac_word=$2
44847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44848 $as_echo_n "checking for $ac_word... " >&6; }
44849 if test "${ac_cv_path_SWIG+set}" = set; then
44850   $as_echo_n "(cached) " >&6
44851 else
44852   case $SWIG in
44853   [\\/]* | ?:[\\/]*)
44854   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
44855   ;;
44856   *)
44857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44858 for as_dir in $PATH
44859 do
44860   IFS=$as_save_IFS
44861   test -z "$as_dir" && as_dir=.
44862   for ac_exec_ext in '' $ac_executable_extensions; do
44863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44864     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
44865     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44866     break 2
44867   fi
44868 done
44869 done
44870 IFS=$as_save_IFS
44871
44872   ;;
44873 esac
44874 fi
44875 SWIG=$ac_cv_path_SWIG
44876 if test -n "$SWIG"; then
44877   { $as_echo "$as_me:$LINENO: result: $SWIG" >&5
44878 $as_echo "$SWIG" >&6; }
44879 else
44880   { $as_echo "$as_me:$LINENO: result: no" >&5
44881 $as_echo "no" >&6; }
44882 fi
44883
44884
44885         if test -z "$SWIG" ; then
44886                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
44887         elif test -n "1.3.39" ; then
44888                 { $as_echo "$as_me:$LINENO: checking for SWIG version" >&5
44889 $as_echo_n "checking for SWIG version... " >&6; }
44890                 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'`
44891                 { $as_echo "$as_me:$LINENO: result: $swig_version" >&5
44892 $as_echo "$swig_version" >&6; }
44893                 if test -n "$swig_version" ; then
44894
44895   # Used to indicate true or false condition
44896   ax_compare_version=false
44897
44898   # Convert the two version strings to be compared into a format that
44899   # allows a simple string comparison.  The end result is that a version
44900   # string of the form 1.12.5-r617 will be converted to the form
44901   # 0001001200050617.  In other words, each number is zero padded to four
44902   # digits, and non digits are removed.
44903
44904   ax_compare_version_A=`echo "$swig_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
44905                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
44906                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
44907                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
44908                      -e 's/[^0-9]//g'`
44909
44910
44911   ax_compare_version_B=`echo "1.3.39" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
44912                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
44913                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
44914                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
44915                      -e 's/[^0-9]//g'`
44916
44917
44918     ax_compare_version=`echo "x$ax_compare_version_A
44919 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"`
44920
44921
44922
44923     if test "$ax_compare_version" = "true" ; then
44924
44925                                                     SWIG_LIB=`$SWIG -swiglib`
44926
44927     else
44928                                                     SWIG='echo "Error: SWIG version >= 1.3.39 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
44929
44930   fi
44931
44932                 else
44933                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
44934                 fi
44935         fi
44936
44937
44938
44939
44940     # Extract the first word of "ps", so it can be a program name with args.
44941 set dummy ps; ac_word=$2
44942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44943 $as_echo_n "checking for $ac_word... " >&6; }
44944 if test "${ac_cv_path_PS+set}" = set; then
44945   $as_echo_n "(cached) " >&6
44946 else
44947   case $PS in
44948   [\\/]* | ?:[\\/]*)
44949   ac_cv_path_PS="$PS" # Let the user override the test with a path.
44950   ;;
44951   *)
44952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44953 for as_dir in $PATH
44954 do
44955   IFS=$as_save_IFS
44956   test -z "$as_dir" && as_dir=.
44957   for ac_exec_ext in '' $ac_executable_extensions; do
44958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44959     ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
44960     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44961     break 2
44962   fi
44963 done
44964 done
44965 IFS=$as_save_IFS
44966
44967   ;;
44968 esac
44969 fi
44970 PS=$ac_cv_path_PS
44971 if test -n "$PS"; then
44972   { $as_echo "$as_me:$LINENO: result: $PS" >&5
44973 $as_echo "$PS" >&6; }
44974 else
44975   { $as_echo "$as_me:$LINENO: result: no" >&5
44976 $as_echo "no" >&6; }
44977 fi
44978
44979
44980     { $as_echo "$as_me:$LINENO: checking ps argument to use" >&5
44981 $as_echo_n "checking ps argument to use... " >&6; }
44982     PS_ARGUMENT=
44983
44984     # ps is *very* non-portable, and across many systems, the same option
44985     # (e.g., -e) can mean different things.  So this macro tries to
44986     # special-case most known systems, and makes an effort to detect unknown
44987     # systems
44988     case "$host" in
44989         *-*-solaris*)
44990             PS_ARGUMENT="-eo pid,ppid,comm"
44991             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
44992             ;;
44993
44994         *-*-linux-*)
44995             PS_ARGUMENT="-eo pid,ppid,command"
44996             PS_ARGUMENT_ARGS="-eo pid,ppid,command"
44997             ;;
44998
44999         *-*-*bsd*)
45000             PS_ARGUMENT="-axo pid,ppid,command"
45001             PS_ARGUMENT_ARGS="-axo pid,ppid,command"
45002             ;;
45003
45004         *-apple-darwin*)
45005             PS_ARGUMENT="-aAco pid,ppid,command"
45006             PS_ARGUMENT_ARGS="-aAo pid,ppid,command"
45007             ;;
45008
45009         *-pc-cygwin)
45010             # Cygwin is special-cased in Amanda::Process
45011             PS_ARGUMENT=CYGWIN
45012             PS_ARGUMENT_ARGS="-ef"
45013             ;;
45014
45015         *-*-hpux*)
45016             # HPUX's 'PS' needs the env var UNIX95 to run in "xpg4" mode
45017             PS="UNIX95=1 $PS"
45018             PS_ARGUMENT="-eo pid,ppid,comm"
45019             PS_ARGUMENT_ARGS="-eo pid,ppid,comm"
45020             ;;
45021
45022         *)
45023             for try in \
45024                 "-axo pid,ppid,command" \
45025                 "-aAco pid,ppid,command" \
45026                 "-eo pid,ppid,comm"
45027             do
45028                 ps $try >/dev/null 2>/dev/null
45029                 if test $? -eq 0; then
45030                     PS_ARGUMENT="$try"
45031                     break
45032                 fi
45033             done
45034             for try in \
45035                 "-axo pid,ppid,command" \
45036                 "-aAo pid,ppid,command" \
45037                 "-eo pid,ppid,comm"
45038             do
45039                 ps $try >/dev/null 2>/dev/null
45040                 if test $? -eq 0; then
45041                     PS_ARGUMENT_ARGS="$try"
45042                     break
45043                 fi
45044             done
45045             if test -z "$PS_ARGUMENT" -o -z "$PS_ARGUMENT_ARGS"; then
45046                 { { $as_echo "$as_me:$LINENO: error: Can't find ps argument to use." >&5
45047 $as_echo "$as_me: error: Can't find ps argument to use." >&2;}
45048    { (exit 1); exit 1; }; }
45049             fi
45050             ;;
45051     esac
45052
45053     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT" >&5
45054 $as_echo "$PS_ARGUMENT" >&6; }
45055
45056     { $as_echo "$as_me:$LINENO: result: $PS_ARGUMENT_ARGS" >&5
45057 $as_echo "$PS_ARGUMENT_ARGS" >&6; }
45058
45059
45060
45061
45062     # Extract the first word of "rpcgen", so it can be a program name with args.
45063 set dummy rpcgen; ac_word=$2
45064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45065 $as_echo_n "checking for $ac_word... " >&6; }
45066 if test "${ac_cv_path_RPCGEN+set}" = set; then
45067   $as_echo_n "(cached) " >&6
45068 else
45069   case $RPCGEN in
45070   [\\/]* | ?:[\\/]*)
45071   ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
45072   ;;
45073   *)
45074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45075 for as_dir in $LOCSYSPATH
45076 do
45077   IFS=$as_save_IFS
45078   test -z "$as_dir" && as_dir=.
45079   for ac_exec_ext in '' $ac_executable_extensions; do
45080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45081     ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
45082     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45083     break 2
45084   fi
45085 done
45086 done
45087 IFS=$as_save_IFS
45088
45089   ;;
45090 esac
45091 fi
45092 RPCGEN=$ac_cv_path_RPCGEN
45093 if test -n "$RPCGEN"; then
45094   { $as_echo "$as_me:$LINENO: result: $RPCGEN" >&5
45095 $as_echo "$RPCGEN" >&6; }
45096 else
45097   { $as_echo "$as_me:$LINENO: result: no" >&5
45098 $as_echo "no" >&6; }
45099 fi
45100
45101
45102
45103
45104
45105 #
45106 # Compiler / system characteristics
45107 #
45108
45109 #
45110 # compiler
45111 #
45112 if test $ac_cv_c_compiler_gnu = yes; then
45113     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
45114 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
45115 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
45116   $as_echo_n "(cached) " >&6
45117 else
45118     ac_pattern="Autoconf.*'x'"
45119   cat >conftest.$ac_ext <<_ACEOF
45120 /* confdefs.h.  */
45121 _ACEOF
45122 cat confdefs.h >>conftest.$ac_ext
45123 cat >>conftest.$ac_ext <<_ACEOF
45124 /* end confdefs.h.  */
45125 #include <sgtty.h>
45126 Autoconf TIOCGETP
45127 _ACEOF
45128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45129   $EGREP "$ac_pattern" >/dev/null 2>&1; then
45130   ac_cv_prog_gcc_traditional=yes
45131 else
45132   ac_cv_prog_gcc_traditional=no
45133 fi
45134 rm -f conftest*
45135
45136
45137   if test $ac_cv_prog_gcc_traditional = no; then
45138     cat >conftest.$ac_ext <<_ACEOF
45139 /* confdefs.h.  */
45140 _ACEOF
45141 cat confdefs.h >>conftest.$ac_ext
45142 cat >>conftest.$ac_ext <<_ACEOF
45143 /* end confdefs.h.  */
45144 #include <termio.h>
45145 Autoconf TCGETA
45146 _ACEOF
45147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45148   $EGREP "$ac_pattern" >/dev/null 2>&1; then
45149   ac_cv_prog_gcc_traditional=yes
45150 fi
45151 rm -f conftest*
45152
45153   fi
45154 fi
45155 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
45156 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
45157   if test $ac_cv_prog_gcc_traditional = yes; then
45158     CC="$CC -traditional"
45159   fi
45160 fi
45161
45162 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
45163 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
45164 if test "${ac_cv_c_const+set}" = set; then
45165   $as_echo_n "(cached) " >&6
45166 else
45167   cat >conftest.$ac_ext <<_ACEOF
45168 /* confdefs.h.  */
45169 _ACEOF
45170 cat confdefs.h >>conftest.$ac_ext
45171 cat >>conftest.$ac_ext <<_ACEOF
45172 /* end confdefs.h.  */
45173
45174 int
45175 main ()
45176 {
45177 /* FIXME: Include the comments suggested by Paul. */
45178 #ifndef __cplusplus
45179   /* Ultrix mips cc rejects this.  */
45180   typedef int charset[2];
45181   const charset cs;
45182   /* SunOS 4.1.1 cc rejects this.  */
45183   char const *const *pcpcc;
45184   char **ppc;
45185   /* NEC SVR4.0.2 mips cc rejects this.  */
45186   struct point {int x, y;};
45187   static struct point const zero = {0,0};
45188   /* AIX XL C 1.02.0.0 rejects this.
45189      It does not let you subtract one const X* pointer from another in
45190      an arm of an if-expression whose if-part is not a constant
45191      expression */
45192   const char *g = "string";
45193   pcpcc = &g + (g ? g-g : 0);
45194   /* HPUX 7.0 cc rejects these. */
45195   ++pcpcc;
45196   ppc = (char**) pcpcc;
45197   pcpcc = (char const *const *) ppc;
45198   { /* SCO 3.2v4 cc rejects this.  */
45199     char *t;
45200     char const *s = 0 ? (char *) 0 : (char const *) 0;
45201
45202     *t++ = 0;
45203     if (s) return 0;
45204   }
45205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
45206     int x[] = {25, 17};
45207     const int *foo = &x[0];
45208     ++foo;
45209   }
45210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
45211     typedef const int *iptr;
45212     iptr p = 0;
45213     ++p;
45214   }
45215   { /* AIX XL C 1.02.0.0 rejects this saying
45216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
45217     struct s { int j; const int *ap[3]; };
45218     struct s *b; b->j = 5;
45219   }
45220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
45221     const int foo = 10;
45222     if (!foo) return 0;
45223   }
45224   return !cs[0] && !zero.x;
45225 #endif
45226
45227   ;
45228   return 0;
45229 }
45230 _ACEOF
45231 rm -f conftest.$ac_objext
45232 if { (ac_try="$ac_compile"
45233 case "(($ac_try" in
45234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45235   *) ac_try_echo=$ac_try;;
45236 esac
45237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45238 $as_echo "$ac_try_echo") >&5
45239   (eval "$ac_compile") 2>conftest.er1
45240   ac_status=$?
45241   grep -v '^ *+' conftest.er1 >conftest.err
45242   rm -f conftest.er1
45243   cat conftest.err >&5
45244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45245   (exit $ac_status); } && {
45246          test -z "$ac_c_werror_flag" ||
45247          test ! -s conftest.err
45248        } && test -s conftest.$ac_objext; then
45249   ac_cv_c_const=yes
45250 else
45251   $as_echo "$as_me: failed program was:" >&5
45252 sed 's/^/| /' conftest.$ac_ext >&5
45253
45254         ac_cv_c_const=no
45255 fi
45256
45257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45258 fi
45259 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
45260 $as_echo "$ac_cv_c_const" >&6; }
45261 if test $ac_cv_c_const = no; then
45262
45263 cat >>confdefs.h <<\_ACEOF
45264 #define const /**/
45265 _ACEOF
45266
45267 fi
45268
45269
45270  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
45271 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
45272 if test "${ac_cv_c_bigendian+set}" = set; then
45273   $as_echo_n "(cached) " >&6
45274 else
45275   ac_cv_c_bigendian=unknown
45276     # See if we're dealing with a universal compiler.
45277     cat >conftest.$ac_ext <<_ACEOF
45278 /* confdefs.h.  */
45279 _ACEOF
45280 cat confdefs.h >>conftest.$ac_ext
45281 cat >>conftest.$ac_ext <<_ACEOF
45282 /* end confdefs.h.  */
45283 #ifndef __APPLE_CC__
45284                not a universal capable compiler
45285              #endif
45286              typedef int dummy;
45287
45288 _ACEOF
45289 rm -f conftest.$ac_objext
45290 if { (ac_try="$ac_compile"
45291 case "(($ac_try" in
45292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45293   *) ac_try_echo=$ac_try;;
45294 esac
45295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45296 $as_echo "$ac_try_echo") >&5
45297   (eval "$ac_compile") 2>conftest.er1
45298   ac_status=$?
45299   grep -v '^ *+' conftest.er1 >conftest.err
45300   rm -f conftest.er1
45301   cat conftest.err >&5
45302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45303   (exit $ac_status); } && {
45304          test -z "$ac_c_werror_flag" ||
45305          test ! -s conftest.err
45306        } && test -s conftest.$ac_objext; then
45307
45308         # Check for potential -arch flags.  It is not universal unless
45309         # there are some -arch flags.  Note that *ppc* also matches
45310         # ppc64.  This check is also rather less than ideal.
45311         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
45312           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
45313         esac
45314 else
45315   $as_echo "$as_me: failed program was:" >&5
45316 sed 's/^/| /' conftest.$ac_ext >&5
45317
45318
45319 fi
45320
45321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45322     if test $ac_cv_c_bigendian = unknown; then
45323       # See if sys/param.h defines the BYTE_ORDER macro.
45324       cat >conftest.$ac_ext <<_ACEOF
45325 /* confdefs.h.  */
45326 _ACEOF
45327 cat confdefs.h >>conftest.$ac_ext
45328 cat >>conftest.$ac_ext <<_ACEOF
45329 /* end confdefs.h.  */
45330 #include <sys/types.h>
45331              #include <sys/param.h>
45332
45333 int
45334 main ()
45335 {
45336 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
45337                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
45338                      && LITTLE_ENDIAN)
45339               bogus endian macros
45340              #endif
45341
45342   ;
45343   return 0;
45344 }
45345 _ACEOF
45346 rm -f conftest.$ac_objext
45347 if { (ac_try="$ac_compile"
45348 case "(($ac_try" in
45349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45350   *) ac_try_echo=$ac_try;;
45351 esac
45352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45353 $as_echo "$ac_try_echo") >&5
45354   (eval "$ac_compile") 2>conftest.er1
45355   ac_status=$?
45356   grep -v '^ *+' conftest.er1 >conftest.err
45357   rm -f conftest.er1
45358   cat conftest.err >&5
45359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45360   (exit $ac_status); } && {
45361          test -z "$ac_c_werror_flag" ||
45362          test ! -s conftest.err
45363        } && test -s conftest.$ac_objext; then
45364   # It does; now see whether it defined to BIG_ENDIAN or not.
45365          cat >conftest.$ac_ext <<_ACEOF
45366 /* confdefs.h.  */
45367 _ACEOF
45368 cat confdefs.h >>conftest.$ac_ext
45369 cat >>conftest.$ac_ext <<_ACEOF
45370 /* end confdefs.h.  */
45371 #include <sys/types.h>
45372                 #include <sys/param.h>
45373
45374 int
45375 main ()
45376 {
45377 #if BYTE_ORDER != BIG_ENDIAN
45378                  not big endian
45379                 #endif
45380
45381   ;
45382   return 0;
45383 }
45384 _ACEOF
45385 rm -f conftest.$ac_objext
45386 if { (ac_try="$ac_compile"
45387 case "(($ac_try" in
45388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45389   *) ac_try_echo=$ac_try;;
45390 esac
45391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45392 $as_echo "$ac_try_echo") >&5
45393   (eval "$ac_compile") 2>conftest.er1
45394   ac_status=$?
45395   grep -v '^ *+' conftest.er1 >conftest.err
45396   rm -f conftest.er1
45397   cat conftest.err >&5
45398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45399   (exit $ac_status); } && {
45400          test -z "$ac_c_werror_flag" ||
45401          test ! -s conftest.err
45402        } && test -s conftest.$ac_objext; then
45403   ac_cv_c_bigendian=yes
45404 else
45405   $as_echo "$as_me: failed program was:" >&5
45406 sed 's/^/| /' conftest.$ac_ext >&5
45407
45408         ac_cv_c_bigendian=no
45409 fi
45410
45411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45412 else
45413   $as_echo "$as_me: failed program was:" >&5
45414 sed 's/^/| /' conftest.$ac_ext >&5
45415
45416
45417 fi
45418
45419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45420     fi
45421     if test $ac_cv_c_bigendian = unknown; then
45422       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
45423       cat >conftest.$ac_ext <<_ACEOF
45424 /* confdefs.h.  */
45425 _ACEOF
45426 cat confdefs.h >>conftest.$ac_ext
45427 cat >>conftest.$ac_ext <<_ACEOF
45428 /* end confdefs.h.  */
45429 #include <limits.h>
45430
45431 int
45432 main ()
45433 {
45434 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
45435               bogus endian macros
45436              #endif
45437
45438   ;
45439   return 0;
45440 }
45441 _ACEOF
45442 rm -f conftest.$ac_objext
45443 if { (ac_try="$ac_compile"
45444 case "(($ac_try" in
45445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45446   *) ac_try_echo=$ac_try;;
45447 esac
45448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45449 $as_echo "$ac_try_echo") >&5
45450   (eval "$ac_compile") 2>conftest.er1
45451   ac_status=$?
45452   grep -v '^ *+' conftest.er1 >conftest.err
45453   rm -f conftest.er1
45454   cat conftest.err >&5
45455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45456   (exit $ac_status); } && {
45457          test -z "$ac_c_werror_flag" ||
45458          test ! -s conftest.err
45459        } && test -s conftest.$ac_objext; then
45460   # It does; now see whether it defined to _BIG_ENDIAN or not.
45461          cat >conftest.$ac_ext <<_ACEOF
45462 /* confdefs.h.  */
45463 _ACEOF
45464 cat confdefs.h >>conftest.$ac_ext
45465 cat >>conftest.$ac_ext <<_ACEOF
45466 /* end confdefs.h.  */
45467 #include <limits.h>
45468
45469 int
45470 main ()
45471 {
45472 #ifndef _BIG_ENDIAN
45473                  not big endian
45474                 #endif
45475
45476   ;
45477   return 0;
45478 }
45479 _ACEOF
45480 rm -f conftest.$ac_objext
45481 if { (ac_try="$ac_compile"
45482 case "(($ac_try" in
45483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45484   *) ac_try_echo=$ac_try;;
45485 esac
45486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45487 $as_echo "$ac_try_echo") >&5
45488   (eval "$ac_compile") 2>conftest.er1
45489   ac_status=$?
45490   grep -v '^ *+' conftest.er1 >conftest.err
45491   rm -f conftest.er1
45492   cat conftest.err >&5
45493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45494   (exit $ac_status); } && {
45495          test -z "$ac_c_werror_flag" ||
45496          test ! -s conftest.err
45497        } && test -s conftest.$ac_objext; then
45498   ac_cv_c_bigendian=yes
45499 else
45500   $as_echo "$as_me: failed program was:" >&5
45501 sed 's/^/| /' conftest.$ac_ext >&5
45502
45503         ac_cv_c_bigendian=no
45504 fi
45505
45506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45507 else
45508   $as_echo "$as_me: failed program was:" >&5
45509 sed 's/^/| /' conftest.$ac_ext >&5
45510
45511
45512 fi
45513
45514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45515     fi
45516     if test $ac_cv_c_bigendian = unknown; then
45517       # Compile a test program.
45518       if test "$cross_compiling" = yes; then
45519   # Try to guess by grepping values from an object file.
45520          cat >conftest.$ac_ext <<_ACEOF
45521 /* confdefs.h.  */
45522 _ACEOF
45523 cat confdefs.h >>conftest.$ac_ext
45524 cat >>conftest.$ac_ext <<_ACEOF
45525 /* end confdefs.h.  */
45526 short int ascii_mm[] =
45527                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
45528                 short int ascii_ii[] =
45529                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
45530                 int use_ascii (int i) {
45531                   return ascii_mm[i] + ascii_ii[i];
45532                 }
45533                 short int ebcdic_ii[] =
45534                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
45535                 short int ebcdic_mm[] =
45536                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
45537                 int use_ebcdic (int i) {
45538                   return ebcdic_mm[i] + ebcdic_ii[i];
45539                 }
45540                 extern int foo;
45541
45542 int
45543 main ()
45544 {
45545 return use_ascii (foo) == use_ebcdic (foo);
45546   ;
45547   return 0;
45548 }
45549 _ACEOF
45550 rm -f conftest.$ac_objext
45551 if { (ac_try="$ac_compile"
45552 case "(($ac_try" in
45553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45554   *) ac_try_echo=$ac_try;;
45555 esac
45556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45557 $as_echo "$ac_try_echo") >&5
45558   (eval "$ac_compile") 2>conftest.er1
45559   ac_status=$?
45560   grep -v '^ *+' conftest.er1 >conftest.err
45561   rm -f conftest.er1
45562   cat conftest.err >&5
45563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45564   (exit $ac_status); } && {
45565          test -z "$ac_c_werror_flag" ||
45566          test ! -s conftest.err
45567        } && test -s conftest.$ac_objext; then
45568   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
45569               ac_cv_c_bigendian=yes
45570             fi
45571             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
45572               if test "$ac_cv_c_bigendian" = unknown; then
45573                 ac_cv_c_bigendian=no
45574               else
45575                 # finding both strings is unlikely to happen, but who knows?
45576                 ac_cv_c_bigendian=unknown
45577               fi
45578             fi
45579 else
45580   $as_echo "$as_me: failed program was:" >&5
45581 sed 's/^/| /' conftest.$ac_ext >&5
45582
45583
45584 fi
45585
45586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45587 else
45588   cat >conftest.$ac_ext <<_ACEOF
45589 /* confdefs.h.  */
45590 _ACEOF
45591 cat confdefs.h >>conftest.$ac_ext
45592 cat >>conftest.$ac_ext <<_ACEOF
45593 /* end confdefs.h.  */
45594 $ac_includes_default
45595 int
45596 main ()
45597 {
45598
45599              /* Are we little or big endian?  From Harbison&Steele.  */
45600              union
45601              {
45602                long int l;
45603                char c[sizeof (long int)];
45604              } u;
45605              u.l = 1;
45606              return u.c[sizeof (long int) - 1] == 1;
45607
45608   ;
45609   return 0;
45610 }
45611 _ACEOF
45612 rm -f conftest$ac_exeext
45613 if { (ac_try="$ac_link"
45614 case "(($ac_try" in
45615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45616   *) ac_try_echo=$ac_try;;
45617 esac
45618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45619 $as_echo "$ac_try_echo") >&5
45620   (eval "$ac_link") 2>&5
45621   ac_status=$?
45622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45624   { (case "(($ac_try" in
45625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45626   *) ac_try_echo=$ac_try;;
45627 esac
45628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45629 $as_echo "$ac_try_echo") >&5
45630   (eval "$ac_try") 2>&5
45631   ac_status=$?
45632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45633   (exit $ac_status); }; }; then
45634   ac_cv_c_bigendian=no
45635 else
45636   $as_echo "$as_me: program exited with status $ac_status" >&5
45637 $as_echo "$as_me: failed program was:" >&5
45638 sed 's/^/| /' conftest.$ac_ext >&5
45639
45640 ( exit $ac_status )
45641 ac_cv_c_bigendian=yes
45642 fi
45643 rm -rf conftest.dSYM
45644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45645 fi
45646
45647
45648     fi
45649 fi
45650 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
45651 $as_echo "$ac_cv_c_bigendian" >&6; }
45652  case $ac_cv_c_bigendian in #(
45653    yes)
45654      cat >>confdefs.h <<\_ACEOF
45655 #define WORDS_BIGENDIAN 1
45656 _ACEOF
45657 ;; #(
45658    no)
45659       ;; #(
45660    universal)
45661
45662 cat >>confdefs.h <<\_ACEOF
45663 #define AC_APPLE_UNIVERSAL_BUILD 1
45664 _ACEOF
45665
45666      ;; #(
45667    *)
45668      { { $as_echo "$as_me:$LINENO: error: unknown endianness
45669  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
45670 $as_echo "$as_me: error: unknown endianness
45671  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
45672    { (exit 1); exit 1; }; } ;;
45673  esac
45674
45675
45676 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
45677  if test "x$GCC" = "xyes"; then
45678   GCC_COMPILER_TRUE=
45679   GCC_COMPILER_FALSE='#'
45680 else
45681   GCC_COMPILER_TRUE='#'
45682   GCC_COMPILER_FALSE=
45683 fi
45684
45685
45686 #
45687 # Warnings
45688 #
45689
45690
45691
45692
45693     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
45694 $as_echo_n "checking for gcc flag -Wparentheses... " >&6; }
45695     if test "x$GCC" = "xyes"; then
45696                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45697            $CC -v --help 2>&1) |
45698          $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
45699                 if test $? -eq 0; then
45700             found_warning=yes
45701             { $as_echo "$as_me:$LINENO: result: yes" >&5
45702 $as_echo "yes" >&6; }
45703         else
45704             found_warning=no
45705             { $as_echo "$as_me:$LINENO: result: no" >&5
45706 $as_echo "no" >&6; }
45707         fi
45708     else
45709         found_warning=no
45710         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45711 $as_echo "no (not using gcc)" >&6; }
45712     fi
45713
45714     if test x"$found_warning" = x"yes"; then
45715         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
45716
45717
45718     else
45719         :
45720     fi
45721
45722
45723
45724
45725
45726
45727     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
45728 $as_echo_n "checking for gcc flag -Wdeclaration-after-statement... " >&6; }
45729     if test "x$GCC" = "xyes"; then
45730                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45731            $CC -v --help 2>&1) |
45732          $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
45733                 if test $? -eq 0; then
45734             found_warning=yes
45735             { $as_echo "$as_me:$LINENO: result: yes" >&5
45736 $as_echo "yes" >&6; }
45737         else
45738             found_warning=no
45739             { $as_echo "$as_me:$LINENO: result: no" >&5
45740 $as_echo "no" >&6; }
45741         fi
45742     else
45743         found_warning=no
45744         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45745 $as_echo "no (not using gcc)" >&6; }
45746     fi
45747
45748     if test x"$found_warning" = x"yes"; then
45749         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
45750
45751
45752     else
45753         :
45754     fi
45755
45756
45757
45758
45759
45760
45761     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
45762 $as_echo_n "checking for gcc flag -Wmissing-prototypes... " >&6; }
45763     if test "x$GCC" = "xyes"; then
45764                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45765            $CC -v --help 2>&1) |
45766          $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
45767                 if test $? -eq 0; then
45768             found_warning=yes
45769             { $as_echo "$as_me:$LINENO: result: yes" >&5
45770 $as_echo "yes" >&6; }
45771         else
45772             found_warning=no
45773             { $as_echo "$as_me:$LINENO: result: no" >&5
45774 $as_echo "no" >&6; }
45775         fi
45776     else
45777         found_warning=no
45778         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45779 $as_echo "no (not using gcc)" >&6; }
45780     fi
45781
45782     if test x"$found_warning" = x"yes"; then
45783         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
45784
45785
45786     else
45787         :
45788     fi
45789
45790
45791
45792
45793
45794
45795     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
45796 $as_echo_n "checking for gcc flag -Wstrict-prototypes... " >&6; }
45797     if test "x$GCC" = "xyes"; then
45798                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45799            $CC -v --help 2>&1) |
45800          $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
45801                 if test $? -eq 0; then
45802             found_warning=yes
45803             { $as_echo "$as_me:$LINENO: result: yes" >&5
45804 $as_echo "yes" >&6; }
45805         else
45806             found_warning=no
45807             { $as_echo "$as_me:$LINENO: result: no" >&5
45808 $as_echo "no" >&6; }
45809         fi
45810     else
45811         found_warning=no
45812         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45813 $as_echo "no (not using gcc)" >&6; }
45814     fi
45815
45816     if test x"$found_warning" = x"yes"; then
45817         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
45818
45819
45820     else
45821         :
45822     fi
45823
45824
45825
45826
45827
45828
45829     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
45830 $as_echo_n "checking for gcc flag -Wmissing-declarations... " >&6; }
45831     if test "x$GCC" = "xyes"; then
45832                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45833            $CC -v --help 2>&1) |
45834          $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
45835                 if test $? -eq 0; then
45836             found_warning=yes
45837             { $as_echo "$as_me:$LINENO: result: yes" >&5
45838 $as_echo "yes" >&6; }
45839         else
45840             found_warning=no
45841             { $as_echo "$as_me:$LINENO: result: no" >&5
45842 $as_echo "no" >&6; }
45843         fi
45844     else
45845         found_warning=no
45846         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45847 $as_echo "no (not using gcc)" >&6; }
45848     fi
45849
45850     if test x"$found_warning" = x"yes"; then
45851         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
45852
45853
45854     else
45855         :
45856     fi
45857
45858
45859
45860
45861
45862
45863     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
45864 $as_echo_n "checking for gcc flag -Wformat... " >&6; }
45865     if test "x$GCC" = "xyes"; then
45866                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45867            $CC -v --help 2>&1) |
45868          $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
45869                 if test $? -eq 0; then
45870             found_warning=yes
45871             { $as_echo "$as_me:$LINENO: result: yes" >&5
45872 $as_echo "yes" >&6; }
45873         else
45874             found_warning=no
45875             { $as_echo "$as_me:$LINENO: result: no" >&5
45876 $as_echo "no" >&6; }
45877         fi
45878     else
45879         found_warning=no
45880         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45881 $as_echo "no (not using gcc)" >&6; }
45882     fi
45883
45884     if test x"$found_warning" = x"yes"; then
45885         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
45886
45887
45888     else
45889         :
45890     fi
45891
45892
45893
45894
45895
45896
45897     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wformat-security" >&5
45898 $as_echo_n "checking for gcc flag -Wformat-security... " >&6; }
45899     if test "x$GCC" = "xyes"; then
45900                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45901            $CC -v --help 2>&1) |
45902          $EGREP -- '[^[:alnum:]]-Wformat-security[^[:alnum:]-]' 2>&1 > /dev/null
45903                 if test $? -eq 0; then
45904             found_warning=yes
45905             { $as_echo "$as_me:$LINENO: result: yes" >&5
45906 $as_echo "yes" >&6; }
45907         else
45908             found_warning=no
45909             { $as_echo "$as_me:$LINENO: result: no" >&5
45910 $as_echo "no" >&6; }
45911         fi
45912     else
45913         found_warning=no
45914         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45915 $as_echo "no (not using gcc)" >&6; }
45916     fi
45917
45918     if test x"$found_warning" = x"yes"; then
45919         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat-security"
45920
45921
45922     else
45923         :
45924     fi
45925
45926
45927
45928
45929
45930
45931     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
45932 $as_echo_n "checking for gcc flag -Wsign-compare... " >&6; }
45933     if test "x$GCC" = "xyes"; then
45934                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45935            $CC -v --help 2>&1) |
45936          $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
45937                 if test $? -eq 0; then
45938             found_warning=yes
45939             { $as_echo "$as_me:$LINENO: result: yes" >&5
45940 $as_echo "yes" >&6; }
45941         else
45942             found_warning=no
45943             { $as_echo "$as_me:$LINENO: result: no" >&5
45944 $as_echo "no" >&6; }
45945         fi
45946     else
45947         found_warning=no
45948         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45949 $as_echo "no (not using gcc)" >&6; }
45950     fi
45951
45952     if test x"$found_warning" = x"yes"; then
45953         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
45954
45955
45956     else
45957         :
45958     fi
45959
45960
45961
45962
45963
45964
45965     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
45966 $as_echo_n "checking for gcc flag -Wfloat-equal... " >&6; }
45967     if test "x$GCC" = "xyes"; then
45968                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
45969            $CC -v --help 2>&1) |
45970          $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
45971                 if test $? -eq 0; then
45972             found_warning=yes
45973             { $as_echo "$as_me:$LINENO: result: yes" >&5
45974 $as_echo "yes" >&6; }
45975         else
45976             found_warning=no
45977             { $as_echo "$as_me:$LINENO: result: no" >&5
45978 $as_echo "no" >&6; }
45979         fi
45980     else
45981         found_warning=no
45982         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
45983 $as_echo "no (not using gcc)" >&6; }
45984     fi
45985
45986     if test x"$found_warning" = x"yes"; then
45987         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
45988
45989
45990     else
45991         :
45992     fi
45993
45994
45995
45996
45997
45998
45999     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
46000 $as_echo_n "checking for gcc flag -Wold-style-definition... " >&6; }
46001     if test "x$GCC" = "xyes"; then
46002                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46003            $CC -v --help 2>&1) |
46004          $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
46005                 if test $? -eq 0; then
46006             found_warning=yes
46007             { $as_echo "$as_me:$LINENO: result: yes" >&5
46008 $as_echo "yes" >&6; }
46009         else
46010             found_warning=no
46011             { $as_echo "$as_me:$LINENO: result: no" >&5
46012 $as_echo "no" >&6; }
46013         fi
46014     else
46015         found_warning=no
46016         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46017 $as_echo "no (not using gcc)" >&6; }
46018     fi
46019
46020     if test x"$found_warning" = x"yes"; then
46021         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
46022
46023
46024     else
46025         :
46026     fi
46027
46028
46029
46030     # test for -W'warning', then add the 'no-' version.
46031
46032
46033
46034     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
46035 $as_echo_n "checking for gcc flag -Wstrict-aliasing... " >&6; }
46036     if test "x$GCC" = "xyes"; then
46037                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46038            $CC -v --help 2>&1) |
46039          $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
46040                 if test $? -eq 0; then
46041             found_warning=yes
46042             { $as_echo "$as_me:$LINENO: result: yes" >&5
46043 $as_echo "yes" >&6; }
46044         else
46045             found_warning=no
46046             { $as_echo "$as_me:$LINENO: result: no" >&5
46047 $as_echo "no" >&6; }
46048         fi
46049     else
46050         found_warning=no
46051         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46052 $as_echo "no (not using gcc)" >&6; }
46053     fi
46054
46055     if test x"$found_warning" = x"yes"; then
46056         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
46057
46058
46059     else
46060         :
46061     fi
46062
46063
46064
46065     # test for -W'warning', then add the 'no-' version.
46066
46067
46068
46069     { $as_echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
46070 $as_echo_n "checking for gcc flag -Wunknown-pragmas... " >&6; }
46071     if test "x$GCC" = "xyes"; then
46072                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46073            $CC -v --help 2>&1) |
46074          $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
46075                 if test $? -eq 0; then
46076             found_warning=yes
46077             { $as_echo "$as_me:$LINENO: result: yes" >&5
46078 $as_echo "yes" >&6; }
46079         else
46080             found_warning=no
46081             { $as_echo "$as_me:$LINENO: result: no" >&5
46082 $as_echo "no" >&6; }
46083         fi
46084     else
46085         found_warning=no
46086         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46087 $as_echo "no (not using gcc)" >&6; }
46088     fi
46089
46090     if test x"$found_warning" = x"yes"; then
46091         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
46092
46093
46094     else
46095         :
46096     fi
46097
46098
46099
46100     # Check whether --enable-werror was given.
46101 if test "${enable_werror+set}" = set; then
46102   enableval=$enable_werror;
46103             case "$enableval" in
46104             "" | y | ye | yes)
46105
46106
46107
46108
46109     { $as_echo "$as_me:$LINENO: checking for gcc flag -Werror" >&5
46110 $as_echo_n "checking for gcc flag -Werror... " >&6; }
46111     if test "x$GCC" = "xyes"; then
46112                 (gcc --help={target,optimizers,warnings,undocumented,params,c} 2>&1 ||
46113            $CC -v --help 2>&1) |
46114          $EGREP -- '[^[:alnum:]]-Werror[^[:alnum:]-]' 2>&1 > /dev/null
46115                 if test $? -eq 0; then
46116             found_warning=yes
46117             { $as_echo "$as_me:$LINENO: result: yes" >&5
46118 $as_echo "yes" >&6; }
46119         else
46120             found_warning=no
46121             { $as_echo "$as_me:$LINENO: result: no" >&5
46122 $as_echo "no" >&6; }
46123         fi
46124     else
46125         found_warning=no
46126         { $as_echo "$as_me:$LINENO: result: no (not using gcc)" >&5
46127 $as_echo "no (not using gcc)" >&6; }
46128     fi
46129
46130     if test x"$found_warning" = x"yes"; then
46131         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Werror"
46132
46133
46134     else
46135         :
46136     fi
46137
46138
46139                 ;;
46140             esac
46141
46142 fi
46143
46144
46145
46146     # Check whether --enable-swig-error was given.
46147 if test "${enable_swig_error+set}" = set; then
46148   enableval=$enable_swig_error;
46149             case "$enableval" in
46150             "" | y | ye | yes)
46151                 AMANDA_SWIG_PERL_CFLAGS=-Werror
46152                 ;;
46153             *n | no)
46154                 AMANDA_SWIG_PERL_CFLAGS=
46155                 ;;
46156             esac
46157
46158 fi
46159
46160
46161
46162
46163 #
46164 # Libtool
46165 #
46166 case `pwd` in
46167   *\ * | *\     *)
46168     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
46169 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
46170 esac
46171
46172
46173
46174 macro_version='2.2.4'
46175 macro_revision='1.2976'
46176
46177
46178
46179
46180
46181
46182
46183
46184
46185
46186
46187
46188
46189 ltmain="$ac_aux_dir/ltmain.sh"
46190
46191 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
46192 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
46193 if test "${ac_cv_path_SED+set}" = set; then
46194   $as_echo_n "(cached) " >&6
46195 else
46196             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
46197      for ac_i in 1 2 3 4 5 6 7; do
46198        ac_script="$ac_script$as_nl$ac_script"
46199      done
46200      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
46201      $as_unset ac_script || ac_script=
46202      if test -z "$SED"; then
46203   ac_path_SED_found=false
46204   # Loop through the user's path and test for each of PROGNAME-LIST
46205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46206 for as_dir in $PATH
46207 do
46208   IFS=$as_save_IFS
46209   test -z "$as_dir" && as_dir=.
46210   for ac_prog in sed gsed; do
46211     for ac_exec_ext in '' $ac_executable_extensions; do
46212       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
46213       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
46214 # Check for GNU ac_path_SED and select it if it is found.
46215   # Check for GNU $ac_path_SED
46216 case `"$ac_path_SED" --version 2>&1` in
46217 *GNU*)
46218   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
46219 *)
46220   ac_count=0
46221   $as_echo_n 0123456789 >"conftest.in"
46222   while :
46223   do
46224     cat "conftest.in" "conftest.in" >"conftest.tmp"
46225     mv "conftest.tmp" "conftest.in"
46226     cp "conftest.in" "conftest.nl"
46227     $as_echo '' >> "conftest.nl"
46228     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
46229     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46230     ac_count=`expr $ac_count + 1`
46231     if test $ac_count -gt ${ac_path_SED_max-0}; then
46232       # Best one so far, save it but keep looking for a better one
46233       ac_cv_path_SED="$ac_path_SED"
46234       ac_path_SED_max=$ac_count
46235     fi
46236     # 10*(2^10) chars as input seems more than enough
46237     test $ac_count -gt 10 && break
46238   done
46239   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46240 esac
46241
46242       $ac_path_SED_found && break 3
46243     done
46244   done
46245 done
46246 IFS=$as_save_IFS
46247   if test -z "$ac_cv_path_SED"; then
46248     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
46249 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
46250    { (exit 1); exit 1; }; }
46251   fi
46252 else
46253   ac_cv_path_SED=$SED
46254 fi
46255
46256 fi
46257 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
46258 $as_echo "$ac_cv_path_SED" >&6; }
46259  SED="$ac_cv_path_SED"
46260   rm -f conftest.sed
46261
46262 test -z "$SED" && SED=sed
46263 Xsed="$SED -e 1s/^X//"
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
46276 $as_echo_n "checking for fgrep... " >&6; }
46277 if test "${ac_cv_path_FGREP+set}" = set; then
46278   $as_echo_n "(cached) " >&6
46279 else
46280   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
46281    then ac_cv_path_FGREP="$GREP -F"
46282    else
46283      if test -z "$FGREP"; then
46284   ac_path_FGREP_found=false
46285   # Loop through the user's path and test for each of PROGNAME-LIST
46286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46287 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
46288 do
46289   IFS=$as_save_IFS
46290   test -z "$as_dir" && as_dir=.
46291   for ac_prog in fgrep; do
46292     for ac_exec_ext in '' $ac_executable_extensions; do
46293       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
46294       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
46295 # Check for GNU ac_path_FGREP and select it if it is found.
46296   # Check for GNU $ac_path_FGREP
46297 case `"$ac_path_FGREP" --version 2>&1` in
46298 *GNU*)
46299   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
46300 *)
46301   ac_count=0
46302   $as_echo_n 0123456789 >"conftest.in"
46303   while :
46304   do
46305     cat "conftest.in" "conftest.in" >"conftest.tmp"
46306     mv "conftest.tmp" "conftest.in"
46307     cp "conftest.in" "conftest.nl"
46308     $as_echo 'FGREP' >> "conftest.nl"
46309     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
46310     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46311     ac_count=`expr $ac_count + 1`
46312     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
46313       # Best one so far, save it but keep looking for a better one
46314       ac_cv_path_FGREP="$ac_path_FGREP"
46315       ac_path_FGREP_max=$ac_count
46316     fi
46317     # 10*(2^10) chars as input seems more than enough
46318     test $ac_count -gt 10 && break
46319   done
46320   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
46321 esac
46322
46323       $ac_path_FGREP_found && break 3
46324     done
46325   done
46326 done
46327 IFS=$as_save_IFS
46328   if test -z "$ac_cv_path_FGREP"; then
46329     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
46330 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
46331    { (exit 1); exit 1; }; }
46332   fi
46333 else
46334   ac_cv_path_FGREP=$FGREP
46335 fi
46336
46337    fi
46338 fi
46339 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
46340 $as_echo "$ac_cv_path_FGREP" >&6; }
46341  FGREP="$ac_cv_path_FGREP"
46342
46343
46344 test -z "$GREP" && GREP=grep
46345
46346
46347
46348
46349
46350
46351
46352
46353
46354
46355
46356
46357
46358
46359
46360
46361
46362
46363
46364 # Check whether --with-gnu-ld was given.
46365 if test "${with_gnu_ld+set}" = set; then
46366   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
46367 else
46368   with_gnu_ld=no
46369 fi
46370
46371 ac_prog=ld
46372 if test "$GCC" = yes; then
46373   # Check if gcc -print-prog-name=ld gives a path.
46374   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
46375 $as_echo_n "checking for ld used by $CC... " >&6; }
46376   case $host in
46377   *-*-mingw*)
46378     # gcc leaves a trailing carriage return which upsets mingw
46379     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
46380   *)
46381     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
46382   esac
46383   case $ac_prog in
46384     # Accept absolute paths.
46385     [\\/]* | ?:[\\/]*)
46386       re_direlt='/[^/][^/]*/\.\./'
46387       # Canonicalize the pathname of ld
46388       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
46389       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
46390         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
46391       done
46392       test -z "$LD" && LD="$ac_prog"
46393       ;;
46394   "")
46395     # If it fails, then pretend we aren't using GCC.
46396     ac_prog=ld
46397     ;;
46398   *)
46399     # If it is relative, then search for the first ld in PATH.
46400     with_gnu_ld=unknown
46401     ;;
46402   esac
46403 elif test "$with_gnu_ld" = yes; then
46404   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
46405 $as_echo_n "checking for GNU ld... " >&6; }
46406 else
46407   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
46408 $as_echo_n "checking for non-GNU ld... " >&6; }
46409 fi
46410 if test "${lt_cv_path_LD+set}" = set; then
46411   $as_echo_n "(cached) " >&6
46412 else
46413   if test -z "$LD"; then
46414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
46415   for ac_dir in $PATH; do
46416     IFS="$lt_save_ifs"
46417     test -z "$ac_dir" && ac_dir=.
46418     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
46419       lt_cv_path_LD="$ac_dir/$ac_prog"
46420       # Check to see if the program is GNU ld.  I'd rather use --version,
46421       # but apparently some variants of GNU ld only accept -v.
46422       # Break only if it was the GNU/non-GNU ld that we prefer.
46423       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
46424       *GNU* | *'with BFD'*)
46425         test "$with_gnu_ld" != no && break
46426         ;;
46427       *)
46428         test "$with_gnu_ld" != yes && break
46429         ;;
46430       esac
46431     fi
46432   done
46433   IFS="$lt_save_ifs"
46434 else
46435   lt_cv_path_LD="$LD" # Let the user override the test with a path.
46436 fi
46437 fi
46438
46439 LD="$lt_cv_path_LD"
46440 if test -n "$LD"; then
46441   { $as_echo "$as_me:$LINENO: result: $LD" >&5
46442 $as_echo "$LD" >&6; }
46443 else
46444   { $as_echo "$as_me:$LINENO: result: no" >&5
46445 $as_echo "no" >&6; }
46446 fi
46447 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
46448 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
46449    { (exit 1); exit 1; }; }
46450 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
46451 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
46452 if test "${lt_cv_prog_gnu_ld+set}" = set; then
46453   $as_echo_n "(cached) " >&6
46454 else
46455   # I'd rather use --version here, but apparently some GNU lds only accept -v.
46456 case `$LD -v 2>&1 </dev/null` in
46457 *GNU* | *'with BFD'*)
46458   lt_cv_prog_gnu_ld=yes
46459   ;;
46460 *)
46461   lt_cv_prog_gnu_ld=no
46462   ;;
46463 esac
46464 fi
46465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
46466 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
46467 with_gnu_ld=$lt_cv_prog_gnu_ld
46468
46469
46470
46471
46472
46473
46474
46475
46476
46477 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
46478 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
46479 if test "${lt_cv_path_NM+set}" = set; then
46480   $as_echo_n "(cached) " >&6
46481 else
46482   if test -n "$NM"; then
46483   # Let the user override the test.
46484   lt_cv_path_NM="$NM"
46485 else
46486   lt_nm_to_check="${ac_tool_prefix}nm"
46487   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
46488     lt_nm_to_check="$lt_nm_to_check nm"
46489   fi
46490   for lt_tmp_nm in $lt_nm_to_check; do
46491     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
46492     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
46493       IFS="$lt_save_ifs"
46494       test -z "$ac_dir" && ac_dir=.
46495       tmp_nm="$ac_dir/$lt_tmp_nm"
46496       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
46497         # Check to see if the nm accepts a BSD-compat flag.
46498         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
46499         #   nm: unknown option "B" ignored
46500         # Tru64's nm complains that /dev/null is an invalid object file
46501         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
46502         */dev/null* | *'Invalid file or object type'*)
46503           lt_cv_path_NM="$tmp_nm -B"
46504           break
46505           ;;
46506         *)
46507           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
46508           */dev/null*)
46509             lt_cv_path_NM="$tmp_nm -p"
46510             break
46511             ;;
46512           *)
46513             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
46514             continue # so that we can try to find one that supports BSD flags
46515             ;;
46516           esac
46517           ;;
46518         esac
46519       fi
46520     done
46521     IFS="$lt_save_ifs"
46522   done
46523   : ${lt_cv_path_NM=no}
46524 fi
46525 fi
46526 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
46527 $as_echo "$lt_cv_path_NM" >&6; }
46528 if test "$lt_cv_path_NM" != "no"; then
46529   NM="$lt_cv_path_NM"
46530 else
46531   # Didn't find any BSD compatible name lister, look for dumpbin.
46532   if test -n "$ac_tool_prefix"; then
46533   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
46534   do
46535     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
46536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
46537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46538 $as_echo_n "checking for $ac_word... " >&6; }
46539 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
46540   $as_echo_n "(cached) " >&6
46541 else
46542   if test -n "$DUMPBIN"; then
46543   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
46544 else
46545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46546 for as_dir in $PATH
46547 do
46548   IFS=$as_save_IFS
46549   test -z "$as_dir" && as_dir=.
46550   for ac_exec_ext in '' $ac_executable_extensions; do
46551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46552     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
46553     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46554     break 2
46555   fi
46556 done
46557 done
46558 IFS=$as_save_IFS
46559
46560 fi
46561 fi
46562 DUMPBIN=$ac_cv_prog_DUMPBIN
46563 if test -n "$DUMPBIN"; then
46564   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
46565 $as_echo "$DUMPBIN" >&6; }
46566 else
46567   { $as_echo "$as_me:$LINENO: result: no" >&5
46568 $as_echo "no" >&6; }
46569 fi
46570
46571
46572     test -n "$DUMPBIN" && break
46573   done
46574 fi
46575 if test -z "$DUMPBIN"; then
46576   ac_ct_DUMPBIN=$DUMPBIN
46577   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
46578 do
46579   # Extract the first word of "$ac_prog", so it can be a program name with args.
46580 set dummy $ac_prog; ac_word=$2
46581 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46582 $as_echo_n "checking for $ac_word... " >&6; }
46583 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
46584   $as_echo_n "(cached) " >&6
46585 else
46586   if test -n "$ac_ct_DUMPBIN"; then
46587   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
46588 else
46589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46590 for as_dir in $PATH
46591 do
46592   IFS=$as_save_IFS
46593   test -z "$as_dir" && as_dir=.
46594   for ac_exec_ext in '' $ac_executable_extensions; do
46595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46596     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
46597     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46598     break 2
46599   fi
46600 done
46601 done
46602 IFS=$as_save_IFS
46603
46604 fi
46605 fi
46606 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
46607 if test -n "$ac_ct_DUMPBIN"; then
46608   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
46609 $as_echo "$ac_ct_DUMPBIN" >&6; }
46610 else
46611   { $as_echo "$as_me:$LINENO: result: no" >&5
46612 $as_echo "no" >&6; }
46613 fi
46614
46615
46616   test -n "$ac_ct_DUMPBIN" && break
46617 done
46618
46619   if test "x$ac_ct_DUMPBIN" = x; then
46620     DUMPBIN=":"
46621   else
46622     case $cross_compiling:$ac_tool_warned in
46623 yes:)
46624 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
46625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46626 ac_tool_warned=yes ;;
46627 esac
46628     DUMPBIN=$ac_ct_DUMPBIN
46629   fi
46630 fi
46631
46632
46633   if test "$DUMPBIN" != ":"; then
46634     NM="$DUMPBIN"
46635   fi
46636 fi
46637 test -z "$NM" && NM=nm
46638
46639
46640
46641
46642
46643
46644 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
46645 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
46646 if test "${lt_cv_nm_interface+set}" = set; then
46647   $as_echo_n "(cached) " >&6
46648 else
46649   lt_cv_nm_interface="BSD nm"
46650   echo "int some_variable = 0;" > conftest.$ac_ext
46651   (eval echo "\"\$as_me:46651: $ac_compile\"" >&5)
46652   (eval "$ac_compile" 2>conftest.err)
46653   cat conftest.err >&5
46654   (eval echo "\"\$as_me:46654: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
46655   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
46656   cat conftest.err >&5
46657   (eval echo "\"\$as_me:46657: output\"" >&5)
46658   cat conftest.out >&5
46659   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
46660     lt_cv_nm_interface="MS dumpbin"
46661   fi
46662   rm -f conftest*
46663 fi
46664 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
46665 $as_echo "$lt_cv_nm_interface" >&6; }
46666
46667 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
46668 $as_echo_n "checking whether ln -s works... " >&6; }
46669 LN_S=$as_ln_s
46670 if test "$LN_S" = "ln -s"; then
46671   { $as_echo "$as_me:$LINENO: result: yes" >&5
46672 $as_echo "yes" >&6; }
46673 else
46674   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
46675 $as_echo "no, using $LN_S" >&6; }
46676 fi
46677
46678 # find the maximum length of command line arguments
46679 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
46680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
46681 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
46682   $as_echo_n "(cached) " >&6
46683 else
46684     i=0
46685   teststring="ABCD"
46686
46687   case $build_os in
46688   msdosdjgpp*)
46689     # On DJGPP, this test can blow up pretty badly due to problems in libc
46690     # (any single argument exceeding 2000 bytes causes a buffer overrun
46691     # during glob expansion).  Even if it were fixed, the result of this
46692     # check would be larger than it should be.
46693     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
46694     ;;
46695
46696   gnu*)
46697     # Under GNU Hurd, this test is not required because there is
46698     # no limit to the length of command line arguments.
46699     # Libtool will interpret -1 as no limit whatsoever
46700     lt_cv_sys_max_cmd_len=-1;
46701     ;;
46702
46703   cygwin* | mingw*)
46704     # On Win9x/ME, this test blows up -- it succeeds, but takes
46705     # about 5 minutes as the teststring grows exponentially.
46706     # Worse, since 9x/ME are not pre-emptively multitasking,
46707     # you end up with a "frozen" computer, even though with patience
46708     # the test eventually succeeds (with a max line length of 256k).
46709     # Instead, let's just punt: use the minimum linelength reported by
46710     # all of the supported platforms: 8192 (on NT/2K/XP).
46711     lt_cv_sys_max_cmd_len=8192;
46712     ;;
46713
46714   amigaos*)
46715     # On AmigaOS with pdksh, this test takes hours, literally.
46716     # So we just punt and use a minimum line length of 8192.
46717     lt_cv_sys_max_cmd_len=8192;
46718     ;;
46719
46720   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
46721     # This has been around since 386BSD, at least.  Likely further.
46722     if test -x /sbin/sysctl; then
46723       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
46724     elif test -x /usr/sbin/sysctl; then
46725       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
46726     else
46727       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
46728     fi
46729     # And add a safety zone
46730     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46731     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46732     ;;
46733
46734   interix*)
46735     # We know the value 262144 and hardcode it with a safety zone (like BSD)
46736     lt_cv_sys_max_cmd_len=196608
46737     ;;
46738
46739   osf*)
46740     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
46741     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
46742     # nice to cause kernel panics so lets avoid the loop below.
46743     # First set a reasonable default.
46744     lt_cv_sys_max_cmd_len=16384
46745     #
46746     if test -x /sbin/sysconfig; then
46747       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
46748         *1*) lt_cv_sys_max_cmd_len=-1 ;;
46749       esac
46750     fi
46751     ;;
46752   sco3.2v5*)
46753     lt_cv_sys_max_cmd_len=102400
46754     ;;
46755   sysv5* | sco5v6* | sysv4.2uw2*)
46756     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
46757     if test -n "$kargmax"; then
46758       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
46759     else
46760       lt_cv_sys_max_cmd_len=32768
46761     fi
46762     ;;
46763   *)
46764     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
46765     if test -n "$lt_cv_sys_max_cmd_len"; then
46766       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46767       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46768     else
46769       # Make teststring a little bigger before we do anything with it.
46770       # a 1K string should be a reasonable start.
46771       for i in 1 2 3 4 5 6 7 8 ; do
46772         teststring=$teststring$teststring
46773       done
46774       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
46775       # If test is not a shell built-in, we'll probably end up computing a
46776       # maximum length that is only half of the actual maximum length, but
46777       # we can't tell.
46778       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
46779                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
46780               test $i != 17 # 1/2 MB should be enough
46781       do
46782         i=`expr $i + 1`
46783         teststring=$teststring$teststring
46784       done
46785       # Only check the string length outside the loop.
46786       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
46787       teststring=
46788       # Add a significant safety factor because C++ compilers can tack on
46789       # massive amounts of additional arguments before passing them to the
46790       # linker.  It appears as though 1/2 is a usable value.
46791       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
46792     fi
46793     ;;
46794   esac
46795
46796 fi
46797
46798 if test -n $lt_cv_sys_max_cmd_len ; then
46799   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
46800 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
46801 else
46802   { $as_echo "$as_me:$LINENO: result: none" >&5
46803 $as_echo "none" >&6; }
46804 fi
46805 max_cmd_len=$lt_cv_sys_max_cmd_len
46806
46807
46808
46809
46810
46811
46812 : ${CP="cp -f"}
46813 : ${MV="mv -f"}
46814 : ${RM="rm -f"}
46815
46816 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
46817 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
46818 # Try some XSI features
46819 xsi_shell=no
46820 ( _lt_dummy="a/b/c"
46821   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
46822       = c,a/b,, \
46823     && eval 'test $(( 1 + 1 )) -eq 2 \
46824     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
46825   && xsi_shell=yes
46826 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
46827 $as_echo "$xsi_shell" >&6; }
46828
46829
46830 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
46831 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
46832 lt_shell_append=no
46833 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
46834     >/dev/null 2>&1 \
46835   && lt_shell_append=yes
46836 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
46837 $as_echo "$lt_shell_append" >&6; }
46838
46839
46840 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46841   lt_unset=unset
46842 else
46843   lt_unset=false
46844 fi
46845
46846
46847
46848
46849
46850 # test EBCDIC or ASCII
46851 case `echo X|tr X '\101'` in
46852  A) # ASCII based system
46853     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
46854   lt_SP2NL='tr \040 \012'
46855   lt_NL2SP='tr \015\012 \040\040'
46856   ;;
46857  *) # EBCDIC based system
46858   lt_SP2NL='tr \100 \n'
46859   lt_NL2SP='tr \r\n \100\100'
46860   ;;
46861 esac
46862
46863
46864
46865
46866
46867
46868
46869
46870
46871 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
46872 $as_echo_n "checking for $LD option to reload object files... " >&6; }
46873 if test "${lt_cv_ld_reload_flag+set}" = set; then
46874   $as_echo_n "(cached) " >&6
46875 else
46876   lt_cv_ld_reload_flag='-r'
46877 fi
46878 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
46879 $as_echo "$lt_cv_ld_reload_flag" >&6; }
46880 reload_flag=$lt_cv_ld_reload_flag
46881 case $reload_flag in
46882 "" | " "*) ;;
46883 *) reload_flag=" $reload_flag" ;;
46884 esac
46885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
46886 case $host_os in
46887   darwin*)
46888     if test "$GCC" = yes; then
46889       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
46890     else
46891       reload_cmds='$LD$reload_flag -o $output$reload_objs'
46892     fi
46893     ;;
46894 esac
46895
46896
46897
46898
46899
46900
46901
46902
46903
46904
46905 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
46906 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
46907 if test "${lt_cv_deplibs_check_method+set}" = set; then
46908   $as_echo_n "(cached) " >&6
46909 else
46910   lt_cv_file_magic_cmd='$MAGIC_CMD'
46911 lt_cv_file_magic_test_file=
46912 lt_cv_deplibs_check_method='unknown'
46913 # Need to set the preceding variable on all platforms that support
46914 # interlibrary dependencies.
46915 # 'none' -- dependencies not supported.
46916 # `unknown' -- same as none, but documents that we really don't know.
46917 # 'pass_all' -- all dependencies passed with no checks.
46918 # 'test_compile' -- check by making test program.
46919 # 'file_magic [[regex]]' -- check by looking for files in library path
46920 # which responds to the $file_magic_cmd with a given extended regex.
46921 # If you have `file' or equivalent on your system and you're not sure
46922 # whether `pass_all' will *always* work, you probably want this one.
46923
46924 case $host_os in
46925 aix[4-9]*)
46926   lt_cv_deplibs_check_method=pass_all
46927   ;;
46928
46929 beos*)
46930   lt_cv_deplibs_check_method=pass_all
46931   ;;
46932
46933 bsdi[45]*)
46934   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
46935   lt_cv_file_magic_cmd='/usr/bin/file -L'
46936   lt_cv_file_magic_test_file=/shlib/libc.so
46937   ;;
46938
46939 cygwin*)
46940   # func_win32_libid is a shell function defined in ltmain.sh
46941   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
46942   lt_cv_file_magic_cmd='func_win32_libid'
46943   ;;
46944
46945 mingw* | pw32*)
46946   # Base MSYS/MinGW do not provide the 'file' command needed by
46947   # func_win32_libid shell function, so use a weaker test based on 'objdump',
46948   # unless we find 'file', for example because we are cross-compiling.
46949   if ( file / ) >/dev/null 2>&1; then
46950     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
46951     lt_cv_file_magic_cmd='func_win32_libid'
46952   else
46953     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
46954     lt_cv_file_magic_cmd='$OBJDUMP -f'
46955   fi
46956   ;;
46957
46958 darwin* | rhapsody*)
46959   lt_cv_deplibs_check_method=pass_all
46960   ;;
46961
46962 freebsd* | dragonfly*)
46963   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
46964     case $host_cpu in
46965     i*86 )
46966       # Not sure whether the presence of OpenBSD here was a mistake.
46967       # Let's accept both of them until this is cleared up.
46968       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
46969       lt_cv_file_magic_cmd=/usr/bin/file
46970       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
46971       ;;
46972     esac
46973   else
46974     lt_cv_deplibs_check_method=pass_all
46975   fi
46976   ;;
46977
46978 gnu*)
46979   lt_cv_deplibs_check_method=pass_all
46980   ;;
46981
46982 hpux10.20* | hpux11*)
46983   lt_cv_file_magic_cmd=/usr/bin/file
46984   case $host_cpu in
46985   ia64*)
46986     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
46987     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
46988     ;;
46989   hppa*64*)
46990     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]'
46991     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
46992     ;;
46993   *)
46994     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
46995     lt_cv_file_magic_test_file=/usr/lib/libc.sl
46996     ;;
46997   esac
46998   ;;
46999
47000 interix[3-9]*)
47001   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
47002   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
47003   ;;
47004
47005 irix5* | irix6* | nonstopux*)
47006   case $LD in
47007   *-32|*"-32 ") libmagic=32-bit;;
47008   *-n32|*"-n32 ") libmagic=N32;;
47009   *-64|*"-64 ") libmagic=64-bit;;
47010   *) libmagic=never-match;;
47011   esac
47012   lt_cv_deplibs_check_method=pass_all
47013   ;;
47014
47015 # This must be Linux ELF.
47016 linux* | k*bsd*-gnu)
47017   lt_cv_deplibs_check_method=pass_all
47018   ;;
47019
47020 netbsd*)
47021   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
47022     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
47023   else
47024     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
47025   fi
47026   ;;
47027
47028 newos6*)
47029   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
47030   lt_cv_file_magic_cmd=/usr/bin/file
47031   lt_cv_file_magic_test_file=/usr/lib/libnls.so
47032   ;;
47033
47034 *nto* | *qnx*)
47035   lt_cv_deplibs_check_method=pass_all
47036   ;;
47037
47038 openbsd*)
47039   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
47040     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
47041   else
47042     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
47043   fi
47044   ;;
47045
47046 osf3* | osf4* | osf5*)
47047   lt_cv_deplibs_check_method=pass_all
47048   ;;
47049
47050 rdos*)
47051   lt_cv_deplibs_check_method=pass_all
47052   ;;
47053
47054 solaris*)
47055   lt_cv_deplibs_check_method=pass_all
47056   ;;
47057
47058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
47059   lt_cv_deplibs_check_method=pass_all
47060   ;;
47061
47062 sysv4 | sysv4.3*)
47063   case $host_vendor in
47064   motorola)
47065     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]'
47066     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
47067     ;;
47068   ncr)
47069     lt_cv_deplibs_check_method=pass_all
47070     ;;
47071   sequent)
47072     lt_cv_file_magic_cmd='/bin/file'
47073     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
47074     ;;
47075   sni)
47076     lt_cv_file_magic_cmd='/bin/file'
47077     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
47078     lt_cv_file_magic_test_file=/lib/libc.so
47079     ;;
47080   siemens)
47081     lt_cv_deplibs_check_method=pass_all
47082     ;;
47083   pc)
47084     lt_cv_deplibs_check_method=pass_all
47085     ;;
47086   esac
47087   ;;
47088
47089 tpf*)
47090   lt_cv_deplibs_check_method=pass_all
47091   ;;
47092 esac
47093
47094 fi
47095 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
47096 $as_echo "$lt_cv_deplibs_check_method" >&6; }
47097 file_magic_cmd=$lt_cv_file_magic_cmd
47098 deplibs_check_method=$lt_cv_deplibs_check_method
47099 test -z "$deplibs_check_method" && deplibs_check_method=unknown
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112 if test -n "$ac_tool_prefix"; then
47113   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47114 set dummy ${ac_tool_prefix}ar; ac_word=$2
47115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47116 $as_echo_n "checking for $ac_word... " >&6; }
47117 if test "${ac_cv_prog_AR+set}" = set; then
47118   $as_echo_n "(cached) " >&6
47119 else
47120   if test -n "$AR"; then
47121   ac_cv_prog_AR="$AR" # Let the user override the test.
47122 else
47123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47124 for as_dir in $PATH
47125 do
47126   IFS=$as_save_IFS
47127   test -z "$as_dir" && as_dir=.
47128   for ac_exec_ext in '' $ac_executable_extensions; do
47129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47130     ac_cv_prog_AR="${ac_tool_prefix}ar"
47131     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47132     break 2
47133   fi
47134 done
47135 done
47136 IFS=$as_save_IFS
47137
47138 fi
47139 fi
47140 AR=$ac_cv_prog_AR
47141 if test -n "$AR"; then
47142   { $as_echo "$as_me:$LINENO: result: $AR" >&5
47143 $as_echo "$AR" >&6; }
47144 else
47145   { $as_echo "$as_me:$LINENO: result: no" >&5
47146 $as_echo "no" >&6; }
47147 fi
47148
47149
47150 fi
47151 if test -z "$ac_cv_prog_AR"; then
47152   ac_ct_AR=$AR
47153   # Extract the first word of "ar", so it can be a program name with args.
47154 set dummy ar; ac_word=$2
47155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47156 $as_echo_n "checking for $ac_word... " >&6; }
47157 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47158   $as_echo_n "(cached) " >&6
47159 else
47160   if test -n "$ac_ct_AR"; then
47161   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47162 else
47163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47164 for as_dir in $PATH
47165 do
47166   IFS=$as_save_IFS
47167   test -z "$as_dir" && as_dir=.
47168   for ac_exec_ext in '' $ac_executable_extensions; do
47169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47170     ac_cv_prog_ac_ct_AR="ar"
47171     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47172     break 2
47173   fi
47174 done
47175 done
47176 IFS=$as_save_IFS
47177
47178 fi
47179 fi
47180 ac_ct_AR=$ac_cv_prog_ac_ct_AR
47181 if test -n "$ac_ct_AR"; then
47182   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47183 $as_echo "$ac_ct_AR" >&6; }
47184 else
47185   { $as_echo "$as_me:$LINENO: result: no" >&5
47186 $as_echo "no" >&6; }
47187 fi
47188
47189   if test "x$ac_ct_AR" = x; then
47190     AR="false"
47191   else
47192     case $cross_compiling:$ac_tool_warned in
47193 yes:)
47194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47196 ac_tool_warned=yes ;;
47197 esac
47198     AR=$ac_ct_AR
47199   fi
47200 else
47201   AR="$ac_cv_prog_AR"
47202 fi
47203
47204 test -z "$AR" && AR=ar
47205 test -z "$AR_FLAGS" && AR_FLAGS=cru
47206
47207
47208
47209
47210
47211
47212
47213
47214
47215
47216
47217 if test -n "$ac_tool_prefix"; then
47218   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47219 set dummy ${ac_tool_prefix}strip; ac_word=$2
47220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47221 $as_echo_n "checking for $ac_word... " >&6; }
47222 if test "${ac_cv_prog_STRIP+set}" = set; then
47223   $as_echo_n "(cached) " >&6
47224 else
47225   if test -n "$STRIP"; then
47226   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47227 else
47228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47229 for as_dir in $PATH
47230 do
47231   IFS=$as_save_IFS
47232   test -z "$as_dir" && as_dir=.
47233   for ac_exec_ext in '' $ac_executable_extensions; do
47234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47235     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47236     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47237     break 2
47238   fi
47239 done
47240 done
47241 IFS=$as_save_IFS
47242
47243 fi
47244 fi
47245 STRIP=$ac_cv_prog_STRIP
47246 if test -n "$STRIP"; then
47247   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
47248 $as_echo "$STRIP" >&6; }
47249 else
47250   { $as_echo "$as_me:$LINENO: result: no" >&5
47251 $as_echo "no" >&6; }
47252 fi
47253
47254
47255 fi
47256 if test -z "$ac_cv_prog_STRIP"; then
47257   ac_ct_STRIP=$STRIP
47258   # Extract the first word of "strip", so it can be a program name with args.
47259 set dummy strip; ac_word=$2
47260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47261 $as_echo_n "checking for $ac_word... " >&6; }
47262 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47263   $as_echo_n "(cached) " >&6
47264 else
47265   if test -n "$ac_ct_STRIP"; then
47266   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47267 else
47268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47269 for as_dir in $PATH
47270 do
47271   IFS=$as_save_IFS
47272   test -z "$as_dir" && as_dir=.
47273   for ac_exec_ext in '' $ac_executable_extensions; do
47274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47275     ac_cv_prog_ac_ct_STRIP="strip"
47276     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47277     break 2
47278   fi
47279 done
47280 done
47281 IFS=$as_save_IFS
47282
47283 fi
47284 fi
47285 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47286 if test -n "$ac_ct_STRIP"; then
47287   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47288 $as_echo "$ac_ct_STRIP" >&6; }
47289 else
47290   { $as_echo "$as_me:$LINENO: result: no" >&5
47291 $as_echo "no" >&6; }
47292 fi
47293
47294   if test "x$ac_ct_STRIP" = x; then
47295     STRIP=":"
47296   else
47297     case $cross_compiling:$ac_tool_warned in
47298 yes:)
47299 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47301 ac_tool_warned=yes ;;
47302 esac
47303     STRIP=$ac_ct_STRIP
47304   fi
47305 else
47306   STRIP="$ac_cv_prog_STRIP"
47307 fi
47308
47309 test -z "$STRIP" && STRIP=:
47310
47311
47312
47313
47314
47315
47316 if test -n "$ac_tool_prefix"; then
47317   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
47318 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
47319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47320 $as_echo_n "checking for $ac_word... " >&6; }
47321 if test "${ac_cv_prog_RANLIB+set}" = set; then
47322   $as_echo_n "(cached) " >&6
47323 else
47324   if test -n "$RANLIB"; then
47325   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
47326 else
47327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47328 for as_dir in $PATH
47329 do
47330   IFS=$as_save_IFS
47331   test -z "$as_dir" && as_dir=.
47332   for ac_exec_ext in '' $ac_executable_extensions; do
47333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47334     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
47335     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47336     break 2
47337   fi
47338 done
47339 done
47340 IFS=$as_save_IFS
47341
47342 fi
47343 fi
47344 RANLIB=$ac_cv_prog_RANLIB
47345 if test -n "$RANLIB"; then
47346   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
47347 $as_echo "$RANLIB" >&6; }
47348 else
47349   { $as_echo "$as_me:$LINENO: result: no" >&5
47350 $as_echo "no" >&6; }
47351 fi
47352
47353
47354 fi
47355 if test -z "$ac_cv_prog_RANLIB"; then
47356   ac_ct_RANLIB=$RANLIB
47357   # Extract the first word of "ranlib", so it can be a program name with args.
47358 set dummy ranlib; ac_word=$2
47359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47360 $as_echo_n "checking for $ac_word... " >&6; }
47361 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47362   $as_echo_n "(cached) " >&6
47363 else
47364   if test -n "$ac_ct_RANLIB"; then
47365   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47366 else
47367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47368 for as_dir in $PATH
47369 do
47370   IFS=$as_save_IFS
47371   test -z "$as_dir" && as_dir=.
47372   for ac_exec_ext in '' $ac_executable_extensions; do
47373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47374     ac_cv_prog_ac_ct_RANLIB="ranlib"
47375     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47376     break 2
47377   fi
47378 done
47379 done
47380 IFS=$as_save_IFS
47381
47382 fi
47383 fi
47384 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47385 if test -n "$ac_ct_RANLIB"; then
47386   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47387 $as_echo "$ac_ct_RANLIB" >&6; }
47388 else
47389   { $as_echo "$as_me:$LINENO: result: no" >&5
47390 $as_echo "no" >&6; }
47391 fi
47392
47393   if test "x$ac_ct_RANLIB" = x; then
47394     RANLIB=":"
47395   else
47396     case $cross_compiling:$ac_tool_warned in
47397 yes:)
47398 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
47399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
47400 ac_tool_warned=yes ;;
47401 esac
47402     RANLIB=$ac_ct_RANLIB
47403   fi
47404 else
47405   RANLIB="$ac_cv_prog_RANLIB"
47406 fi
47407
47408 test -z "$RANLIB" && RANLIB=:
47409
47410
47411
47412
47413
47414
47415 # Determine commands to create old-style static archives.
47416 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
47417 old_postinstall_cmds='chmod 644 $oldlib'
47418 old_postuninstall_cmds=
47419
47420 if test -n "$RANLIB"; then
47421   case $host_os in
47422   openbsd*)
47423     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
47424     ;;
47425   *)
47426     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
47427     ;;
47428   esac
47429   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
47430 fi
47431
47432
47433
47434
47435
47436
47437
47438
47439
47440
47441
47442
47443
47444
47445
47446
47447
47448
47449
47450
47451
47452
47453
47454
47455
47456
47457
47458
47459
47460
47461
47462
47463
47464
47465 # If no C compiler was specified, use CC.
47466 LTCC=${LTCC-"$CC"}
47467
47468 # If no C compiler flags were specified, use CFLAGS.
47469 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
47470
47471 # Allow CC to be a program name with arguments.
47472 compiler=$CC
47473
47474
47475 # Check for command to grab the raw symbol name followed by C symbol from nm.
47476 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
47477 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
47478 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
47479   $as_echo_n "(cached) " >&6
47480 else
47481
47482 # These are sane defaults that work on at least a few old systems.
47483 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
47484
47485 # Character class describing NM global symbol codes.
47486 symcode='[BCDEGRST]'
47487
47488 # Regexp to match symbols that can be accessed directly from C.
47489 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
47490
47491 # Define system-specific variables.
47492 case $host_os in
47493 aix*)
47494   symcode='[BCDT]'
47495   ;;
47496 cygwin* | mingw* | pw32*)
47497   symcode='[ABCDGISTW]'
47498   ;;
47499 hpux*)
47500   if test "$host_cpu" = ia64; then
47501     symcode='[ABCDEGRST]'
47502   fi
47503   ;;
47504 irix* | nonstopux*)
47505   symcode='[BCDEGRST]'
47506   ;;
47507 osf*)
47508   symcode='[BCDEGQRST]'
47509   ;;
47510 solaris*)
47511   symcode='[BDRT]'
47512   ;;
47513 sco3.2v5*)
47514   symcode='[DT]'
47515   ;;
47516 sysv4.2uw2*)
47517   symcode='[DT]'
47518   ;;
47519 sysv5* | sco5v6* | unixware* | OpenUNIX*)
47520   symcode='[ABDT]'
47521   ;;
47522 sysv4)
47523   symcode='[DFNSTU]'
47524   ;;
47525 esac
47526
47527 # If we're using GNU nm, then use its standard symbol codes.
47528 case `$NM -V 2>&1` in
47529 *GNU* | *'with BFD'*)
47530   symcode='[ABCDGIRSTW]' ;;
47531 esac
47532
47533 # Transform an extracted symbol line into a proper C declaration.
47534 # Some systems (esp. on ia64) link data and code symbols differently,
47535 # so use this general approach.
47536 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
47537
47538 # Transform an extracted symbol line into symbol name and symbol address
47539 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
47540 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'"
47541
47542 # Handle CRLF in mingw tool chain
47543 opt_cr=
47544 case $build_os in
47545 mingw*)
47546   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
47547   ;;
47548 esac
47549
47550 # Try without a prefix underscore, then with it.
47551 for ac_symprfx in "" "_"; do
47552
47553   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
47554   symxfrm="\\1 $ac_symprfx\\2 \\2"
47555
47556   # Write the raw and C identifiers.
47557   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
47558     # Fake it for dumpbin and say T for any non-static function
47559     # and D for any global variable.
47560     # Also find C++ and __fastcall symbols from MSVC++,
47561     # which start with @ or ?.
47562     lt_cv_sys_global_symbol_pipe="$AWK '"\
47563 "     {last_section=section; section=\$ 3};"\
47564 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
47565 "     \$ 0!~/External *\|/{next};"\
47566 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
47567 "     {if(hide[section]) next};"\
47568 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
47569 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
47570 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
47571 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
47572 "     ' prfx=^$ac_symprfx"
47573   else
47574     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
47575   fi
47576
47577   # Check to see that the pipe works correctly.
47578   pipe_works=no
47579
47580   rm -f conftest*
47581   cat > conftest.$ac_ext <<_LT_EOF
47582 #ifdef __cplusplus
47583 extern "C" {
47584 #endif
47585 char nm_test_var;
47586 void nm_test_func(void);
47587 void nm_test_func(void){}
47588 #ifdef __cplusplus
47589 }
47590 #endif
47591 int main(){nm_test_var='a';nm_test_func();return(0);}
47592 _LT_EOF
47593
47594   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47595   (eval $ac_compile) 2>&5
47596   ac_status=$?
47597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47598   (exit $ac_status); }; then
47599     # Now try to grab the symbols.
47600     nlist=conftest.nm
47601     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
47602   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
47603   ac_status=$?
47604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47605   (exit $ac_status); } && test -s "$nlist"; then
47606       # Try sorting and uniquifying the output.
47607       if sort "$nlist" | uniq > "$nlist"T; then
47608         mv -f "$nlist"T "$nlist"
47609       else
47610         rm -f "$nlist"T
47611       fi
47612
47613       # Make sure that we snagged all the symbols we need.
47614       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
47615         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
47616           cat <<_LT_EOF > conftest.$ac_ext
47617 #ifdef __cplusplus
47618 extern "C" {
47619 #endif
47620
47621 _LT_EOF
47622           # Now generate the symbol file.
47623           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
47624
47625           cat <<_LT_EOF >> conftest.$ac_ext
47626
47627 /* The mapping between symbol names and symbols.  */
47628 const struct {
47629   const char *name;
47630   void       *address;
47631 }
47632 lt__PROGRAM__LTX_preloaded_symbols[] =
47633 {
47634   { "@PROGRAM@", (void *) 0 },
47635 _LT_EOF
47636           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
47637           cat <<\_LT_EOF >> conftest.$ac_ext
47638   {0, (void *) 0}
47639 };
47640
47641 /* This works around a problem in FreeBSD linker */
47642 #ifdef FREEBSD_WORKAROUND
47643 static const void *lt_preloaded_setup() {
47644   return lt__PROGRAM__LTX_preloaded_symbols;
47645 }
47646 #endif
47647
47648 #ifdef __cplusplus
47649 }
47650 #endif
47651 _LT_EOF
47652           # Now try linking the two files.
47653           mv conftest.$ac_objext conftstm.$ac_objext
47654           lt_save_LIBS="$LIBS"
47655           lt_save_CFLAGS="$CFLAGS"
47656           LIBS="conftstm.$ac_objext"
47657           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
47658           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47659   (eval $ac_link) 2>&5
47660   ac_status=$?
47661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47662   (exit $ac_status); } && test -s conftest${ac_exeext}; then
47663             pipe_works=yes
47664           fi
47665           LIBS="$lt_save_LIBS"
47666           CFLAGS="$lt_save_CFLAGS"
47667         else
47668           echo "cannot find nm_test_func in $nlist" >&5
47669         fi
47670       else
47671         echo "cannot find nm_test_var in $nlist" >&5
47672       fi
47673     else
47674       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
47675     fi
47676   else
47677     echo "$progname: failed program was:" >&5
47678     cat conftest.$ac_ext >&5
47679   fi
47680   rm -rf conftest* conftst*
47681
47682   # Do not use the global_symbol_pipe unless it works.
47683   if test "$pipe_works" = yes; then
47684     break
47685   else
47686     lt_cv_sys_global_symbol_pipe=
47687   fi
47688 done
47689
47690 fi
47691
47692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
47693   lt_cv_sys_global_symbol_to_cdecl=
47694 fi
47695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
47696   { $as_echo "$as_me:$LINENO: result: failed" >&5
47697 $as_echo "failed" >&6; }
47698 else
47699   { $as_echo "$as_me:$LINENO: result: ok" >&5
47700 $as_echo "ok" >&6; }
47701 fi
47702
47703
47704
47705
47706
47707
47708
47709
47710
47711
47712
47713
47714
47715
47716
47717
47718
47719
47720
47721
47722
47723
47724 # Check whether --enable-libtool-lock was given.
47725 if test "${enable_libtool_lock+set}" = set; then
47726   enableval=$enable_libtool_lock;
47727 fi
47728
47729 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
47730
47731 # Some flags need to be propagated to the compiler or linker for good
47732 # libtool support.
47733 case $host in
47734 ia64-*-hpux*)
47735   # Find out which ABI we are using.
47736   echo 'int i;' > conftest.$ac_ext
47737   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47738   (eval $ac_compile) 2>&5
47739   ac_status=$?
47740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47741   (exit $ac_status); }; then
47742     case `/usr/bin/file conftest.$ac_objext` in
47743       *ELF-32*)
47744         HPUX_IA64_MODE="32"
47745         ;;
47746       *ELF-64*)
47747         HPUX_IA64_MODE="64"
47748         ;;
47749     esac
47750   fi
47751   rm -rf conftest*
47752   ;;
47753 *-*-irix6*)
47754   # Find out which ABI we are using.
47755   echo '#line 47755 "configure"' > conftest.$ac_ext
47756   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47757   (eval $ac_compile) 2>&5
47758   ac_status=$?
47759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47760   (exit $ac_status); }; then
47761     if test "$lt_cv_prog_gnu_ld" = yes; then
47762       case `/usr/bin/file conftest.$ac_objext` in
47763         *32-bit*)
47764           LD="${LD-ld} -melf32bsmip"
47765           ;;
47766         *N32*)
47767           LD="${LD-ld} -melf32bmipn32"
47768           ;;
47769         *64-bit*)
47770           LD="${LD-ld} -melf64bmip"
47771         ;;
47772       esac
47773     else
47774       case `/usr/bin/file conftest.$ac_objext` in
47775         *32-bit*)
47776           LD="${LD-ld} -32"
47777           ;;
47778         *N32*)
47779           LD="${LD-ld} -n32"
47780           ;;
47781         *64-bit*)
47782           LD="${LD-ld} -64"
47783           ;;
47784       esac
47785     fi
47786   fi
47787   rm -rf conftest*
47788   ;;
47789
47790 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
47791 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
47792   # Find out which ABI we are using.
47793   echo 'int i;' > conftest.$ac_ext
47794   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47795   (eval $ac_compile) 2>&5
47796   ac_status=$?
47797   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47798   (exit $ac_status); }; then
47799     case `/usr/bin/file conftest.o` in
47800       *32-bit*)
47801         case $host in
47802           x86_64-*kfreebsd*-gnu)
47803             LD="${LD-ld} -m elf_i386_fbsd"
47804             ;;
47805           x86_64-*linux*)
47806             LD="${LD-ld} -m elf_i386"
47807             ;;
47808           ppc64-*linux*|powerpc64-*linux*)
47809             LD="${LD-ld} -m elf32ppclinux"
47810             ;;
47811           s390x-*linux*)
47812             LD="${LD-ld} -m elf_s390"
47813             ;;
47814           sparc64-*linux*)
47815             LD="${LD-ld} -m elf32_sparc"
47816             ;;
47817         esac
47818         ;;
47819       *64-bit*)
47820         case $host in
47821           x86_64-*kfreebsd*-gnu)
47822             LD="${LD-ld} -m elf_x86_64_fbsd"
47823             ;;
47824           x86_64-*linux*)
47825             LD="${LD-ld} -m elf_x86_64"
47826             ;;
47827           ppc*-*linux*|powerpc*-*linux*)
47828             LD="${LD-ld} -m elf64ppc"
47829             ;;
47830           s390*-*linux*|s390*-*tpf*)
47831             LD="${LD-ld} -m elf64_s390"
47832             ;;
47833           sparc*-*linux*)
47834             LD="${LD-ld} -m elf64_sparc"
47835             ;;
47836         esac
47837         ;;
47838     esac
47839   fi
47840   rm -rf conftest*
47841   ;;
47842
47843 *-*-sco3.2v5*)
47844   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
47845   SAVE_CFLAGS="$CFLAGS"
47846   CFLAGS="$CFLAGS -belf"
47847   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
47848 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
47849 if test "${lt_cv_cc_needs_belf+set}" = set; then
47850   $as_echo_n "(cached) " >&6
47851 else
47852   ac_ext=c
47853 ac_cpp='$CPP $CPPFLAGS'
47854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47857
47858      cat >conftest.$ac_ext <<_ACEOF
47859 /* confdefs.h.  */
47860 _ACEOF
47861 cat confdefs.h >>conftest.$ac_ext
47862 cat >>conftest.$ac_ext <<_ACEOF
47863 /* end confdefs.h.  */
47864
47865 int
47866 main ()
47867 {
47868
47869   ;
47870   return 0;
47871 }
47872 _ACEOF
47873 rm -f conftest.$ac_objext conftest$ac_exeext
47874 if { (ac_try="$ac_link"
47875 case "(($ac_try" in
47876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47877   *) ac_try_echo=$ac_try;;
47878 esac
47879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47880 $as_echo "$ac_try_echo") >&5
47881   (eval "$ac_link") 2>conftest.er1
47882   ac_status=$?
47883   grep -v '^ *+' conftest.er1 >conftest.err
47884   rm -f conftest.er1
47885   cat conftest.err >&5
47886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47887   (exit $ac_status); } && {
47888          test -z "$ac_c_werror_flag" ||
47889          test ! -s conftest.err
47890        } && test -s conftest$ac_exeext && {
47891          test "$cross_compiling" = yes ||
47892          $as_test_x conftest$ac_exeext
47893        }; then
47894   lt_cv_cc_needs_belf=yes
47895 else
47896   $as_echo "$as_me: failed program was:" >&5
47897 sed 's/^/| /' conftest.$ac_ext >&5
47898
47899         lt_cv_cc_needs_belf=no
47900 fi
47901
47902 rm -rf conftest.dSYM
47903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47904       conftest$ac_exeext conftest.$ac_ext
47905      ac_ext=c
47906 ac_cpp='$CPP $CPPFLAGS'
47907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47910
47911 fi
47912 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
47913 $as_echo "$lt_cv_cc_needs_belf" >&6; }
47914   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
47915     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
47916     CFLAGS="$SAVE_CFLAGS"
47917   fi
47918   ;;
47919 sparc*-*solaris*)
47920   # Find out which ABI we are using.
47921   echo 'int i;' > conftest.$ac_ext
47922   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47923   (eval $ac_compile) 2>&5
47924   ac_status=$?
47925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47926   (exit $ac_status); }; then
47927     case `/usr/bin/file conftest.o` in
47928     *64-bit*)
47929       case $lt_cv_prog_gnu_ld in
47930       yes*) LD="${LD-ld} -m elf64_sparc" ;;
47931       *)
47932         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
47933           LD="${LD-ld} -64"
47934         fi
47935         ;;
47936       esac
47937       ;;
47938     esac
47939   fi
47940   rm -rf conftest*
47941   ;;
47942 esac
47943
47944 need_locks="$enable_libtool_lock"
47945
47946
47947   case $host_os in
47948     rhapsody* | darwin*)
47949     if test -n "$ac_tool_prefix"; then
47950   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
47951 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
47952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47953 $as_echo_n "checking for $ac_word... " >&6; }
47954 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
47955   $as_echo_n "(cached) " >&6
47956 else
47957   if test -n "$DSYMUTIL"; then
47958   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
47959 else
47960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47961 for as_dir in $PATH
47962 do
47963   IFS=$as_save_IFS
47964   test -z "$as_dir" && as_dir=.
47965   for ac_exec_ext in '' $ac_executable_extensions; do
47966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
47967     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
47968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47969     break 2
47970   fi
47971 done
47972 done
47973 IFS=$as_save_IFS
47974
47975 fi
47976 fi
47977 DSYMUTIL=$ac_cv_prog_DSYMUTIL
47978 if test -n "$DSYMUTIL"; then
47979   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
47980 $as_echo "$DSYMUTIL" >&6; }
47981 else
47982   { $as_echo "$as_me:$LINENO: result: no" >&5
47983 $as_echo "no" >&6; }
47984 fi
47985
47986
47987 fi
47988 if test -z "$ac_cv_prog_DSYMUTIL"; then
47989   ac_ct_DSYMUTIL=$DSYMUTIL
47990   # Extract the first word of "dsymutil", so it can be a program name with args.
47991 set dummy dsymutil; ac_word=$2
47992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47993 $as_echo_n "checking for $ac_word... " >&6; }
47994 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
47995   $as_echo_n "(cached) " >&6
47996 else
47997   if test -n "$ac_ct_DSYMUTIL"; then
47998   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
47999 else
48000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48001 for as_dir in $PATH
48002 do
48003   IFS=$as_save_IFS
48004   test -z "$as_dir" && as_dir=.
48005   for ac_exec_ext in '' $ac_executable_extensions; do
48006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48007     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
48008     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48009     break 2
48010   fi
48011 done
48012 done
48013 IFS=$as_save_IFS
48014
48015 fi
48016 fi
48017 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
48018 if test -n "$ac_ct_DSYMUTIL"; then
48019   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
48020 $as_echo "$ac_ct_DSYMUTIL" >&6; }
48021 else
48022   { $as_echo "$as_me:$LINENO: result: no" >&5
48023 $as_echo "no" >&6; }
48024 fi
48025
48026   if test "x$ac_ct_DSYMUTIL" = x; then
48027     DSYMUTIL=":"
48028   else
48029     case $cross_compiling:$ac_tool_warned in
48030 yes:)
48031 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48033 ac_tool_warned=yes ;;
48034 esac
48035     DSYMUTIL=$ac_ct_DSYMUTIL
48036   fi
48037 else
48038   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
48039 fi
48040
48041     if test -n "$ac_tool_prefix"; then
48042   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
48043 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
48044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48045 $as_echo_n "checking for $ac_word... " >&6; }
48046 if test "${ac_cv_prog_NMEDIT+set}" = set; then
48047   $as_echo_n "(cached) " >&6
48048 else
48049   if test -n "$NMEDIT"; then
48050   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
48051 else
48052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48053 for as_dir in $PATH
48054 do
48055   IFS=$as_save_IFS
48056   test -z "$as_dir" && as_dir=.
48057   for ac_exec_ext in '' $ac_executable_extensions; do
48058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48059     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
48060     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48061     break 2
48062   fi
48063 done
48064 done
48065 IFS=$as_save_IFS
48066
48067 fi
48068 fi
48069 NMEDIT=$ac_cv_prog_NMEDIT
48070 if test -n "$NMEDIT"; then
48071   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
48072 $as_echo "$NMEDIT" >&6; }
48073 else
48074   { $as_echo "$as_me:$LINENO: result: no" >&5
48075 $as_echo "no" >&6; }
48076 fi
48077
48078
48079 fi
48080 if test -z "$ac_cv_prog_NMEDIT"; then
48081   ac_ct_NMEDIT=$NMEDIT
48082   # Extract the first word of "nmedit", so it can be a program name with args.
48083 set dummy nmedit; ac_word=$2
48084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48085 $as_echo_n "checking for $ac_word... " >&6; }
48086 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
48087   $as_echo_n "(cached) " >&6
48088 else
48089   if test -n "$ac_ct_NMEDIT"; then
48090   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
48091 else
48092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48093 for as_dir in $PATH
48094 do
48095   IFS=$as_save_IFS
48096   test -z "$as_dir" && as_dir=.
48097   for ac_exec_ext in '' $ac_executable_extensions; do
48098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48099     ac_cv_prog_ac_ct_NMEDIT="nmedit"
48100     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48101     break 2
48102   fi
48103 done
48104 done
48105 IFS=$as_save_IFS
48106
48107 fi
48108 fi
48109 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
48110 if test -n "$ac_ct_NMEDIT"; then
48111   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
48112 $as_echo "$ac_ct_NMEDIT" >&6; }
48113 else
48114   { $as_echo "$as_me:$LINENO: result: no" >&5
48115 $as_echo "no" >&6; }
48116 fi
48117
48118   if test "x$ac_ct_NMEDIT" = x; then
48119     NMEDIT=":"
48120   else
48121     case $cross_compiling:$ac_tool_warned in
48122 yes:)
48123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48125 ac_tool_warned=yes ;;
48126 esac
48127     NMEDIT=$ac_ct_NMEDIT
48128   fi
48129 else
48130   NMEDIT="$ac_cv_prog_NMEDIT"
48131 fi
48132
48133     if test -n "$ac_tool_prefix"; then
48134   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
48135 set dummy ${ac_tool_prefix}lipo; ac_word=$2
48136 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48137 $as_echo_n "checking for $ac_word... " >&6; }
48138 if test "${ac_cv_prog_LIPO+set}" = set; then
48139   $as_echo_n "(cached) " >&6
48140 else
48141   if test -n "$LIPO"; then
48142   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
48143 else
48144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48145 for as_dir in $PATH
48146 do
48147   IFS=$as_save_IFS
48148   test -z "$as_dir" && as_dir=.
48149   for ac_exec_ext in '' $ac_executable_extensions; do
48150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48151     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
48152     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48153     break 2
48154   fi
48155 done
48156 done
48157 IFS=$as_save_IFS
48158
48159 fi
48160 fi
48161 LIPO=$ac_cv_prog_LIPO
48162 if test -n "$LIPO"; then
48163   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
48164 $as_echo "$LIPO" >&6; }
48165 else
48166   { $as_echo "$as_me:$LINENO: result: no" >&5
48167 $as_echo "no" >&6; }
48168 fi
48169
48170
48171 fi
48172 if test -z "$ac_cv_prog_LIPO"; then
48173   ac_ct_LIPO=$LIPO
48174   # Extract the first word of "lipo", so it can be a program name with args.
48175 set dummy lipo; ac_word=$2
48176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48177 $as_echo_n "checking for $ac_word... " >&6; }
48178 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
48179   $as_echo_n "(cached) " >&6
48180 else
48181   if test -n "$ac_ct_LIPO"; then
48182   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
48183 else
48184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48185 for as_dir in $PATH
48186 do
48187   IFS=$as_save_IFS
48188   test -z "$as_dir" && as_dir=.
48189   for ac_exec_ext in '' $ac_executable_extensions; do
48190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48191     ac_cv_prog_ac_ct_LIPO="lipo"
48192     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48193     break 2
48194   fi
48195 done
48196 done
48197 IFS=$as_save_IFS
48198
48199 fi
48200 fi
48201 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
48202 if test -n "$ac_ct_LIPO"; then
48203   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
48204 $as_echo "$ac_ct_LIPO" >&6; }
48205 else
48206   { $as_echo "$as_me:$LINENO: result: no" >&5
48207 $as_echo "no" >&6; }
48208 fi
48209
48210   if test "x$ac_ct_LIPO" = x; then
48211     LIPO=":"
48212   else
48213     case $cross_compiling:$ac_tool_warned in
48214 yes:)
48215 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48217 ac_tool_warned=yes ;;
48218 esac
48219     LIPO=$ac_ct_LIPO
48220   fi
48221 else
48222   LIPO="$ac_cv_prog_LIPO"
48223 fi
48224
48225     if test -n "$ac_tool_prefix"; then
48226   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
48227 set dummy ${ac_tool_prefix}otool; ac_word=$2
48228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48229 $as_echo_n "checking for $ac_word... " >&6; }
48230 if test "${ac_cv_prog_OTOOL+set}" = set; then
48231   $as_echo_n "(cached) " >&6
48232 else
48233   if test -n "$OTOOL"; then
48234   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
48235 else
48236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48237 for as_dir in $PATH
48238 do
48239   IFS=$as_save_IFS
48240   test -z "$as_dir" && as_dir=.
48241   for ac_exec_ext in '' $ac_executable_extensions; do
48242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48243     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
48244     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48245     break 2
48246   fi
48247 done
48248 done
48249 IFS=$as_save_IFS
48250
48251 fi
48252 fi
48253 OTOOL=$ac_cv_prog_OTOOL
48254 if test -n "$OTOOL"; then
48255   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
48256 $as_echo "$OTOOL" >&6; }
48257 else
48258   { $as_echo "$as_me:$LINENO: result: no" >&5
48259 $as_echo "no" >&6; }
48260 fi
48261
48262
48263 fi
48264 if test -z "$ac_cv_prog_OTOOL"; then
48265   ac_ct_OTOOL=$OTOOL
48266   # Extract the first word of "otool", so it can be a program name with args.
48267 set dummy otool; ac_word=$2
48268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48269 $as_echo_n "checking for $ac_word... " >&6; }
48270 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
48271   $as_echo_n "(cached) " >&6
48272 else
48273   if test -n "$ac_ct_OTOOL"; then
48274   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
48275 else
48276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48277 for as_dir in $PATH
48278 do
48279   IFS=$as_save_IFS
48280   test -z "$as_dir" && as_dir=.
48281   for ac_exec_ext in '' $ac_executable_extensions; do
48282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48283     ac_cv_prog_ac_ct_OTOOL="otool"
48284     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48285     break 2
48286   fi
48287 done
48288 done
48289 IFS=$as_save_IFS
48290
48291 fi
48292 fi
48293 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
48294 if test -n "$ac_ct_OTOOL"; then
48295   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
48296 $as_echo "$ac_ct_OTOOL" >&6; }
48297 else
48298   { $as_echo "$as_me:$LINENO: result: no" >&5
48299 $as_echo "no" >&6; }
48300 fi
48301
48302   if test "x$ac_ct_OTOOL" = x; then
48303     OTOOL=":"
48304   else
48305     case $cross_compiling:$ac_tool_warned in
48306 yes:)
48307 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48309 ac_tool_warned=yes ;;
48310 esac
48311     OTOOL=$ac_ct_OTOOL
48312   fi
48313 else
48314   OTOOL="$ac_cv_prog_OTOOL"
48315 fi
48316
48317     if test -n "$ac_tool_prefix"; then
48318   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
48319 set dummy ${ac_tool_prefix}otool64; ac_word=$2
48320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48321 $as_echo_n "checking for $ac_word... " >&6; }
48322 if test "${ac_cv_prog_OTOOL64+set}" = set; then
48323   $as_echo_n "(cached) " >&6
48324 else
48325   if test -n "$OTOOL64"; then
48326   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
48327 else
48328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48329 for as_dir in $PATH
48330 do
48331   IFS=$as_save_IFS
48332   test -z "$as_dir" && as_dir=.
48333   for ac_exec_ext in '' $ac_executable_extensions; do
48334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48335     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
48336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48337     break 2
48338   fi
48339 done
48340 done
48341 IFS=$as_save_IFS
48342
48343 fi
48344 fi
48345 OTOOL64=$ac_cv_prog_OTOOL64
48346 if test -n "$OTOOL64"; then
48347   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
48348 $as_echo "$OTOOL64" >&6; }
48349 else
48350   { $as_echo "$as_me:$LINENO: result: no" >&5
48351 $as_echo "no" >&6; }
48352 fi
48353
48354
48355 fi
48356 if test -z "$ac_cv_prog_OTOOL64"; then
48357   ac_ct_OTOOL64=$OTOOL64
48358   # Extract the first word of "otool64", so it can be a program name with args.
48359 set dummy otool64; ac_word=$2
48360 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
48361 $as_echo_n "checking for $ac_word... " >&6; }
48362 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
48363   $as_echo_n "(cached) " >&6
48364 else
48365   if test -n "$ac_ct_OTOOL64"; then
48366   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
48367 else
48368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48369 for as_dir in $PATH
48370 do
48371   IFS=$as_save_IFS
48372   test -z "$as_dir" && as_dir=.
48373   for ac_exec_ext in '' $ac_executable_extensions; do
48374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
48375     ac_cv_prog_ac_ct_OTOOL64="otool64"
48376     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48377     break 2
48378   fi
48379 done
48380 done
48381 IFS=$as_save_IFS
48382
48383 fi
48384 fi
48385 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
48386 if test -n "$ac_ct_OTOOL64"; then
48387   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
48388 $as_echo "$ac_ct_OTOOL64" >&6; }
48389 else
48390   { $as_echo "$as_me:$LINENO: result: no" >&5
48391 $as_echo "no" >&6; }
48392 fi
48393
48394   if test "x$ac_ct_OTOOL64" = x; then
48395     OTOOL64=":"
48396   else
48397     case $cross_compiling:$ac_tool_warned in
48398 yes:)
48399 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
48400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
48401 ac_tool_warned=yes ;;
48402 esac
48403     OTOOL64=$ac_ct_OTOOL64
48404   fi
48405 else
48406   OTOOL64="$ac_cv_prog_OTOOL64"
48407 fi
48408
48409
48410
48411
48412
48413
48414
48415
48416
48417
48418
48419
48420
48421
48422
48423
48424
48425
48426
48427
48428
48429
48430
48431
48432
48433
48434
48435     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
48436 $as_echo_n "checking for -single_module linker flag... " >&6; }
48437 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
48438   $as_echo_n "(cached) " >&6
48439 else
48440   lt_cv_apple_cc_single_mod=no
48441       if test -z "${LT_MULTI_MODULE}"; then
48442         # By default we will add the -single_module flag. You can override
48443         # by either setting the environment variable LT_MULTI_MODULE
48444         # non-empty at configure time, or by adding -multi_module to the
48445         # link flags.
48446         rm -rf libconftest.dylib*
48447         echo "int foo(void){return 1;}" > conftest.c
48448         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
48449 -dynamiclib -Wl,-single_module conftest.c" >&5
48450         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
48451           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
48452         _lt_result=$?
48453         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
48454           lt_cv_apple_cc_single_mod=yes
48455         else
48456           cat conftest.err >&5
48457         fi
48458         rm -rf libconftest.dylib*
48459         rm -f conftest.*
48460       fi
48461 fi
48462 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
48463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
48464     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
48465 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
48466 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
48467   $as_echo_n "(cached) " >&6
48468 else
48469   lt_cv_ld_exported_symbols_list=no
48470       save_LDFLAGS=$LDFLAGS
48471       echo "_main" > conftest.sym
48472       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
48473       cat >conftest.$ac_ext <<_ACEOF
48474 /* confdefs.h.  */
48475 _ACEOF
48476 cat confdefs.h >>conftest.$ac_ext
48477 cat >>conftest.$ac_ext <<_ACEOF
48478 /* end confdefs.h.  */
48479
48480 int
48481 main ()
48482 {
48483
48484   ;
48485   return 0;
48486 }
48487 _ACEOF
48488 rm -f conftest.$ac_objext conftest$ac_exeext
48489 if { (ac_try="$ac_link"
48490 case "(($ac_try" in
48491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48492   *) ac_try_echo=$ac_try;;
48493 esac
48494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48495 $as_echo "$ac_try_echo") >&5
48496   (eval "$ac_link") 2>conftest.er1
48497   ac_status=$?
48498   grep -v '^ *+' conftest.er1 >conftest.err
48499   rm -f conftest.er1
48500   cat conftest.err >&5
48501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48502   (exit $ac_status); } && {
48503          test -z "$ac_c_werror_flag" ||
48504          test ! -s conftest.err
48505        } && test -s conftest$ac_exeext && {
48506          test "$cross_compiling" = yes ||
48507          $as_test_x conftest$ac_exeext
48508        }; then
48509   lt_cv_ld_exported_symbols_list=yes
48510 else
48511   $as_echo "$as_me: failed program was:" >&5
48512 sed 's/^/| /' conftest.$ac_ext >&5
48513
48514         lt_cv_ld_exported_symbols_list=no
48515 fi
48516
48517 rm -rf conftest.dSYM
48518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48519       conftest$ac_exeext conftest.$ac_ext
48520         LDFLAGS="$save_LDFLAGS"
48521
48522 fi
48523 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
48524 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
48525     case $host_os in
48526     rhapsody* | darwin1.[012])
48527       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
48528     darwin1.*)
48529       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
48530     darwin*) # darwin 5.x on
48531       # if running on 10.5 or later, the deployment target defaults
48532       # to the OS version, if on x86, and 10.4, the deployment
48533       # target defaults to 10.4. Don't you love it?
48534       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
48535         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
48536           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
48537         10.[012]*)
48538           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
48539         10.*)
48540           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
48541       esac
48542     ;;
48543   esac
48544     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
48545       _lt_dar_single_mod='$single_module'
48546     fi
48547     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
48548       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
48549     else
48550       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
48551     fi
48552     if test "$DSYMUTIL" != ":"; then
48553       _lt_dsymutil='~$DSYMUTIL $lib || :'
48554     else
48555       _lt_dsymutil=
48556     fi
48557     ;;
48558   esac
48559
48560
48561 for ac_header in dlfcn.h
48562 do
48563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48564 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48565 $as_echo_n "checking for $ac_header... " >&6; }
48566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48567   $as_echo_n "(cached) " >&6
48568 else
48569   cat >conftest.$ac_ext <<_ACEOF
48570 /* confdefs.h.  */
48571 _ACEOF
48572 cat confdefs.h >>conftest.$ac_ext
48573 cat >>conftest.$ac_ext <<_ACEOF
48574 /* end confdefs.h.  */
48575 $ac_includes_default
48576
48577 #include <$ac_header>
48578 _ACEOF
48579 rm -f conftest.$ac_objext
48580 if { (ac_try="$ac_compile"
48581 case "(($ac_try" in
48582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48583   *) ac_try_echo=$ac_try;;
48584 esac
48585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48586 $as_echo "$ac_try_echo") >&5
48587   (eval "$ac_compile") 2>conftest.er1
48588   ac_status=$?
48589   grep -v '^ *+' conftest.er1 >conftest.err
48590   rm -f conftest.er1
48591   cat conftest.err >&5
48592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48593   (exit $ac_status); } && {
48594          test -z "$ac_c_werror_flag" ||
48595          test ! -s conftest.err
48596        } && test -s conftest.$ac_objext; then
48597   eval "$as_ac_Header=yes"
48598 else
48599   $as_echo "$as_me: failed program was:" >&5
48600 sed 's/^/| /' conftest.$ac_ext >&5
48601
48602         eval "$as_ac_Header=no"
48603 fi
48604
48605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48606 fi
48607 ac_res=`eval 'as_val=${'$as_ac_Header'}
48608                  $as_echo "$as_val"'`
48609                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48610 $as_echo "$ac_res" >&6; }
48611 as_val=`eval 'as_val=${'$as_ac_Header'}
48612                  $as_echo "$as_val"'`
48613    if test "x$as_val" = x""yes; then
48614   cat >>confdefs.h <<_ACEOF
48615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48616 _ACEOF
48617
48618 fi
48619
48620 done
48621
48622
48623
48624 # Set options
48625
48626
48627
48628         enable_dlopen=no
48629
48630
48631   enable_win32_dll=no
48632
48633
48634             # Check whether --enable-shared was given.
48635 if test "${enable_shared+set}" = set; then
48636   enableval=$enable_shared; p=${PACKAGE-default}
48637     case $enableval in
48638     yes) enable_shared=yes ;;
48639     no) enable_shared=no ;;
48640     *)
48641       enable_shared=no
48642       # Look at the argument we got.  We use all the common list separators.
48643       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48644       for pkg in $enableval; do
48645         IFS="$lt_save_ifs"
48646         if test "X$pkg" = "X$p"; then
48647           enable_shared=yes
48648         fi
48649       done
48650       IFS="$lt_save_ifs"
48651       ;;
48652     esac
48653 else
48654   enable_shared=yes
48655 fi
48656
48657
48658
48659
48660
48661
48662
48663
48664
48665   # Check whether --enable-static was given.
48666 if test "${enable_static+set}" = set; then
48667   enableval=$enable_static; p=${PACKAGE-default}
48668     case $enableval in
48669     yes) enable_static=yes ;;
48670     no) enable_static=no ;;
48671     *)
48672      enable_static=no
48673       # Look at the argument we got.  We use all the common list separators.
48674       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48675       for pkg in $enableval; do
48676         IFS="$lt_save_ifs"
48677         if test "X$pkg" = "X$p"; then
48678           enable_static=yes
48679         fi
48680       done
48681       IFS="$lt_save_ifs"
48682       ;;
48683     esac
48684 else
48685   enable_static=yes
48686 fi
48687
48688
48689
48690
48691
48692
48693
48694
48695
48696
48697 # Check whether --with-pic was given.
48698 if test "${with_pic+set}" = set; then
48699   withval=$with_pic; pic_mode="$withval"
48700 else
48701   pic_mode=default
48702 fi
48703
48704
48705 test -z "$pic_mode" && pic_mode=default
48706
48707
48708
48709
48710
48711
48712
48713   # Check whether --enable-fast-install was given.
48714 if test "${enable_fast_install+set}" = set; then
48715   enableval=$enable_fast_install; p=${PACKAGE-default}
48716     case $enableval in
48717     yes) enable_fast_install=yes ;;
48718     no) enable_fast_install=no ;;
48719     *)
48720       enable_fast_install=no
48721       # Look at the argument we got.  We use all the common list separators.
48722       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
48723       for pkg in $enableval; do
48724         IFS="$lt_save_ifs"
48725         if test "X$pkg" = "X$p"; then
48726           enable_fast_install=yes
48727         fi
48728       done
48729       IFS="$lt_save_ifs"
48730       ;;
48731     esac
48732 else
48733   enable_fast_install=yes
48734 fi
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746 # This can be used to rebuild libtool when needed
48747 LIBTOOL_DEPS="$ltmain"
48748
48749 # Always use our own libtool.
48750 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
48751
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766
48767
48768
48769
48770
48771
48772
48773
48774
48775
48776 test -z "$LN_S" && LN_S="ln -s"
48777
48778
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791 if test -n "${ZSH_VERSION+set}" ; then
48792    setopt NO_GLOB_SUBST
48793 fi
48794
48795 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
48796 $as_echo_n "checking for objdir... " >&6; }
48797 if test "${lt_cv_objdir+set}" = set; then
48798   $as_echo_n "(cached) " >&6
48799 else
48800   rm -f .libs 2>/dev/null
48801 mkdir .libs 2>/dev/null
48802 if test -d .libs; then
48803   lt_cv_objdir=.libs
48804 else
48805   # MS-DOS does not allow filenames that begin with a dot.
48806   lt_cv_objdir=_libs
48807 fi
48808 rmdir .libs 2>/dev/null
48809 fi
48810 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
48811 $as_echo "$lt_cv_objdir" >&6; }
48812 objdir=$lt_cv_objdir
48813
48814
48815
48816
48817
48818 cat >>confdefs.h <<_ACEOF
48819 #define LT_OBJDIR "$lt_cv_objdir/"
48820 _ACEOF
48821
48822
48823
48824
48825
48826
48827
48828
48829
48830
48831
48832
48833
48834
48835
48836
48837
48838 case $host_os in
48839 aix3*)
48840   # AIX sometimes has problems with the GCC collect2 program.  For some
48841   # reason, if we set the COLLECT_NAMES environment variable, the problems
48842   # vanish in a puff of smoke.
48843   if test "X${COLLECT_NAMES+set}" != Xset; then
48844     COLLECT_NAMES=
48845     export COLLECT_NAMES
48846   fi
48847   ;;
48848 esac
48849
48850 # Sed substitution that helps us do robust quoting.  It backslashifies
48851 # metacharacters that are still active within double-quoted strings.
48852 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
48853
48854 # Same as above, but do not quote variable references.
48855 double_quote_subst='s/\(["`\\]\)/\\\1/g'
48856
48857 # Sed substitution to delay expansion of an escaped shell variable in a
48858 # double_quote_subst'ed string.
48859 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
48860
48861 # Sed substitution to delay expansion of an escaped single quote.
48862 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
48863
48864 # Sed substitution to avoid accidental globbing in evaled expressions
48865 no_glob_subst='s/\*/\\\*/g'
48866
48867 # Global variables:
48868 ofile=libtool
48869 can_build_shared=yes
48870
48871 # All known linkers require a `.a' archive for static linking (except MSVC,
48872 # which needs '.lib').
48873 libext=a
48874
48875 with_gnu_ld="$lt_cv_prog_gnu_ld"
48876
48877 old_CC="$CC"
48878 old_CFLAGS="$CFLAGS"
48879
48880 # Set sane defaults for various variables
48881 test -z "$CC" && CC=cc
48882 test -z "$LTCC" && LTCC=$CC
48883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
48884 test -z "$LD" && LD=ld
48885 test -z "$ac_objext" && ac_objext=o
48886
48887 for cc_temp in $compiler""; do
48888   case $cc_temp in
48889     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48890     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48891     \-*) ;;
48892     *) break;;
48893   esac
48894 done
48895 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
48896
48897
48898 # Only perform the check for file, if the check method requires it
48899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
48900 case $deplibs_check_method in
48901 file_magic*)
48902   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
48903     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
48904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
48905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
48906   $as_echo_n "(cached) " >&6
48907 else
48908   case $MAGIC_CMD in
48909 [\\/*] |  ?:[\\/]*)
48910   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
48911   ;;
48912 *)
48913   lt_save_MAGIC_CMD="$MAGIC_CMD"
48914   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
48915   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
48916   for ac_dir in $ac_dummy; do
48917     IFS="$lt_save_ifs"
48918     test -z "$ac_dir" && ac_dir=.
48919     if test -f $ac_dir/${ac_tool_prefix}file; then
48920       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
48921       if test -n "$file_magic_test_file"; then
48922         case $deplibs_check_method in
48923         "file_magic "*)
48924           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
48925           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48926           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
48927             $EGREP "$file_magic_regex" > /dev/null; then
48928             :
48929           else
48930             cat <<_LT_EOF 1>&2
48931
48932 *** Warning: the command libtool uses to detect shared libraries,
48933 *** $file_magic_cmd, produces output that libtool cannot recognize.
48934 *** The result is that libtool may fail to recognize shared libraries
48935 *** as such.  This will affect the creation of libtool libraries that
48936 *** depend on shared libraries, but programs linked with such libtool
48937 *** libraries will work regardless of this problem.  Nevertheless, you
48938 *** may want to report the problem to your system manager and/or to
48939 *** bug-libtool@gnu.org
48940
48941 _LT_EOF
48942           fi ;;
48943         esac
48944       fi
48945       break
48946     fi
48947   done
48948   IFS="$lt_save_ifs"
48949   MAGIC_CMD="$lt_save_MAGIC_CMD"
48950   ;;
48951 esac
48952 fi
48953
48954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48955 if test -n "$MAGIC_CMD"; then
48956   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
48957 $as_echo "$MAGIC_CMD" >&6; }
48958 else
48959   { $as_echo "$as_me:$LINENO: result: no" >&5
48960 $as_echo "no" >&6; }
48961 fi
48962
48963
48964
48965
48966
48967 if test -z "$lt_cv_path_MAGIC_CMD"; then
48968   if test -n "$ac_tool_prefix"; then
48969     { $as_echo "$as_me:$LINENO: checking for file" >&5
48970 $as_echo_n "checking for file... " >&6; }
48971 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
48972   $as_echo_n "(cached) " >&6
48973 else
48974   case $MAGIC_CMD in
48975 [\\/*] |  ?:[\\/]*)
48976   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
48977   ;;
48978 *)
48979   lt_save_MAGIC_CMD="$MAGIC_CMD"
48980   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
48981   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
48982   for ac_dir in $ac_dummy; do
48983     IFS="$lt_save_ifs"
48984     test -z "$ac_dir" && ac_dir=.
48985     if test -f $ac_dir/file; then
48986       lt_cv_path_MAGIC_CMD="$ac_dir/file"
48987       if test -n "$file_magic_test_file"; then
48988         case $deplibs_check_method in
48989         "file_magic "*)
48990           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
48991           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
48992           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
48993             $EGREP "$file_magic_regex" > /dev/null; then
48994             :
48995           else
48996             cat <<_LT_EOF 1>&2
48997
48998 *** Warning: the command libtool uses to detect shared libraries,
48999 *** $file_magic_cmd, produces output that libtool cannot recognize.
49000 *** The result is that libtool may fail to recognize shared libraries
49001 *** as such.  This will affect the creation of libtool libraries that
49002 *** depend on shared libraries, but programs linked with such libtool
49003 *** libraries will work regardless of this problem.  Nevertheless, you
49004 *** may want to report the problem to your system manager and/or to
49005 *** bug-libtool@gnu.org
49006
49007 _LT_EOF
49008           fi ;;
49009         esac
49010       fi
49011       break
49012     fi
49013   done
49014   IFS="$lt_save_ifs"
49015   MAGIC_CMD="$lt_save_MAGIC_CMD"
49016   ;;
49017 esac
49018 fi
49019
49020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
49021 if test -n "$MAGIC_CMD"; then
49022   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
49023 $as_echo "$MAGIC_CMD" >&6; }
49024 else
49025   { $as_echo "$as_me:$LINENO: result: no" >&5
49026 $as_echo "no" >&6; }
49027 fi
49028
49029
49030   else
49031     MAGIC_CMD=:
49032   fi
49033 fi
49034
49035   fi
49036   ;;
49037 esac
49038
49039 # Use C for the default configuration in the libtool script
49040
49041 lt_save_CC="$CC"
49042 ac_ext=c
49043 ac_cpp='$CPP $CPPFLAGS'
49044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49047
49048
49049 # Source file extension for C test sources.
49050 ac_ext=c
49051
49052 # Object file extension for compiled C test sources.
49053 objext=o
49054 objext=$objext
49055
49056 # Code to be used in simple compile tests
49057 lt_simple_compile_test_code="int some_variable = 0;"
49058
49059 # Code to be used in simple link tests
49060 lt_simple_link_test_code='int main(){return(0);}'
49061
49062
49063
49064
49065
49066
49067
49068 # If no C compiler was specified, use CC.
49069 LTCC=${LTCC-"$CC"}
49070
49071 # If no C compiler flags were specified, use CFLAGS.
49072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
49073
49074 # Allow CC to be a program name with arguments.
49075 compiler=$CC
49076
49077 # Save the default compiler, since it gets overwritten when the other
49078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
49079 compiler_DEFAULT=$CC
49080
49081 # save warnings/boilerplate of simple test code
49082 ac_outfile=conftest.$ac_objext
49083 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
49084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
49085 _lt_compiler_boilerplate=`cat conftest.err`
49086 $RM conftest*
49087
49088 ac_outfile=conftest.$ac_objext
49089 echo "$lt_simple_link_test_code" >conftest.$ac_ext
49090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
49091 _lt_linker_boilerplate=`cat conftest.err`
49092 $RM -r conftest*
49093
49094
49095 ## CAVEAT EMPTOR:
49096 ## There is no encapsulation within the following macros, do not change
49097 ## the running order or otherwise move them around unless you know exactly
49098 ## what you are doing...
49099 if test -n "$compiler"; then
49100
49101 lt_prog_compiler_no_builtin_flag=
49102
49103 if test "$GCC" = yes; then
49104   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
49105
49106   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
49107 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
49108 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
49109   $as_echo_n "(cached) " >&6
49110 else
49111   lt_cv_prog_compiler_rtti_exceptions=no
49112    ac_outfile=conftest.$ac_objext
49113    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49114    lt_compiler_flag="-fno-rtti -fno-exceptions"
49115    # Insert the option either (1) after the last *FLAGS variable, or
49116    # (2) before a word containing "conftest.", or (3) at the end.
49117    # Note that $ac_compile itself does not contain backslashes and begins
49118    # with a dollar sign (not a hyphen), so the echo should work correctly.
49119    # The option is referenced via a variable to avoid confusing sed.
49120    lt_compile=`echo "$ac_compile" | $SED \
49121    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49123    -e 's:$: $lt_compiler_flag:'`
49124    (eval echo "\"\$as_me:49124: $lt_compile\"" >&5)
49125    (eval "$lt_compile" 2>conftest.err)
49126    ac_status=$?
49127    cat conftest.err >&5
49128    echo "$as_me:49128: \$? = $ac_status" >&5
49129    if (exit $ac_status) && test -s "$ac_outfile"; then
49130      # The compiler can only warn and ignore the option if not recognized
49131      # So say no if there are warnings other than the usual output.
49132      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
49133      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49134      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
49135        lt_cv_prog_compiler_rtti_exceptions=yes
49136      fi
49137    fi
49138    $RM conftest*
49139
49140 fi
49141 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
49142 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
49143
49144 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
49145     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
49146 else
49147     :
49148 fi
49149
49150 fi
49151
49152
49153
49154
49155
49156
49157   lt_prog_compiler_wl=
49158 lt_prog_compiler_pic=
49159 lt_prog_compiler_static=
49160
49161 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
49162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
49163
49164   if test "$GCC" = yes; then
49165     lt_prog_compiler_wl='-Wl,'
49166     lt_prog_compiler_static='-static'
49167
49168     case $host_os in
49169       aix*)
49170       # All AIX code is PIC.
49171       if test "$host_cpu" = ia64; then
49172         # AIX 5 now supports IA64 processor
49173         lt_prog_compiler_static='-Bstatic'
49174       fi
49175       ;;
49176
49177     amigaos*)
49178       case $host_cpu in
49179       powerpc)
49180             # see comment about AmigaOS4 .so support
49181             lt_prog_compiler_pic='-fPIC'
49182         ;;
49183       m68k)
49184             # FIXME: we need at least 68020 code to build shared libraries, but
49185             # adding the `-m68020' flag to GCC prevents building anything better,
49186             # like `-m68040'.
49187             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
49188         ;;
49189       esac
49190       ;;
49191
49192     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
49193       # PIC is the default for these OSes.
49194       ;;
49195
49196     mingw* | cygwin* | pw32* | os2*)
49197       # This hack is so that the source file can tell whether it is being
49198       # built for inclusion in a dll (and should export symbols for example).
49199       # Although the cygwin gcc ignores -fPIC, still need this for old-style
49200       # (--disable-auto-import) libraries
49201       lt_prog_compiler_pic='-DDLL_EXPORT'
49202       ;;
49203
49204     darwin* | rhapsody*)
49205       # PIC is the default on this platform
49206       # Common symbols not allowed in MH_DYLIB files
49207       lt_prog_compiler_pic='-fno-common'
49208       ;;
49209
49210     hpux*)
49211       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
49212       # not for PA HP-UX.
49213       case $host_cpu in
49214       hppa*64*|ia64*)
49215         # +Z the default
49216         ;;
49217       *)
49218         lt_prog_compiler_pic='-fPIC'
49219         ;;
49220       esac
49221       ;;
49222
49223     interix[3-9]*)
49224       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
49225       # Instead, we relocate shared libraries at runtime.
49226       ;;
49227
49228     msdosdjgpp*)
49229       # Just because we use GCC doesn't mean we suddenly get shared libraries
49230       # on systems that don't support them.
49231       lt_prog_compiler_can_build_shared=no
49232       enable_shared=no
49233       ;;
49234
49235     *nto* | *qnx*)
49236       # QNX uses GNU C++, but need to define -shared option too, otherwise
49237       # it will coredump.
49238       lt_prog_compiler_pic='-fPIC -shared'
49239       ;;
49240
49241     sysv4*MP*)
49242       if test -d /usr/nec; then
49243         lt_prog_compiler_pic=-Kconform_pic
49244       fi
49245       ;;
49246
49247     *)
49248       lt_prog_compiler_pic='-fPIC'
49249       ;;
49250     esac
49251   else
49252     # PORTME Check for flag to pass linker flags through the system compiler.
49253     case $host_os in
49254     aix*)
49255       lt_prog_compiler_wl='-Wl,'
49256       if test "$host_cpu" = ia64; then
49257         # AIX 5 now supports IA64 processor
49258         lt_prog_compiler_static='-Bstatic'
49259       else
49260         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
49261       fi
49262       ;;
49263
49264     mingw* | cygwin* | pw32* | os2*)
49265       # This hack is so that the source file can tell whether it is being
49266       # built for inclusion in a dll (and should export symbols for example).
49267       lt_prog_compiler_pic='-DDLL_EXPORT'
49268       ;;
49269
49270     hpux9* | hpux10* | hpux11*)
49271       lt_prog_compiler_wl='-Wl,'
49272       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
49273       # not for PA HP-UX.
49274       case $host_cpu in
49275       hppa*64*|ia64*)
49276         # +Z the default
49277         ;;
49278       *)
49279         lt_prog_compiler_pic='+Z'
49280         ;;
49281       esac
49282       # Is there a better lt_prog_compiler_static that works with the bundled CC?
49283       lt_prog_compiler_static='${wl}-a ${wl}archive'
49284       ;;
49285
49286     irix5* | irix6* | nonstopux*)
49287       lt_prog_compiler_wl='-Wl,'
49288       # PIC (with -KPIC) is the default.
49289       lt_prog_compiler_static='-non_shared'
49290       ;;
49291
49292     linux* | k*bsd*-gnu)
49293       case $cc_basename in
49294       icc* | ecc* | ifort*)
49295         lt_prog_compiler_wl='-Wl,'
49296         lt_prog_compiler_pic='-KPIC'
49297         lt_prog_compiler_static='-static'
49298         ;;
49299       pgcc* | pgf77* | pgf90* | pgf95*)
49300         # Portland Group compilers (*not* the Pentium gcc compiler,
49301         # which looks to be a dead project)
49302         lt_prog_compiler_wl='-Wl,'
49303         lt_prog_compiler_pic='-fpic'
49304         lt_prog_compiler_static='-Bstatic'
49305         ;;
49306       ccc*)
49307         lt_prog_compiler_wl='-Wl,'
49308         # All Alpha code is PIC.
49309         lt_prog_compiler_static='-non_shared'
49310         ;;
49311       xl*)
49312         # IBM XL C 8.0/Fortran 10.1 on PPC
49313         lt_prog_compiler_wl='-Wl,'
49314         lt_prog_compiler_pic='-qpic'
49315         lt_prog_compiler_static='-qstaticlink'
49316         ;;
49317       *)
49318         case `$CC -V 2>&1 | sed 5q` in
49319         *Sun\ C*)
49320           # Sun C 5.9
49321           lt_prog_compiler_pic='-KPIC'
49322           lt_prog_compiler_static='-Bstatic'
49323           lt_prog_compiler_wl='-Wl,'
49324           ;;
49325         *Sun\ F*)
49326           # Sun Fortran 8.3 passes all unrecognized flags to the linker
49327           lt_prog_compiler_pic='-KPIC'
49328           lt_prog_compiler_static='-Bstatic'
49329           lt_prog_compiler_wl=''
49330           ;;
49331         esac
49332         ;;
49333       esac
49334       ;;
49335
49336     newsos6)
49337       lt_prog_compiler_pic='-KPIC'
49338       lt_prog_compiler_static='-Bstatic'
49339       ;;
49340
49341     *nto* | *qnx*)
49342       # QNX uses GNU C++, but need to define -shared option too, otherwise
49343       # it will coredump.
49344       lt_prog_compiler_pic='-fPIC -shared'
49345       ;;
49346
49347     osf3* | osf4* | osf5*)
49348       lt_prog_compiler_wl='-Wl,'
49349       # All OSF/1 code is PIC.
49350       lt_prog_compiler_static='-non_shared'
49351       ;;
49352
49353     rdos*)
49354       lt_prog_compiler_static='-non_shared'
49355       ;;
49356
49357     solaris*)
49358       lt_prog_compiler_pic='-KPIC'
49359       lt_prog_compiler_static='-Bstatic'
49360       case $cc_basename in
49361       f77* | f90* | f95*)
49362         lt_prog_compiler_wl='-Qoption ld ';;
49363       *)
49364         lt_prog_compiler_wl='-Wl,';;
49365       esac
49366       ;;
49367
49368     sunos4*)
49369       lt_prog_compiler_wl='-Qoption ld '
49370       lt_prog_compiler_pic='-PIC'
49371       lt_prog_compiler_static='-Bstatic'
49372       ;;
49373
49374     sysv4 | sysv4.2uw2* | sysv4.3*)
49375       lt_prog_compiler_wl='-Wl,'
49376       lt_prog_compiler_pic='-KPIC'
49377       lt_prog_compiler_static='-Bstatic'
49378       ;;
49379
49380     sysv4*MP*)
49381       if test -d /usr/nec ;then
49382         lt_prog_compiler_pic='-Kconform_pic'
49383         lt_prog_compiler_static='-Bstatic'
49384       fi
49385       ;;
49386
49387     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
49388       lt_prog_compiler_wl='-Wl,'
49389       lt_prog_compiler_pic='-KPIC'
49390       lt_prog_compiler_static='-Bstatic'
49391       ;;
49392
49393     unicos*)
49394       lt_prog_compiler_wl='-Wl,'
49395       lt_prog_compiler_can_build_shared=no
49396       ;;
49397
49398     uts4*)
49399       lt_prog_compiler_pic='-pic'
49400       lt_prog_compiler_static='-Bstatic'
49401       ;;
49402
49403     *)
49404       lt_prog_compiler_can_build_shared=no
49405       ;;
49406     esac
49407   fi
49408
49409 case $host_os in
49410   # For platforms which do not support PIC, -DPIC is meaningless:
49411   *djgpp*)
49412     lt_prog_compiler_pic=
49413     ;;
49414   *)
49415     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
49416     ;;
49417 esac
49418 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
49419 $as_echo "$lt_prog_compiler_pic" >&6; }
49420
49421
49422
49423
49424
49425
49426 #
49427 # Check to make sure the PIC flag actually works.
49428 #
49429 if test -n "$lt_prog_compiler_pic"; then
49430   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
49431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
49432 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
49433   $as_echo_n "(cached) " >&6
49434 else
49435   lt_cv_prog_compiler_pic_works=no
49436    ac_outfile=conftest.$ac_objext
49437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49438    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
49439    # Insert the option either (1) after the last *FLAGS variable, or
49440    # (2) before a word containing "conftest.", or (3) at the end.
49441    # Note that $ac_compile itself does not contain backslashes and begins
49442    # with a dollar sign (not a hyphen), so the echo should work correctly.
49443    # The option is referenced via a variable to avoid confusing sed.
49444    lt_compile=`echo "$ac_compile" | $SED \
49445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49447    -e 's:$: $lt_compiler_flag:'`
49448    (eval echo "\"\$as_me:49448: $lt_compile\"" >&5)
49449    (eval "$lt_compile" 2>conftest.err)
49450    ac_status=$?
49451    cat conftest.err >&5
49452    echo "$as_me:49452: \$? = $ac_status" >&5
49453    if (exit $ac_status) && test -s "$ac_outfile"; then
49454      # The compiler can only warn and ignore the option if not recognized
49455      # So say no if there are warnings other than the usual output.
49456      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
49457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
49459        lt_cv_prog_compiler_pic_works=yes
49460      fi
49461    fi
49462    $RM conftest*
49463
49464 fi
49465 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
49466 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
49467
49468 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
49469     case $lt_prog_compiler_pic in
49470      "" | " "*) ;;
49471      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
49472      esac
49473 else
49474     lt_prog_compiler_pic=
49475      lt_prog_compiler_can_build_shared=no
49476 fi
49477
49478 fi
49479
49480
49481
49482
49483
49484
49485 #
49486 # Check to make sure the static flag actually works.
49487 #
49488 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
49489 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
49490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
49491 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
49492   $as_echo_n "(cached) " >&6
49493 else
49494   lt_cv_prog_compiler_static_works=no
49495    save_LDFLAGS="$LDFLAGS"
49496    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
49497    echo "$lt_simple_link_test_code" > conftest.$ac_ext
49498    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
49499      # The linker can only warn and ignore the option if not recognized
49500      # So say no if there are warnings
49501      if test -s conftest.err; then
49502        # Append any errors to the config.log.
49503        cat conftest.err 1>&5
49504        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
49505        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
49506        if diff conftest.exp conftest.er2 >/dev/null; then
49507          lt_cv_prog_compiler_static_works=yes
49508        fi
49509      else
49510        lt_cv_prog_compiler_static_works=yes
49511      fi
49512    fi
49513    $RM -r conftest*
49514    LDFLAGS="$save_LDFLAGS"
49515
49516 fi
49517 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
49518 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
49519
49520 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
49521     :
49522 else
49523     lt_prog_compiler_static=
49524 fi
49525
49526
49527
49528
49529
49530
49531
49532   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
49533 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
49534 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
49535   $as_echo_n "(cached) " >&6
49536 else
49537   lt_cv_prog_compiler_c_o=no
49538    $RM -r conftest 2>/dev/null
49539    mkdir conftest
49540    cd conftest
49541    mkdir out
49542    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49543
49544    lt_compiler_flag="-o out/conftest2.$ac_objext"
49545    # Insert the option either (1) after the last *FLAGS variable, or
49546    # (2) before a word containing "conftest.", or (3) at the end.
49547    # Note that $ac_compile itself does not contain backslashes and begins
49548    # with a dollar sign (not a hyphen), so the echo should work correctly.
49549    lt_compile=`echo "$ac_compile" | $SED \
49550    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49551    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49552    -e 's:$: $lt_compiler_flag:'`
49553    (eval echo "\"\$as_me:49553: $lt_compile\"" >&5)
49554    (eval "$lt_compile" 2>out/conftest.err)
49555    ac_status=$?
49556    cat out/conftest.err >&5
49557    echo "$as_me:49557: \$? = $ac_status" >&5
49558    if (exit $ac_status) && test -s out/conftest2.$ac_objext
49559    then
49560      # The compiler can only warn and ignore the option if not recognized
49561      # So say no if there are warnings
49562      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
49563      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
49564      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
49565        lt_cv_prog_compiler_c_o=yes
49566      fi
49567    fi
49568    chmod u+w . 2>&5
49569    $RM conftest*
49570    # SGI C++ compiler will create directory out/ii_files/ for
49571    # template instantiation
49572    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
49573    $RM out/* && rmdir out
49574    cd ..
49575    $RM -r conftest
49576    $RM conftest*
49577
49578 fi
49579 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
49580 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
49581
49582
49583
49584
49585
49586
49587   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
49588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
49589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
49590   $as_echo_n "(cached) " >&6
49591 else
49592   lt_cv_prog_compiler_c_o=no
49593    $RM -r conftest 2>/dev/null
49594    mkdir conftest
49595    cd conftest
49596    mkdir out
49597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
49598
49599    lt_compiler_flag="-o out/conftest2.$ac_objext"
49600    # Insert the option either (1) after the last *FLAGS variable, or
49601    # (2) before a word containing "conftest.", or (3) at the end.
49602    # Note that $ac_compile itself does not contain backslashes and begins
49603    # with a dollar sign (not a hyphen), so the echo should work correctly.
49604    lt_compile=`echo "$ac_compile" | $SED \
49605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
49606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
49607    -e 's:$: $lt_compiler_flag:'`
49608    (eval echo "\"\$as_me:49608: $lt_compile\"" >&5)
49609    (eval "$lt_compile" 2>out/conftest.err)
49610    ac_status=$?
49611    cat out/conftest.err >&5
49612    echo "$as_me:49612: \$? = $ac_status" >&5
49613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
49614    then
49615      # The compiler can only warn and ignore the option if not recognized
49616      # So say no if there are warnings
49617      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
49618      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
49619      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
49620        lt_cv_prog_compiler_c_o=yes
49621      fi
49622    fi
49623    chmod u+w . 2>&5
49624    $RM conftest*
49625    # SGI C++ compiler will create directory out/ii_files/ for
49626    # template instantiation
49627    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
49628    $RM out/* && rmdir out
49629    cd ..
49630    $RM -r conftest
49631    $RM conftest*
49632
49633 fi
49634 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
49635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
49636
49637
49638
49639
49640 hard_links="nottested"
49641 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
49642   # do not overwrite the value of need_locks provided by the user
49643   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
49644 $as_echo_n "checking if we can lock with hard links... " >&6; }
49645   hard_links=yes
49646   $RM conftest*
49647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
49648   touch conftest.a
49649   ln conftest.a conftest.b 2>&5 || hard_links=no
49650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
49651   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
49652 $as_echo "$hard_links" >&6; }
49653   if test "$hard_links" = no; then
49654     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
49655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
49656     need_locks=warn
49657   fi
49658 else
49659   need_locks=no
49660 fi
49661
49662
49663
49664
49665
49666
49667   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
49668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
49669
49670   runpath_var=
49671   allow_undefined_flag=
49672   always_export_symbols=no
49673   archive_cmds=
49674   archive_expsym_cmds=
49675   compiler_needs_object=no
49676   enable_shared_with_static_runtimes=no
49677   export_dynamic_flag_spec=
49678   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
49679   hardcode_automatic=no
49680   hardcode_direct=no
49681   hardcode_direct_absolute=no
49682   hardcode_libdir_flag_spec=
49683   hardcode_libdir_flag_spec_ld=
49684   hardcode_libdir_separator=
49685   hardcode_minus_L=no
49686   hardcode_shlibpath_var=unsupported
49687   inherit_rpath=no
49688   link_all_deplibs=unknown
49689   module_cmds=
49690   module_expsym_cmds=
49691   old_archive_from_new_cmds=
49692   old_archive_from_expsyms_cmds=
49693   thread_safe_flag_spec=
49694   whole_archive_flag_spec=
49695   # include_expsyms should be a list of space-separated symbols to be *always*
49696   # included in the symbol list
49697   include_expsyms=
49698   # exclude_expsyms can be an extended regexp of symbols to exclude
49699   # it will be wrapped by ` (' and `)$', so one must not match beginning or
49700   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
49701   # as well as any symbol that contains `d'.
49702   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
49703   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
49704   # platforms (ab)use it in PIC code, but their linkers get confused if
49705   # the symbol is explicitly referenced.  Since portable code cannot
49706   # rely on this symbol name, it's probably fine to never include it in
49707   # preloaded symbol tables.
49708   # Exclude shared library initialization/finalization symbols.
49709   extract_expsyms_cmds=
49710
49711   case $host_os in
49712   cygwin* | mingw* | pw32*)
49713     # FIXME: the MSVC++ port hasn't been tested in a loooong time
49714     # When not using gcc, we currently assume that we are using
49715     # Microsoft Visual C++.
49716     if test "$GCC" != yes; then
49717       with_gnu_ld=no
49718     fi
49719     ;;
49720   interix*)
49721     # we just hope/assume this is gcc and not c89 (= MSVC++)
49722     with_gnu_ld=yes
49723     ;;
49724   openbsd*)
49725     with_gnu_ld=no
49726     ;;
49727   esac
49728
49729   ld_shlibs=yes
49730   if test "$with_gnu_ld" = yes; then
49731     # If archive_cmds runs LD, not CC, wlarc should be empty
49732     wlarc='${wl}'
49733
49734     # Set some defaults for GNU ld with shared library support. These
49735     # are reset later if shared libraries are not supported. Putting them
49736     # here allows them to be overridden if necessary.
49737     runpath_var=LD_RUN_PATH
49738     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49739     export_dynamic_flag_spec='${wl}--export-dynamic'
49740     # ancient GNU ld didn't support --whole-archive et. al.
49741     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
49742       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
49743     else
49744       whole_archive_flag_spec=
49745     fi
49746     supports_anon_versioning=no
49747     case `$LD -v 2>&1` in
49748       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
49749       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
49750       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
49751       *\ 2.11.*) ;; # other 2.11 versions
49752       *) supports_anon_versioning=yes ;;
49753     esac
49754
49755     # See if GNU ld supports shared libraries.
49756     case $host_os in
49757     aix[3-9]*)
49758       # On AIX/PPC, the GNU linker is very broken
49759       if test "$host_cpu" != ia64; then
49760         ld_shlibs=no
49761         cat <<_LT_EOF 1>&2
49762
49763 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
49764 *** to be unable to reliably create shared libraries on AIX.
49765 *** Therefore, libtool is disabling shared libraries support.  If you
49766 *** really care for shared libraries, you may want to modify your PATH
49767 *** so that a non-GNU linker is found, and then restart.
49768
49769 _LT_EOF
49770       fi
49771       ;;
49772
49773     amigaos*)
49774       case $host_cpu in
49775       powerpc)
49776             # see comment about AmigaOS4 .so support
49777             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49778             archive_expsym_cmds=''
49779         ;;
49780       m68k)
49781             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)'
49782             hardcode_libdir_flag_spec='-L$libdir'
49783             hardcode_minus_L=yes
49784         ;;
49785       esac
49786       ;;
49787
49788     beos*)
49789       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49790         allow_undefined_flag=unsupported
49791         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
49792         # support --undefined.  This deserves some investigation.  FIXME
49793         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49794       else
49795         ld_shlibs=no
49796       fi
49797       ;;
49798
49799     cygwin* | mingw* | pw32*)
49800       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
49801       # as there is no search path for DLLs.
49802       hardcode_libdir_flag_spec='-L$libdir'
49803       allow_undefined_flag=unsupported
49804       always_export_symbols=no
49805       enable_shared_with_static_runtimes=yes
49806       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
49807
49808       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
49809         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
49810         # If the export-symbols file already is a .def file (1st line
49811         # is EXPORTS), use it as is; otherwise, prepend...
49812         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
49813           cp $export_symbols $output_objdir/$soname.def;
49814         else
49815           echo EXPORTS > $output_objdir/$soname.def;
49816           cat $export_symbols >> $output_objdir/$soname.def;
49817         fi~
49818         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
49819       else
49820         ld_shlibs=no
49821       fi
49822       ;;
49823
49824     interix[3-9]*)
49825       hardcode_direct=no
49826       hardcode_shlibpath_var=no
49827       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
49828       export_dynamic_flag_spec='${wl}-E'
49829       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
49830       # Instead, shared libraries are loaded at an image base (0x10000000 by
49831       # default) and relocated if they conflict, which is a slow very memory
49832       # consuming and fragmenting process.  To avoid this, we pick a random,
49833       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
49834       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
49835       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
49836       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'
49837       ;;
49838
49839     gnu* | linux* | tpf* | k*bsd*-gnu)
49840       tmp_diet=no
49841       if test "$host_os" = linux-dietlibc; then
49842         case $cc_basename in
49843           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
49844         esac
49845       fi
49846       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
49847          && test "$tmp_diet" = no
49848       then
49849         tmp_addflag=
49850         tmp_sharedflag='-shared'
49851         case $cc_basename,$host_cpu in
49852         pgcc*)                          # Portland Group C compiler
49853           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'
49854           tmp_addflag=' $pic_flag'
49855           ;;
49856         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
49857           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'
49858           tmp_addflag=' $pic_flag -Mnomain' ;;
49859         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
49860           tmp_addflag=' -i_dynamic' ;;
49861         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
49862           tmp_addflag=' -i_dynamic -nofor_main' ;;
49863         ifc* | ifort*)                  # Intel Fortran compiler
49864           tmp_addflag=' -nofor_main' ;;
49865         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
49866           tmp_sharedflag='-qmkshrobj'
49867           tmp_addflag= ;;
49868         esac
49869         case `$CC -V 2>&1 | sed 5q` in
49870         *Sun\ C*)                       # Sun C 5.9
49871           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'
49872           compiler_needs_object=yes
49873           tmp_sharedflag='-G' ;;
49874         *Sun\ F*)                       # Sun Fortran 8.3
49875           tmp_sharedflag='-G' ;;
49876         esac
49877         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49878
49879         if test "x$supports_anon_versioning" = xyes; then
49880           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
49881             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
49882             echo "local: *; };" >> $output_objdir/$libname.ver~
49883             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
49884         fi
49885
49886         case $cc_basename in
49887         xlf*)
49888           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
49889           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
49890           hardcode_libdir_flag_spec=
49891           hardcode_libdir_flag_spec_ld='-rpath $libdir'
49892           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
49893           if test "x$supports_anon_versioning" = xyes; then
49894             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
49895               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
49896               echo "local: *; };" >> $output_objdir/$libname.ver~
49897               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
49898           fi
49899           ;;
49900         esac
49901       else
49902         ld_shlibs=no
49903       fi
49904       ;;
49905
49906     netbsd*)
49907       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
49908         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
49909         wlarc=
49910       else
49911         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49912         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49913       fi
49914       ;;
49915
49916     solaris*)
49917       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
49918         ld_shlibs=no
49919         cat <<_LT_EOF 1>&2
49920
49921 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
49922 *** create shared libraries on Solaris systems.  Therefore, libtool
49923 *** is disabling shared libraries support.  We urge you to upgrade GNU
49924 *** binutils to release 2.9.1 or newer.  Another option is to modify
49925 *** your PATH or compiler configuration so that the native linker is
49926 *** used, and then restart.
49927
49928 _LT_EOF
49929       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49930         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49931         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49932       else
49933         ld_shlibs=no
49934       fi
49935       ;;
49936
49937     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
49938       case `$LD -v 2>&1` in
49939         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
49940         ld_shlibs=no
49941         cat <<_LT_EOF 1>&2
49942
49943 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
49944 *** reliably create shared libraries on SCO systems.  Therefore, libtool
49945 *** is disabling shared libraries support.  We urge you to upgrade GNU
49946 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
49947 *** your PATH or compiler configuration so that the native linker is
49948 *** used, and then restart.
49949
49950 _LT_EOF
49951         ;;
49952         *)
49953           # For security reasons, it is highly recommended that you always
49954           # use absolute paths for naming shared libraries, and exclude the
49955           # DT_RUNPATH tag from executables and libraries.  But doing so
49956           # requires that you compile everything twice, which is a pain.
49957           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49958             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
49959             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49960             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49961           else
49962             ld_shlibs=no
49963           fi
49964         ;;
49965       esac
49966       ;;
49967
49968     sunos4*)
49969       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
49970       wlarc=
49971       hardcode_direct=yes
49972       hardcode_shlibpath_var=no
49973       ;;
49974
49975     *)
49976       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
49977         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
49978         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
49979       else
49980         ld_shlibs=no
49981       fi
49982       ;;
49983     esac
49984
49985     if test "$ld_shlibs" = no; then
49986       runpath_var=
49987       hardcode_libdir_flag_spec=
49988       export_dynamic_flag_spec=
49989       whole_archive_flag_spec=
49990     fi
49991   else
49992     # PORTME fill in a description of your system's linker (not GNU ld)
49993     case $host_os in
49994     aix3*)
49995       allow_undefined_flag=unsupported
49996       always_export_symbols=yes
49997       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'
49998       # Note: this linker hardcodes the directories in LIBPATH if there
49999       # are no directories specified by -L.
50000       hardcode_minus_L=yes
50001       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
50002         # Neither direct hardcoding nor static linking is supported with a
50003         # broken collect2.
50004         hardcode_direct=unsupported
50005       fi
50006       ;;
50007
50008     aix[4-9]*)
50009       if test "$host_cpu" = ia64; then
50010         # On IA64, the linker does run time linking by default, so we don't
50011         # have to do anything special.
50012         aix_use_runtimelinking=no
50013         exp_sym_flag='-Bexport'
50014         no_entry_flag=""
50015       else
50016         # If we're using GNU nm, then we don't want the "-C" option.
50017         # -C means demangle to AIX nm, but means don't demangle with GNU nm
50018         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
50019           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'
50020         else
50021           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'
50022         fi
50023         aix_use_runtimelinking=no
50024
50025         # Test if we are trying to use run time linking or normal
50026         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
50027         # need to do runtime linking.
50028         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
50029           for ld_flag in $LDFLAGS; do
50030           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
50031             aix_use_runtimelinking=yes
50032             break
50033           fi
50034           done
50035           ;;
50036         esac
50037
50038         exp_sym_flag='-bexport'
50039         no_entry_flag='-bnoentry'
50040       fi
50041
50042       # When large executables or shared objects are built, AIX ld can
50043       # have problems creating the table of contents.  If linking a library
50044       # or program results in "error TOC overflow" add -mminimal-toc to
50045       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
50046       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
50047
50048       archive_cmds=''
50049       hardcode_direct=yes
50050       hardcode_direct_absolute=yes
50051       hardcode_libdir_separator=':'
50052       link_all_deplibs=yes
50053       file_list_spec='${wl}-f,'
50054
50055       if test "$GCC" = yes; then
50056         case $host_os in aix4.[012]|aix4.[012].*)
50057         # We only want to do this on AIX 4.2 and lower, the check
50058         # below for broken collect2 doesn't work under 4.3+
50059           collect2name=`${CC} -print-prog-name=collect2`
50060           if test -f "$collect2name" &&
50061            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50062           then
50063           # We have reworked collect2
50064           :
50065           else
50066           # We have old collect2
50067           hardcode_direct=unsupported
50068           # It fails to find uninstalled libraries when the uninstalled
50069           # path is not listed in the libpath.  Setting hardcode_minus_L
50070           # to unsupported forces relinking
50071           hardcode_minus_L=yes
50072           hardcode_libdir_flag_spec='-L$libdir'
50073           hardcode_libdir_separator=
50074           fi
50075           ;;
50076         esac
50077         shared_flag='-shared'
50078         if test "$aix_use_runtimelinking" = yes; then
50079           shared_flag="$shared_flag "'${wl}-G'
50080         fi
50081       else
50082         # not using gcc
50083         if test "$host_cpu" = ia64; then
50084         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50085         # chokes on -Wl,-G. The following line is correct:
50086           shared_flag='-G'
50087         else
50088           if test "$aix_use_runtimelinking" = yes; then
50089             shared_flag='${wl}-G'
50090           else
50091             shared_flag='${wl}-bM:SRE'
50092           fi
50093         fi
50094       fi
50095
50096       # It seems that -bexpall does not export symbols beginning with
50097       # underscore (_), so it is better to generate a list of symbols to export.
50098       always_export_symbols=yes
50099       if test "$aix_use_runtimelinking" = yes; then
50100         # Warning - without using the other runtime loading flags (-brtl),
50101         # -berok will link without error, but may produce a broken library.
50102         allow_undefined_flag='-berok'
50103         # Determine the default libpath from the value encoded in an
50104         # empty executable.
50105         cat >conftest.$ac_ext <<_ACEOF
50106 /* confdefs.h.  */
50107 _ACEOF
50108 cat confdefs.h >>conftest.$ac_ext
50109 cat >>conftest.$ac_ext <<_ACEOF
50110 /* end confdefs.h.  */
50111
50112 int
50113 main ()
50114 {
50115
50116   ;
50117   return 0;
50118 }
50119 _ACEOF
50120 rm -f conftest.$ac_objext conftest$ac_exeext
50121 if { (ac_try="$ac_link"
50122 case "(($ac_try" in
50123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50124   *) ac_try_echo=$ac_try;;
50125 esac
50126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50127 $as_echo "$ac_try_echo") >&5
50128   (eval "$ac_link") 2>conftest.er1
50129   ac_status=$?
50130   grep -v '^ *+' conftest.er1 >conftest.err
50131   rm -f conftest.er1
50132   cat conftest.err >&5
50133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134   (exit $ac_status); } && {
50135          test -z "$ac_c_werror_flag" ||
50136          test ! -s conftest.err
50137        } && test -s conftest$ac_exeext && {
50138          test "$cross_compiling" = yes ||
50139          $as_test_x conftest$ac_exeext
50140        }; then
50141
50142 lt_aix_libpath_sed='
50143     /Import File Strings/,/^$/ {
50144         /^0/ {
50145             s/^0  *\(.*\)$/\1/
50146             p
50147         }
50148     }'
50149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50150 # Check for a 64-bit object if we didn't find anything.
50151 if test -z "$aix_libpath"; then
50152   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50153 fi
50154 else
50155   $as_echo "$as_me: failed program was:" >&5
50156 sed 's/^/| /' conftest.$ac_ext >&5
50157
50158
50159 fi
50160
50161 rm -rf conftest.dSYM
50162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50163       conftest$ac_exeext conftest.$ac_ext
50164 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
50165
50166         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
50167         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"
50168       else
50169         if test "$host_cpu" = ia64; then
50170           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
50171           allow_undefined_flag="-z nodefs"
50172           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"
50173         else
50174          # Determine the default libpath from the value encoded in an
50175          # empty executable.
50176          cat >conftest.$ac_ext <<_ACEOF
50177 /* confdefs.h.  */
50178 _ACEOF
50179 cat confdefs.h >>conftest.$ac_ext
50180 cat >>conftest.$ac_ext <<_ACEOF
50181 /* end confdefs.h.  */
50182
50183 int
50184 main ()
50185 {
50186
50187   ;
50188   return 0;
50189 }
50190 _ACEOF
50191 rm -f conftest.$ac_objext conftest$ac_exeext
50192 if { (ac_try="$ac_link"
50193 case "(($ac_try" in
50194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50195   *) ac_try_echo=$ac_try;;
50196 esac
50197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50198 $as_echo "$ac_try_echo") >&5
50199   (eval "$ac_link") 2>conftest.er1
50200   ac_status=$?
50201   grep -v '^ *+' conftest.er1 >conftest.err
50202   rm -f conftest.er1
50203   cat conftest.err >&5
50204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50205   (exit $ac_status); } && {
50206          test -z "$ac_c_werror_flag" ||
50207          test ! -s conftest.err
50208        } && test -s conftest$ac_exeext && {
50209          test "$cross_compiling" = yes ||
50210          $as_test_x conftest$ac_exeext
50211        }; then
50212
50213 lt_aix_libpath_sed='
50214     /Import File Strings/,/^$/ {
50215         /^0/ {
50216             s/^0  *\(.*\)$/\1/
50217             p
50218         }
50219     }'
50220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50221 # Check for a 64-bit object if we didn't find anything.
50222 if test -z "$aix_libpath"; then
50223   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
50224 fi
50225 else
50226   $as_echo "$as_me: failed program was:" >&5
50227 sed 's/^/| /' conftest.$ac_ext >&5
50228
50229
50230 fi
50231
50232 rm -rf conftest.dSYM
50233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50234       conftest$ac_exeext conftest.$ac_ext
50235 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
50236
50237          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
50238           # Warning - without using the other run time loading flags,
50239           # -berok will link without error, but may produce a broken library.
50240           no_undefined_flag=' ${wl}-bernotok'
50241           allow_undefined_flag=' ${wl}-berok'
50242           # Exported symbols can be pulled into shared objects from archives
50243           whole_archive_flag_spec='$convenience'
50244           archive_cmds_need_lc=yes
50245           # This is similar to how AIX traditionally builds its shared libraries.
50246           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'
50247         fi
50248       fi
50249       ;;
50250
50251     amigaos*)
50252       case $host_cpu in
50253       powerpc)
50254             # see comment about AmigaOS4 .so support
50255             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
50256             archive_expsym_cmds=''
50257         ;;
50258       m68k)
50259             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)'
50260             hardcode_libdir_flag_spec='-L$libdir'
50261             hardcode_minus_L=yes
50262         ;;
50263       esac
50264       ;;
50265
50266     bsdi[45]*)
50267       export_dynamic_flag_spec=-rdynamic
50268       ;;
50269
50270     cygwin* | mingw* | pw32*)
50271       # When not using gcc, we currently assume that we are using
50272       # Microsoft Visual C++.
50273       # hardcode_libdir_flag_spec is actually meaningless, as there is
50274       # no search path for DLLs.
50275       hardcode_libdir_flag_spec=' '
50276       allow_undefined_flag=unsupported
50277       # Tell ltmain to make .lib files, not .a files.
50278       libext=lib
50279       # Tell ltmain to make .dll files, not .so files.
50280       shrext_cmds=".dll"
50281       # FIXME: Setting linknames here is a bad hack.
50282       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
50283       # The linker will automatically build a .lib file if we build a DLL.
50284       old_archive_from_new_cmds='true'
50285       # FIXME: Should let the user specify the lib program.
50286       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
50287       fix_srcfile_path='`cygpath -w "$srcfile"`'
50288       enable_shared_with_static_runtimes=yes
50289       ;;
50290
50291     darwin* | rhapsody*)
50292
50293
50294   archive_cmds_need_lc=no
50295   hardcode_direct=no
50296   hardcode_automatic=yes
50297   hardcode_shlibpath_var=unsupported
50298   whole_archive_flag_spec=''
50299   link_all_deplibs=yes
50300   allow_undefined_flag="$_lt_dar_allow_undefined"
50301   if test "$GCC" = "yes"; then
50302     output_verbose_link_cmd=echo
50303     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
50304     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
50305     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}"
50306     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}"
50307
50308   else
50309   ld_shlibs=no
50310   fi
50311
50312       ;;
50313
50314     dgux*)
50315       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50316       hardcode_libdir_flag_spec='-L$libdir'
50317       hardcode_shlibpath_var=no
50318       ;;
50319
50320     freebsd1*)
50321       ld_shlibs=no
50322       ;;
50323
50324     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
50325     # support.  Future versions do this automatically, but an explicit c++rt0.o
50326     # does not break anything, and helps significantly (at the cost of a little
50327     # extra space).
50328     freebsd2.2*)
50329       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
50330       hardcode_libdir_flag_spec='-R$libdir'
50331       hardcode_direct=yes
50332       hardcode_shlibpath_var=no
50333       ;;
50334
50335     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
50336     freebsd2*)
50337       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
50338       hardcode_direct=yes
50339       hardcode_minus_L=yes
50340       hardcode_shlibpath_var=no
50341       ;;
50342
50343     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
50344     freebsd* | dragonfly*)
50345       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
50346       hardcode_libdir_flag_spec='-R$libdir'
50347       hardcode_direct=yes
50348       hardcode_shlibpath_var=no
50349       ;;
50350
50351     hpux9*)
50352       if test "$GCC" = yes; then
50353         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'
50354       else
50355         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'
50356       fi
50357       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50358       hardcode_libdir_separator=:
50359       hardcode_direct=yes
50360
50361       # hardcode_minus_L: Not really in the search PATH,
50362       # but as the default location of the library.
50363       hardcode_minus_L=yes
50364       export_dynamic_flag_spec='${wl}-E'
50365       ;;
50366
50367     hpux10*)
50368       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
50369         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50370       else
50371         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
50372       fi
50373       if test "$with_gnu_ld" = no; then
50374         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50375         hardcode_libdir_flag_spec_ld='+b $libdir'
50376         hardcode_libdir_separator=:
50377         hardcode_direct=yes
50378         hardcode_direct_absolute=yes
50379         export_dynamic_flag_spec='${wl}-E'
50380         # hardcode_minus_L: Not really in the search PATH,
50381         # but as the default location of the library.
50382         hardcode_minus_L=yes
50383       fi
50384       ;;
50385
50386     hpux11*)
50387       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
50388         case $host_cpu in
50389         hppa*64*)
50390           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50391           ;;
50392         ia64*)
50393           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
50394           ;;
50395         *)
50396           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50397           ;;
50398         esac
50399       else
50400         case $host_cpu in
50401         hppa*64*)
50402           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50403           ;;
50404         ia64*)
50405           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
50406           ;;
50407         *)
50408           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
50409           ;;
50410         esac
50411       fi
50412       if test "$with_gnu_ld" = no; then
50413         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
50414         hardcode_libdir_separator=:
50415
50416         case $host_cpu in
50417         hppa*64*|ia64*)
50418           hardcode_direct=no
50419           hardcode_shlibpath_var=no
50420           ;;
50421         *)
50422           hardcode_direct=yes
50423           hardcode_direct_absolute=yes
50424           export_dynamic_flag_spec='${wl}-E'
50425
50426           # hardcode_minus_L: Not really in the search PATH,
50427           # but as the default location of the library.
50428           hardcode_minus_L=yes
50429           ;;
50430         esac
50431       fi
50432       ;;
50433
50434     irix5* | irix6* | nonstopux*)
50435       if test "$GCC" = yes; then
50436         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'
50437         # Try to use the -exported_symbol ld option, if it does not
50438         # work, assume that -exports_file does not work either and
50439         # implicitly export all symbols.
50440         save_LDFLAGS="$LDFLAGS"
50441         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
50442         cat >conftest.$ac_ext <<_ACEOF
50443 int foo(void) {}
50444 _ACEOF
50445 rm -f conftest.$ac_objext conftest$ac_exeext
50446 if { (ac_try="$ac_link"
50447 case "(($ac_try" in
50448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50449   *) ac_try_echo=$ac_try;;
50450 esac
50451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50452 $as_echo "$ac_try_echo") >&5
50453   (eval "$ac_link") 2>conftest.er1
50454   ac_status=$?
50455   grep -v '^ *+' conftest.er1 >conftest.err
50456   rm -f conftest.er1
50457   cat conftest.err >&5
50458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50459   (exit $ac_status); } && {
50460          test -z "$ac_c_werror_flag" ||
50461          test ! -s conftest.err
50462        } && test -s conftest$ac_exeext && {
50463          test "$cross_compiling" = yes ||
50464          $as_test_x conftest$ac_exeext
50465        }; then
50466   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'
50467
50468 else
50469   $as_echo "$as_me: failed program was:" >&5
50470 sed 's/^/| /' conftest.$ac_ext >&5
50471
50472
50473 fi
50474
50475 rm -rf conftest.dSYM
50476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50477       conftest$ac_exeext conftest.$ac_ext
50478         LDFLAGS="$save_LDFLAGS"
50479       else
50480         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'
50481         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'
50482       fi
50483       archive_cmds_need_lc='no'
50484       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50485       hardcode_libdir_separator=:
50486       inherit_rpath=yes
50487       link_all_deplibs=yes
50488       ;;
50489
50490     netbsd*)
50491       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
50492         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
50493       else
50494         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
50495       fi
50496       hardcode_libdir_flag_spec='-R$libdir'
50497       hardcode_direct=yes
50498       hardcode_shlibpath_var=no
50499       ;;
50500
50501     newsos6)
50502       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50503       hardcode_direct=yes
50504       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50505       hardcode_libdir_separator=:
50506       hardcode_shlibpath_var=no
50507       ;;
50508
50509     *nto* | *qnx*)
50510       ;;
50511
50512     openbsd*)
50513       if test -f /usr/libexec/ld.so; then
50514         hardcode_direct=yes
50515         hardcode_shlibpath_var=no
50516         hardcode_direct_absolute=yes
50517         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
50518           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
50519           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
50520           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
50521           export_dynamic_flag_spec='${wl}-E'
50522         else
50523           case $host_os in
50524            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
50525              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
50526              hardcode_libdir_flag_spec='-R$libdir'
50527              ;;
50528            *)
50529              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
50530              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
50531              ;;
50532           esac
50533         fi
50534       else
50535         ld_shlibs=no
50536       fi
50537       ;;
50538
50539     os2*)
50540       hardcode_libdir_flag_spec='-L$libdir'
50541       hardcode_minus_L=yes
50542       allow_undefined_flag=unsupported
50543       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'
50544       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
50545       ;;
50546
50547     osf3*)
50548       if test "$GCC" = yes; then
50549         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
50550         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'
50551       else
50552         allow_undefined_flag=' -expect_unresolved \*'
50553         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'
50554       fi
50555       archive_cmds_need_lc='no'
50556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50557       hardcode_libdir_separator=:
50558       ;;
50559
50560     osf4* | osf5*)      # as osf3* with the addition of -msym flag
50561       if test "$GCC" = yes; then
50562         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
50563         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'
50564         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
50565       else
50566         allow_undefined_flag=' -expect_unresolved \*'
50567         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'
50568         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~
50569         $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'
50570
50571         # Both c and cxx compiler support -rpath directly
50572         hardcode_libdir_flag_spec='-rpath $libdir'
50573       fi
50574       archive_cmds_need_lc='no'
50575       hardcode_libdir_separator=:
50576       ;;
50577
50578     solaris*)
50579       no_undefined_flag=' -z defs'
50580       if test "$GCC" = yes; then
50581         wlarc='${wl}'
50582         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50583         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50584           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50585       else
50586         case `$CC -V 2>&1` in
50587         *"Compilers 5.0"*)
50588           wlarc=''
50589           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
50590           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50591           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
50592           ;;
50593         *)
50594           wlarc='${wl}'
50595           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
50596           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50597           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50598           ;;
50599         esac
50600       fi
50601       hardcode_libdir_flag_spec='-R$libdir'
50602       hardcode_shlibpath_var=no
50603       case $host_os in
50604       solaris2.[0-5] | solaris2.[0-5].*) ;;
50605       *)
50606         # The compiler driver will combine and reorder linker options,
50607         # but understands `-z linker_flag'.  GCC discards it without `$wl',
50608         # but is careful enough not to reorder.
50609         # Supported since Solaris 2.6 (maybe 2.5.1?)
50610         if test "$GCC" = yes; then
50611           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
50612         else
50613           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
50614         fi
50615         ;;
50616       esac
50617       link_all_deplibs=yes
50618       ;;
50619
50620     sunos4*)
50621       if test "x$host_vendor" = xsequent; then
50622         # Use $CC to link under sequent, because it throws in some extra .o
50623         # files that make .init and .fini sections work.
50624         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
50625       else
50626         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
50627       fi
50628       hardcode_libdir_flag_spec='-L$libdir'
50629       hardcode_direct=yes
50630       hardcode_minus_L=yes
50631       hardcode_shlibpath_var=no
50632       ;;
50633
50634     sysv4)
50635       case $host_vendor in
50636         sni)
50637           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50638           hardcode_direct=yes # is this really true???
50639         ;;
50640         siemens)
50641           ## LD is ld it makes a PLAMLIB
50642           ## CC just makes a GrossModule.
50643           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
50644           reload_cmds='$CC -r -o $output$reload_objs'
50645           hardcode_direct=no
50646         ;;
50647         motorola)
50648           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50649           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
50650         ;;
50651       esac
50652       runpath_var='LD_RUN_PATH'
50653       hardcode_shlibpath_var=no
50654       ;;
50655
50656     sysv4.3*)
50657       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50658       hardcode_shlibpath_var=no
50659       export_dynamic_flag_spec='-Bexport'
50660       ;;
50661
50662     sysv4*MP*)
50663       if test -d /usr/nec; then
50664         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50665         hardcode_shlibpath_var=no
50666         runpath_var=LD_RUN_PATH
50667         hardcode_runpath_var=yes
50668         ld_shlibs=yes
50669       fi
50670       ;;
50671
50672     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
50673       no_undefined_flag='${wl}-z,text'
50674       archive_cmds_need_lc=no
50675       hardcode_shlibpath_var=no
50676       runpath_var='LD_RUN_PATH'
50677
50678       if test "$GCC" = yes; then
50679         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50680         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50681       else
50682         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50683         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50684       fi
50685       ;;
50686
50687     sysv5* | sco3.2v5* | sco5v6*)
50688       # Note: We can NOT use -z defs as we might desire, because we do not
50689       # link with -lc, and that would cause any symbols used from libc to
50690       # always be unresolved, which means just about no library would
50691       # ever link correctly.  If we're not using GNU ld we use -z text
50692       # though, which does catch some bad symbols but isn't as heavy-handed
50693       # as -z defs.
50694       no_undefined_flag='${wl}-z,text'
50695       allow_undefined_flag='${wl}-z,nodefs'
50696       archive_cmds_need_lc=no
50697       hardcode_shlibpath_var=no
50698       hardcode_libdir_flag_spec='${wl}-R,$libdir'
50699       hardcode_libdir_separator=':'
50700       link_all_deplibs=yes
50701       export_dynamic_flag_spec='${wl}-Bexport'
50702       runpath_var='LD_RUN_PATH'
50703
50704       if test "$GCC" = yes; then
50705         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50706         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50707       else
50708         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50709         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
50710       fi
50711       ;;
50712
50713     uts4*)
50714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
50715       hardcode_libdir_flag_spec='-L$libdir'
50716       hardcode_shlibpath_var=no
50717       ;;
50718
50719     *)
50720       ld_shlibs=no
50721       ;;
50722     esac
50723
50724     if test x$host_vendor = xsni; then
50725       case $host in
50726       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
50727         export_dynamic_flag_spec='${wl}-Blargedynsym'
50728         ;;
50729       esac
50730     fi
50731   fi
50732
50733 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
50734 $as_echo "$ld_shlibs" >&6; }
50735 test "$ld_shlibs" = no && can_build_shared=no
50736
50737 with_gnu_ld=$with_gnu_ld
50738
50739
50740
50741
50742
50743
50744
50745
50746
50747
50748
50749
50750
50751
50752
50753 #
50754 # Do we need to explicitly link libc?
50755 #
50756 case "x$archive_cmds_need_lc" in
50757 x|xyes)
50758   # Assume -lc should be added
50759   archive_cmds_need_lc=yes
50760
50761   if test "$enable_shared" = yes && test "$GCC" = yes; then
50762     case $archive_cmds in
50763     *'~'*)
50764       # FIXME: we may have to deal with multi-command sequences.
50765       ;;
50766     '$CC '*)
50767       # Test whether the compiler implicitly links with -lc since on some
50768       # systems, -lgcc has to come before -lc. If gcc already passes -lc
50769       # to ld, don't add -lc before -lgcc.
50770       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
50771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
50772       $RM conftest*
50773       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
50774
50775       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50776   (eval $ac_compile) 2>&5
50777   ac_status=$?
50778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50779   (exit $ac_status); } 2>conftest.err; then
50780         soname=conftest
50781         lib=conftest
50782         libobjs=conftest.$ac_objext
50783         deplibs=
50784         wl=$lt_prog_compiler_wl
50785         pic_flag=$lt_prog_compiler_pic
50786         compiler_flags=-v
50787         linker_flags=-v
50788         verstring=
50789         output_objdir=.
50790         libname=conftest
50791         lt_save_allow_undefined_flag=$allow_undefined_flag
50792         allow_undefined_flag=
50793         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
50794   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
50795   ac_status=$?
50796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50797   (exit $ac_status); }
50798         then
50799           archive_cmds_need_lc=no
50800         else
50801           archive_cmds_need_lc=yes
50802         fi
50803         allow_undefined_flag=$lt_save_allow_undefined_flag
50804       else
50805         cat conftest.err 1>&5
50806       fi
50807       $RM conftest*
50808       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
50809 $as_echo "$archive_cmds_need_lc" >&6; }
50810       ;;
50811     esac
50812   fi
50813   ;;
50814 esac
50815
50816
50817
50818
50819
50820
50821
50822
50823
50824
50825
50826
50827
50828
50829
50830
50831
50832
50833
50834
50835
50836
50837
50838
50839
50840
50841
50842
50843
50844
50845
50846
50847
50848
50849
50850
50851
50852
50853
50854
50855
50856
50857
50858
50859
50860
50861
50862
50863
50864
50865
50866
50867
50868
50869
50870
50871
50872
50873
50874
50875
50876
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889
50890
50891
50892
50893
50894
50895
50896
50897
50898
50899
50900
50901
50902
50903
50904
50905
50906
50907
50908
50909
50910
50911
50912
50913
50914
50915
50916
50917
50918
50919
50920
50921
50922
50923
50924
50925
50926
50927
50928
50929
50930
50931
50932
50933
50934
50935
50936
50937
50938
50939
50940
50941
50942
50943
50944
50945
50946
50947
50948
50949
50950
50951
50952
50953
50954
50955
50956
50957
50958
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968
50969
50970
50971
50972   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
50973 $as_echo_n "checking dynamic linker characteristics... " >&6; }
50974
50975 if test "$GCC" = yes; then
50976   case $host_os in
50977     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
50978     *) lt_awk_arg="/^libraries:/" ;;
50979   esac
50980   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
50981   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
50982     # if the path contains ";" then we assume it to be the separator
50983     # otherwise default to the standard path separator (i.e. ":") - it is
50984     # assumed that no part of a normal pathname contains ";" but that should
50985     # okay in the real world where ";" in dirpaths is itself problematic.
50986     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
50987   else
50988     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
50989   fi
50990   # Ok, now we have the path, separated by spaces, we can step through it
50991   # and add multilib dir if necessary.
50992   lt_tmp_lt_search_path_spec=
50993   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
50994   for lt_sys_path in $lt_search_path_spec; do
50995     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
50996       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
50997     else
50998       test -d "$lt_sys_path" && \
50999         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
51000     fi
51001   done
51002   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
51003 BEGIN {RS=" "; FS="/|\n";} {
51004   lt_foo="";
51005   lt_count=0;
51006   for (lt_i = NF; lt_i > 0; lt_i--) {
51007     if ($lt_i != "" && $lt_i != ".") {
51008       if ($lt_i == "..") {
51009         lt_count++;
51010       } else {
51011         if (lt_count == 0) {
51012           lt_foo="/" $lt_i lt_foo;
51013         } else {
51014           lt_count--;
51015         }
51016       }
51017     }
51018   }
51019   if (lt_foo != "") { lt_freq[lt_foo]++; }
51020   if (lt_freq[lt_foo] == 1) { print lt_foo; }
51021 }'`
51022   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
51023 else
51024   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
51025 fi
51026 library_names_spec=
51027 libname_spec='lib$name'
51028 soname_spec=
51029 shrext_cmds=".so"
51030 postinstall_cmds=
51031 postuninstall_cmds=
51032 finish_cmds=
51033 finish_eval=
51034 shlibpath_var=
51035 shlibpath_overrides_runpath=unknown
51036 version_type=none
51037 dynamic_linker="$host_os ld.so"
51038 sys_lib_dlsearch_path_spec="/lib /usr/lib"
51039 need_lib_prefix=unknown
51040 hardcode_into_libs=no
51041
51042 # when you set need_version to no, make sure it does not cause -set_version
51043 # flags to be left without arguments
51044 need_version=unknown
51045
51046 case $host_os in
51047 aix3*)
51048   version_type=linux
51049   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
51050   shlibpath_var=LIBPATH
51051
51052   # AIX 3 has no versioning support, so we append a major version to the name.
51053   soname_spec='${libname}${release}${shared_ext}$major'
51054   ;;
51055
51056 aix[4-9]*)
51057   version_type=linux
51058   need_lib_prefix=no
51059   need_version=no
51060   hardcode_into_libs=yes
51061   if test "$host_cpu" = ia64; then
51062     # AIX 5 supports IA64
51063     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
51064     shlibpath_var=LD_LIBRARY_PATH
51065   else
51066     # With GCC up to 2.95.x, collect2 would create an import file
51067     # for dependence libraries.  The import file would start with
51068     # the line `#! .'.  This would cause the generated library to
51069     # depend on `.', always an invalid library.  This was fixed in
51070     # development snapshots of GCC prior to 3.0.
51071     case $host_os in
51072       aix4 | aix4.[01] | aix4.[01].*)
51073       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
51074            echo ' yes '
51075            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
51076         :
51077       else
51078         can_build_shared=no
51079       fi
51080       ;;
51081     esac
51082     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
51083     # soname into executable. Probably we can add versioning support to
51084     # collect2, so additional links can be useful in future.
51085     if test "$aix_use_runtimelinking" = yes; then
51086       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
51087       # instead of lib<name>.a to let people know that these are not
51088       # typical AIX shared libraries.
51089       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51090     else
51091       # We preserve .a as extension for shared libraries through AIX4.2
51092       # and later when we are not doing run time linking.
51093       library_names_spec='${libname}${release}.a $libname.a'
51094       soname_spec='${libname}${release}${shared_ext}$major'
51095     fi
51096     shlibpath_var=LIBPATH
51097   fi
51098   ;;
51099
51100 amigaos*)
51101   case $host_cpu in
51102   powerpc)
51103     # Since July 2007 AmigaOS4 officially supports .so libraries.
51104     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
51105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51106     ;;
51107   m68k)
51108     library_names_spec='$libname.ixlibrary $libname.a'
51109     # Create ${libname}_ixlibrary.a entries in /sys/libs.
51110     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'
51111     ;;
51112   esac
51113   ;;
51114
51115 beos*)
51116   library_names_spec='${libname}${shared_ext}'
51117   dynamic_linker="$host_os ld.so"
51118   shlibpath_var=LIBRARY_PATH
51119   ;;
51120
51121 bsdi[45]*)
51122   version_type=linux
51123   need_version=no
51124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51125   soname_spec='${libname}${release}${shared_ext}$major'
51126   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
51127   shlibpath_var=LD_LIBRARY_PATH
51128   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
51129   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
51130   # the default ld.so.conf also contains /usr/contrib/lib and
51131   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
51132   # libtool to hard-code these into programs
51133   ;;
51134
51135 cygwin* | mingw* | pw32*)
51136   version_type=windows
51137   shrext_cmds=".dll"
51138   need_version=no
51139   need_lib_prefix=no
51140
51141   case $GCC,$host_os in
51142   yes,cygwin* | yes,mingw* | yes,pw32*)
51143     library_names_spec='$libname.dll.a'
51144     # DLL is installed to $(libdir)/../bin by postinstall_cmds
51145     postinstall_cmds='base_file=`basename \${file}`~
51146       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
51147       dldir=$destdir/`dirname \$dlpath`~
51148       test -d \$dldir || mkdir -p \$dldir~
51149       $install_prog $dir/$dlname \$dldir/$dlname~
51150       chmod a+x \$dldir/$dlname~
51151       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
51152         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
51153       fi'
51154     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
51155       dlpath=$dir/\$dldll~
51156        $RM \$dlpath'
51157     shlibpath_overrides_runpath=yes
51158
51159     case $host_os in
51160     cygwin*)
51161       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
51162       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51163       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
51164       ;;
51165     mingw*)
51166       # MinGW DLLs use traditional 'lib' prefix
51167       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51168       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
51169       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
51170         # It is most probably a Windows format PATH printed by
51171         # mingw gcc, but we are running on Cygwin. Gcc prints its search
51172         # path with ; separators, and with drive letters. We can handle the
51173         # drive letters (cygwin fileutils understands them), so leave them,
51174         # especially as we might pass files found there to a mingw objdump,
51175         # which wouldn't understand a cygwinified path. Ahh.
51176         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
51177       else
51178         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
51179       fi
51180       ;;
51181     pw32*)
51182       # pw32 DLLs use 'pw' prefix rather than 'lib'
51183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
51184       ;;
51185     esac
51186     ;;
51187
51188   *)
51189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
51190     ;;
51191   esac
51192   dynamic_linker='Win32 ld.exe'
51193   # FIXME: first we should search . and the directory the executable is in
51194   shlibpath_var=PATH
51195   ;;
51196
51197 darwin* | rhapsody*)
51198   dynamic_linker="$host_os dyld"
51199   version_type=darwin
51200   need_lib_prefix=no
51201   need_version=no
51202   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
51203   soname_spec='${libname}${release}${major}$shared_ext'
51204   shlibpath_overrides_runpath=yes
51205   shlibpath_var=DYLD_LIBRARY_PATH
51206   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
51207
51208   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
51209   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
51210   ;;
51211
51212 dgux*)
51213   version_type=linux
51214   need_lib_prefix=no
51215   need_version=no
51216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
51217   soname_spec='${libname}${release}${shared_ext}$major'
51218   shlibpath_var=LD_LIBRARY_PATH
51219   ;;
51220
51221 freebsd1*)
51222   dynamic_linker=no
51223   ;;
51224
51225 freebsd* | dragonfly*)
51226   # DragonFly does not have aout.  When/if they implement a new
51227   # versioning mechanism, adjust this.
51228   if test -x /usr/bin/objformat; then
51229     objformat=`/usr/bin/objformat`
51230   else
51231     case $host_os in
51232     freebsd[123]*) objformat=aout ;;
51233     *) objformat=elf ;;
51234     esac
51235   fi
51236   # Handle Gentoo/FreeBSD as it was Linux
51237   case $host_vendor in
51238     gentoo)
51239       version_type=linux ;;
51240     *)
51241       version_type=freebsd-$objformat ;;
51242   esac
51243
51244   case $version_type in
51245     freebsd-elf*)
51246       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
51247       need_version=no
51248       need_lib_prefix=no
51249       ;;
51250     freebsd-*)
51251       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
51252       need_version=yes
51253       ;;
51254     linux)
51255       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51256       soname_spec='${libname}${release}${shared_ext}$major'
51257       need_lib_prefix=no
51258       need_version=no
51259       ;;
51260   esac
51261   shlibpath_var=LD_LIBRARY_PATH
51262   case $host_os in
51263   freebsd2*)
51264     shlibpath_overrides_runpath=yes
51265     ;;
51266   freebsd3.[01]* | freebsdelf3.[01]*)
51267     shlibpath_overrides_runpath=yes
51268     hardcode_into_libs=yes
51269     ;;
51270   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
51271   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
51272     shlibpath_overrides_runpath=no
51273     hardcode_into_libs=yes
51274     ;;
51275   *) # from 4.6 on, and DragonFly
51276     shlibpath_overrides_runpath=yes
51277     hardcode_into_libs=yes
51278     ;;
51279   esac
51280   ;;
51281
51282 gnu*)
51283   version_type=linux
51284   need_lib_prefix=no
51285   need_version=no
51286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
51287   soname_spec='${libname}${release}${shared_ext}$major'
51288   shlibpath_var=LD_LIBRARY_PATH
51289   hardcode_into_libs=yes
51290   ;;
51291
51292 hpux9* | hpux10* | hpux11*)
51293   # Give a soname corresponding to the major version so that dld.sl refuses to
51294   # link against other versions.
51295   version_type=sunos
51296   need_lib_prefix=no
51297   need_version=no
51298   case $host_cpu in
51299   ia64*)
51300     shrext_cmds='.so'
51301     hardcode_into_libs=yes
51302     dynamic_linker="$host_os dld.so"
51303     shlibpath_var=LD_LIBRARY_PATH
51304     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
51305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51306     soname_spec='${libname}${release}${shared_ext}$major'
51307     if test "X$HPUX_IA64_MODE" = X32; then
51308       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
51309     else
51310       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
51311     fi
51312     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
51313     ;;
51314   hppa*64*)
51315     shrext_cmds='.sl'
51316     hardcode_into_libs=yes
51317     dynamic_linker="$host_os dld.sl"
51318     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
51319     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
51320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51321     soname_spec='${libname}${release}${shared_ext}$major'
51322     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
51323     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
51324     ;;
51325   *)
51326     shrext_cmds='.sl'
51327     dynamic_linker="$host_os dld.sl"
51328     shlibpath_var=SHLIB_PATH
51329     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
51330     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51331     soname_spec='${libname}${release}${shared_ext}$major'
51332     ;;
51333   esac
51334   # HP-UX runs *really* slowly unless shared libraries are mode 555.
51335   postinstall_cmds='chmod 555 $lib'
51336   ;;
51337
51338 interix[3-9]*)
51339   version_type=linux
51340   need_lib_prefix=no
51341   need_version=no
51342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51343   soname_spec='${libname}${release}${shared_ext}$major'
51344   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
51345   shlibpath_var=LD_LIBRARY_PATH
51346   shlibpath_overrides_runpath=no
51347   hardcode_into_libs=yes
51348   ;;
51349
51350 irix5* | irix6* | nonstopux*)
51351   case $host_os in
51352     nonstopux*) version_type=nonstopux ;;
51353     *)
51354         if test "$lt_cv_prog_gnu_ld" = yes; then
51355                 version_type=linux
51356         else
51357                 version_type=irix
51358         fi ;;
51359   esac
51360   need_lib_prefix=no
51361   need_version=no
51362   soname_spec='${libname}${release}${shared_ext}$major'
51363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
51364   case $host_os in
51365   irix5* | nonstopux*)
51366     libsuff= shlibsuff=
51367     ;;
51368   *)
51369     case $LD in # libtool.m4 will add one of these switches to LD
51370     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
51371       libsuff= shlibsuff= libmagic=32-bit;;
51372     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
51373       libsuff=32 shlibsuff=N32 libmagic=N32;;
51374     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
51375       libsuff=64 shlibsuff=64 libmagic=64-bit;;
51376     *) libsuff= shlibsuff= libmagic=never-match;;
51377     esac
51378     ;;
51379   esac
51380   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
51381   shlibpath_overrides_runpath=no
51382   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
51383   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
51384   hardcode_into_libs=yes
51385   ;;
51386
51387 # No shared lib support for Linux oldld, aout, or coff.
51388 linux*oldld* | linux*aout* | linux*coff*)
51389   dynamic_linker=no
51390   ;;
51391
51392 # This must be Linux ELF.
51393 linux* | k*bsd*-gnu)
51394   version_type=linux
51395   need_lib_prefix=no
51396   need_version=no
51397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51398   soname_spec='${libname}${release}${shared_ext}$major'
51399   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
51400   shlibpath_var=LD_LIBRARY_PATH
51401   shlibpath_overrides_runpath=no
51402   # Some binutils ld are patched to set DT_RUNPATH
51403   save_LDFLAGS=$LDFLAGS
51404   save_libdir=$libdir
51405   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
51406        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
51407   cat >conftest.$ac_ext <<_ACEOF
51408 /* confdefs.h.  */
51409 _ACEOF
51410 cat confdefs.h >>conftest.$ac_ext
51411 cat >>conftest.$ac_ext <<_ACEOF
51412 /* end confdefs.h.  */
51413
51414 int
51415 main ()
51416 {
51417
51418   ;
51419   return 0;
51420 }
51421 _ACEOF
51422 rm -f conftest.$ac_objext conftest$ac_exeext
51423 if { (ac_try="$ac_link"
51424 case "(($ac_try" in
51425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51426   *) ac_try_echo=$ac_try;;
51427 esac
51428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51429 $as_echo "$ac_try_echo") >&5
51430   (eval "$ac_link") 2>conftest.er1
51431   ac_status=$?
51432   grep -v '^ *+' conftest.er1 >conftest.err
51433   rm -f conftest.er1
51434   cat conftest.err >&5
51435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51436   (exit $ac_status); } && {
51437          test -z "$ac_c_werror_flag" ||
51438          test ! -s conftest.err
51439        } && test -s conftest$ac_exeext && {
51440          test "$cross_compiling" = yes ||
51441          $as_test_x conftest$ac_exeext
51442        }; then
51443   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
51444   shlibpath_overrides_runpath=yes
51445 fi
51446
51447 else
51448   $as_echo "$as_me: failed program was:" >&5
51449 sed 's/^/| /' conftest.$ac_ext >&5
51450
51451
51452 fi
51453
51454 rm -rf conftest.dSYM
51455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51456       conftest$ac_exeext conftest.$ac_ext
51457   LDFLAGS=$save_LDFLAGS
51458   libdir=$save_libdir
51459
51460   # This implies no fast_install, which is unacceptable.
51461   # Some rework will be needed to allow for fast_install
51462   # before this can be enabled.
51463   hardcode_into_libs=yes
51464
51465   # Append ld.so.conf contents to the search path
51466   if test -f /etc/ld.so.conf; then
51467     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' ' '`
51468     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
51469   fi
51470
51471   # We used to test for /lib/ld.so.1 and disable shared libraries on
51472   # powerpc, because MkLinux only supported shared libraries with the
51473   # GNU dynamic linker.  Since this was broken with cross compilers,
51474   # most powerpc-linux boxes support dynamic linking these days and
51475   # people can always --disable-shared, the test was removed, and we
51476   # assume the GNU/Linux dynamic linker is in use.
51477   dynamic_linker='GNU/Linux ld.so'
51478   ;;
51479
51480 netbsd*)
51481   version_type=sunos
51482   need_lib_prefix=no
51483   need_version=no
51484   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
51485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51486     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
51487     dynamic_linker='NetBSD (a.out) ld.so'
51488   else
51489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
51490     soname_spec='${libname}${release}${shared_ext}$major'
51491     dynamic_linker='NetBSD ld.elf_so'
51492   fi
51493   shlibpath_var=LD_LIBRARY_PATH
51494   shlibpath_overrides_runpath=yes
51495   hardcode_into_libs=yes
51496   ;;
51497
51498 newsos6)
51499   version_type=linux
51500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51501   shlibpath_var=LD_LIBRARY_PATH
51502   shlibpath_overrides_runpath=yes
51503   ;;
51504
51505 *nto* | *qnx*)
51506   version_type=qnx
51507   need_lib_prefix=no
51508   need_version=no
51509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51510   soname_spec='${libname}${release}${shared_ext}$major'
51511   shlibpath_var=LD_LIBRARY_PATH
51512   shlibpath_overrides_runpath=no
51513   hardcode_into_libs=yes
51514   dynamic_linker='ldqnx.so'
51515   ;;
51516
51517 openbsd*)
51518   version_type=sunos
51519   sys_lib_dlsearch_path_spec="/usr/lib"
51520   need_lib_prefix=no
51521   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
51522   case $host_os in
51523     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
51524     *)                          need_version=no  ;;
51525   esac
51526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51527   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
51528   shlibpath_var=LD_LIBRARY_PATH
51529   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
51530     case $host_os in
51531       openbsd2.[89] | openbsd2.[89].*)
51532         shlibpath_overrides_runpath=no
51533         ;;
51534       *)
51535         shlibpath_overrides_runpath=yes
51536         ;;
51537       esac
51538   else
51539     shlibpath_overrides_runpath=yes
51540   fi
51541   ;;
51542
51543 os2*)
51544   libname_spec='$name'
51545   shrext_cmds=".dll"
51546   need_lib_prefix=no
51547   library_names_spec='$libname${shared_ext} $libname.a'
51548   dynamic_linker='OS/2 ld.exe'
51549   shlibpath_var=LIBPATH
51550   ;;
51551
51552 osf3* | osf4* | osf5*)
51553   version_type=osf
51554   need_lib_prefix=no
51555   need_version=no
51556   soname_spec='${libname}${release}${shared_ext}$major'
51557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51558   shlibpath_var=LD_LIBRARY_PATH
51559   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
51560   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
51561   ;;
51562
51563 rdos*)
51564   dynamic_linker=no
51565   ;;
51566
51567 solaris*)
51568   version_type=linux
51569   need_lib_prefix=no
51570   need_version=no
51571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51572   soname_spec='${libname}${release}${shared_ext}$major'
51573   shlibpath_var=LD_LIBRARY_PATH
51574   shlibpath_overrides_runpath=yes
51575   hardcode_into_libs=yes
51576   # ldd complains unless libraries are executable
51577   postinstall_cmds='chmod +x $lib'
51578   ;;
51579
51580 sunos4*)
51581   version_type=sunos
51582   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
51583   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
51584   shlibpath_var=LD_LIBRARY_PATH
51585   shlibpath_overrides_runpath=yes
51586   if test "$with_gnu_ld" = yes; then
51587     need_lib_prefix=no
51588   fi
51589   need_version=yes
51590   ;;
51591
51592 sysv4 | sysv4.3*)
51593   version_type=linux
51594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51595   soname_spec='${libname}${release}${shared_ext}$major'
51596   shlibpath_var=LD_LIBRARY_PATH
51597   case $host_vendor in
51598     sni)
51599       shlibpath_overrides_runpath=no
51600       need_lib_prefix=no
51601       runpath_var=LD_RUN_PATH
51602       ;;
51603     siemens)
51604       need_lib_prefix=no
51605       ;;
51606     motorola)
51607       need_lib_prefix=no
51608       need_version=no
51609       shlibpath_overrides_runpath=no
51610       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
51611       ;;
51612   esac
51613   ;;
51614
51615 sysv4*MP*)
51616   if test -d /usr/nec ;then
51617     version_type=linux
51618     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
51619     soname_spec='$libname${shared_ext}.$major'
51620     shlibpath_var=LD_LIBRARY_PATH
51621   fi
51622   ;;
51623
51624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
51625   version_type=freebsd-elf
51626   need_lib_prefix=no
51627   need_version=no
51628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
51629   soname_spec='${libname}${release}${shared_ext}$major'
51630   shlibpath_var=LD_LIBRARY_PATH
51631   shlibpath_overrides_runpath=yes
51632   hardcode_into_libs=yes
51633   if test "$with_gnu_ld" = yes; then
51634     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
51635   else
51636     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
51637     case $host_os in
51638       sco3.2v5*)
51639         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
51640         ;;
51641     esac
51642   fi
51643   sys_lib_dlsearch_path_spec='/usr/lib'
51644   ;;
51645
51646 tpf*)
51647   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
51648   version_type=linux
51649   need_lib_prefix=no
51650   need_version=no
51651   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51652   shlibpath_var=LD_LIBRARY_PATH
51653   shlibpath_overrides_runpath=no
51654   hardcode_into_libs=yes
51655   ;;
51656
51657 uts4*)
51658   version_type=linux
51659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
51660   soname_spec='${libname}${release}${shared_ext}$major'
51661   shlibpath_var=LD_LIBRARY_PATH
51662   ;;
51663
51664 *)
51665   dynamic_linker=no
51666   ;;
51667 esac
51668 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
51669 $as_echo "$dynamic_linker" >&6; }
51670 test "$dynamic_linker" = no && can_build_shared=no
51671
51672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
51673 if test "$GCC" = yes; then
51674   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
51675 fi
51676
51677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
51678   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
51679 fi
51680 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
51681   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
51682 fi
51683
51684
51685
51686
51687
51688
51689
51690
51691
51692
51693
51694
51695
51696
51697
51698
51699
51700
51701
51702
51703
51704
51705
51706
51707
51708
51709
51710
51711
51712
51713
51714
51715
51716
51717
51718
51719
51720
51721
51722
51723
51724
51725
51726
51727
51728
51729
51730
51731
51732
51733
51734
51735
51736
51737
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748
51749
51750
51751
51752
51753
51754
51755
51756
51757
51758
51759
51760
51761
51762
51763
51764
51765
51766
51767
51768
51769
51770   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
51771 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
51772 hardcode_action=
51773 if test -n "$hardcode_libdir_flag_spec" ||
51774    test -n "$runpath_var" ||
51775    test "X$hardcode_automatic" = "Xyes" ; then
51776
51777   # We can hardcode non-existent directories.
51778   if test "$hardcode_direct" != no &&
51779      # If the only mechanism to avoid hardcoding is shlibpath_var, we
51780      # have to relink, otherwise we might link with an installed library
51781      # when we should be linking with a yet-to-be-installed one
51782      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
51783      test "$hardcode_minus_L" != no; then
51784     # Linking always hardcodes the temporary library directory.
51785     hardcode_action=relink
51786   else
51787     # We can link without hardcoding, and we can hardcode nonexisting dirs.
51788     hardcode_action=immediate
51789   fi
51790 else
51791   # We cannot hardcode anything, or else we can only hardcode existing
51792   # directories.
51793   hardcode_action=unsupported
51794 fi
51795 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
51796 $as_echo "$hardcode_action" >&6; }
51797
51798 if test "$hardcode_action" = relink ||
51799    test "$inherit_rpath" = yes; then
51800   # Fast installation is not supported
51801   enable_fast_install=no
51802 elif test "$shlibpath_overrides_runpath" = yes ||
51803      test "$enable_shared" = no; then
51804   # Fast installation is not necessary
51805   enable_fast_install=needless
51806 fi
51807
51808
51809
51810
51811
51812
51813   if test "x$enable_dlopen" != xyes; then
51814   enable_dlopen=unknown
51815   enable_dlopen_self=unknown
51816   enable_dlopen_self_static=unknown
51817 else
51818   lt_cv_dlopen=no
51819   lt_cv_dlopen_libs=
51820
51821   case $host_os in
51822   beos*)
51823     lt_cv_dlopen="load_add_on"
51824     lt_cv_dlopen_libs=
51825     lt_cv_dlopen_self=yes
51826     ;;
51827
51828   mingw* | pw32*)
51829     lt_cv_dlopen="LoadLibrary"
51830     lt_cv_dlopen_libs=
51831     ;;
51832
51833   cygwin*)
51834     lt_cv_dlopen="dlopen"
51835     lt_cv_dlopen_libs=
51836     ;;
51837
51838   darwin*)
51839   # if libdl is installed we need to link against it
51840     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
51841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
51842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
51843   $as_echo_n "(cached) " >&6
51844 else
51845   ac_check_lib_save_LIBS=$LIBS
51846 LIBS="-ldl  $LIBS"
51847 cat >conftest.$ac_ext <<_ACEOF
51848 /* confdefs.h.  */
51849 _ACEOF
51850 cat confdefs.h >>conftest.$ac_ext
51851 cat >>conftest.$ac_ext <<_ACEOF
51852 /* end confdefs.h.  */
51853
51854 /* Override any GCC internal prototype to avoid an error.
51855    Use char because int might match the return type of a GCC
51856    builtin and then its argument prototype would still apply.  */
51857 #ifdef __cplusplus
51858 extern "C"
51859 #endif
51860 char dlopen ();
51861 int
51862 main ()
51863 {
51864 return dlopen ();
51865   ;
51866   return 0;
51867 }
51868 _ACEOF
51869 rm -f conftest.$ac_objext conftest$ac_exeext
51870 if { (ac_try="$ac_link"
51871 case "(($ac_try" in
51872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51873   *) ac_try_echo=$ac_try;;
51874 esac
51875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51876 $as_echo "$ac_try_echo") >&5
51877   (eval "$ac_link") 2>conftest.er1
51878   ac_status=$?
51879   grep -v '^ *+' conftest.er1 >conftest.err
51880   rm -f conftest.er1
51881   cat conftest.err >&5
51882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51883   (exit $ac_status); } && {
51884          test -z "$ac_c_werror_flag" ||
51885          test ! -s conftest.err
51886        } && test -s conftest$ac_exeext && {
51887          test "$cross_compiling" = yes ||
51888          $as_test_x conftest$ac_exeext
51889        }; then
51890   ac_cv_lib_dl_dlopen=yes
51891 else
51892   $as_echo "$as_me: failed program was:" >&5
51893 sed 's/^/| /' conftest.$ac_ext >&5
51894
51895         ac_cv_lib_dl_dlopen=no
51896 fi
51897
51898 rm -rf conftest.dSYM
51899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51900       conftest$ac_exeext conftest.$ac_ext
51901 LIBS=$ac_check_lib_save_LIBS
51902 fi
51903 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
51904 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
51905 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
51906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
51907 else
51908
51909     lt_cv_dlopen="dyld"
51910     lt_cv_dlopen_libs=
51911     lt_cv_dlopen_self=yes
51912
51913 fi
51914
51915     ;;
51916
51917   *)
51918     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
51919 $as_echo_n "checking for shl_load... " >&6; }
51920 if test "${ac_cv_func_shl_load+set}" = set; then
51921   $as_echo_n "(cached) " >&6
51922 else
51923   cat >conftest.$ac_ext <<_ACEOF
51924 /* confdefs.h.  */
51925 _ACEOF
51926 cat confdefs.h >>conftest.$ac_ext
51927 cat >>conftest.$ac_ext <<_ACEOF
51928 /* end confdefs.h.  */
51929 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
51930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51931 #define shl_load innocuous_shl_load
51932
51933 /* System header to define __stub macros and hopefully few prototypes,
51934     which can conflict with char shl_load (); below.
51935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51936     <limits.h> exists even on freestanding compilers.  */
51937
51938 #ifdef __STDC__
51939 # include <limits.h>
51940 #else
51941 # include <assert.h>
51942 #endif
51943
51944 #undef shl_load
51945
51946 /* Override any GCC internal prototype to avoid an error.
51947    Use char because int might match the return type of a GCC
51948    builtin and then its argument prototype would still apply.  */
51949 #ifdef __cplusplus
51950 extern "C"
51951 #endif
51952 char shl_load ();
51953 /* The GNU C library defines this for functions which it implements
51954     to always fail with ENOSYS.  Some functions are actually named
51955     something starting with __ and the normal name is an alias.  */
51956 #if defined __stub_shl_load || defined __stub___shl_load
51957 choke me
51958 #endif
51959
51960 int
51961 main ()
51962 {
51963 return shl_load ();
51964   ;
51965   return 0;
51966 }
51967 _ACEOF
51968 rm -f conftest.$ac_objext conftest$ac_exeext
51969 if { (ac_try="$ac_link"
51970 case "(($ac_try" in
51971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51972   *) ac_try_echo=$ac_try;;
51973 esac
51974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51975 $as_echo "$ac_try_echo") >&5
51976   (eval "$ac_link") 2>conftest.er1
51977   ac_status=$?
51978   grep -v '^ *+' conftest.er1 >conftest.err
51979   rm -f conftest.er1
51980   cat conftest.err >&5
51981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51982   (exit $ac_status); } && {
51983          test -z "$ac_c_werror_flag" ||
51984          test ! -s conftest.err
51985        } && test -s conftest$ac_exeext && {
51986          test "$cross_compiling" = yes ||
51987          $as_test_x conftest$ac_exeext
51988        }; then
51989   ac_cv_func_shl_load=yes
51990 else
51991   $as_echo "$as_me: failed program was:" >&5
51992 sed 's/^/| /' conftest.$ac_ext >&5
51993
51994         ac_cv_func_shl_load=no
51995 fi
51996
51997 rm -rf conftest.dSYM
51998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51999       conftest$ac_exeext conftest.$ac_ext
52000 fi
52001 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
52002 $as_echo "$ac_cv_func_shl_load" >&6; }
52003 if test "x$ac_cv_func_shl_load" = x""yes; then
52004   lt_cv_dlopen="shl_load"
52005 else
52006   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
52007 $as_echo_n "checking for shl_load in -ldld... " >&6; }
52008 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
52009   $as_echo_n "(cached) " >&6
52010 else
52011   ac_check_lib_save_LIBS=$LIBS
52012 LIBS="-ldld  $LIBS"
52013 cat >conftest.$ac_ext <<_ACEOF
52014 /* confdefs.h.  */
52015 _ACEOF
52016 cat confdefs.h >>conftest.$ac_ext
52017 cat >>conftest.$ac_ext <<_ACEOF
52018 /* end confdefs.h.  */
52019
52020 /* Override any GCC internal prototype to avoid an error.
52021    Use char because int might match the return type of a GCC
52022    builtin and then its argument prototype would still apply.  */
52023 #ifdef __cplusplus
52024 extern "C"
52025 #endif
52026 char shl_load ();
52027 int
52028 main ()
52029 {
52030 return shl_load ();
52031   ;
52032   return 0;
52033 }
52034 _ACEOF
52035 rm -f conftest.$ac_objext conftest$ac_exeext
52036 if { (ac_try="$ac_link"
52037 case "(($ac_try" in
52038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52039   *) ac_try_echo=$ac_try;;
52040 esac
52041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52042 $as_echo "$ac_try_echo") >&5
52043   (eval "$ac_link") 2>conftest.er1
52044   ac_status=$?
52045   grep -v '^ *+' conftest.er1 >conftest.err
52046   rm -f conftest.er1
52047   cat conftest.err >&5
52048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52049   (exit $ac_status); } && {
52050          test -z "$ac_c_werror_flag" ||
52051          test ! -s conftest.err
52052        } && test -s conftest$ac_exeext && {
52053          test "$cross_compiling" = yes ||
52054          $as_test_x conftest$ac_exeext
52055        }; then
52056   ac_cv_lib_dld_shl_load=yes
52057 else
52058   $as_echo "$as_me: failed program was:" >&5
52059 sed 's/^/| /' conftest.$ac_ext >&5
52060
52061         ac_cv_lib_dld_shl_load=no
52062 fi
52063
52064 rm -rf conftest.dSYM
52065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52066       conftest$ac_exeext conftest.$ac_ext
52067 LIBS=$ac_check_lib_save_LIBS
52068 fi
52069 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
52070 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
52071 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
52072   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
52073 else
52074   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
52075 $as_echo_n "checking for dlopen... " >&6; }
52076 if test "${ac_cv_func_dlopen+set}" = set; then
52077   $as_echo_n "(cached) " >&6
52078 else
52079   cat >conftest.$ac_ext <<_ACEOF
52080 /* confdefs.h.  */
52081 _ACEOF
52082 cat confdefs.h >>conftest.$ac_ext
52083 cat >>conftest.$ac_ext <<_ACEOF
52084 /* end confdefs.h.  */
52085 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
52086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52087 #define dlopen innocuous_dlopen
52088
52089 /* System header to define __stub macros and hopefully few prototypes,
52090     which can conflict with char dlopen (); below.
52091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52092     <limits.h> exists even on freestanding compilers.  */
52093
52094 #ifdef __STDC__
52095 # include <limits.h>
52096 #else
52097 # include <assert.h>
52098 #endif
52099
52100 #undef dlopen
52101
52102 /* Override any GCC internal prototype to avoid an error.
52103    Use char because int might match the return type of a GCC
52104    builtin and then its argument prototype would still apply.  */
52105 #ifdef __cplusplus
52106 extern "C"
52107 #endif
52108 char dlopen ();
52109 /* The GNU C library defines this for functions which it implements
52110     to always fail with ENOSYS.  Some functions are actually named
52111     something starting with __ and the normal name is an alias.  */
52112 #if defined __stub_dlopen || defined __stub___dlopen
52113 choke me
52114 #endif
52115
52116 int
52117 main ()
52118 {
52119 return dlopen ();
52120   ;
52121   return 0;
52122 }
52123 _ACEOF
52124 rm -f conftest.$ac_objext conftest$ac_exeext
52125 if { (ac_try="$ac_link"
52126 case "(($ac_try" in
52127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52128   *) ac_try_echo=$ac_try;;
52129 esac
52130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52131 $as_echo "$ac_try_echo") >&5
52132   (eval "$ac_link") 2>conftest.er1
52133   ac_status=$?
52134   grep -v '^ *+' conftest.er1 >conftest.err
52135   rm -f conftest.er1
52136   cat conftest.err >&5
52137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52138   (exit $ac_status); } && {
52139          test -z "$ac_c_werror_flag" ||
52140          test ! -s conftest.err
52141        } && test -s conftest$ac_exeext && {
52142          test "$cross_compiling" = yes ||
52143          $as_test_x conftest$ac_exeext
52144        }; then
52145   ac_cv_func_dlopen=yes
52146 else
52147   $as_echo "$as_me: failed program was:" >&5
52148 sed 's/^/| /' conftest.$ac_ext >&5
52149
52150         ac_cv_func_dlopen=no
52151 fi
52152
52153 rm -rf conftest.dSYM
52154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52155       conftest$ac_exeext conftest.$ac_ext
52156 fi
52157 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
52158 $as_echo "$ac_cv_func_dlopen" >&6; }
52159 if test "x$ac_cv_func_dlopen" = x""yes; then
52160   lt_cv_dlopen="dlopen"
52161 else
52162   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
52163 $as_echo_n "checking for dlopen in -ldl... " >&6; }
52164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
52165   $as_echo_n "(cached) " >&6
52166 else
52167   ac_check_lib_save_LIBS=$LIBS
52168 LIBS="-ldl  $LIBS"
52169 cat >conftest.$ac_ext <<_ACEOF
52170 /* confdefs.h.  */
52171 _ACEOF
52172 cat confdefs.h >>conftest.$ac_ext
52173 cat >>conftest.$ac_ext <<_ACEOF
52174 /* end confdefs.h.  */
52175
52176 /* Override any GCC internal prototype to avoid an error.
52177    Use char because int might match the return type of a GCC
52178    builtin and then its argument prototype would still apply.  */
52179 #ifdef __cplusplus
52180 extern "C"
52181 #endif
52182 char dlopen ();
52183 int
52184 main ()
52185 {
52186 return dlopen ();
52187   ;
52188   return 0;
52189 }
52190 _ACEOF
52191 rm -f conftest.$ac_objext conftest$ac_exeext
52192 if { (ac_try="$ac_link"
52193 case "(($ac_try" in
52194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52195   *) ac_try_echo=$ac_try;;
52196 esac
52197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52198 $as_echo "$ac_try_echo") >&5
52199   (eval "$ac_link") 2>conftest.er1
52200   ac_status=$?
52201   grep -v '^ *+' conftest.er1 >conftest.err
52202   rm -f conftest.er1
52203   cat conftest.err >&5
52204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52205   (exit $ac_status); } && {
52206          test -z "$ac_c_werror_flag" ||
52207          test ! -s conftest.err
52208        } && test -s conftest$ac_exeext && {
52209          test "$cross_compiling" = yes ||
52210          $as_test_x conftest$ac_exeext
52211        }; then
52212   ac_cv_lib_dl_dlopen=yes
52213 else
52214   $as_echo "$as_me: failed program was:" >&5
52215 sed 's/^/| /' conftest.$ac_ext >&5
52216
52217         ac_cv_lib_dl_dlopen=no
52218 fi
52219
52220 rm -rf conftest.dSYM
52221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52222       conftest$ac_exeext conftest.$ac_ext
52223 LIBS=$ac_check_lib_save_LIBS
52224 fi
52225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
52226 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
52227 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
52228   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
52229 else
52230   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
52231 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
52232 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
52233   $as_echo_n "(cached) " >&6
52234 else
52235   ac_check_lib_save_LIBS=$LIBS
52236 LIBS="-lsvld  $LIBS"
52237 cat >conftest.$ac_ext <<_ACEOF
52238 /* confdefs.h.  */
52239 _ACEOF
52240 cat confdefs.h >>conftest.$ac_ext
52241 cat >>conftest.$ac_ext <<_ACEOF
52242 /* end confdefs.h.  */
52243
52244 /* Override any GCC internal prototype to avoid an error.
52245    Use char because int might match the return type of a GCC
52246    builtin and then its argument prototype would still apply.  */
52247 #ifdef __cplusplus
52248 extern "C"
52249 #endif
52250 char dlopen ();
52251 int
52252 main ()
52253 {
52254 return dlopen ();
52255   ;
52256   return 0;
52257 }
52258 _ACEOF
52259 rm -f conftest.$ac_objext conftest$ac_exeext
52260 if { (ac_try="$ac_link"
52261 case "(($ac_try" in
52262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52263   *) ac_try_echo=$ac_try;;
52264 esac
52265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52266 $as_echo "$ac_try_echo") >&5
52267   (eval "$ac_link") 2>conftest.er1
52268   ac_status=$?
52269   grep -v '^ *+' conftest.er1 >conftest.err
52270   rm -f conftest.er1
52271   cat conftest.err >&5
52272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52273   (exit $ac_status); } && {
52274          test -z "$ac_c_werror_flag" ||
52275          test ! -s conftest.err
52276        } && test -s conftest$ac_exeext && {
52277          test "$cross_compiling" = yes ||
52278          $as_test_x conftest$ac_exeext
52279        }; then
52280   ac_cv_lib_svld_dlopen=yes
52281 else
52282   $as_echo "$as_me: failed program was:" >&5
52283 sed 's/^/| /' conftest.$ac_ext >&5
52284
52285         ac_cv_lib_svld_dlopen=no
52286 fi
52287
52288 rm -rf conftest.dSYM
52289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52290       conftest$ac_exeext conftest.$ac_ext
52291 LIBS=$ac_check_lib_save_LIBS
52292 fi
52293 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
52294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
52295 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
52296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
52297 else
52298   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
52299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
52300 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
52301   $as_echo_n "(cached) " >&6
52302 else
52303   ac_check_lib_save_LIBS=$LIBS
52304 LIBS="-ldld  $LIBS"
52305 cat >conftest.$ac_ext <<_ACEOF
52306 /* confdefs.h.  */
52307 _ACEOF
52308 cat confdefs.h >>conftest.$ac_ext
52309 cat >>conftest.$ac_ext <<_ACEOF
52310 /* end confdefs.h.  */
52311
52312 /* Override any GCC internal prototype to avoid an error.
52313    Use char because int might match the return type of a GCC
52314    builtin and then its argument prototype would still apply.  */
52315 #ifdef __cplusplus
52316 extern "C"
52317 #endif
52318 char dld_link ();
52319 int
52320 main ()
52321 {
52322 return dld_link ();
52323   ;
52324   return 0;
52325 }
52326 _ACEOF
52327 rm -f conftest.$ac_objext conftest$ac_exeext
52328 if { (ac_try="$ac_link"
52329 case "(($ac_try" in
52330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52331   *) ac_try_echo=$ac_try;;
52332 esac
52333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52334 $as_echo "$ac_try_echo") >&5
52335   (eval "$ac_link") 2>conftest.er1
52336   ac_status=$?
52337   grep -v '^ *+' conftest.er1 >conftest.err
52338   rm -f conftest.er1
52339   cat conftest.err >&5
52340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52341   (exit $ac_status); } && {
52342          test -z "$ac_c_werror_flag" ||
52343          test ! -s conftest.err
52344        } && test -s conftest$ac_exeext && {
52345          test "$cross_compiling" = yes ||
52346          $as_test_x conftest$ac_exeext
52347        }; then
52348   ac_cv_lib_dld_dld_link=yes
52349 else
52350   $as_echo "$as_me: failed program was:" >&5
52351 sed 's/^/| /' conftest.$ac_ext >&5
52352
52353         ac_cv_lib_dld_dld_link=no
52354 fi
52355
52356 rm -rf conftest.dSYM
52357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52358       conftest$ac_exeext conftest.$ac_ext
52359 LIBS=$ac_check_lib_save_LIBS
52360 fi
52361 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
52362 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
52363 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
52364   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
52365 fi
52366
52367
52368 fi
52369
52370
52371 fi
52372
52373
52374 fi
52375
52376
52377 fi
52378
52379
52380 fi
52381
52382     ;;
52383   esac
52384
52385   if test "x$lt_cv_dlopen" != xno; then
52386     enable_dlopen=yes
52387   else
52388     enable_dlopen=no
52389   fi
52390
52391   case $lt_cv_dlopen in
52392   dlopen)
52393     save_CPPFLAGS="$CPPFLAGS"
52394     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
52395
52396     save_LDFLAGS="$LDFLAGS"
52397     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
52398
52399     save_LIBS="$LIBS"
52400     LIBS="$lt_cv_dlopen_libs $LIBS"
52401
52402     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
52403 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
52404 if test "${lt_cv_dlopen_self+set}" = set; then
52405   $as_echo_n "(cached) " >&6
52406 else
52407           if test "$cross_compiling" = yes; then :
52408   lt_cv_dlopen_self=cross
52409 else
52410   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
52411   lt_status=$lt_dlunknown
52412   cat > conftest.$ac_ext <<_LT_EOF
52413 #line 52413 "configure"
52414 #include "confdefs.h"
52415
52416 #if HAVE_DLFCN_H
52417 #include <dlfcn.h>
52418 #endif
52419
52420 #include <stdio.h>
52421
52422 #ifdef RTLD_GLOBAL
52423 #  define LT_DLGLOBAL           RTLD_GLOBAL
52424 #else
52425 #  ifdef DL_GLOBAL
52426 #    define LT_DLGLOBAL         DL_GLOBAL
52427 #  else
52428 #    define LT_DLGLOBAL         0
52429 #  endif
52430 #endif
52431
52432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
52433    find out it does not work in some platform. */
52434 #ifndef LT_DLLAZY_OR_NOW
52435 #  ifdef RTLD_LAZY
52436 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
52437 #  else
52438 #    ifdef DL_LAZY
52439 #      define LT_DLLAZY_OR_NOW          DL_LAZY
52440 #    else
52441 #      ifdef RTLD_NOW
52442 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
52443 #      else
52444 #        ifdef DL_NOW
52445 #          define LT_DLLAZY_OR_NOW      DL_NOW
52446 #        else
52447 #          define LT_DLLAZY_OR_NOW      0
52448 #        endif
52449 #      endif
52450 #    endif
52451 #  endif
52452 #endif
52453
52454 #ifdef __cplusplus
52455 extern "C" void exit (int);
52456 #endif
52457
52458 void fnord() { int i=42;}
52459 int main ()
52460 {
52461   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
52462   int status = $lt_dlunknown;
52463
52464   if (self)
52465     {
52466       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
52467       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
52468       /* dlclose (self); */
52469     }
52470   else
52471     puts (dlerror ());
52472
52473     exit (status);
52474 }
52475 _LT_EOF
52476   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52477   (eval $ac_link) 2>&5
52478   ac_status=$?
52479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52480   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
52481     (./conftest; exit; ) >&5 2>/dev/null
52482     lt_status=$?
52483     case x$lt_status in
52484       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
52485       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
52486       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
52487     esac
52488   else :
52489     # compilation failed
52490     lt_cv_dlopen_self=no
52491   fi
52492 fi
52493 rm -fr conftest*
52494
52495
52496 fi
52497 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
52498 $as_echo "$lt_cv_dlopen_self" >&6; }
52499
52500     if test "x$lt_cv_dlopen_self" = xyes; then
52501       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
52502       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
52503 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
52504 if test "${lt_cv_dlopen_self_static+set}" = set; then
52505   $as_echo_n "(cached) " >&6
52506 else
52507           if test "$cross_compiling" = yes; then :
52508   lt_cv_dlopen_self_static=cross
52509 else
52510   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
52511   lt_status=$lt_dlunknown
52512   cat > conftest.$ac_ext <<_LT_EOF
52513 #line 52513 "configure"
52514 #include "confdefs.h"
52515
52516 #if HAVE_DLFCN_H
52517 #include <dlfcn.h>
52518 #endif
52519
52520 #include <stdio.h>
52521
52522 #ifdef RTLD_GLOBAL
52523 #  define LT_DLGLOBAL           RTLD_GLOBAL
52524 #else
52525 #  ifdef DL_GLOBAL
52526 #    define LT_DLGLOBAL         DL_GLOBAL
52527 #  else
52528 #    define LT_DLGLOBAL         0
52529 #  endif
52530 #endif
52531
52532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
52533    find out it does not work in some platform. */
52534 #ifndef LT_DLLAZY_OR_NOW
52535 #  ifdef RTLD_LAZY
52536 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
52537 #  else
52538 #    ifdef DL_LAZY
52539 #      define LT_DLLAZY_OR_NOW          DL_LAZY
52540 #    else
52541 #      ifdef RTLD_NOW
52542 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
52543 #      else
52544 #        ifdef DL_NOW
52545 #          define LT_DLLAZY_OR_NOW      DL_NOW
52546 #        else
52547 #          define LT_DLLAZY_OR_NOW      0
52548 #        endif
52549 #      endif
52550 #    endif
52551 #  endif
52552 #endif
52553
52554 #ifdef __cplusplus
52555 extern "C" void exit (int);
52556 #endif
52557
52558 void fnord() { int i=42;}
52559 int main ()
52560 {
52561   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
52562   int status = $lt_dlunknown;
52563
52564   if (self)
52565     {
52566       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
52567       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
52568       /* dlclose (self); */
52569     }
52570   else
52571     puts (dlerror ());
52572
52573     exit (status);
52574 }
52575 _LT_EOF
52576   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52577   (eval $ac_link) 2>&5
52578   ac_status=$?
52579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52580   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
52581     (./conftest; exit; ) >&5 2>/dev/null
52582     lt_status=$?
52583     case x$lt_status in
52584       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
52585       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
52586       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
52587     esac
52588   else :
52589     # compilation failed
52590     lt_cv_dlopen_self_static=no
52591   fi
52592 fi
52593 rm -fr conftest*
52594
52595
52596 fi
52597 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
52598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
52599     fi
52600
52601     CPPFLAGS="$save_CPPFLAGS"
52602     LDFLAGS="$save_LDFLAGS"
52603     LIBS="$save_LIBS"
52604     ;;
52605   esac
52606
52607   case $lt_cv_dlopen_self in
52608   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
52609   *) enable_dlopen_self=unknown ;;
52610   esac
52611
52612   case $lt_cv_dlopen_self_static in
52613   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
52614   *) enable_dlopen_self_static=unknown ;;
52615   esac
52616 fi
52617
52618
52619
52620
52621
52622
52623
52624
52625
52626
52627
52628
52629
52630
52631
52632
52633
52634 striplib=
52635 old_striplib=
52636 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
52637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
52638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
52639   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
52640   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
52641   { $as_echo "$as_me:$LINENO: result: yes" >&5
52642 $as_echo "yes" >&6; }
52643 else
52644 # FIXME - insert some real tests, host_os isn't really good enough
52645   case $host_os in
52646   darwin*)
52647     if test -n "$STRIP" ; then
52648       striplib="$STRIP -x"
52649       old_striplib="$STRIP -S"
52650       { $as_echo "$as_me:$LINENO: result: yes" >&5
52651 $as_echo "yes" >&6; }
52652     else
52653       { $as_echo "$as_me:$LINENO: result: no" >&5
52654 $as_echo "no" >&6; }
52655     fi
52656     ;;
52657   *)
52658     { $as_echo "$as_me:$LINENO: result: no" >&5
52659 $as_echo "no" >&6; }
52660     ;;
52661   esac
52662 fi
52663
52664
52665
52666
52667
52668
52669
52670
52671
52672
52673
52674
52675   # Report which library types will actually be built
52676   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
52677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
52678   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
52679 $as_echo "$can_build_shared" >&6; }
52680
52681   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
52682 $as_echo_n "checking whether to build shared libraries... " >&6; }
52683   test "$can_build_shared" = "no" && enable_shared=no
52684
52685   # On AIX, shared libraries and static libraries use the same namespace, and
52686   # are all built from PIC.
52687   case $host_os in
52688   aix3*)
52689     test "$enable_shared" = yes && enable_static=no
52690     if test -n "$RANLIB"; then
52691       archive_cmds="$archive_cmds~\$RANLIB \$lib"
52692       postinstall_cmds='$RANLIB $lib'
52693     fi
52694     ;;
52695
52696   aix[4-9]*)
52697     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
52698       test "$enable_shared" = yes && enable_static=no
52699     fi
52700     ;;
52701   esac
52702   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
52703 $as_echo "$enable_shared" >&6; }
52704
52705   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
52706 $as_echo_n "checking whether to build static libraries... " >&6; }
52707   # Make sure either enable_shared or enable_static is yes.
52708   test "$enable_shared" = yes || enable_static=yes
52709   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
52710 $as_echo "$enable_static" >&6; }
52711
52712
52713
52714
52715 fi
52716 ac_ext=c
52717 ac_cpp='$CPP $CPPFLAGS'
52718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52721
52722 CC="$lt_save_CC"
52723
52724
52725
52726
52727
52728
52729
52730
52731
52732
52733
52734
52735
52736         ac_config_commands="$ac_config_commands libtool"
52737
52738
52739
52740
52741 # Only expand once:
52742
52743
52744
52745
52746     # Check whether --enable-static-binary was given.
52747 if test "${enable_static_binary+set}" = set; then
52748   enableval=$enable_static_binary;
52749             case "$enableval" in
52750             "" | y | ye | yes)
52751                 AMANDA_STATIC_LDFLAGS=-static
52752                 if test x"$enable_static" = x"no"; then
52753                         { { $as_echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
52754 $as_echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
52755    { (exit 1); exit 1; }; }
52756                 fi
52757                 ;;
52758             *n | no)
52759                 AMANDA_STATIC_LDFLAGS=
52760                 ;;
52761             esac
52762
52763 fi
52764
52765
52766
52767
52768 #
52769 # headers
52770 #
52771
52772
52773
52774
52775
52776 ac_header_dirent=no
52777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
52778   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
52779 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
52780 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
52781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52782   $as_echo_n "(cached) " >&6
52783 else
52784   cat >conftest.$ac_ext <<_ACEOF
52785 /* confdefs.h.  */
52786 _ACEOF
52787 cat confdefs.h >>conftest.$ac_ext
52788 cat >>conftest.$ac_ext <<_ACEOF
52789 /* end confdefs.h.  */
52790 #include <sys/types.h>
52791 #include <$ac_hdr>
52792
52793 int
52794 main ()
52795 {
52796 if ((DIR *) 0)
52797 return 0;
52798   ;
52799   return 0;
52800 }
52801 _ACEOF
52802 rm -f conftest.$ac_objext
52803 if { (ac_try="$ac_compile"
52804 case "(($ac_try" in
52805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52806   *) ac_try_echo=$ac_try;;
52807 esac
52808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52809 $as_echo "$ac_try_echo") >&5
52810   (eval "$ac_compile") 2>conftest.er1
52811   ac_status=$?
52812   grep -v '^ *+' conftest.er1 >conftest.err
52813   rm -f conftest.er1
52814   cat conftest.err >&5
52815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52816   (exit $ac_status); } && {
52817          test -z "$ac_c_werror_flag" ||
52818          test ! -s conftest.err
52819        } && test -s conftest.$ac_objext; then
52820   eval "$as_ac_Header=yes"
52821 else
52822   $as_echo "$as_me: failed program was:" >&5
52823 sed 's/^/| /' conftest.$ac_ext >&5
52824
52825         eval "$as_ac_Header=no"
52826 fi
52827
52828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52829 fi
52830 ac_res=`eval 'as_val=${'$as_ac_Header'}
52831                  $as_echo "$as_val"'`
52832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52833 $as_echo "$ac_res" >&6; }
52834 as_val=`eval 'as_val=${'$as_ac_Header'}
52835                  $as_echo "$as_val"'`
52836    if test "x$as_val" = x""yes; then
52837   cat >>confdefs.h <<_ACEOF
52838 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
52839 _ACEOF
52840
52841 ac_header_dirent=$ac_hdr; break
52842 fi
52843
52844 done
52845 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
52846 if test $ac_header_dirent = dirent.h; then
52847   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
52848 $as_echo_n "checking for library containing opendir... " >&6; }
52849 if test "${ac_cv_search_opendir+set}" = set; then
52850   $as_echo_n "(cached) " >&6
52851 else
52852   ac_func_search_save_LIBS=$LIBS
52853 cat >conftest.$ac_ext <<_ACEOF
52854 /* confdefs.h.  */
52855 _ACEOF
52856 cat confdefs.h >>conftest.$ac_ext
52857 cat >>conftest.$ac_ext <<_ACEOF
52858 /* end confdefs.h.  */
52859
52860 /* Override any GCC internal prototype to avoid an error.
52861    Use char because int might match the return type of a GCC
52862    builtin and then its argument prototype would still apply.  */
52863 #ifdef __cplusplus
52864 extern "C"
52865 #endif
52866 char opendir ();
52867 int
52868 main ()
52869 {
52870 return opendir ();
52871   ;
52872   return 0;
52873 }
52874 _ACEOF
52875 for ac_lib in '' dir; do
52876   if test -z "$ac_lib"; then
52877     ac_res="none required"
52878   else
52879     ac_res=-l$ac_lib
52880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52881   fi
52882   rm -f conftest.$ac_objext conftest$ac_exeext
52883 if { (ac_try="$ac_link"
52884 case "(($ac_try" in
52885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52886   *) ac_try_echo=$ac_try;;
52887 esac
52888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52889 $as_echo "$ac_try_echo") >&5
52890   (eval "$ac_link") 2>conftest.er1
52891   ac_status=$?
52892   grep -v '^ *+' conftest.er1 >conftest.err
52893   rm -f conftest.er1
52894   cat conftest.err >&5
52895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52896   (exit $ac_status); } && {
52897          test -z "$ac_c_werror_flag" ||
52898          test ! -s conftest.err
52899        } && test -s conftest$ac_exeext && {
52900          test "$cross_compiling" = yes ||
52901          $as_test_x conftest$ac_exeext
52902        }; then
52903   ac_cv_search_opendir=$ac_res
52904 else
52905   $as_echo "$as_me: failed program was:" >&5
52906 sed 's/^/| /' conftest.$ac_ext >&5
52907
52908
52909 fi
52910
52911 rm -rf conftest.dSYM
52912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52913       conftest$ac_exeext
52914   if test "${ac_cv_search_opendir+set}" = set; then
52915   break
52916 fi
52917 done
52918 if test "${ac_cv_search_opendir+set}" = set; then
52919   :
52920 else
52921   ac_cv_search_opendir=no
52922 fi
52923 rm conftest.$ac_ext
52924 LIBS=$ac_func_search_save_LIBS
52925 fi
52926 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
52927 $as_echo "$ac_cv_search_opendir" >&6; }
52928 ac_res=$ac_cv_search_opendir
52929 if test "$ac_res" != no; then
52930   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52931
52932 fi
52933
52934 else
52935   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
52936 $as_echo_n "checking for library containing opendir... " >&6; }
52937 if test "${ac_cv_search_opendir+set}" = set; then
52938   $as_echo_n "(cached) " >&6
52939 else
52940   ac_func_search_save_LIBS=$LIBS
52941 cat >conftest.$ac_ext <<_ACEOF
52942 /* confdefs.h.  */
52943 _ACEOF
52944 cat confdefs.h >>conftest.$ac_ext
52945 cat >>conftest.$ac_ext <<_ACEOF
52946 /* end confdefs.h.  */
52947
52948 /* Override any GCC internal prototype to avoid an error.
52949    Use char because int might match the return type of a GCC
52950    builtin and then its argument prototype would still apply.  */
52951 #ifdef __cplusplus
52952 extern "C"
52953 #endif
52954 char opendir ();
52955 int
52956 main ()
52957 {
52958 return opendir ();
52959   ;
52960   return 0;
52961 }
52962 _ACEOF
52963 for ac_lib in '' x; do
52964   if test -z "$ac_lib"; then
52965     ac_res="none required"
52966   else
52967     ac_res=-l$ac_lib
52968     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52969   fi
52970   rm -f conftest.$ac_objext conftest$ac_exeext
52971 if { (ac_try="$ac_link"
52972 case "(($ac_try" in
52973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52974   *) ac_try_echo=$ac_try;;
52975 esac
52976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52977 $as_echo "$ac_try_echo") >&5
52978   (eval "$ac_link") 2>conftest.er1
52979   ac_status=$?
52980   grep -v '^ *+' conftest.er1 >conftest.err
52981   rm -f conftest.er1
52982   cat conftest.err >&5
52983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52984   (exit $ac_status); } && {
52985          test -z "$ac_c_werror_flag" ||
52986          test ! -s conftest.err
52987        } && test -s conftest$ac_exeext && {
52988          test "$cross_compiling" = yes ||
52989          $as_test_x conftest$ac_exeext
52990        }; then
52991   ac_cv_search_opendir=$ac_res
52992 else
52993   $as_echo "$as_me: failed program was:" >&5
52994 sed 's/^/| /' conftest.$ac_ext >&5
52995
52996
52997 fi
52998
52999 rm -rf conftest.dSYM
53000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53001       conftest$ac_exeext
53002   if test "${ac_cv_search_opendir+set}" = set; then
53003   break
53004 fi
53005 done
53006 if test "${ac_cv_search_opendir+set}" = set; then
53007   :
53008 else
53009   ac_cv_search_opendir=no
53010 fi
53011 rm conftest.$ac_ext
53012 LIBS=$ac_func_search_save_LIBS
53013 fi
53014 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
53015 $as_echo "$ac_cv_search_opendir" >&6; }
53016 ac_res=$ac_cv_search_opendir
53017 if test "$ac_res" != no; then
53018   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
53019
53020 fi
53021
53022 fi
53023
53024 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
53025 $as_echo_n "checking for ANSI C header files... " >&6; }
53026 if test "${ac_cv_header_stdc+set}" = set; then
53027   $as_echo_n "(cached) " >&6
53028 else
53029   cat >conftest.$ac_ext <<_ACEOF
53030 /* confdefs.h.  */
53031 _ACEOF
53032 cat confdefs.h >>conftest.$ac_ext
53033 cat >>conftest.$ac_ext <<_ACEOF
53034 /* end confdefs.h.  */
53035 #include <stdlib.h>
53036 #include <stdarg.h>
53037 #include <string.h>
53038 #include <float.h>
53039
53040 int
53041 main ()
53042 {
53043
53044   ;
53045   return 0;
53046 }
53047 _ACEOF
53048 rm -f conftest.$ac_objext
53049 if { (ac_try="$ac_compile"
53050 case "(($ac_try" in
53051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53052   *) ac_try_echo=$ac_try;;
53053 esac
53054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53055 $as_echo "$ac_try_echo") >&5
53056   (eval "$ac_compile") 2>conftest.er1
53057   ac_status=$?
53058   grep -v '^ *+' conftest.er1 >conftest.err
53059   rm -f conftest.er1
53060   cat conftest.err >&5
53061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53062   (exit $ac_status); } && {
53063          test -z "$ac_c_werror_flag" ||
53064          test ! -s conftest.err
53065        } && test -s conftest.$ac_objext; then
53066   ac_cv_header_stdc=yes
53067 else
53068   $as_echo "$as_me: failed program was:" >&5
53069 sed 's/^/| /' conftest.$ac_ext >&5
53070
53071         ac_cv_header_stdc=no
53072 fi
53073
53074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53075
53076 if test $ac_cv_header_stdc = yes; then
53077   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
53078   cat >conftest.$ac_ext <<_ACEOF
53079 /* confdefs.h.  */
53080 _ACEOF
53081 cat confdefs.h >>conftest.$ac_ext
53082 cat >>conftest.$ac_ext <<_ACEOF
53083 /* end confdefs.h.  */
53084 #include <string.h>
53085
53086 _ACEOF
53087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53088   $EGREP "memchr" >/dev/null 2>&1; then
53089   :
53090 else
53091   ac_cv_header_stdc=no
53092 fi
53093 rm -f conftest*
53094
53095 fi
53096
53097 if test $ac_cv_header_stdc = yes; then
53098   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
53099   cat >conftest.$ac_ext <<_ACEOF
53100 /* confdefs.h.  */
53101 _ACEOF
53102 cat confdefs.h >>conftest.$ac_ext
53103 cat >>conftest.$ac_ext <<_ACEOF
53104 /* end confdefs.h.  */
53105 #include <stdlib.h>
53106
53107 _ACEOF
53108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53109   $EGREP "free" >/dev/null 2>&1; then
53110   :
53111 else
53112   ac_cv_header_stdc=no
53113 fi
53114 rm -f conftest*
53115
53116 fi
53117
53118 if test $ac_cv_header_stdc = yes; then
53119   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
53120   if test "$cross_compiling" = yes; then
53121   :
53122 else
53123   cat >conftest.$ac_ext <<_ACEOF
53124 /* confdefs.h.  */
53125 _ACEOF
53126 cat confdefs.h >>conftest.$ac_ext
53127 cat >>conftest.$ac_ext <<_ACEOF
53128 /* end confdefs.h.  */
53129 #include <ctype.h>
53130 #include <stdlib.h>
53131 #if ((' ' & 0x0FF) == 0x020)
53132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
53133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
53134 #else
53135 # define ISLOWER(c) \
53136                    (('a' <= (c) && (c) <= 'i') \
53137                      || ('j' <= (c) && (c) <= 'r') \
53138                      || ('s' <= (c) && (c) <= 'z'))
53139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
53140 #endif
53141
53142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
53143 int
53144 main ()
53145 {
53146   int i;
53147   for (i = 0; i < 256; i++)
53148     if (XOR (islower (i), ISLOWER (i))
53149         || toupper (i) != TOUPPER (i))
53150       return 2;
53151   return 0;
53152 }
53153 _ACEOF
53154 rm -f conftest$ac_exeext
53155 if { (ac_try="$ac_link"
53156 case "(($ac_try" in
53157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53158   *) ac_try_echo=$ac_try;;
53159 esac
53160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53161 $as_echo "$ac_try_echo") >&5
53162   (eval "$ac_link") 2>&5
53163   ac_status=$?
53164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53166   { (case "(($ac_try" in
53167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53168   *) ac_try_echo=$ac_try;;
53169 esac
53170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53171 $as_echo "$ac_try_echo") >&5
53172   (eval "$ac_try") 2>&5
53173   ac_status=$?
53174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53175   (exit $ac_status); }; }; then
53176   :
53177 else
53178   $as_echo "$as_me: program exited with status $ac_status" >&5
53179 $as_echo "$as_me: failed program was:" >&5
53180 sed 's/^/| /' conftest.$ac_ext >&5
53181
53182 ( exit $ac_status )
53183 ac_cv_header_stdc=no
53184 fi
53185 rm -rf conftest.dSYM
53186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53187 fi
53188
53189
53190 fi
53191 fi
53192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
53193 $as_echo "$ac_cv_header_stdc" >&6; }
53194 if test $ac_cv_header_stdc = yes; then
53195
53196 cat >>confdefs.h <<\_ACEOF
53197 #define STDC_HEADERS 1
53198 _ACEOF
53199
53200 fi
53201
53202 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
53203 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
53204 if test "${ac_cv_header_time+set}" = set; then
53205   $as_echo_n "(cached) " >&6
53206 else
53207   cat >conftest.$ac_ext <<_ACEOF
53208 /* confdefs.h.  */
53209 _ACEOF
53210 cat confdefs.h >>conftest.$ac_ext
53211 cat >>conftest.$ac_ext <<_ACEOF
53212 /* end confdefs.h.  */
53213 #include <sys/types.h>
53214 #include <sys/time.h>
53215 #include <time.h>
53216
53217 int
53218 main ()
53219 {
53220 if ((struct tm *) 0)
53221 return 0;
53222   ;
53223   return 0;
53224 }
53225 _ACEOF
53226 rm -f conftest.$ac_objext
53227 if { (ac_try="$ac_compile"
53228 case "(($ac_try" in
53229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53230   *) ac_try_echo=$ac_try;;
53231 esac
53232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53233 $as_echo "$ac_try_echo") >&5
53234   (eval "$ac_compile") 2>conftest.er1
53235   ac_status=$?
53236   grep -v '^ *+' conftest.er1 >conftest.err
53237   rm -f conftest.er1
53238   cat conftest.err >&5
53239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53240   (exit $ac_status); } && {
53241          test -z "$ac_c_werror_flag" ||
53242          test ! -s conftest.err
53243        } && test -s conftest.$ac_objext; then
53244   ac_cv_header_time=yes
53245 else
53246   $as_echo "$as_me: failed program was:" >&5
53247 sed 's/^/| /' conftest.$ac_ext >&5
53248
53249         ac_cv_header_time=no
53250 fi
53251
53252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53253 fi
53254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
53255 $as_echo "$ac_cv_header_time" >&6; }
53256 if test $ac_cv_header_time = yes; then
53257
53258 cat >>confdefs.h <<\_ACEOF
53259 #define TIME_WITH_SYS_TIME 1
53260 _ACEOF
53261
53262 fi
53263
53264
53265
53266
53267
53268
53269
53270
53271
53272
53273
53274
53275
53276
53277
53278
53279
53280
53281
53282
53283
53284
53285
53286
53287
53288
53289 for ac_header in grp.h \
53290         libc.h \
53291         libgen.h \
53292         limits.h \
53293         math.h \
53294         netinet/in.h \
53295         regex.h \
53296         stdarg.h \
53297         stdlib.h \
53298         strings.h \
53299         rpc/rpc.h \
53300         sys/file.h \
53301         sys/ioctl.h \
53302         sys/ipc.h \
53303         sys/mntent.h \
53304         sys/param.h \
53305         sys/select.h \
53306         sys/stat.h \
53307         sys/shm.h \
53308         sys/time.h \
53309         sys/types.h \
53310         sys/uio.h \
53311         syslog.h \
53312         time.h \
53313         unistd.h \
53314
53315 do
53316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53318   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53319 $as_echo_n "checking for $ac_header... " >&6; }
53320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53321   $as_echo_n "(cached) " >&6
53322 fi
53323 ac_res=`eval 'as_val=${'$as_ac_Header'}
53324                  $as_echo "$as_val"'`
53325                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53326 $as_echo "$ac_res" >&6; }
53327 else
53328   # Is the header compilable?
53329 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53330 $as_echo_n "checking $ac_header usability... " >&6; }
53331 cat >conftest.$ac_ext <<_ACEOF
53332 /* confdefs.h.  */
53333 _ACEOF
53334 cat confdefs.h >>conftest.$ac_ext
53335 cat >>conftest.$ac_ext <<_ACEOF
53336 /* end confdefs.h.  */
53337 $ac_includes_default
53338 #include <$ac_header>
53339 _ACEOF
53340 rm -f conftest.$ac_objext
53341 if { (ac_try="$ac_compile"
53342 case "(($ac_try" in
53343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53344   *) ac_try_echo=$ac_try;;
53345 esac
53346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53347 $as_echo "$ac_try_echo") >&5
53348   (eval "$ac_compile") 2>conftest.er1
53349   ac_status=$?
53350   grep -v '^ *+' conftest.er1 >conftest.err
53351   rm -f conftest.er1
53352   cat conftest.err >&5
53353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53354   (exit $ac_status); } && {
53355          test -z "$ac_c_werror_flag" ||
53356          test ! -s conftest.err
53357        } && test -s conftest.$ac_objext; then
53358   ac_header_compiler=yes
53359 else
53360   $as_echo "$as_me: failed program was:" >&5
53361 sed 's/^/| /' conftest.$ac_ext >&5
53362
53363         ac_header_compiler=no
53364 fi
53365
53366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53367 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53368 $as_echo "$ac_header_compiler" >&6; }
53369
53370 # Is the header present?
53371 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53372 $as_echo_n "checking $ac_header presence... " >&6; }
53373 cat >conftest.$ac_ext <<_ACEOF
53374 /* confdefs.h.  */
53375 _ACEOF
53376 cat confdefs.h >>conftest.$ac_ext
53377 cat >>conftest.$ac_ext <<_ACEOF
53378 /* end confdefs.h.  */
53379 #include <$ac_header>
53380 _ACEOF
53381 if { (ac_try="$ac_cpp conftest.$ac_ext"
53382 case "(($ac_try" in
53383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53384   *) ac_try_echo=$ac_try;;
53385 esac
53386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53387 $as_echo "$ac_try_echo") >&5
53388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53389   ac_status=$?
53390   grep -v '^ *+' conftest.er1 >conftest.err
53391   rm -f conftest.er1
53392   cat conftest.err >&5
53393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53394   (exit $ac_status); } >/dev/null && {
53395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53396          test ! -s conftest.err
53397        }; then
53398   ac_header_preproc=yes
53399 else
53400   $as_echo "$as_me: failed program was:" >&5
53401 sed 's/^/| /' conftest.$ac_ext >&5
53402
53403   ac_header_preproc=no
53404 fi
53405
53406 rm -f conftest.err conftest.$ac_ext
53407 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53408 $as_echo "$ac_header_preproc" >&6; }
53409
53410 # So?  What about this header?
53411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53412   yes:no: )
53413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53414 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53415     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53417     ac_header_preproc=yes
53418     ;;
53419   no:yes:* )
53420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53421 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53423 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53425 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53427 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53430     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53431 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53432
53433     ;;
53434 esac
53435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53436 $as_echo_n "checking for $ac_header... " >&6; }
53437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53438   $as_echo_n "(cached) " >&6
53439 else
53440   eval "$as_ac_Header=\$ac_header_preproc"
53441 fi
53442 ac_res=`eval 'as_val=${'$as_ac_Header'}
53443                  $as_echo "$as_val"'`
53444                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53445 $as_echo "$ac_res" >&6; }
53446
53447 fi
53448 as_val=`eval 'as_val=${'$as_ac_Header'}
53449                  $as_echo "$as_val"'`
53450    if test "x$as_val" = x""yes; then
53451   cat >>confdefs.h <<_ACEOF
53452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53453 _ACEOF
53454
53455 fi
53456
53457 done
53458
53459
53460 cat >>confdefs.h <<\_ACEOF
53461 #define HAVE_AMANDA_H 1
53462 _ACEOF
53463
53464
53465 cat >>confdefs.h <<\_ACEOF
53466 #define HAVE_UTIL_H 1
53467 _ACEOF
53468
53469
53470
53471 cat >>confdefs.h <<\_ACEOF
53472 #define USE_GETTEXT 1
53473 _ACEOF
53474
53475
53476 #
53477 # Types
53478 #
53479 # The cast to long int works around a bug in the HP C Compiler
53480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53482 # This bug is HP SR number 8606223364.
53483 { $as_echo "$as_me:$LINENO: checking size of int" >&5
53484 $as_echo_n "checking size of int... " >&6; }
53485 if test "${ac_cv_sizeof_int+set}" = set; then
53486   $as_echo_n "(cached) " >&6
53487 else
53488   if test "$cross_compiling" = yes; then
53489   # Depending upon the size, compute the lo and hi bounds.
53490 cat >conftest.$ac_ext <<_ACEOF
53491 /* confdefs.h.  */
53492 _ACEOF
53493 cat confdefs.h >>conftest.$ac_ext
53494 cat >>conftest.$ac_ext <<_ACEOF
53495 /* end confdefs.h.  */
53496 $ac_includes_default
53497 int
53498 main ()
53499 {
53500 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
53501 test_array [0] = 0
53502
53503   ;
53504   return 0;
53505 }
53506 _ACEOF
53507 rm -f conftest.$ac_objext
53508 if { (ac_try="$ac_compile"
53509 case "(($ac_try" in
53510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53511   *) ac_try_echo=$ac_try;;
53512 esac
53513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53514 $as_echo "$ac_try_echo") >&5
53515   (eval "$ac_compile") 2>conftest.er1
53516   ac_status=$?
53517   grep -v '^ *+' conftest.er1 >conftest.err
53518   rm -f conftest.er1
53519   cat conftest.err >&5
53520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53521   (exit $ac_status); } && {
53522          test -z "$ac_c_werror_flag" ||
53523          test ! -s conftest.err
53524        } && test -s conftest.$ac_objext; then
53525   ac_lo=0 ac_mid=0
53526   while :; do
53527     cat >conftest.$ac_ext <<_ACEOF
53528 /* confdefs.h.  */
53529 _ACEOF
53530 cat confdefs.h >>conftest.$ac_ext
53531 cat >>conftest.$ac_ext <<_ACEOF
53532 /* end confdefs.h.  */
53533 $ac_includes_default
53534 int
53535 main ()
53536 {
53537 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
53538 test_array [0] = 0
53539
53540   ;
53541   return 0;
53542 }
53543 _ACEOF
53544 rm -f conftest.$ac_objext
53545 if { (ac_try="$ac_compile"
53546 case "(($ac_try" in
53547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53548   *) ac_try_echo=$ac_try;;
53549 esac
53550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53551 $as_echo "$ac_try_echo") >&5
53552   (eval "$ac_compile") 2>conftest.er1
53553   ac_status=$?
53554   grep -v '^ *+' conftest.er1 >conftest.err
53555   rm -f conftest.er1
53556   cat conftest.err >&5
53557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53558   (exit $ac_status); } && {
53559          test -z "$ac_c_werror_flag" ||
53560          test ! -s conftest.err
53561        } && test -s conftest.$ac_objext; then
53562   ac_hi=$ac_mid; break
53563 else
53564   $as_echo "$as_me: failed program was:" >&5
53565 sed 's/^/| /' conftest.$ac_ext >&5
53566
53567         ac_lo=`expr $ac_mid + 1`
53568                         if test $ac_lo -le $ac_mid; then
53569                           ac_lo= ac_hi=
53570                           break
53571                         fi
53572                         ac_mid=`expr 2 '*' $ac_mid + 1`
53573 fi
53574
53575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53576   done
53577 else
53578   $as_echo "$as_me: failed program was:" >&5
53579 sed 's/^/| /' conftest.$ac_ext >&5
53580
53581         cat >conftest.$ac_ext <<_ACEOF
53582 /* confdefs.h.  */
53583 _ACEOF
53584 cat confdefs.h >>conftest.$ac_ext
53585 cat >>conftest.$ac_ext <<_ACEOF
53586 /* end confdefs.h.  */
53587 $ac_includes_default
53588 int
53589 main ()
53590 {
53591 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
53592 test_array [0] = 0
53593
53594   ;
53595   return 0;
53596 }
53597 _ACEOF
53598 rm -f conftest.$ac_objext
53599 if { (ac_try="$ac_compile"
53600 case "(($ac_try" in
53601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53602   *) ac_try_echo=$ac_try;;
53603 esac
53604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53605 $as_echo "$ac_try_echo") >&5
53606   (eval "$ac_compile") 2>conftest.er1
53607   ac_status=$?
53608   grep -v '^ *+' conftest.er1 >conftest.err
53609   rm -f conftest.er1
53610   cat conftest.err >&5
53611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53612   (exit $ac_status); } && {
53613          test -z "$ac_c_werror_flag" ||
53614          test ! -s conftest.err
53615        } && test -s conftest.$ac_objext; then
53616   ac_hi=-1 ac_mid=-1
53617   while :; do
53618     cat >conftest.$ac_ext <<_ACEOF
53619 /* confdefs.h.  */
53620 _ACEOF
53621 cat confdefs.h >>conftest.$ac_ext
53622 cat >>conftest.$ac_ext <<_ACEOF
53623 /* end confdefs.h.  */
53624 $ac_includes_default
53625 int
53626 main ()
53627 {
53628 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
53629 test_array [0] = 0
53630
53631   ;
53632   return 0;
53633 }
53634 _ACEOF
53635 rm -f conftest.$ac_objext
53636 if { (ac_try="$ac_compile"
53637 case "(($ac_try" in
53638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53639   *) ac_try_echo=$ac_try;;
53640 esac
53641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53642 $as_echo "$ac_try_echo") >&5
53643   (eval "$ac_compile") 2>conftest.er1
53644   ac_status=$?
53645   grep -v '^ *+' conftest.er1 >conftest.err
53646   rm -f conftest.er1
53647   cat conftest.err >&5
53648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53649   (exit $ac_status); } && {
53650          test -z "$ac_c_werror_flag" ||
53651          test ! -s conftest.err
53652        } && test -s conftest.$ac_objext; then
53653   ac_lo=$ac_mid; break
53654 else
53655   $as_echo "$as_me: failed program was:" >&5
53656 sed 's/^/| /' conftest.$ac_ext >&5
53657
53658         ac_hi=`expr '(' $ac_mid ')' - 1`
53659                         if test $ac_mid -le $ac_hi; then
53660                           ac_lo= ac_hi=
53661                           break
53662                         fi
53663                         ac_mid=`expr 2 '*' $ac_mid`
53664 fi
53665
53666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53667   done
53668 else
53669   $as_echo "$as_me: failed program was:" >&5
53670 sed 's/^/| /' conftest.$ac_ext >&5
53671
53672         ac_lo= ac_hi=
53673 fi
53674
53675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53676 fi
53677
53678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53679 # Binary search between lo and hi bounds.
53680 while test "x$ac_lo" != "x$ac_hi"; do
53681   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53682   cat >conftest.$ac_ext <<_ACEOF
53683 /* confdefs.h.  */
53684 _ACEOF
53685 cat confdefs.h >>conftest.$ac_ext
53686 cat >>conftest.$ac_ext <<_ACEOF
53687 /* end confdefs.h.  */
53688 $ac_includes_default
53689 int
53690 main ()
53691 {
53692 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
53693 test_array [0] = 0
53694
53695   ;
53696   return 0;
53697 }
53698 _ACEOF
53699 rm -f conftest.$ac_objext
53700 if { (ac_try="$ac_compile"
53701 case "(($ac_try" in
53702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53703   *) ac_try_echo=$ac_try;;
53704 esac
53705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53706 $as_echo "$ac_try_echo") >&5
53707   (eval "$ac_compile") 2>conftest.er1
53708   ac_status=$?
53709   grep -v '^ *+' conftest.er1 >conftest.err
53710   rm -f conftest.er1
53711   cat conftest.err >&5
53712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53713   (exit $ac_status); } && {
53714          test -z "$ac_c_werror_flag" ||
53715          test ! -s conftest.err
53716        } && test -s conftest.$ac_objext; then
53717   ac_hi=$ac_mid
53718 else
53719   $as_echo "$as_me: failed program was:" >&5
53720 sed 's/^/| /' conftest.$ac_ext >&5
53721
53722         ac_lo=`expr '(' $ac_mid ')' + 1`
53723 fi
53724
53725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53726 done
53727 case $ac_lo in
53728 ?*) ac_cv_sizeof_int=$ac_lo;;
53729 '') if test "$ac_cv_type_int" = yes; then
53730      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53732 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
53733 See \`config.log' for more details." >&5
53734 $as_echo "$as_me: error: cannot compute sizeof (int)
53735 See \`config.log' for more details." >&2;}
53736    { (exit 77); exit 77; }; }; }
53737    else
53738      ac_cv_sizeof_int=0
53739    fi ;;
53740 esac
53741 else
53742   cat >conftest.$ac_ext <<_ACEOF
53743 /* confdefs.h.  */
53744 _ACEOF
53745 cat confdefs.h >>conftest.$ac_ext
53746 cat >>conftest.$ac_ext <<_ACEOF
53747 /* end confdefs.h.  */
53748 $ac_includes_default
53749 static long int longval () { return (long int) (sizeof (int)); }
53750 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
53751 #include <stdio.h>
53752 #include <stdlib.h>
53753 int
53754 main ()
53755 {
53756
53757   FILE *f = fopen ("conftest.val", "w");
53758   if (! f)
53759     return 1;
53760   if (((long int) (sizeof (int))) < 0)
53761     {
53762       long int i = longval ();
53763       if (i != ((long int) (sizeof (int))))
53764         return 1;
53765       fprintf (f, "%ld", i);
53766     }
53767   else
53768     {
53769       unsigned long int i = ulongval ();
53770       if (i != ((long int) (sizeof (int))))
53771         return 1;
53772       fprintf (f, "%lu", i);
53773     }
53774   /* Do not output a trailing newline, as this causes \r\n confusion
53775      on some platforms.  */
53776   return ferror (f) || fclose (f) != 0;
53777
53778   ;
53779   return 0;
53780 }
53781 _ACEOF
53782 rm -f conftest$ac_exeext
53783 if { (ac_try="$ac_link"
53784 case "(($ac_try" in
53785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53786   *) ac_try_echo=$ac_try;;
53787 esac
53788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53789 $as_echo "$ac_try_echo") >&5
53790   (eval "$ac_link") 2>&5
53791   ac_status=$?
53792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53794   { (case "(($ac_try" in
53795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53796   *) ac_try_echo=$ac_try;;
53797 esac
53798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53799 $as_echo "$ac_try_echo") >&5
53800   (eval "$ac_try") 2>&5
53801   ac_status=$?
53802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53803   (exit $ac_status); }; }; then
53804   ac_cv_sizeof_int=`cat conftest.val`
53805 else
53806   $as_echo "$as_me: program exited with status $ac_status" >&5
53807 $as_echo "$as_me: failed program was:" >&5
53808 sed 's/^/| /' conftest.$ac_ext >&5
53809
53810 ( exit $ac_status )
53811 if test "$ac_cv_type_int" = yes; then
53812      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
53813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53814 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
53815 See \`config.log' for more details." >&5
53816 $as_echo "$as_me: error: cannot compute sizeof (int)
53817 See \`config.log' for more details." >&2;}
53818    { (exit 77); exit 77; }; }; }
53819    else
53820      ac_cv_sizeof_int=0
53821    fi
53822 fi
53823 rm -rf conftest.dSYM
53824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53825 fi
53826 rm -f conftest.val
53827 fi
53828 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
53829 $as_echo "$ac_cv_sizeof_int" >&6; }
53830
53831
53832
53833 cat >>confdefs.h <<_ACEOF
53834 #define SIZEOF_INT $ac_cv_sizeof_int
53835 _ACEOF
53836
53837
53838 # The cast to long int works around a bug in the HP C Compiler
53839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
53840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
53841 # This bug is HP SR number 8606223364.
53842 { $as_echo "$as_me:$LINENO: checking size of long" >&5
53843 $as_echo_n "checking size of long... " >&6; }
53844 if test "${ac_cv_sizeof_long+set}" = set; then
53845   $as_echo_n "(cached) " >&6
53846 else
53847   if test "$cross_compiling" = yes; then
53848   # Depending upon the size, compute the lo and hi bounds.
53849 cat >conftest.$ac_ext <<_ACEOF
53850 /* confdefs.h.  */
53851 _ACEOF
53852 cat confdefs.h >>conftest.$ac_ext
53853 cat >>conftest.$ac_ext <<_ACEOF
53854 /* end confdefs.h.  */
53855 $ac_includes_default
53856 int
53857 main ()
53858 {
53859 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
53860 test_array [0] = 0
53861
53862   ;
53863   return 0;
53864 }
53865 _ACEOF
53866 rm -f conftest.$ac_objext
53867 if { (ac_try="$ac_compile"
53868 case "(($ac_try" in
53869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53870   *) ac_try_echo=$ac_try;;
53871 esac
53872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53873 $as_echo "$ac_try_echo") >&5
53874   (eval "$ac_compile") 2>conftest.er1
53875   ac_status=$?
53876   grep -v '^ *+' conftest.er1 >conftest.err
53877   rm -f conftest.er1
53878   cat conftest.err >&5
53879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53880   (exit $ac_status); } && {
53881          test -z "$ac_c_werror_flag" ||
53882          test ! -s conftest.err
53883        } && test -s conftest.$ac_objext; then
53884   ac_lo=0 ac_mid=0
53885   while :; do
53886     cat >conftest.$ac_ext <<_ACEOF
53887 /* confdefs.h.  */
53888 _ACEOF
53889 cat confdefs.h >>conftest.$ac_ext
53890 cat >>conftest.$ac_ext <<_ACEOF
53891 /* end confdefs.h.  */
53892 $ac_includes_default
53893 int
53894 main ()
53895 {
53896 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
53897 test_array [0] = 0
53898
53899   ;
53900   return 0;
53901 }
53902 _ACEOF
53903 rm -f conftest.$ac_objext
53904 if { (ac_try="$ac_compile"
53905 case "(($ac_try" in
53906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53907   *) ac_try_echo=$ac_try;;
53908 esac
53909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53910 $as_echo "$ac_try_echo") >&5
53911   (eval "$ac_compile") 2>conftest.er1
53912   ac_status=$?
53913   grep -v '^ *+' conftest.er1 >conftest.err
53914   rm -f conftest.er1
53915   cat conftest.err >&5
53916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53917   (exit $ac_status); } && {
53918          test -z "$ac_c_werror_flag" ||
53919          test ! -s conftest.err
53920        } && test -s conftest.$ac_objext; then
53921   ac_hi=$ac_mid; break
53922 else
53923   $as_echo "$as_me: failed program was:" >&5
53924 sed 's/^/| /' conftest.$ac_ext >&5
53925
53926         ac_lo=`expr $ac_mid + 1`
53927                         if test $ac_lo -le $ac_mid; then
53928                           ac_lo= ac_hi=
53929                           break
53930                         fi
53931                         ac_mid=`expr 2 '*' $ac_mid + 1`
53932 fi
53933
53934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53935   done
53936 else
53937   $as_echo "$as_me: failed program was:" >&5
53938 sed 's/^/| /' conftest.$ac_ext >&5
53939
53940         cat >conftest.$ac_ext <<_ACEOF
53941 /* confdefs.h.  */
53942 _ACEOF
53943 cat confdefs.h >>conftest.$ac_ext
53944 cat >>conftest.$ac_ext <<_ACEOF
53945 /* end confdefs.h.  */
53946 $ac_includes_default
53947 int
53948 main ()
53949 {
53950 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
53951 test_array [0] = 0
53952
53953   ;
53954   return 0;
53955 }
53956 _ACEOF
53957 rm -f conftest.$ac_objext
53958 if { (ac_try="$ac_compile"
53959 case "(($ac_try" in
53960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53961   *) ac_try_echo=$ac_try;;
53962 esac
53963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53964 $as_echo "$ac_try_echo") >&5
53965   (eval "$ac_compile") 2>conftest.er1
53966   ac_status=$?
53967   grep -v '^ *+' conftest.er1 >conftest.err
53968   rm -f conftest.er1
53969   cat conftest.err >&5
53970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53971   (exit $ac_status); } && {
53972          test -z "$ac_c_werror_flag" ||
53973          test ! -s conftest.err
53974        } && test -s conftest.$ac_objext; then
53975   ac_hi=-1 ac_mid=-1
53976   while :; do
53977     cat >conftest.$ac_ext <<_ACEOF
53978 /* confdefs.h.  */
53979 _ACEOF
53980 cat confdefs.h >>conftest.$ac_ext
53981 cat >>conftest.$ac_ext <<_ACEOF
53982 /* end confdefs.h.  */
53983 $ac_includes_default
53984 int
53985 main ()
53986 {
53987 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
53988 test_array [0] = 0
53989
53990   ;
53991   return 0;
53992 }
53993 _ACEOF
53994 rm -f conftest.$ac_objext
53995 if { (ac_try="$ac_compile"
53996 case "(($ac_try" in
53997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53998   *) ac_try_echo=$ac_try;;
53999 esac
54000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54001 $as_echo "$ac_try_echo") >&5
54002   (eval "$ac_compile") 2>conftest.er1
54003   ac_status=$?
54004   grep -v '^ *+' conftest.er1 >conftest.err
54005   rm -f conftest.er1
54006   cat conftest.err >&5
54007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54008   (exit $ac_status); } && {
54009          test -z "$ac_c_werror_flag" ||
54010          test ! -s conftest.err
54011        } && test -s conftest.$ac_objext; then
54012   ac_lo=$ac_mid; break
54013 else
54014   $as_echo "$as_me: failed program was:" >&5
54015 sed 's/^/| /' conftest.$ac_ext >&5
54016
54017         ac_hi=`expr '(' $ac_mid ')' - 1`
54018                         if test $ac_mid -le $ac_hi; then
54019                           ac_lo= ac_hi=
54020                           break
54021                         fi
54022                         ac_mid=`expr 2 '*' $ac_mid`
54023 fi
54024
54025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54026   done
54027 else
54028   $as_echo "$as_me: failed program was:" >&5
54029 sed 's/^/| /' conftest.$ac_ext >&5
54030
54031         ac_lo= ac_hi=
54032 fi
54033
54034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54035 fi
54036
54037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54038 # Binary search between lo and hi bounds.
54039 while test "x$ac_lo" != "x$ac_hi"; do
54040   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54041   cat >conftest.$ac_ext <<_ACEOF
54042 /* confdefs.h.  */
54043 _ACEOF
54044 cat confdefs.h >>conftest.$ac_ext
54045 cat >>conftest.$ac_ext <<_ACEOF
54046 /* end confdefs.h.  */
54047 $ac_includes_default
54048 int
54049 main ()
54050 {
54051 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
54052 test_array [0] = 0
54053
54054   ;
54055   return 0;
54056 }
54057 _ACEOF
54058 rm -f conftest.$ac_objext
54059 if { (ac_try="$ac_compile"
54060 case "(($ac_try" in
54061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54062   *) ac_try_echo=$ac_try;;
54063 esac
54064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54065 $as_echo "$ac_try_echo") >&5
54066   (eval "$ac_compile") 2>conftest.er1
54067   ac_status=$?
54068   grep -v '^ *+' conftest.er1 >conftest.err
54069   rm -f conftest.er1
54070   cat conftest.err >&5
54071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54072   (exit $ac_status); } && {
54073          test -z "$ac_c_werror_flag" ||
54074          test ! -s conftest.err
54075        } && test -s conftest.$ac_objext; then
54076   ac_hi=$ac_mid
54077 else
54078   $as_echo "$as_me: failed program was:" >&5
54079 sed 's/^/| /' conftest.$ac_ext >&5
54080
54081         ac_lo=`expr '(' $ac_mid ')' + 1`
54082 fi
54083
54084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54085 done
54086 case $ac_lo in
54087 ?*) ac_cv_sizeof_long=$ac_lo;;
54088 '') if test "$ac_cv_type_long" = yes; then
54089      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54091 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
54092 See \`config.log' for more details." >&5
54093 $as_echo "$as_me: error: cannot compute sizeof (long)
54094 See \`config.log' for more details." >&2;}
54095    { (exit 77); exit 77; }; }; }
54096    else
54097      ac_cv_sizeof_long=0
54098    fi ;;
54099 esac
54100 else
54101   cat >conftest.$ac_ext <<_ACEOF
54102 /* confdefs.h.  */
54103 _ACEOF
54104 cat confdefs.h >>conftest.$ac_ext
54105 cat >>conftest.$ac_ext <<_ACEOF
54106 /* end confdefs.h.  */
54107 $ac_includes_default
54108 static long int longval () { return (long int) (sizeof (long)); }
54109 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
54110 #include <stdio.h>
54111 #include <stdlib.h>
54112 int
54113 main ()
54114 {
54115
54116   FILE *f = fopen ("conftest.val", "w");
54117   if (! f)
54118     return 1;
54119   if (((long int) (sizeof (long))) < 0)
54120     {
54121       long int i = longval ();
54122       if (i != ((long int) (sizeof (long))))
54123         return 1;
54124       fprintf (f, "%ld", i);
54125     }
54126   else
54127     {
54128       unsigned long int i = ulongval ();
54129       if (i != ((long int) (sizeof (long))))
54130         return 1;
54131       fprintf (f, "%lu", i);
54132     }
54133   /* Do not output a trailing newline, as this causes \r\n confusion
54134      on some platforms.  */
54135   return ferror (f) || fclose (f) != 0;
54136
54137   ;
54138   return 0;
54139 }
54140 _ACEOF
54141 rm -f conftest$ac_exeext
54142 if { (ac_try="$ac_link"
54143 case "(($ac_try" in
54144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54145   *) ac_try_echo=$ac_try;;
54146 esac
54147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54148 $as_echo "$ac_try_echo") >&5
54149   (eval "$ac_link") 2>&5
54150   ac_status=$?
54151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54153   { (case "(($ac_try" in
54154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54155   *) ac_try_echo=$ac_try;;
54156 esac
54157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54158 $as_echo "$ac_try_echo") >&5
54159   (eval "$ac_try") 2>&5
54160   ac_status=$?
54161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54162   (exit $ac_status); }; }; then
54163   ac_cv_sizeof_long=`cat conftest.val`
54164 else
54165   $as_echo "$as_me: program exited with status $ac_status" >&5
54166 $as_echo "$as_me: failed program was:" >&5
54167 sed 's/^/| /' conftest.$ac_ext >&5
54168
54169 ( exit $ac_status )
54170 if test "$ac_cv_type_long" = yes; then
54171      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54173 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
54174 See \`config.log' for more details." >&5
54175 $as_echo "$as_me: error: cannot compute sizeof (long)
54176 See \`config.log' for more details." >&2;}
54177    { (exit 77); exit 77; }; }; }
54178    else
54179      ac_cv_sizeof_long=0
54180    fi
54181 fi
54182 rm -rf conftest.dSYM
54183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54184 fi
54185 rm -f conftest.val
54186 fi
54187 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
54188 $as_echo "$ac_cv_sizeof_long" >&6; }
54189
54190
54191
54192 cat >>confdefs.h <<_ACEOF
54193 #define SIZEOF_LONG $ac_cv_sizeof_long
54194 _ACEOF
54195
54196
54197 # The cast to long int works around a bug in the HP C Compiler
54198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54200 # This bug is HP SR number 8606223364.
54201 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
54202 $as_echo_n "checking size of long long... " >&6; }
54203 if test "${ac_cv_sizeof_long_long+set}" = set; then
54204   $as_echo_n "(cached) " >&6
54205 else
54206   if test "$cross_compiling" = yes; then
54207   # Depending upon the size, compute the lo and hi bounds.
54208 cat >conftest.$ac_ext <<_ACEOF
54209 /* confdefs.h.  */
54210 _ACEOF
54211 cat confdefs.h >>conftest.$ac_ext
54212 cat >>conftest.$ac_ext <<_ACEOF
54213 /* end confdefs.h.  */
54214 $ac_includes_default
54215 int
54216 main ()
54217 {
54218 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
54219 test_array [0] = 0
54220
54221   ;
54222   return 0;
54223 }
54224 _ACEOF
54225 rm -f conftest.$ac_objext
54226 if { (ac_try="$ac_compile"
54227 case "(($ac_try" in
54228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54229   *) ac_try_echo=$ac_try;;
54230 esac
54231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54232 $as_echo "$ac_try_echo") >&5
54233   (eval "$ac_compile") 2>conftest.er1
54234   ac_status=$?
54235   grep -v '^ *+' conftest.er1 >conftest.err
54236   rm -f conftest.er1
54237   cat conftest.err >&5
54238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54239   (exit $ac_status); } && {
54240          test -z "$ac_c_werror_flag" ||
54241          test ! -s conftest.err
54242        } && test -s conftest.$ac_objext; then
54243   ac_lo=0 ac_mid=0
54244   while :; do
54245     cat >conftest.$ac_ext <<_ACEOF
54246 /* confdefs.h.  */
54247 _ACEOF
54248 cat confdefs.h >>conftest.$ac_ext
54249 cat >>conftest.$ac_ext <<_ACEOF
54250 /* end confdefs.h.  */
54251 $ac_includes_default
54252 int
54253 main ()
54254 {
54255 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
54256 test_array [0] = 0
54257
54258   ;
54259   return 0;
54260 }
54261 _ACEOF
54262 rm -f conftest.$ac_objext
54263 if { (ac_try="$ac_compile"
54264 case "(($ac_try" in
54265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54266   *) ac_try_echo=$ac_try;;
54267 esac
54268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54269 $as_echo "$ac_try_echo") >&5
54270   (eval "$ac_compile") 2>conftest.er1
54271   ac_status=$?
54272   grep -v '^ *+' conftest.er1 >conftest.err
54273   rm -f conftest.er1
54274   cat conftest.err >&5
54275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54276   (exit $ac_status); } && {
54277          test -z "$ac_c_werror_flag" ||
54278          test ! -s conftest.err
54279        } && test -s conftest.$ac_objext; then
54280   ac_hi=$ac_mid; break
54281 else
54282   $as_echo "$as_me: failed program was:" >&5
54283 sed 's/^/| /' conftest.$ac_ext >&5
54284
54285         ac_lo=`expr $ac_mid + 1`
54286                         if test $ac_lo -le $ac_mid; then
54287                           ac_lo= ac_hi=
54288                           break
54289                         fi
54290                         ac_mid=`expr 2 '*' $ac_mid + 1`
54291 fi
54292
54293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54294   done
54295 else
54296   $as_echo "$as_me: failed program was:" >&5
54297 sed 's/^/| /' conftest.$ac_ext >&5
54298
54299         cat >conftest.$ac_ext <<_ACEOF
54300 /* confdefs.h.  */
54301 _ACEOF
54302 cat confdefs.h >>conftest.$ac_ext
54303 cat >>conftest.$ac_ext <<_ACEOF
54304 /* end confdefs.h.  */
54305 $ac_includes_default
54306 int
54307 main ()
54308 {
54309 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
54310 test_array [0] = 0
54311
54312   ;
54313   return 0;
54314 }
54315 _ACEOF
54316 rm -f conftest.$ac_objext
54317 if { (ac_try="$ac_compile"
54318 case "(($ac_try" in
54319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54320   *) ac_try_echo=$ac_try;;
54321 esac
54322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54323 $as_echo "$ac_try_echo") >&5
54324   (eval "$ac_compile") 2>conftest.er1
54325   ac_status=$?
54326   grep -v '^ *+' conftest.er1 >conftest.err
54327   rm -f conftest.er1
54328   cat conftest.err >&5
54329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54330   (exit $ac_status); } && {
54331          test -z "$ac_c_werror_flag" ||
54332          test ! -s conftest.err
54333        } && test -s conftest.$ac_objext; then
54334   ac_hi=-1 ac_mid=-1
54335   while :; do
54336     cat >conftest.$ac_ext <<_ACEOF
54337 /* confdefs.h.  */
54338 _ACEOF
54339 cat confdefs.h >>conftest.$ac_ext
54340 cat >>conftest.$ac_ext <<_ACEOF
54341 /* end confdefs.h.  */
54342 $ac_includes_default
54343 int
54344 main ()
54345 {
54346 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
54347 test_array [0] = 0
54348
54349   ;
54350   return 0;
54351 }
54352 _ACEOF
54353 rm -f conftest.$ac_objext
54354 if { (ac_try="$ac_compile"
54355 case "(($ac_try" in
54356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54357   *) ac_try_echo=$ac_try;;
54358 esac
54359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54360 $as_echo "$ac_try_echo") >&5
54361   (eval "$ac_compile") 2>conftest.er1
54362   ac_status=$?
54363   grep -v '^ *+' conftest.er1 >conftest.err
54364   rm -f conftest.er1
54365   cat conftest.err >&5
54366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54367   (exit $ac_status); } && {
54368          test -z "$ac_c_werror_flag" ||
54369          test ! -s conftest.err
54370        } && test -s conftest.$ac_objext; then
54371   ac_lo=$ac_mid; break
54372 else
54373   $as_echo "$as_me: failed program was:" >&5
54374 sed 's/^/| /' conftest.$ac_ext >&5
54375
54376         ac_hi=`expr '(' $ac_mid ')' - 1`
54377                         if test $ac_mid -le $ac_hi; then
54378                           ac_lo= ac_hi=
54379                           break
54380                         fi
54381                         ac_mid=`expr 2 '*' $ac_mid`
54382 fi
54383
54384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54385   done
54386 else
54387   $as_echo "$as_me: failed program was:" >&5
54388 sed 's/^/| /' conftest.$ac_ext >&5
54389
54390         ac_lo= ac_hi=
54391 fi
54392
54393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54394 fi
54395
54396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54397 # Binary search between lo and hi bounds.
54398 while test "x$ac_lo" != "x$ac_hi"; do
54399   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54400   cat >conftest.$ac_ext <<_ACEOF
54401 /* confdefs.h.  */
54402 _ACEOF
54403 cat confdefs.h >>conftest.$ac_ext
54404 cat >>conftest.$ac_ext <<_ACEOF
54405 /* end confdefs.h.  */
54406 $ac_includes_default
54407 int
54408 main ()
54409 {
54410 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
54411 test_array [0] = 0
54412
54413   ;
54414   return 0;
54415 }
54416 _ACEOF
54417 rm -f conftest.$ac_objext
54418 if { (ac_try="$ac_compile"
54419 case "(($ac_try" in
54420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54421   *) ac_try_echo=$ac_try;;
54422 esac
54423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54424 $as_echo "$ac_try_echo") >&5
54425   (eval "$ac_compile") 2>conftest.er1
54426   ac_status=$?
54427   grep -v '^ *+' conftest.er1 >conftest.err
54428   rm -f conftest.er1
54429   cat conftest.err >&5
54430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54431   (exit $ac_status); } && {
54432          test -z "$ac_c_werror_flag" ||
54433          test ! -s conftest.err
54434        } && test -s conftest.$ac_objext; then
54435   ac_hi=$ac_mid
54436 else
54437   $as_echo "$as_me: failed program was:" >&5
54438 sed 's/^/| /' conftest.$ac_ext >&5
54439
54440         ac_lo=`expr '(' $ac_mid ')' + 1`
54441 fi
54442
54443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54444 done
54445 case $ac_lo in
54446 ?*) ac_cv_sizeof_long_long=$ac_lo;;
54447 '') if test "$ac_cv_type_long_long" = yes; then
54448      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54450 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
54451 See \`config.log' for more details." >&5
54452 $as_echo "$as_me: error: cannot compute sizeof (long long)
54453 See \`config.log' for more details." >&2;}
54454    { (exit 77); exit 77; }; }; }
54455    else
54456      ac_cv_sizeof_long_long=0
54457    fi ;;
54458 esac
54459 else
54460   cat >conftest.$ac_ext <<_ACEOF
54461 /* confdefs.h.  */
54462 _ACEOF
54463 cat confdefs.h >>conftest.$ac_ext
54464 cat >>conftest.$ac_ext <<_ACEOF
54465 /* end confdefs.h.  */
54466 $ac_includes_default
54467 static long int longval () { return (long int) (sizeof (long long)); }
54468 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
54469 #include <stdio.h>
54470 #include <stdlib.h>
54471 int
54472 main ()
54473 {
54474
54475   FILE *f = fopen ("conftest.val", "w");
54476   if (! f)
54477     return 1;
54478   if (((long int) (sizeof (long long))) < 0)
54479     {
54480       long int i = longval ();
54481       if (i != ((long int) (sizeof (long long))))
54482         return 1;
54483       fprintf (f, "%ld", i);
54484     }
54485   else
54486     {
54487       unsigned long int i = ulongval ();
54488       if (i != ((long int) (sizeof (long long))))
54489         return 1;
54490       fprintf (f, "%lu", i);
54491     }
54492   /* Do not output a trailing newline, as this causes \r\n confusion
54493      on some platforms.  */
54494   return ferror (f) || fclose (f) != 0;
54495
54496   ;
54497   return 0;
54498 }
54499 _ACEOF
54500 rm -f conftest$ac_exeext
54501 if { (ac_try="$ac_link"
54502 case "(($ac_try" in
54503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54504   *) ac_try_echo=$ac_try;;
54505 esac
54506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54507 $as_echo "$ac_try_echo") >&5
54508   (eval "$ac_link") 2>&5
54509   ac_status=$?
54510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54512   { (case "(($ac_try" in
54513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54514   *) ac_try_echo=$ac_try;;
54515 esac
54516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54517 $as_echo "$ac_try_echo") >&5
54518   (eval "$ac_try") 2>&5
54519   ac_status=$?
54520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54521   (exit $ac_status); }; }; then
54522   ac_cv_sizeof_long_long=`cat conftest.val`
54523 else
54524   $as_echo "$as_me: program exited with status $ac_status" >&5
54525 $as_echo "$as_me: failed program was:" >&5
54526 sed 's/^/| /' conftest.$ac_ext >&5
54527
54528 ( exit $ac_status )
54529 if test "$ac_cv_type_long_long" = yes; then
54530      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54532 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
54533 See \`config.log' for more details." >&5
54534 $as_echo "$as_me: error: cannot compute sizeof (long long)
54535 See \`config.log' for more details." >&2;}
54536    { (exit 77); exit 77; }; }; }
54537    else
54538      ac_cv_sizeof_long_long=0
54539    fi
54540 fi
54541 rm -rf conftest.dSYM
54542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54543 fi
54544 rm -f conftest.val
54545 fi
54546 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
54547 $as_echo "$ac_cv_sizeof_long_long" >&6; }
54548
54549
54550
54551 cat >>confdefs.h <<_ACEOF
54552 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
54553 _ACEOF
54554
54555
54556 # The cast to long int works around a bug in the HP C Compiler
54557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54559 # This bug is HP SR number 8606223364.
54560 { $as_echo "$as_me:$LINENO: checking size of intmax_t" >&5
54561 $as_echo_n "checking size of intmax_t... " >&6; }
54562 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
54563   $as_echo_n "(cached) " >&6
54564 else
54565   if test "$cross_compiling" = yes; then
54566   # Depending upon the size, compute the lo and hi bounds.
54567 cat >conftest.$ac_ext <<_ACEOF
54568 /* confdefs.h.  */
54569 _ACEOF
54570 cat confdefs.h >>conftest.$ac_ext
54571 cat >>conftest.$ac_ext <<_ACEOF
54572 /* end confdefs.h.  */
54573 $ac_includes_default
54574 int
54575 main ()
54576 {
54577 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= 0)];
54578 test_array [0] = 0
54579
54580   ;
54581   return 0;
54582 }
54583 _ACEOF
54584 rm -f conftest.$ac_objext
54585 if { (ac_try="$ac_compile"
54586 case "(($ac_try" in
54587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54588   *) ac_try_echo=$ac_try;;
54589 esac
54590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54591 $as_echo "$ac_try_echo") >&5
54592   (eval "$ac_compile") 2>conftest.er1
54593   ac_status=$?
54594   grep -v '^ *+' conftest.er1 >conftest.err
54595   rm -f conftest.er1
54596   cat conftest.err >&5
54597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54598   (exit $ac_status); } && {
54599          test -z "$ac_c_werror_flag" ||
54600          test ! -s conftest.err
54601        } && test -s conftest.$ac_objext; then
54602   ac_lo=0 ac_mid=0
54603   while :; do
54604     cat >conftest.$ac_ext <<_ACEOF
54605 /* confdefs.h.  */
54606 _ACEOF
54607 cat confdefs.h >>conftest.$ac_ext
54608 cat >>conftest.$ac_ext <<_ACEOF
54609 /* end confdefs.h.  */
54610 $ac_includes_default
54611 int
54612 main ()
54613 {
54614 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
54615 test_array [0] = 0
54616
54617   ;
54618   return 0;
54619 }
54620 _ACEOF
54621 rm -f conftest.$ac_objext
54622 if { (ac_try="$ac_compile"
54623 case "(($ac_try" in
54624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54625   *) ac_try_echo=$ac_try;;
54626 esac
54627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54628 $as_echo "$ac_try_echo") >&5
54629   (eval "$ac_compile") 2>conftest.er1
54630   ac_status=$?
54631   grep -v '^ *+' conftest.er1 >conftest.err
54632   rm -f conftest.er1
54633   cat conftest.err >&5
54634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54635   (exit $ac_status); } && {
54636          test -z "$ac_c_werror_flag" ||
54637          test ! -s conftest.err
54638        } && test -s conftest.$ac_objext; then
54639   ac_hi=$ac_mid; break
54640 else
54641   $as_echo "$as_me: failed program was:" >&5
54642 sed 's/^/| /' conftest.$ac_ext >&5
54643
54644         ac_lo=`expr $ac_mid + 1`
54645                         if test $ac_lo -le $ac_mid; then
54646                           ac_lo= ac_hi=
54647                           break
54648                         fi
54649                         ac_mid=`expr 2 '*' $ac_mid + 1`
54650 fi
54651
54652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54653   done
54654 else
54655   $as_echo "$as_me: failed program was:" >&5
54656 sed 's/^/| /' conftest.$ac_ext >&5
54657
54658         cat >conftest.$ac_ext <<_ACEOF
54659 /* confdefs.h.  */
54660 _ACEOF
54661 cat confdefs.h >>conftest.$ac_ext
54662 cat >>conftest.$ac_ext <<_ACEOF
54663 /* end confdefs.h.  */
54664 $ac_includes_default
54665 int
54666 main ()
54667 {
54668 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) < 0)];
54669 test_array [0] = 0
54670
54671   ;
54672   return 0;
54673 }
54674 _ACEOF
54675 rm -f conftest.$ac_objext
54676 if { (ac_try="$ac_compile"
54677 case "(($ac_try" in
54678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54679   *) ac_try_echo=$ac_try;;
54680 esac
54681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54682 $as_echo "$ac_try_echo") >&5
54683   (eval "$ac_compile") 2>conftest.er1
54684   ac_status=$?
54685   grep -v '^ *+' conftest.er1 >conftest.err
54686   rm -f conftest.er1
54687   cat conftest.err >&5
54688   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54689   (exit $ac_status); } && {
54690          test -z "$ac_c_werror_flag" ||
54691          test ! -s conftest.err
54692        } && test -s conftest.$ac_objext; then
54693   ac_hi=-1 ac_mid=-1
54694   while :; do
54695     cat >conftest.$ac_ext <<_ACEOF
54696 /* confdefs.h.  */
54697 _ACEOF
54698 cat confdefs.h >>conftest.$ac_ext
54699 cat >>conftest.$ac_ext <<_ACEOF
54700 /* end confdefs.h.  */
54701 $ac_includes_default
54702 int
54703 main ()
54704 {
54705 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) >= $ac_mid)];
54706 test_array [0] = 0
54707
54708   ;
54709   return 0;
54710 }
54711 _ACEOF
54712 rm -f conftest.$ac_objext
54713 if { (ac_try="$ac_compile"
54714 case "(($ac_try" in
54715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54716   *) ac_try_echo=$ac_try;;
54717 esac
54718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54719 $as_echo "$ac_try_echo") >&5
54720   (eval "$ac_compile") 2>conftest.er1
54721   ac_status=$?
54722   grep -v '^ *+' conftest.er1 >conftest.err
54723   rm -f conftest.er1
54724   cat conftest.err >&5
54725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726   (exit $ac_status); } && {
54727          test -z "$ac_c_werror_flag" ||
54728          test ! -s conftest.err
54729        } && test -s conftest.$ac_objext; then
54730   ac_lo=$ac_mid; break
54731 else
54732   $as_echo "$as_me: failed program was:" >&5
54733 sed 's/^/| /' conftest.$ac_ext >&5
54734
54735         ac_hi=`expr '(' $ac_mid ')' - 1`
54736                         if test $ac_mid -le $ac_hi; then
54737                           ac_lo= ac_hi=
54738                           break
54739                         fi
54740                         ac_mid=`expr 2 '*' $ac_mid`
54741 fi
54742
54743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54744   done
54745 else
54746   $as_echo "$as_me: failed program was:" >&5
54747 sed 's/^/| /' conftest.$ac_ext >&5
54748
54749         ac_lo= ac_hi=
54750 fi
54751
54752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54753 fi
54754
54755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54756 # Binary search between lo and hi bounds.
54757 while test "x$ac_lo" != "x$ac_hi"; do
54758   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54759   cat >conftest.$ac_ext <<_ACEOF
54760 /* confdefs.h.  */
54761 _ACEOF
54762 cat confdefs.h >>conftest.$ac_ext
54763 cat >>conftest.$ac_ext <<_ACEOF
54764 /* end confdefs.h.  */
54765 $ac_includes_default
54766 int
54767 main ()
54768 {
54769 static int test_array [1 - 2 * !(((long int) (sizeof (intmax_t))) <= $ac_mid)];
54770 test_array [0] = 0
54771
54772   ;
54773   return 0;
54774 }
54775 _ACEOF
54776 rm -f conftest.$ac_objext
54777 if { (ac_try="$ac_compile"
54778 case "(($ac_try" in
54779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54780   *) ac_try_echo=$ac_try;;
54781 esac
54782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54783 $as_echo "$ac_try_echo") >&5
54784   (eval "$ac_compile") 2>conftest.er1
54785   ac_status=$?
54786   grep -v '^ *+' conftest.er1 >conftest.err
54787   rm -f conftest.er1
54788   cat conftest.err >&5
54789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54790   (exit $ac_status); } && {
54791          test -z "$ac_c_werror_flag" ||
54792          test ! -s conftest.err
54793        } && test -s conftest.$ac_objext; then
54794   ac_hi=$ac_mid
54795 else
54796   $as_echo "$as_me: failed program was:" >&5
54797 sed 's/^/| /' conftest.$ac_ext >&5
54798
54799         ac_lo=`expr '(' $ac_mid ')' + 1`
54800 fi
54801
54802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54803 done
54804 case $ac_lo in
54805 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
54806 '') if test "$ac_cv_type_intmax_t" = yes; then
54807      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54809 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
54810 See \`config.log' for more details." >&5
54811 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
54812 See \`config.log' for more details." >&2;}
54813    { (exit 77); exit 77; }; }; }
54814    else
54815      ac_cv_sizeof_intmax_t=0
54816    fi ;;
54817 esac
54818 else
54819   cat >conftest.$ac_ext <<_ACEOF
54820 /* confdefs.h.  */
54821 _ACEOF
54822 cat confdefs.h >>conftest.$ac_ext
54823 cat >>conftest.$ac_ext <<_ACEOF
54824 /* end confdefs.h.  */
54825 $ac_includes_default
54826 static long int longval () { return (long int) (sizeof (intmax_t)); }
54827 static unsigned long int ulongval () { return (long int) (sizeof (intmax_t)); }
54828 #include <stdio.h>
54829 #include <stdlib.h>
54830 int
54831 main ()
54832 {
54833
54834   FILE *f = fopen ("conftest.val", "w");
54835   if (! f)
54836     return 1;
54837   if (((long int) (sizeof (intmax_t))) < 0)
54838     {
54839       long int i = longval ();
54840       if (i != ((long int) (sizeof (intmax_t))))
54841         return 1;
54842       fprintf (f, "%ld", i);
54843     }
54844   else
54845     {
54846       unsigned long int i = ulongval ();
54847       if (i != ((long int) (sizeof (intmax_t))))
54848         return 1;
54849       fprintf (f, "%lu", i);
54850     }
54851   /* Do not output a trailing newline, as this causes \r\n confusion
54852      on some platforms.  */
54853   return ferror (f) || fclose (f) != 0;
54854
54855   ;
54856   return 0;
54857 }
54858 _ACEOF
54859 rm -f conftest$ac_exeext
54860 if { (ac_try="$ac_link"
54861 case "(($ac_try" in
54862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54863   *) ac_try_echo=$ac_try;;
54864 esac
54865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54866 $as_echo "$ac_try_echo") >&5
54867   (eval "$ac_link") 2>&5
54868   ac_status=$?
54869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54871   { (case "(($ac_try" in
54872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54873   *) ac_try_echo=$ac_try;;
54874 esac
54875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54876 $as_echo "$ac_try_echo") >&5
54877   (eval "$ac_try") 2>&5
54878   ac_status=$?
54879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54880   (exit $ac_status); }; }; then
54881   ac_cv_sizeof_intmax_t=`cat conftest.val`
54882 else
54883   $as_echo "$as_me: program exited with status $ac_status" >&5
54884 $as_echo "$as_me: failed program was:" >&5
54885 sed 's/^/| /' conftest.$ac_ext >&5
54886
54887 ( exit $ac_status )
54888 if test "$ac_cv_type_intmax_t" = yes; then
54889      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
54890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
54891 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
54892 See \`config.log' for more details." >&5
54893 $as_echo "$as_me: error: cannot compute sizeof (intmax_t)
54894 See \`config.log' for more details." >&2;}
54895    { (exit 77); exit 77; }; }; }
54896    else
54897      ac_cv_sizeof_intmax_t=0
54898    fi
54899 fi
54900 rm -rf conftest.dSYM
54901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54902 fi
54903 rm -f conftest.val
54904 fi
54905 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
54906 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
54907
54908
54909
54910 cat >>confdefs.h <<_ACEOF
54911 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
54912 _ACEOF
54913
54914
54915 # The cast to long int works around a bug in the HP C Compiler
54916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
54917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
54918 # This bug is HP SR number 8606223364.
54919 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
54920 $as_echo_n "checking size of off_t... " >&6; }
54921 if test "${ac_cv_sizeof_off_t+set}" = set; then
54922   $as_echo_n "(cached) " >&6
54923 else
54924   if test "$cross_compiling" = yes; then
54925   # Depending upon the size, compute the lo and hi bounds.
54926 cat >conftest.$ac_ext <<_ACEOF
54927 /* confdefs.h.  */
54928 _ACEOF
54929 cat confdefs.h >>conftest.$ac_ext
54930 cat >>conftest.$ac_ext <<_ACEOF
54931 /* end confdefs.h.  */
54932 $ac_includes_default
54933 int
54934 main ()
54935 {
54936 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
54937 test_array [0] = 0
54938
54939   ;
54940   return 0;
54941 }
54942 _ACEOF
54943 rm -f conftest.$ac_objext
54944 if { (ac_try="$ac_compile"
54945 case "(($ac_try" in
54946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54947   *) ac_try_echo=$ac_try;;
54948 esac
54949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54950 $as_echo "$ac_try_echo") >&5
54951   (eval "$ac_compile") 2>conftest.er1
54952   ac_status=$?
54953   grep -v '^ *+' conftest.er1 >conftest.err
54954   rm -f conftest.er1
54955   cat conftest.err >&5
54956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54957   (exit $ac_status); } && {
54958          test -z "$ac_c_werror_flag" ||
54959          test ! -s conftest.err
54960        } && test -s conftest.$ac_objext; then
54961   ac_lo=0 ac_mid=0
54962   while :; do
54963     cat >conftest.$ac_ext <<_ACEOF
54964 /* confdefs.h.  */
54965 _ACEOF
54966 cat confdefs.h >>conftest.$ac_ext
54967 cat >>conftest.$ac_ext <<_ACEOF
54968 /* end confdefs.h.  */
54969 $ac_includes_default
54970 int
54971 main ()
54972 {
54973 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
54974 test_array [0] = 0
54975
54976   ;
54977   return 0;
54978 }
54979 _ACEOF
54980 rm -f conftest.$ac_objext
54981 if { (ac_try="$ac_compile"
54982 case "(($ac_try" in
54983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54984   *) ac_try_echo=$ac_try;;
54985 esac
54986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54987 $as_echo "$ac_try_echo") >&5
54988   (eval "$ac_compile") 2>conftest.er1
54989   ac_status=$?
54990   grep -v '^ *+' conftest.er1 >conftest.err
54991   rm -f conftest.er1
54992   cat conftest.err >&5
54993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54994   (exit $ac_status); } && {
54995          test -z "$ac_c_werror_flag" ||
54996          test ! -s conftest.err
54997        } && test -s conftest.$ac_objext; then
54998   ac_hi=$ac_mid; break
54999 else
55000   $as_echo "$as_me: failed program was:" >&5
55001 sed 's/^/| /' conftest.$ac_ext >&5
55002
55003         ac_lo=`expr $ac_mid + 1`
55004                         if test $ac_lo -le $ac_mid; then
55005                           ac_lo= ac_hi=
55006                           break
55007                         fi
55008                         ac_mid=`expr 2 '*' $ac_mid + 1`
55009 fi
55010
55011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55012   done
55013 else
55014   $as_echo "$as_me: failed program was:" >&5
55015 sed 's/^/| /' conftest.$ac_ext >&5
55016
55017         cat >conftest.$ac_ext <<_ACEOF
55018 /* confdefs.h.  */
55019 _ACEOF
55020 cat confdefs.h >>conftest.$ac_ext
55021 cat >>conftest.$ac_ext <<_ACEOF
55022 /* end confdefs.h.  */
55023 $ac_includes_default
55024 int
55025 main ()
55026 {
55027 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
55028 test_array [0] = 0
55029
55030   ;
55031   return 0;
55032 }
55033 _ACEOF
55034 rm -f conftest.$ac_objext
55035 if { (ac_try="$ac_compile"
55036 case "(($ac_try" in
55037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55038   *) ac_try_echo=$ac_try;;
55039 esac
55040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55041 $as_echo "$ac_try_echo") >&5
55042   (eval "$ac_compile") 2>conftest.er1
55043   ac_status=$?
55044   grep -v '^ *+' conftest.er1 >conftest.err
55045   rm -f conftest.er1
55046   cat conftest.err >&5
55047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55048   (exit $ac_status); } && {
55049          test -z "$ac_c_werror_flag" ||
55050          test ! -s conftest.err
55051        } && test -s conftest.$ac_objext; then
55052   ac_hi=-1 ac_mid=-1
55053   while :; do
55054     cat >conftest.$ac_ext <<_ACEOF
55055 /* confdefs.h.  */
55056 _ACEOF
55057 cat confdefs.h >>conftest.$ac_ext
55058 cat >>conftest.$ac_ext <<_ACEOF
55059 /* end confdefs.h.  */
55060 $ac_includes_default
55061 int
55062 main ()
55063 {
55064 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
55065 test_array [0] = 0
55066
55067   ;
55068   return 0;
55069 }
55070 _ACEOF
55071 rm -f conftest.$ac_objext
55072 if { (ac_try="$ac_compile"
55073 case "(($ac_try" in
55074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55075   *) ac_try_echo=$ac_try;;
55076 esac
55077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55078 $as_echo "$ac_try_echo") >&5
55079   (eval "$ac_compile") 2>conftest.er1
55080   ac_status=$?
55081   grep -v '^ *+' conftest.er1 >conftest.err
55082   rm -f conftest.er1
55083   cat conftest.err >&5
55084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55085   (exit $ac_status); } && {
55086          test -z "$ac_c_werror_flag" ||
55087          test ! -s conftest.err
55088        } && test -s conftest.$ac_objext; then
55089   ac_lo=$ac_mid; break
55090 else
55091   $as_echo "$as_me: failed program was:" >&5
55092 sed 's/^/| /' conftest.$ac_ext >&5
55093
55094         ac_hi=`expr '(' $ac_mid ')' - 1`
55095                         if test $ac_mid -le $ac_hi; then
55096                           ac_lo= ac_hi=
55097                           break
55098                         fi
55099                         ac_mid=`expr 2 '*' $ac_mid`
55100 fi
55101
55102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55103   done
55104 else
55105   $as_echo "$as_me: failed program was:" >&5
55106 sed 's/^/| /' conftest.$ac_ext >&5
55107
55108         ac_lo= ac_hi=
55109 fi
55110
55111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55112 fi
55113
55114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55115 # Binary search between lo and hi bounds.
55116 while test "x$ac_lo" != "x$ac_hi"; do
55117   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55118   cat >conftest.$ac_ext <<_ACEOF
55119 /* confdefs.h.  */
55120 _ACEOF
55121 cat confdefs.h >>conftest.$ac_ext
55122 cat >>conftest.$ac_ext <<_ACEOF
55123 /* end confdefs.h.  */
55124 $ac_includes_default
55125 int
55126 main ()
55127 {
55128 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
55129 test_array [0] = 0
55130
55131   ;
55132   return 0;
55133 }
55134 _ACEOF
55135 rm -f conftest.$ac_objext
55136 if { (ac_try="$ac_compile"
55137 case "(($ac_try" in
55138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55139   *) ac_try_echo=$ac_try;;
55140 esac
55141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55142 $as_echo "$ac_try_echo") >&5
55143   (eval "$ac_compile") 2>conftest.er1
55144   ac_status=$?
55145   grep -v '^ *+' conftest.er1 >conftest.err
55146   rm -f conftest.er1
55147   cat conftest.err >&5
55148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55149   (exit $ac_status); } && {
55150          test -z "$ac_c_werror_flag" ||
55151          test ! -s conftest.err
55152        } && test -s conftest.$ac_objext; then
55153   ac_hi=$ac_mid
55154 else
55155   $as_echo "$as_me: failed program was:" >&5
55156 sed 's/^/| /' conftest.$ac_ext >&5
55157
55158         ac_lo=`expr '(' $ac_mid ')' + 1`
55159 fi
55160
55161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55162 done
55163 case $ac_lo in
55164 ?*) ac_cv_sizeof_off_t=$ac_lo;;
55165 '') if test "$ac_cv_type_off_t" = yes; then
55166      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55168 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
55169 See \`config.log' for more details." >&5
55170 $as_echo "$as_me: error: cannot compute sizeof (off_t)
55171 See \`config.log' for more details." >&2;}
55172    { (exit 77); exit 77; }; }; }
55173    else
55174      ac_cv_sizeof_off_t=0
55175    fi ;;
55176 esac
55177 else
55178   cat >conftest.$ac_ext <<_ACEOF
55179 /* confdefs.h.  */
55180 _ACEOF
55181 cat confdefs.h >>conftest.$ac_ext
55182 cat >>conftest.$ac_ext <<_ACEOF
55183 /* end confdefs.h.  */
55184 $ac_includes_default
55185 static long int longval () { return (long int) (sizeof (off_t)); }
55186 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
55187 #include <stdio.h>
55188 #include <stdlib.h>
55189 int
55190 main ()
55191 {
55192
55193   FILE *f = fopen ("conftest.val", "w");
55194   if (! f)
55195     return 1;
55196   if (((long int) (sizeof (off_t))) < 0)
55197     {
55198       long int i = longval ();
55199       if (i != ((long int) (sizeof (off_t))))
55200         return 1;
55201       fprintf (f, "%ld", i);
55202     }
55203   else
55204     {
55205       unsigned long int i = ulongval ();
55206       if (i != ((long int) (sizeof (off_t))))
55207         return 1;
55208       fprintf (f, "%lu", i);
55209     }
55210   /* Do not output a trailing newline, as this causes \r\n confusion
55211      on some platforms.  */
55212   return ferror (f) || fclose (f) != 0;
55213
55214   ;
55215   return 0;
55216 }
55217 _ACEOF
55218 rm -f conftest$ac_exeext
55219 if { (ac_try="$ac_link"
55220 case "(($ac_try" in
55221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55222   *) ac_try_echo=$ac_try;;
55223 esac
55224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55225 $as_echo "$ac_try_echo") >&5
55226   (eval "$ac_link") 2>&5
55227   ac_status=$?
55228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55230   { (case "(($ac_try" in
55231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55232   *) ac_try_echo=$ac_try;;
55233 esac
55234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55235 $as_echo "$ac_try_echo") >&5
55236   (eval "$ac_try") 2>&5
55237   ac_status=$?
55238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55239   (exit $ac_status); }; }; then
55240   ac_cv_sizeof_off_t=`cat conftest.val`
55241 else
55242   $as_echo "$as_me: program exited with status $ac_status" >&5
55243 $as_echo "$as_me: failed program was:" >&5
55244 sed 's/^/| /' conftest.$ac_ext >&5
55245
55246 ( exit $ac_status )
55247 if test "$ac_cv_type_off_t" = yes; then
55248      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55250 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
55251 See \`config.log' for more details." >&5
55252 $as_echo "$as_me: error: cannot compute sizeof (off_t)
55253 See \`config.log' for more details." >&2;}
55254    { (exit 77); exit 77; }; }; }
55255    else
55256      ac_cv_sizeof_off_t=0
55257    fi
55258 fi
55259 rm -rf conftest.dSYM
55260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55261 fi
55262 rm -f conftest.val
55263 fi
55264 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
55265 $as_echo "$ac_cv_sizeof_off_t" >&6; }
55266
55267
55268
55269 cat >>confdefs.h <<_ACEOF
55270 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
55271 _ACEOF
55272
55273
55274 # The cast to long int works around a bug in the HP C Compiler
55275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55277 # This bug is HP SR number 8606223364.
55278 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
55279 $as_echo_n "checking size of size_t... " >&6; }
55280 if test "${ac_cv_sizeof_size_t+set}" = set; then
55281   $as_echo_n "(cached) " >&6
55282 else
55283   if test "$cross_compiling" = yes; then
55284   # Depending upon the size, compute the lo and hi bounds.
55285 cat >conftest.$ac_ext <<_ACEOF
55286 /* confdefs.h.  */
55287 _ACEOF
55288 cat confdefs.h >>conftest.$ac_ext
55289 cat >>conftest.$ac_ext <<_ACEOF
55290 /* end confdefs.h.  */
55291 $ac_includes_default
55292 int
55293 main ()
55294 {
55295 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
55296 test_array [0] = 0
55297
55298   ;
55299   return 0;
55300 }
55301 _ACEOF
55302 rm -f conftest.$ac_objext
55303 if { (ac_try="$ac_compile"
55304 case "(($ac_try" in
55305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55306   *) ac_try_echo=$ac_try;;
55307 esac
55308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55309 $as_echo "$ac_try_echo") >&5
55310   (eval "$ac_compile") 2>conftest.er1
55311   ac_status=$?
55312   grep -v '^ *+' conftest.er1 >conftest.err
55313   rm -f conftest.er1
55314   cat conftest.err >&5
55315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55316   (exit $ac_status); } && {
55317          test -z "$ac_c_werror_flag" ||
55318          test ! -s conftest.err
55319        } && test -s conftest.$ac_objext; then
55320   ac_lo=0 ac_mid=0
55321   while :; do
55322     cat >conftest.$ac_ext <<_ACEOF
55323 /* confdefs.h.  */
55324 _ACEOF
55325 cat confdefs.h >>conftest.$ac_ext
55326 cat >>conftest.$ac_ext <<_ACEOF
55327 /* end confdefs.h.  */
55328 $ac_includes_default
55329 int
55330 main ()
55331 {
55332 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
55333 test_array [0] = 0
55334
55335   ;
55336   return 0;
55337 }
55338 _ACEOF
55339 rm -f conftest.$ac_objext
55340 if { (ac_try="$ac_compile"
55341 case "(($ac_try" in
55342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55343   *) ac_try_echo=$ac_try;;
55344 esac
55345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55346 $as_echo "$ac_try_echo") >&5
55347   (eval "$ac_compile") 2>conftest.er1
55348   ac_status=$?
55349   grep -v '^ *+' conftest.er1 >conftest.err
55350   rm -f conftest.er1
55351   cat conftest.err >&5
55352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55353   (exit $ac_status); } && {
55354          test -z "$ac_c_werror_flag" ||
55355          test ! -s conftest.err
55356        } && test -s conftest.$ac_objext; then
55357   ac_hi=$ac_mid; break
55358 else
55359   $as_echo "$as_me: failed program was:" >&5
55360 sed 's/^/| /' conftest.$ac_ext >&5
55361
55362         ac_lo=`expr $ac_mid + 1`
55363                         if test $ac_lo -le $ac_mid; then
55364                           ac_lo= ac_hi=
55365                           break
55366                         fi
55367                         ac_mid=`expr 2 '*' $ac_mid + 1`
55368 fi
55369
55370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55371   done
55372 else
55373   $as_echo "$as_me: failed program was:" >&5
55374 sed 's/^/| /' conftest.$ac_ext >&5
55375
55376         cat >conftest.$ac_ext <<_ACEOF
55377 /* confdefs.h.  */
55378 _ACEOF
55379 cat confdefs.h >>conftest.$ac_ext
55380 cat >>conftest.$ac_ext <<_ACEOF
55381 /* end confdefs.h.  */
55382 $ac_includes_default
55383 int
55384 main ()
55385 {
55386 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
55387 test_array [0] = 0
55388
55389   ;
55390   return 0;
55391 }
55392 _ACEOF
55393 rm -f conftest.$ac_objext
55394 if { (ac_try="$ac_compile"
55395 case "(($ac_try" in
55396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55397   *) ac_try_echo=$ac_try;;
55398 esac
55399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55400 $as_echo "$ac_try_echo") >&5
55401   (eval "$ac_compile") 2>conftest.er1
55402   ac_status=$?
55403   grep -v '^ *+' conftest.er1 >conftest.err
55404   rm -f conftest.er1
55405   cat conftest.err >&5
55406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55407   (exit $ac_status); } && {
55408          test -z "$ac_c_werror_flag" ||
55409          test ! -s conftest.err
55410        } && test -s conftest.$ac_objext; then
55411   ac_hi=-1 ac_mid=-1
55412   while :; do
55413     cat >conftest.$ac_ext <<_ACEOF
55414 /* confdefs.h.  */
55415 _ACEOF
55416 cat confdefs.h >>conftest.$ac_ext
55417 cat >>conftest.$ac_ext <<_ACEOF
55418 /* end confdefs.h.  */
55419 $ac_includes_default
55420 int
55421 main ()
55422 {
55423 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
55424 test_array [0] = 0
55425
55426   ;
55427   return 0;
55428 }
55429 _ACEOF
55430 rm -f conftest.$ac_objext
55431 if { (ac_try="$ac_compile"
55432 case "(($ac_try" in
55433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55434   *) ac_try_echo=$ac_try;;
55435 esac
55436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55437 $as_echo "$ac_try_echo") >&5
55438   (eval "$ac_compile") 2>conftest.er1
55439   ac_status=$?
55440   grep -v '^ *+' conftest.er1 >conftest.err
55441   rm -f conftest.er1
55442   cat conftest.err >&5
55443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55444   (exit $ac_status); } && {
55445          test -z "$ac_c_werror_flag" ||
55446          test ! -s conftest.err
55447        } && test -s conftest.$ac_objext; then
55448   ac_lo=$ac_mid; break
55449 else
55450   $as_echo "$as_me: failed program was:" >&5
55451 sed 's/^/| /' conftest.$ac_ext >&5
55452
55453         ac_hi=`expr '(' $ac_mid ')' - 1`
55454                         if test $ac_mid -le $ac_hi; then
55455                           ac_lo= ac_hi=
55456                           break
55457                         fi
55458                         ac_mid=`expr 2 '*' $ac_mid`
55459 fi
55460
55461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55462   done
55463 else
55464   $as_echo "$as_me: failed program was:" >&5
55465 sed 's/^/| /' conftest.$ac_ext >&5
55466
55467         ac_lo= ac_hi=
55468 fi
55469
55470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55471 fi
55472
55473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55474 # Binary search between lo and hi bounds.
55475 while test "x$ac_lo" != "x$ac_hi"; do
55476   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55477   cat >conftest.$ac_ext <<_ACEOF
55478 /* confdefs.h.  */
55479 _ACEOF
55480 cat confdefs.h >>conftest.$ac_ext
55481 cat >>conftest.$ac_ext <<_ACEOF
55482 /* end confdefs.h.  */
55483 $ac_includes_default
55484 int
55485 main ()
55486 {
55487 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
55488 test_array [0] = 0
55489
55490   ;
55491   return 0;
55492 }
55493 _ACEOF
55494 rm -f conftest.$ac_objext
55495 if { (ac_try="$ac_compile"
55496 case "(($ac_try" in
55497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55498   *) ac_try_echo=$ac_try;;
55499 esac
55500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55501 $as_echo "$ac_try_echo") >&5
55502   (eval "$ac_compile") 2>conftest.er1
55503   ac_status=$?
55504   grep -v '^ *+' conftest.er1 >conftest.err
55505   rm -f conftest.er1
55506   cat conftest.err >&5
55507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55508   (exit $ac_status); } && {
55509          test -z "$ac_c_werror_flag" ||
55510          test ! -s conftest.err
55511        } && test -s conftest.$ac_objext; then
55512   ac_hi=$ac_mid
55513 else
55514   $as_echo "$as_me: failed program was:" >&5
55515 sed 's/^/| /' conftest.$ac_ext >&5
55516
55517         ac_lo=`expr '(' $ac_mid ')' + 1`
55518 fi
55519
55520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55521 done
55522 case $ac_lo in
55523 ?*) ac_cv_sizeof_size_t=$ac_lo;;
55524 '') if test "$ac_cv_type_size_t" = yes; then
55525      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55527 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
55528 See \`config.log' for more details." >&5
55529 $as_echo "$as_me: error: cannot compute sizeof (size_t)
55530 See \`config.log' for more details." >&2;}
55531    { (exit 77); exit 77; }; }; }
55532    else
55533      ac_cv_sizeof_size_t=0
55534    fi ;;
55535 esac
55536 else
55537   cat >conftest.$ac_ext <<_ACEOF
55538 /* confdefs.h.  */
55539 _ACEOF
55540 cat confdefs.h >>conftest.$ac_ext
55541 cat >>conftest.$ac_ext <<_ACEOF
55542 /* end confdefs.h.  */
55543 $ac_includes_default
55544 static long int longval () { return (long int) (sizeof (size_t)); }
55545 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
55546 #include <stdio.h>
55547 #include <stdlib.h>
55548 int
55549 main ()
55550 {
55551
55552   FILE *f = fopen ("conftest.val", "w");
55553   if (! f)
55554     return 1;
55555   if (((long int) (sizeof (size_t))) < 0)
55556     {
55557       long int i = longval ();
55558       if (i != ((long int) (sizeof (size_t))))
55559         return 1;
55560       fprintf (f, "%ld", i);
55561     }
55562   else
55563     {
55564       unsigned long int i = ulongval ();
55565       if (i != ((long int) (sizeof (size_t))))
55566         return 1;
55567       fprintf (f, "%lu", i);
55568     }
55569   /* Do not output a trailing newline, as this causes \r\n confusion
55570      on some platforms.  */
55571   return ferror (f) || fclose (f) != 0;
55572
55573   ;
55574   return 0;
55575 }
55576 _ACEOF
55577 rm -f conftest$ac_exeext
55578 if { (ac_try="$ac_link"
55579 case "(($ac_try" in
55580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55581   *) ac_try_echo=$ac_try;;
55582 esac
55583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55584 $as_echo "$ac_try_echo") >&5
55585   (eval "$ac_link") 2>&5
55586   ac_status=$?
55587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55589   { (case "(($ac_try" in
55590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55591   *) ac_try_echo=$ac_try;;
55592 esac
55593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55594 $as_echo "$ac_try_echo") >&5
55595   (eval "$ac_try") 2>&5
55596   ac_status=$?
55597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55598   (exit $ac_status); }; }; then
55599   ac_cv_sizeof_size_t=`cat conftest.val`
55600 else
55601   $as_echo "$as_me: program exited with status $ac_status" >&5
55602 $as_echo "$as_me: failed program was:" >&5
55603 sed 's/^/| /' conftest.$ac_ext >&5
55604
55605 ( exit $ac_status )
55606 if test "$ac_cv_type_size_t" = yes; then
55607      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55609 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
55610 See \`config.log' for more details." >&5
55611 $as_echo "$as_me: error: cannot compute sizeof (size_t)
55612 See \`config.log' for more details." >&2;}
55613    { (exit 77); exit 77; }; }; }
55614    else
55615      ac_cv_sizeof_size_t=0
55616    fi
55617 fi
55618 rm -rf conftest.dSYM
55619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55620 fi
55621 rm -f conftest.val
55622 fi
55623 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
55624 $as_echo "$ac_cv_sizeof_size_t" >&6; }
55625
55626
55627
55628 cat >>confdefs.h <<_ACEOF
55629 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
55630 _ACEOF
55631
55632
55633 # The cast to long int works around a bug in the HP C Compiler
55634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55636 # This bug is HP SR number 8606223364.
55637 { $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
55638 $as_echo_n "checking size of ssize_t... " >&6; }
55639 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
55640   $as_echo_n "(cached) " >&6
55641 else
55642   if test "$cross_compiling" = yes; then
55643   # Depending upon the size, compute the lo and hi bounds.
55644 cat >conftest.$ac_ext <<_ACEOF
55645 /* confdefs.h.  */
55646 _ACEOF
55647 cat confdefs.h >>conftest.$ac_ext
55648 cat >>conftest.$ac_ext <<_ACEOF
55649 /* end confdefs.h.  */
55650 $ac_includes_default
55651 int
55652 main ()
55653 {
55654 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
55655 test_array [0] = 0
55656
55657   ;
55658   return 0;
55659 }
55660 _ACEOF
55661 rm -f conftest.$ac_objext
55662 if { (ac_try="$ac_compile"
55663 case "(($ac_try" in
55664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55665   *) ac_try_echo=$ac_try;;
55666 esac
55667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55668 $as_echo "$ac_try_echo") >&5
55669   (eval "$ac_compile") 2>conftest.er1
55670   ac_status=$?
55671   grep -v '^ *+' conftest.er1 >conftest.err
55672   rm -f conftest.er1
55673   cat conftest.err >&5
55674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55675   (exit $ac_status); } && {
55676          test -z "$ac_c_werror_flag" ||
55677          test ! -s conftest.err
55678        } && test -s conftest.$ac_objext; then
55679   ac_lo=0 ac_mid=0
55680   while :; do
55681     cat >conftest.$ac_ext <<_ACEOF
55682 /* confdefs.h.  */
55683 _ACEOF
55684 cat confdefs.h >>conftest.$ac_ext
55685 cat >>conftest.$ac_ext <<_ACEOF
55686 /* end confdefs.h.  */
55687 $ac_includes_default
55688 int
55689 main ()
55690 {
55691 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
55692 test_array [0] = 0
55693
55694   ;
55695   return 0;
55696 }
55697 _ACEOF
55698 rm -f conftest.$ac_objext
55699 if { (ac_try="$ac_compile"
55700 case "(($ac_try" in
55701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55702   *) ac_try_echo=$ac_try;;
55703 esac
55704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55705 $as_echo "$ac_try_echo") >&5
55706   (eval "$ac_compile") 2>conftest.er1
55707   ac_status=$?
55708   grep -v '^ *+' conftest.er1 >conftest.err
55709   rm -f conftest.er1
55710   cat conftest.err >&5
55711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55712   (exit $ac_status); } && {
55713          test -z "$ac_c_werror_flag" ||
55714          test ! -s conftest.err
55715        } && test -s conftest.$ac_objext; then
55716   ac_hi=$ac_mid; break
55717 else
55718   $as_echo "$as_me: failed program was:" >&5
55719 sed 's/^/| /' conftest.$ac_ext >&5
55720
55721         ac_lo=`expr $ac_mid + 1`
55722                         if test $ac_lo -le $ac_mid; then
55723                           ac_lo= ac_hi=
55724                           break
55725                         fi
55726                         ac_mid=`expr 2 '*' $ac_mid + 1`
55727 fi
55728
55729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55730   done
55731 else
55732   $as_echo "$as_me: failed program was:" >&5
55733 sed 's/^/| /' conftest.$ac_ext >&5
55734
55735         cat >conftest.$ac_ext <<_ACEOF
55736 /* confdefs.h.  */
55737 _ACEOF
55738 cat confdefs.h >>conftest.$ac_ext
55739 cat >>conftest.$ac_ext <<_ACEOF
55740 /* end confdefs.h.  */
55741 $ac_includes_default
55742 int
55743 main ()
55744 {
55745 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
55746 test_array [0] = 0
55747
55748   ;
55749   return 0;
55750 }
55751 _ACEOF
55752 rm -f conftest.$ac_objext
55753 if { (ac_try="$ac_compile"
55754 case "(($ac_try" in
55755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55756   *) ac_try_echo=$ac_try;;
55757 esac
55758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55759 $as_echo "$ac_try_echo") >&5
55760   (eval "$ac_compile") 2>conftest.er1
55761   ac_status=$?
55762   grep -v '^ *+' conftest.er1 >conftest.err
55763   rm -f conftest.er1
55764   cat conftest.err >&5
55765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55766   (exit $ac_status); } && {
55767          test -z "$ac_c_werror_flag" ||
55768          test ! -s conftest.err
55769        } && test -s conftest.$ac_objext; then
55770   ac_hi=-1 ac_mid=-1
55771   while :; do
55772     cat >conftest.$ac_ext <<_ACEOF
55773 /* confdefs.h.  */
55774 _ACEOF
55775 cat confdefs.h >>conftest.$ac_ext
55776 cat >>conftest.$ac_ext <<_ACEOF
55777 /* end confdefs.h.  */
55778 $ac_includes_default
55779 int
55780 main ()
55781 {
55782 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
55783 test_array [0] = 0
55784
55785   ;
55786   return 0;
55787 }
55788 _ACEOF
55789 rm -f conftest.$ac_objext
55790 if { (ac_try="$ac_compile"
55791 case "(($ac_try" in
55792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55793   *) ac_try_echo=$ac_try;;
55794 esac
55795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55796 $as_echo "$ac_try_echo") >&5
55797   (eval "$ac_compile") 2>conftest.er1
55798   ac_status=$?
55799   grep -v '^ *+' conftest.er1 >conftest.err
55800   rm -f conftest.er1
55801   cat conftest.err >&5
55802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55803   (exit $ac_status); } && {
55804          test -z "$ac_c_werror_flag" ||
55805          test ! -s conftest.err
55806        } && test -s conftest.$ac_objext; then
55807   ac_lo=$ac_mid; break
55808 else
55809   $as_echo "$as_me: failed program was:" >&5
55810 sed 's/^/| /' conftest.$ac_ext >&5
55811
55812         ac_hi=`expr '(' $ac_mid ')' - 1`
55813                         if test $ac_mid -le $ac_hi; then
55814                           ac_lo= ac_hi=
55815                           break
55816                         fi
55817                         ac_mid=`expr 2 '*' $ac_mid`
55818 fi
55819
55820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55821   done
55822 else
55823   $as_echo "$as_me: failed program was:" >&5
55824 sed 's/^/| /' conftest.$ac_ext >&5
55825
55826         ac_lo= ac_hi=
55827 fi
55828
55829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55830 fi
55831
55832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55833 # Binary search between lo and hi bounds.
55834 while test "x$ac_lo" != "x$ac_hi"; do
55835   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
55836   cat >conftest.$ac_ext <<_ACEOF
55837 /* confdefs.h.  */
55838 _ACEOF
55839 cat confdefs.h >>conftest.$ac_ext
55840 cat >>conftest.$ac_ext <<_ACEOF
55841 /* end confdefs.h.  */
55842 $ac_includes_default
55843 int
55844 main ()
55845 {
55846 static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
55847 test_array [0] = 0
55848
55849   ;
55850   return 0;
55851 }
55852 _ACEOF
55853 rm -f conftest.$ac_objext
55854 if { (ac_try="$ac_compile"
55855 case "(($ac_try" in
55856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55857   *) ac_try_echo=$ac_try;;
55858 esac
55859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55860 $as_echo "$ac_try_echo") >&5
55861   (eval "$ac_compile") 2>conftest.er1
55862   ac_status=$?
55863   grep -v '^ *+' conftest.er1 >conftest.err
55864   rm -f conftest.er1
55865   cat conftest.err >&5
55866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55867   (exit $ac_status); } && {
55868          test -z "$ac_c_werror_flag" ||
55869          test ! -s conftest.err
55870        } && test -s conftest.$ac_objext; then
55871   ac_hi=$ac_mid
55872 else
55873   $as_echo "$as_me: failed program was:" >&5
55874 sed 's/^/| /' conftest.$ac_ext >&5
55875
55876         ac_lo=`expr '(' $ac_mid ')' + 1`
55877 fi
55878
55879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55880 done
55881 case $ac_lo in
55882 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
55883 '') if test "$ac_cv_type_ssize_t" = yes; then
55884      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55886 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
55887 See \`config.log' for more details." >&5
55888 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
55889 See \`config.log' for more details." >&2;}
55890    { (exit 77); exit 77; }; }; }
55891    else
55892      ac_cv_sizeof_ssize_t=0
55893    fi ;;
55894 esac
55895 else
55896   cat >conftest.$ac_ext <<_ACEOF
55897 /* confdefs.h.  */
55898 _ACEOF
55899 cat confdefs.h >>conftest.$ac_ext
55900 cat >>conftest.$ac_ext <<_ACEOF
55901 /* end confdefs.h.  */
55902 $ac_includes_default
55903 static long int longval () { return (long int) (sizeof (ssize_t)); }
55904 static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
55905 #include <stdio.h>
55906 #include <stdlib.h>
55907 int
55908 main ()
55909 {
55910
55911   FILE *f = fopen ("conftest.val", "w");
55912   if (! f)
55913     return 1;
55914   if (((long int) (sizeof (ssize_t))) < 0)
55915     {
55916       long int i = longval ();
55917       if (i != ((long int) (sizeof (ssize_t))))
55918         return 1;
55919       fprintf (f, "%ld", i);
55920     }
55921   else
55922     {
55923       unsigned long int i = ulongval ();
55924       if (i != ((long int) (sizeof (ssize_t))))
55925         return 1;
55926       fprintf (f, "%lu", i);
55927     }
55928   /* Do not output a trailing newline, as this causes \r\n confusion
55929      on some platforms.  */
55930   return ferror (f) || fclose (f) != 0;
55931
55932   ;
55933   return 0;
55934 }
55935 _ACEOF
55936 rm -f conftest$ac_exeext
55937 if { (ac_try="$ac_link"
55938 case "(($ac_try" in
55939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55940   *) ac_try_echo=$ac_try;;
55941 esac
55942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55943 $as_echo "$ac_try_echo") >&5
55944   (eval "$ac_link") 2>&5
55945   ac_status=$?
55946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55947   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55948   { (case "(($ac_try" in
55949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55950   *) ac_try_echo=$ac_try;;
55951 esac
55952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55953 $as_echo "$ac_try_echo") >&5
55954   (eval "$ac_try") 2>&5
55955   ac_status=$?
55956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55957   (exit $ac_status); }; }; then
55958   ac_cv_sizeof_ssize_t=`cat conftest.val`
55959 else
55960   $as_echo "$as_me: program exited with status $ac_status" >&5
55961 $as_echo "$as_me: failed program was:" >&5
55962 sed 's/^/| /' conftest.$ac_ext >&5
55963
55964 ( exit $ac_status )
55965 if test "$ac_cv_type_ssize_t" = yes; then
55966      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
55967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
55968 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
55969 See \`config.log' for more details." >&5
55970 $as_echo "$as_me: error: cannot compute sizeof (ssize_t)
55971 See \`config.log' for more details." >&2;}
55972    { (exit 77); exit 77; }; }; }
55973    else
55974      ac_cv_sizeof_ssize_t=0
55975    fi
55976 fi
55977 rm -rf conftest.dSYM
55978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55979 fi
55980 rm -f conftest.val
55981 fi
55982 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
55983 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
55984
55985
55986
55987 cat >>confdefs.h <<_ACEOF
55988 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
55989 _ACEOF
55990
55991
55992 # The cast to long int works around a bug in the HP C Compiler
55993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
55994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
55995 # This bug is HP SR number 8606223364.
55996 { $as_echo "$as_me:$LINENO: checking size of time_t" >&5
55997 $as_echo_n "checking size of time_t... " >&6; }
55998 if test "${ac_cv_sizeof_time_t+set}" = set; then
55999   $as_echo_n "(cached) " >&6
56000 else
56001   if test "$cross_compiling" = yes; then
56002   # Depending upon the size, compute the lo and hi bounds.
56003 cat >conftest.$ac_ext <<_ACEOF
56004 /* confdefs.h.  */
56005 _ACEOF
56006 cat confdefs.h >>conftest.$ac_ext
56007 cat >>conftest.$ac_ext <<_ACEOF
56008 /* end confdefs.h.  */
56009 $ac_includes_default
56010 int
56011 main ()
56012 {
56013 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= 0)];
56014 test_array [0] = 0
56015
56016   ;
56017   return 0;
56018 }
56019 _ACEOF
56020 rm -f conftest.$ac_objext
56021 if { (ac_try="$ac_compile"
56022 case "(($ac_try" in
56023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56024   *) ac_try_echo=$ac_try;;
56025 esac
56026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56027 $as_echo "$ac_try_echo") >&5
56028   (eval "$ac_compile") 2>conftest.er1
56029   ac_status=$?
56030   grep -v '^ *+' conftest.er1 >conftest.err
56031   rm -f conftest.er1
56032   cat conftest.err >&5
56033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56034   (exit $ac_status); } && {
56035          test -z "$ac_c_werror_flag" ||
56036          test ! -s conftest.err
56037        } && test -s conftest.$ac_objext; then
56038   ac_lo=0 ac_mid=0
56039   while :; do
56040     cat >conftest.$ac_ext <<_ACEOF
56041 /* confdefs.h.  */
56042 _ACEOF
56043 cat confdefs.h >>conftest.$ac_ext
56044 cat >>conftest.$ac_ext <<_ACEOF
56045 /* end confdefs.h.  */
56046 $ac_includes_default
56047 int
56048 main ()
56049 {
56050 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
56051 test_array [0] = 0
56052
56053   ;
56054   return 0;
56055 }
56056 _ACEOF
56057 rm -f conftest.$ac_objext
56058 if { (ac_try="$ac_compile"
56059 case "(($ac_try" in
56060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56061   *) ac_try_echo=$ac_try;;
56062 esac
56063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56064 $as_echo "$ac_try_echo") >&5
56065   (eval "$ac_compile") 2>conftest.er1
56066   ac_status=$?
56067   grep -v '^ *+' conftest.er1 >conftest.err
56068   rm -f conftest.er1
56069   cat conftest.err >&5
56070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56071   (exit $ac_status); } && {
56072          test -z "$ac_c_werror_flag" ||
56073          test ! -s conftest.err
56074        } && test -s conftest.$ac_objext; then
56075   ac_hi=$ac_mid; break
56076 else
56077   $as_echo "$as_me: failed program was:" >&5
56078 sed 's/^/| /' conftest.$ac_ext >&5
56079
56080         ac_lo=`expr $ac_mid + 1`
56081                         if test $ac_lo -le $ac_mid; then
56082                           ac_lo= ac_hi=
56083                           break
56084                         fi
56085                         ac_mid=`expr 2 '*' $ac_mid + 1`
56086 fi
56087
56088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56089   done
56090 else
56091   $as_echo "$as_me: failed program was:" >&5
56092 sed 's/^/| /' conftest.$ac_ext >&5
56093
56094         cat >conftest.$ac_ext <<_ACEOF
56095 /* confdefs.h.  */
56096 _ACEOF
56097 cat confdefs.h >>conftest.$ac_ext
56098 cat >>conftest.$ac_ext <<_ACEOF
56099 /* end confdefs.h.  */
56100 $ac_includes_default
56101 int
56102 main ()
56103 {
56104 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) < 0)];
56105 test_array [0] = 0
56106
56107   ;
56108   return 0;
56109 }
56110 _ACEOF
56111 rm -f conftest.$ac_objext
56112 if { (ac_try="$ac_compile"
56113 case "(($ac_try" in
56114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56115   *) ac_try_echo=$ac_try;;
56116 esac
56117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56118 $as_echo "$ac_try_echo") >&5
56119   (eval "$ac_compile") 2>conftest.er1
56120   ac_status=$?
56121   grep -v '^ *+' conftest.er1 >conftest.err
56122   rm -f conftest.er1
56123   cat conftest.err >&5
56124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56125   (exit $ac_status); } && {
56126          test -z "$ac_c_werror_flag" ||
56127          test ! -s conftest.err
56128        } && test -s conftest.$ac_objext; then
56129   ac_hi=-1 ac_mid=-1
56130   while :; do
56131     cat >conftest.$ac_ext <<_ACEOF
56132 /* confdefs.h.  */
56133 _ACEOF
56134 cat confdefs.h >>conftest.$ac_ext
56135 cat >>conftest.$ac_ext <<_ACEOF
56136 /* end confdefs.h.  */
56137 $ac_includes_default
56138 int
56139 main ()
56140 {
56141 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) >= $ac_mid)];
56142 test_array [0] = 0
56143
56144   ;
56145   return 0;
56146 }
56147 _ACEOF
56148 rm -f conftest.$ac_objext
56149 if { (ac_try="$ac_compile"
56150 case "(($ac_try" in
56151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56152   *) ac_try_echo=$ac_try;;
56153 esac
56154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56155 $as_echo "$ac_try_echo") >&5
56156   (eval "$ac_compile") 2>conftest.er1
56157   ac_status=$?
56158   grep -v '^ *+' conftest.er1 >conftest.err
56159   rm -f conftest.er1
56160   cat conftest.err >&5
56161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56162   (exit $ac_status); } && {
56163          test -z "$ac_c_werror_flag" ||
56164          test ! -s conftest.err
56165        } && test -s conftest.$ac_objext; then
56166   ac_lo=$ac_mid; break
56167 else
56168   $as_echo "$as_me: failed program was:" >&5
56169 sed 's/^/| /' conftest.$ac_ext >&5
56170
56171         ac_hi=`expr '(' $ac_mid ')' - 1`
56172                         if test $ac_mid -le $ac_hi; then
56173                           ac_lo= ac_hi=
56174                           break
56175                         fi
56176                         ac_mid=`expr 2 '*' $ac_mid`
56177 fi
56178
56179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56180   done
56181 else
56182   $as_echo "$as_me: failed program was:" >&5
56183 sed 's/^/| /' conftest.$ac_ext >&5
56184
56185         ac_lo= ac_hi=
56186 fi
56187
56188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56189 fi
56190
56191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56192 # Binary search between lo and hi bounds.
56193 while test "x$ac_lo" != "x$ac_hi"; do
56194   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
56195   cat >conftest.$ac_ext <<_ACEOF
56196 /* confdefs.h.  */
56197 _ACEOF
56198 cat confdefs.h >>conftest.$ac_ext
56199 cat >>conftest.$ac_ext <<_ACEOF
56200 /* end confdefs.h.  */
56201 $ac_includes_default
56202 int
56203 main ()
56204 {
56205 static int test_array [1 - 2 * !(((long int) (sizeof (time_t))) <= $ac_mid)];
56206 test_array [0] = 0
56207
56208   ;
56209   return 0;
56210 }
56211 _ACEOF
56212 rm -f conftest.$ac_objext
56213 if { (ac_try="$ac_compile"
56214 case "(($ac_try" in
56215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56216   *) ac_try_echo=$ac_try;;
56217 esac
56218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56219 $as_echo "$ac_try_echo") >&5
56220   (eval "$ac_compile") 2>conftest.er1
56221   ac_status=$?
56222   grep -v '^ *+' conftest.er1 >conftest.err
56223   rm -f conftest.er1
56224   cat conftest.err >&5
56225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56226   (exit $ac_status); } && {
56227          test -z "$ac_c_werror_flag" ||
56228          test ! -s conftest.err
56229        } && test -s conftest.$ac_objext; then
56230   ac_hi=$ac_mid
56231 else
56232   $as_echo "$as_me: failed program was:" >&5
56233 sed 's/^/| /' conftest.$ac_ext >&5
56234
56235         ac_lo=`expr '(' $ac_mid ')' + 1`
56236 fi
56237
56238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56239 done
56240 case $ac_lo in
56241 ?*) ac_cv_sizeof_time_t=$ac_lo;;
56242 '') if test "$ac_cv_type_time_t" = yes; then
56243      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
56244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56245 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
56246 See \`config.log' for more details." >&5
56247 $as_echo "$as_me: error: cannot compute sizeof (time_t)
56248 See \`config.log' for more details." >&2;}
56249    { (exit 77); exit 77; }; }; }
56250    else
56251      ac_cv_sizeof_time_t=0
56252    fi ;;
56253 esac
56254 else
56255   cat >conftest.$ac_ext <<_ACEOF
56256 /* confdefs.h.  */
56257 _ACEOF
56258 cat confdefs.h >>conftest.$ac_ext
56259 cat >>conftest.$ac_ext <<_ACEOF
56260 /* end confdefs.h.  */
56261 $ac_includes_default
56262 static long int longval () { return (long int) (sizeof (time_t)); }
56263 static unsigned long int ulongval () { return (long int) (sizeof (time_t)); }
56264 #include <stdio.h>
56265 #include <stdlib.h>
56266 int
56267 main ()
56268 {
56269
56270   FILE *f = fopen ("conftest.val", "w");
56271   if (! f)
56272     return 1;
56273   if (((long int) (sizeof (time_t))) < 0)
56274     {
56275       long int i = longval ();
56276       if (i != ((long int) (sizeof (time_t))))
56277         return 1;
56278       fprintf (f, "%ld", i);
56279     }
56280   else
56281     {
56282       unsigned long int i = ulongval ();
56283       if (i != ((long int) (sizeof (time_t))))
56284         return 1;
56285       fprintf (f, "%lu", i);
56286     }
56287   /* Do not output a trailing newline, as this causes \r\n confusion
56288      on some platforms.  */
56289   return ferror (f) || fclose (f) != 0;
56290
56291   ;
56292   return 0;
56293 }
56294 _ACEOF
56295 rm -f conftest$ac_exeext
56296 if { (ac_try="$ac_link"
56297 case "(($ac_try" in
56298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56299   *) ac_try_echo=$ac_try;;
56300 esac
56301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56302 $as_echo "$ac_try_echo") >&5
56303   (eval "$ac_link") 2>&5
56304   ac_status=$?
56305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56307   { (case "(($ac_try" in
56308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56309   *) ac_try_echo=$ac_try;;
56310 esac
56311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56312 $as_echo "$ac_try_echo") >&5
56313   (eval "$ac_try") 2>&5
56314   ac_status=$?
56315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56316   (exit $ac_status); }; }; then
56317   ac_cv_sizeof_time_t=`cat conftest.val`
56318 else
56319   $as_echo "$as_me: program exited with status $ac_status" >&5
56320 $as_echo "$as_me: failed program was:" >&5
56321 sed 's/^/| /' conftest.$ac_ext >&5
56322
56323 ( exit $ac_status )
56324 if test "$ac_cv_type_time_t" = yes; then
56325      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
56326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
56327 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
56328 See \`config.log' for more details." >&5
56329 $as_echo "$as_me: error: cannot compute sizeof (time_t)
56330 See \`config.log' for more details." >&2;}
56331    { (exit 77); exit 77; }; }; }
56332    else
56333      ac_cv_sizeof_time_t=0
56334    fi
56335 fi
56336 rm -rf conftest.dSYM
56337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56338 fi
56339 rm -f conftest.val
56340 fi
56341 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
56342 $as_echo "$ac_cv_sizeof_time_t" >&6; }
56343
56344
56345
56346 cat >>confdefs.h <<_ACEOF
56347 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
56348 _ACEOF
56349
56350
56351 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
56352 $as_echo_n "checking for off_t... " >&6; }
56353 if test "${ac_cv_type_off_t+set}" = set; then
56354   $as_echo_n "(cached) " >&6
56355 else
56356   ac_cv_type_off_t=no
56357 cat >conftest.$ac_ext <<_ACEOF
56358 /* confdefs.h.  */
56359 _ACEOF
56360 cat confdefs.h >>conftest.$ac_ext
56361 cat >>conftest.$ac_ext <<_ACEOF
56362 /* end confdefs.h.  */
56363 $ac_includes_default
56364 int
56365 main ()
56366 {
56367 if (sizeof (off_t))
56368        return 0;
56369   ;
56370   return 0;
56371 }
56372 _ACEOF
56373 rm -f conftest.$ac_objext
56374 if { (ac_try="$ac_compile"
56375 case "(($ac_try" in
56376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56377   *) ac_try_echo=$ac_try;;
56378 esac
56379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56380 $as_echo "$ac_try_echo") >&5
56381   (eval "$ac_compile") 2>conftest.er1
56382   ac_status=$?
56383   grep -v '^ *+' conftest.er1 >conftest.err
56384   rm -f conftest.er1
56385   cat conftest.err >&5
56386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56387   (exit $ac_status); } && {
56388          test -z "$ac_c_werror_flag" ||
56389          test ! -s conftest.err
56390        } && test -s conftest.$ac_objext; then
56391   cat >conftest.$ac_ext <<_ACEOF
56392 /* confdefs.h.  */
56393 _ACEOF
56394 cat confdefs.h >>conftest.$ac_ext
56395 cat >>conftest.$ac_ext <<_ACEOF
56396 /* end confdefs.h.  */
56397 $ac_includes_default
56398 int
56399 main ()
56400 {
56401 if (sizeof ((off_t)))
56402           return 0;
56403   ;
56404   return 0;
56405 }
56406 _ACEOF
56407 rm -f conftest.$ac_objext
56408 if { (ac_try="$ac_compile"
56409 case "(($ac_try" in
56410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56411   *) ac_try_echo=$ac_try;;
56412 esac
56413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56414 $as_echo "$ac_try_echo") >&5
56415   (eval "$ac_compile") 2>conftest.er1
56416   ac_status=$?
56417   grep -v '^ *+' conftest.er1 >conftest.err
56418   rm -f conftest.er1
56419   cat conftest.err >&5
56420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56421   (exit $ac_status); } && {
56422          test -z "$ac_c_werror_flag" ||
56423          test ! -s conftest.err
56424        } && test -s conftest.$ac_objext; then
56425   :
56426 else
56427   $as_echo "$as_me: failed program was:" >&5
56428 sed 's/^/| /' conftest.$ac_ext >&5
56429
56430         ac_cv_type_off_t=yes
56431 fi
56432
56433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56434 else
56435   $as_echo "$as_me: failed program was:" >&5
56436 sed 's/^/| /' conftest.$ac_ext >&5
56437
56438
56439 fi
56440
56441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56442 fi
56443 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
56444 $as_echo "$ac_cv_type_off_t" >&6; }
56445 if test "x$ac_cv_type_off_t" = x""yes; then
56446   :
56447 else
56448
56449 cat >>confdefs.h <<_ACEOF
56450 #define off_t long int
56451 _ACEOF
56452
56453 fi
56454
56455 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
56456 $as_echo_n "checking for pid_t... " >&6; }
56457 if test "${ac_cv_type_pid_t+set}" = set; then
56458   $as_echo_n "(cached) " >&6
56459 else
56460   ac_cv_type_pid_t=no
56461 cat >conftest.$ac_ext <<_ACEOF
56462 /* confdefs.h.  */
56463 _ACEOF
56464 cat confdefs.h >>conftest.$ac_ext
56465 cat >>conftest.$ac_ext <<_ACEOF
56466 /* end confdefs.h.  */
56467 $ac_includes_default
56468 int
56469 main ()
56470 {
56471 if (sizeof (pid_t))
56472        return 0;
56473   ;
56474   return 0;
56475 }
56476 _ACEOF
56477 rm -f conftest.$ac_objext
56478 if { (ac_try="$ac_compile"
56479 case "(($ac_try" in
56480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56481   *) ac_try_echo=$ac_try;;
56482 esac
56483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56484 $as_echo "$ac_try_echo") >&5
56485   (eval "$ac_compile") 2>conftest.er1
56486   ac_status=$?
56487   grep -v '^ *+' conftest.er1 >conftest.err
56488   rm -f conftest.er1
56489   cat conftest.err >&5
56490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56491   (exit $ac_status); } && {
56492          test -z "$ac_c_werror_flag" ||
56493          test ! -s conftest.err
56494        } && test -s conftest.$ac_objext; then
56495   cat >conftest.$ac_ext <<_ACEOF
56496 /* confdefs.h.  */
56497 _ACEOF
56498 cat confdefs.h >>conftest.$ac_ext
56499 cat >>conftest.$ac_ext <<_ACEOF
56500 /* end confdefs.h.  */
56501 $ac_includes_default
56502 int
56503 main ()
56504 {
56505 if (sizeof ((pid_t)))
56506           return 0;
56507   ;
56508   return 0;
56509 }
56510 _ACEOF
56511 rm -f conftest.$ac_objext
56512 if { (ac_try="$ac_compile"
56513 case "(($ac_try" in
56514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56515   *) ac_try_echo=$ac_try;;
56516 esac
56517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56518 $as_echo "$ac_try_echo") >&5
56519   (eval "$ac_compile") 2>conftest.er1
56520   ac_status=$?
56521   grep -v '^ *+' conftest.er1 >conftest.err
56522   rm -f conftest.er1
56523   cat conftest.err >&5
56524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56525   (exit $ac_status); } && {
56526          test -z "$ac_c_werror_flag" ||
56527          test ! -s conftest.err
56528        } && test -s conftest.$ac_objext; then
56529   :
56530 else
56531   $as_echo "$as_me: failed program was:" >&5
56532 sed 's/^/| /' conftest.$ac_ext >&5
56533
56534         ac_cv_type_pid_t=yes
56535 fi
56536
56537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56538 else
56539   $as_echo "$as_me: failed program was:" >&5
56540 sed 's/^/| /' conftest.$ac_ext >&5
56541
56542
56543 fi
56544
56545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56546 fi
56547 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
56548 $as_echo "$ac_cv_type_pid_t" >&6; }
56549 if test "x$ac_cv_type_pid_t" = x""yes; then
56550   :
56551 else
56552
56553 cat >>confdefs.h <<_ACEOF
56554 #define pid_t int
56555 _ACEOF
56556
56557 fi
56558
56559 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
56560 $as_echo_n "checking for size_t... " >&6; }
56561 if test "${ac_cv_type_size_t+set}" = set; then
56562   $as_echo_n "(cached) " >&6
56563 else
56564   ac_cv_type_size_t=no
56565 cat >conftest.$ac_ext <<_ACEOF
56566 /* confdefs.h.  */
56567 _ACEOF
56568 cat confdefs.h >>conftest.$ac_ext
56569 cat >>conftest.$ac_ext <<_ACEOF
56570 /* end confdefs.h.  */
56571 $ac_includes_default
56572 int
56573 main ()
56574 {
56575 if (sizeof (size_t))
56576        return 0;
56577   ;
56578   return 0;
56579 }
56580 _ACEOF
56581 rm -f conftest.$ac_objext
56582 if { (ac_try="$ac_compile"
56583 case "(($ac_try" in
56584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56585   *) ac_try_echo=$ac_try;;
56586 esac
56587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56588 $as_echo "$ac_try_echo") >&5
56589   (eval "$ac_compile") 2>conftest.er1
56590   ac_status=$?
56591   grep -v '^ *+' conftest.er1 >conftest.err
56592   rm -f conftest.er1
56593   cat conftest.err >&5
56594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56595   (exit $ac_status); } && {
56596          test -z "$ac_c_werror_flag" ||
56597          test ! -s conftest.err
56598        } && test -s conftest.$ac_objext; then
56599   cat >conftest.$ac_ext <<_ACEOF
56600 /* confdefs.h.  */
56601 _ACEOF
56602 cat confdefs.h >>conftest.$ac_ext
56603 cat >>conftest.$ac_ext <<_ACEOF
56604 /* end confdefs.h.  */
56605 $ac_includes_default
56606 int
56607 main ()
56608 {
56609 if (sizeof ((size_t)))
56610           return 0;
56611   ;
56612   return 0;
56613 }
56614 _ACEOF
56615 rm -f conftest.$ac_objext
56616 if { (ac_try="$ac_compile"
56617 case "(($ac_try" in
56618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56619   *) ac_try_echo=$ac_try;;
56620 esac
56621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56622 $as_echo "$ac_try_echo") >&5
56623   (eval "$ac_compile") 2>conftest.er1
56624   ac_status=$?
56625   grep -v '^ *+' conftest.er1 >conftest.err
56626   rm -f conftest.er1
56627   cat conftest.err >&5
56628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56629   (exit $ac_status); } && {
56630          test -z "$ac_c_werror_flag" ||
56631          test ! -s conftest.err
56632        } && test -s conftest.$ac_objext; then
56633   :
56634 else
56635   $as_echo "$as_me: failed program was:" >&5
56636 sed 's/^/| /' conftest.$ac_ext >&5
56637
56638         ac_cv_type_size_t=yes
56639 fi
56640
56641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56642 else
56643   $as_echo "$as_me: failed program was:" >&5
56644 sed 's/^/| /' conftest.$ac_ext >&5
56645
56646
56647 fi
56648
56649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56650 fi
56651 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
56652 $as_echo "$ac_cv_type_size_t" >&6; }
56653 if test "x$ac_cv_type_size_t" = x""yes; then
56654   :
56655 else
56656
56657 cat >>confdefs.h <<_ACEOF
56658 #define size_t unsigned int
56659 _ACEOF
56660
56661 fi
56662
56663 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
56664 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
56665 if test "${ac_cv_type_uid_t+set}" = set; then
56666   $as_echo_n "(cached) " >&6
56667 else
56668   cat >conftest.$ac_ext <<_ACEOF
56669 /* confdefs.h.  */
56670 _ACEOF
56671 cat confdefs.h >>conftest.$ac_ext
56672 cat >>conftest.$ac_ext <<_ACEOF
56673 /* end confdefs.h.  */
56674 #include <sys/types.h>
56675
56676 _ACEOF
56677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56678   $EGREP "uid_t" >/dev/null 2>&1; then
56679   ac_cv_type_uid_t=yes
56680 else
56681   ac_cv_type_uid_t=no
56682 fi
56683 rm -f conftest*
56684
56685 fi
56686 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
56687 $as_echo "$ac_cv_type_uid_t" >&6; }
56688 if test $ac_cv_type_uid_t = no; then
56689
56690 cat >>confdefs.h <<\_ACEOF
56691 #define uid_t int
56692 _ACEOF
56693
56694
56695 cat >>confdefs.h <<\_ACEOF
56696 #define gid_t int
56697 _ACEOF
56698
56699 fi
56700
56701 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
56702 $as_echo_n "checking return type of signal handlers... " >&6; }
56703 if test "${ac_cv_type_signal+set}" = set; then
56704   $as_echo_n "(cached) " >&6
56705 else
56706   cat >conftest.$ac_ext <<_ACEOF
56707 /* confdefs.h.  */
56708 _ACEOF
56709 cat confdefs.h >>conftest.$ac_ext
56710 cat >>conftest.$ac_ext <<_ACEOF
56711 /* end confdefs.h.  */
56712 #include <sys/types.h>
56713 #include <signal.h>
56714
56715 int
56716 main ()
56717 {
56718 return *(signal (0, 0)) (0) == 1;
56719   ;
56720   return 0;
56721 }
56722 _ACEOF
56723 rm -f conftest.$ac_objext
56724 if { (ac_try="$ac_compile"
56725 case "(($ac_try" in
56726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56727   *) ac_try_echo=$ac_try;;
56728 esac
56729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56730 $as_echo "$ac_try_echo") >&5
56731   (eval "$ac_compile") 2>conftest.er1
56732   ac_status=$?
56733   grep -v '^ *+' conftest.er1 >conftest.err
56734   rm -f conftest.er1
56735   cat conftest.err >&5
56736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56737   (exit $ac_status); } && {
56738          test -z "$ac_c_werror_flag" ||
56739          test ! -s conftest.err
56740        } && test -s conftest.$ac_objext; then
56741   ac_cv_type_signal=int
56742 else
56743   $as_echo "$as_me: failed program was:" >&5
56744 sed 's/^/| /' conftest.$ac_ext >&5
56745
56746         ac_cv_type_signal=void
56747 fi
56748
56749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56750 fi
56751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
56752 $as_echo "$ac_cv_type_signal" >&6; }
56753
56754 cat >>confdefs.h <<_ACEOF
56755 #define RETSIGTYPE $ac_cv_type_signal
56756 _ACEOF
56757
56758
56759 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
56760 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
56761 if test "${ac_cv_struct_tm+set}" = set; then
56762   $as_echo_n "(cached) " >&6
56763 else
56764   cat >conftest.$ac_ext <<_ACEOF
56765 /* confdefs.h.  */
56766 _ACEOF
56767 cat confdefs.h >>conftest.$ac_ext
56768 cat >>conftest.$ac_ext <<_ACEOF
56769 /* end confdefs.h.  */
56770 #include <sys/types.h>
56771 #include <time.h>
56772
56773 int
56774 main ()
56775 {
56776 struct tm tm;
56777                                      int *p = &tm.tm_sec;
56778                                      return !p;
56779   ;
56780   return 0;
56781 }
56782 _ACEOF
56783 rm -f conftest.$ac_objext
56784 if { (ac_try="$ac_compile"
56785 case "(($ac_try" in
56786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56787   *) ac_try_echo=$ac_try;;
56788 esac
56789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56790 $as_echo "$ac_try_echo") >&5
56791   (eval "$ac_compile") 2>conftest.er1
56792   ac_status=$?
56793   grep -v '^ *+' conftest.er1 >conftest.err
56794   rm -f conftest.er1
56795   cat conftest.err >&5
56796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56797   (exit $ac_status); } && {
56798          test -z "$ac_c_werror_flag" ||
56799          test ! -s conftest.err
56800        } && test -s conftest.$ac_objext; then
56801   ac_cv_struct_tm=time.h
56802 else
56803   $as_echo "$as_me: failed program was:" >&5
56804 sed 's/^/| /' conftest.$ac_ext >&5
56805
56806         ac_cv_struct_tm=sys/time.h
56807 fi
56808
56809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56810 fi
56811 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
56812 $as_echo "$ac_cv_struct_tm" >&6; }
56813 if test $ac_cv_struct_tm = sys/time.h; then
56814
56815 cat >>confdefs.h <<\_ACEOF
56816 #define TM_IN_SYS_TIME 1
56817 _ACEOF
56818
56819 fi
56820
56821
56822       ## lifted from config/gnulib/socklen.m4
56823             { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
56824 $as_echo_n "checking for socklen_t equivalent... " >&6; }
56825       if test "${gl_cv_socklen_t_equiv+set}" = set; then
56826   $as_echo_n "(cached) " >&6
56827 else
56828   # Systems have either "struct sockaddr *" or
56829          # "void *" as the second argument to getpeername
56830          gl_cv_socklen_t_equiv=
56831          for arg2 in "struct sockaddr" void; do
56832            for t in socklen_t int size_t "unsigned int" "long int" "unsigned long int"; do
56833              cat >conftest.$ac_ext <<_ACEOF
56834 /* confdefs.h.  */
56835 _ACEOF
56836 cat confdefs.h >>conftest.$ac_ext
56837 cat >>conftest.$ac_ext <<_ACEOF
56838 /* end confdefs.h.  */
56839 #include <sys/types.h>
56840                 #include <sys/socket.h>
56841
56842                 int getpeername (int, $arg2 *, $t *);
56843 int
56844 main ()
56845 {
56846 $t len;
56847                 getpeername (0, 0, &len);
56848   ;
56849   return 0;
56850 }
56851 _ACEOF
56852 rm -f conftest.$ac_objext
56853 if { (ac_try="$ac_compile"
56854 case "(($ac_try" in
56855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56856   *) ac_try_echo=$ac_try;;
56857 esac
56858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56859 $as_echo "$ac_try_echo") >&5
56860   (eval "$ac_compile") 2>conftest.er1
56861   ac_status=$?
56862   grep -v '^ *+' conftest.er1 >conftest.err
56863   rm -f conftest.er1
56864   cat conftest.err >&5
56865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56866   (exit $ac_status); } && {
56867          test -z "$ac_c_werror_flag" ||
56868          test ! -s conftest.err
56869        } && test -s conftest.$ac_objext; then
56870   gl_cv_socklen_t_equiv="$t"
56871 else
56872   $as_echo "$as_me: failed program was:" >&5
56873 sed 's/^/| /' conftest.$ac_ext >&5
56874
56875
56876 fi
56877
56878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56879              test "$gl_cv_socklen_t_equiv" != "" && break
56880            done
56881            test "$gl_cv_socklen_t_equiv" != "" && break
56882          done
56883
56884 fi
56885
56886       ## end lifting from config/gnulib/socklen.m4
56887       # fallback if the check fails
56888       if test "$gl_cv_socklen_t_equiv" = ""; then
56889         gl_cv_socklen_t_equiv=socklen_t
56890       fi
56891       { $as_echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
56892 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
56893
56894
56895 cat >>confdefs.h <<_ACEOF
56896 #define socklen_t_equiv $gl_cv_socklen_t_equiv
56897 _ACEOF
56898
56899
56900
56901
56902     { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
56903 $as_echo_n "checking for sa_family_t... " >&6; }
56904 if test "${ac_cv_type_sa_family_t+set}" = set; then
56905   $as_echo_n "(cached) " >&6
56906 else
56907   ac_cv_type_sa_family_t=no
56908 cat >conftest.$ac_ext <<_ACEOF
56909 /* confdefs.h.  */
56910 _ACEOF
56911 cat confdefs.h >>conftest.$ac_ext
56912 cat >>conftest.$ac_ext <<_ACEOF
56913 /* end confdefs.h.  */
56914
56915 #ifdef HAVE_SYS_TYPES_H
56916 #include <sys/types.h>
56917 #endif
56918 #ifdef STDC_HEADERS
56919 #include <stdlib.h>
56920 #include <stddef.h>
56921 #endif
56922 #include <sys/socket.h>
56923
56924
56925
56926 int
56927 main ()
56928 {
56929 if (sizeof (sa_family_t))
56930        return 0;
56931   ;
56932   return 0;
56933 }
56934 _ACEOF
56935 rm -f conftest.$ac_objext
56936 if { (ac_try="$ac_compile"
56937 case "(($ac_try" in
56938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56939   *) ac_try_echo=$ac_try;;
56940 esac
56941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56942 $as_echo "$ac_try_echo") >&5
56943   (eval "$ac_compile") 2>conftest.er1
56944   ac_status=$?
56945   grep -v '^ *+' conftest.er1 >conftest.err
56946   rm -f conftest.er1
56947   cat conftest.err >&5
56948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56949   (exit $ac_status); } && {
56950          test -z "$ac_c_werror_flag" ||
56951          test ! -s conftest.err
56952        } && test -s conftest.$ac_objext; then
56953   cat >conftest.$ac_ext <<_ACEOF
56954 /* confdefs.h.  */
56955 _ACEOF
56956 cat confdefs.h >>conftest.$ac_ext
56957 cat >>conftest.$ac_ext <<_ACEOF
56958 /* end confdefs.h.  */
56959
56960 #ifdef HAVE_SYS_TYPES_H
56961 #include <sys/types.h>
56962 #endif
56963 #ifdef STDC_HEADERS
56964 #include <stdlib.h>
56965 #include <stddef.h>
56966 #endif
56967 #include <sys/socket.h>
56968
56969
56970
56971 int
56972 main ()
56973 {
56974 if (sizeof ((sa_family_t)))
56975           return 0;
56976   ;
56977   return 0;
56978 }
56979 _ACEOF
56980 rm -f conftest.$ac_objext
56981 if { (ac_try="$ac_compile"
56982 case "(($ac_try" in
56983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56984   *) ac_try_echo=$ac_try;;
56985 esac
56986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56987 $as_echo "$ac_try_echo") >&5
56988   (eval "$ac_compile") 2>conftest.er1
56989   ac_status=$?
56990   grep -v '^ *+' conftest.er1 >conftest.err
56991   rm -f conftest.er1
56992   cat conftest.err >&5
56993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56994   (exit $ac_status); } && {
56995          test -z "$ac_c_werror_flag" ||
56996          test ! -s conftest.err
56997        } && test -s conftest.$ac_objext; then
56998   :
56999 else
57000   $as_echo "$as_me: failed program was:" >&5
57001 sed 's/^/| /' conftest.$ac_ext >&5
57002
57003         ac_cv_type_sa_family_t=yes
57004 fi
57005
57006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57007 else
57008   $as_echo "$as_me: failed program was:" >&5
57009 sed 's/^/| /' conftest.$ac_ext >&5
57010
57011
57012 fi
57013
57014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57015 fi
57016 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
57017 $as_echo "$ac_cv_type_sa_family_t" >&6; }
57018 if test "x$ac_cv_type_sa_family_t" = x""yes; then
57019   :
57020 else
57021
57022
57023 cat >>confdefs.h <<\_ACEOF
57024 #define sa_family_t unsigned short
57025 _ACEOF
57026
57027
57028 fi
57029
57030
57031
57032
57033     { $as_echo "$as_me:$LINENO: checking for in_port_t" >&5
57034 $as_echo_n "checking for in_port_t... " >&6; }
57035 if test "${ac_cv_type_in_port_t+set}" = set; then
57036   $as_echo_n "(cached) " >&6
57037 else
57038   ac_cv_type_in_port_t=no
57039 cat >conftest.$ac_ext <<_ACEOF
57040 /* confdefs.h.  */
57041 _ACEOF
57042 cat confdefs.h >>conftest.$ac_ext
57043 cat >>conftest.$ac_ext <<_ACEOF
57044 /* end confdefs.h.  */
57045
57046 #ifdef HAVE_SYS_TYPES_H
57047 #include <sys/types.h>
57048 #endif
57049 #ifdef STDC_HEADERS
57050 #include <stdlib.h>
57051 #include <stddef.h>
57052 #endif
57053 #include <netinet/in.h>
57054
57055
57056
57057 int
57058 main ()
57059 {
57060 if (sizeof (in_port_t))
57061        return 0;
57062   ;
57063   return 0;
57064 }
57065 _ACEOF
57066 rm -f conftest.$ac_objext
57067 if { (ac_try="$ac_compile"
57068 case "(($ac_try" in
57069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57070   *) ac_try_echo=$ac_try;;
57071 esac
57072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57073 $as_echo "$ac_try_echo") >&5
57074   (eval "$ac_compile") 2>conftest.er1
57075   ac_status=$?
57076   grep -v '^ *+' conftest.er1 >conftest.err
57077   rm -f conftest.er1
57078   cat conftest.err >&5
57079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57080   (exit $ac_status); } && {
57081          test -z "$ac_c_werror_flag" ||
57082          test ! -s conftest.err
57083        } && test -s conftest.$ac_objext; then
57084   cat >conftest.$ac_ext <<_ACEOF
57085 /* confdefs.h.  */
57086 _ACEOF
57087 cat confdefs.h >>conftest.$ac_ext
57088 cat >>conftest.$ac_ext <<_ACEOF
57089 /* end confdefs.h.  */
57090
57091 #ifdef HAVE_SYS_TYPES_H
57092 #include <sys/types.h>
57093 #endif
57094 #ifdef STDC_HEADERS
57095 #include <stdlib.h>
57096 #include <stddef.h>
57097 #endif
57098 #include <netinet/in.h>
57099
57100
57101
57102 int
57103 main ()
57104 {
57105 if (sizeof ((in_port_t)))
57106           return 0;
57107   ;
57108   return 0;
57109 }
57110 _ACEOF
57111 rm -f conftest.$ac_objext
57112 if { (ac_try="$ac_compile"
57113 case "(($ac_try" in
57114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57115   *) ac_try_echo=$ac_try;;
57116 esac
57117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57118 $as_echo "$ac_try_echo") >&5
57119   (eval "$ac_compile") 2>conftest.er1
57120   ac_status=$?
57121   grep -v '^ *+' conftest.er1 >conftest.err
57122   rm -f conftest.er1
57123   cat conftest.err >&5
57124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57125   (exit $ac_status); } && {
57126          test -z "$ac_c_werror_flag" ||
57127          test ! -s conftest.err
57128        } && test -s conftest.$ac_objext; then
57129   :
57130 else
57131   $as_echo "$as_me: failed program was:" >&5
57132 sed 's/^/| /' conftest.$ac_ext >&5
57133
57134         ac_cv_type_in_port_t=yes
57135 fi
57136
57137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57138 else
57139   $as_echo "$as_me: failed program was:" >&5
57140 sed 's/^/| /' conftest.$ac_ext >&5
57141
57142
57143 fi
57144
57145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57146 fi
57147 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
57148 $as_echo "$ac_cv_type_in_port_t" >&6; }
57149 if test "x$ac_cv_type_in_port_t" = x""yes; then
57150   :
57151 else
57152
57153
57154 cat >>confdefs.h <<\_ACEOF
57155 #define in_port_t unsigned short
57156 _ACEOF
57157
57158
57159 fi
57160
57161
57162
57163
57164
57165
57166 for ac_header in sys/wait.h wait.h
57167 do
57168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57170   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57171 $as_echo_n "checking for $ac_header... " >&6; }
57172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57173   $as_echo_n "(cached) " >&6
57174 fi
57175 ac_res=`eval 'as_val=${'$as_ac_Header'}
57176                  $as_echo "$as_val"'`
57177                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57178 $as_echo "$ac_res" >&6; }
57179 else
57180   # Is the header compilable?
57181 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57182 $as_echo_n "checking $ac_header usability... " >&6; }
57183 cat >conftest.$ac_ext <<_ACEOF
57184 /* confdefs.h.  */
57185 _ACEOF
57186 cat confdefs.h >>conftest.$ac_ext
57187 cat >>conftest.$ac_ext <<_ACEOF
57188 /* end confdefs.h.  */
57189 $ac_includes_default
57190 #include <$ac_header>
57191 _ACEOF
57192 rm -f conftest.$ac_objext
57193 if { (ac_try="$ac_compile"
57194 case "(($ac_try" in
57195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57196   *) ac_try_echo=$ac_try;;
57197 esac
57198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57199 $as_echo "$ac_try_echo") >&5
57200   (eval "$ac_compile") 2>conftest.er1
57201   ac_status=$?
57202   grep -v '^ *+' conftest.er1 >conftest.err
57203   rm -f conftest.er1
57204   cat conftest.err >&5
57205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57206   (exit $ac_status); } && {
57207          test -z "$ac_c_werror_flag" ||
57208          test ! -s conftest.err
57209        } && test -s conftest.$ac_objext; then
57210   ac_header_compiler=yes
57211 else
57212   $as_echo "$as_me: failed program was:" >&5
57213 sed 's/^/| /' conftest.$ac_ext >&5
57214
57215         ac_header_compiler=no
57216 fi
57217
57218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57219 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57220 $as_echo "$ac_header_compiler" >&6; }
57221
57222 # Is the header present?
57223 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57224 $as_echo_n "checking $ac_header presence... " >&6; }
57225 cat >conftest.$ac_ext <<_ACEOF
57226 /* confdefs.h.  */
57227 _ACEOF
57228 cat confdefs.h >>conftest.$ac_ext
57229 cat >>conftest.$ac_ext <<_ACEOF
57230 /* end confdefs.h.  */
57231 #include <$ac_header>
57232 _ACEOF
57233 if { (ac_try="$ac_cpp conftest.$ac_ext"
57234 case "(($ac_try" in
57235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57236   *) ac_try_echo=$ac_try;;
57237 esac
57238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57239 $as_echo "$ac_try_echo") >&5
57240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57241   ac_status=$?
57242   grep -v '^ *+' conftest.er1 >conftest.err
57243   rm -f conftest.er1
57244   cat conftest.err >&5
57245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57246   (exit $ac_status); } >/dev/null && {
57247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57248          test ! -s conftest.err
57249        }; then
57250   ac_header_preproc=yes
57251 else
57252   $as_echo "$as_me: failed program was:" >&5
57253 sed 's/^/| /' conftest.$ac_ext >&5
57254
57255   ac_header_preproc=no
57256 fi
57257
57258 rm -f conftest.err conftest.$ac_ext
57259 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57260 $as_echo "$ac_header_preproc" >&6; }
57261
57262 # So?  What about this header?
57263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57264   yes:no: )
57265     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57266 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57268 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57269     ac_header_preproc=yes
57270     ;;
57271   no:yes:* )
57272     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57273 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57275 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57277 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57279 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57281 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57283 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57284
57285     ;;
57286 esac
57287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57288 $as_echo_n "checking for $ac_header... " >&6; }
57289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57290   $as_echo_n "(cached) " >&6
57291 else
57292   eval "$as_ac_Header=\$ac_header_preproc"
57293 fi
57294 ac_res=`eval 'as_val=${'$as_ac_Header'}
57295                  $as_echo "$as_val"'`
57296                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57297 $as_echo "$ac_res" >&6; }
57298
57299 fi
57300 as_val=`eval 'as_val=${'$as_ac_Header'}
57301                  $as_echo "$as_val"'`
57302    if test "x$as_val" = x""yes; then
57303   cat >>confdefs.h <<_ACEOF
57304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57305 _ACEOF
57306
57307 fi
57308
57309 done
57310
57311     { $as_echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
57312 $as_echo_n "checking whether wait uses union wait... " >&6; }
57313 if test "${cf_cv_arg_union_wait+set}" = set; then
57314   $as_echo_n "(cached) " >&6
57315 else
57316
57317         cat >conftest.$ac_ext <<_ACEOF
57318 /* confdefs.h.  */
57319 _ACEOF
57320 cat confdefs.h >>conftest.$ac_ext
57321 cat >>conftest.$ac_ext <<_ACEOF
57322 /* end confdefs.h.  */
57323
57324 #include <sys/types.h>
57325
57326 #if HAVE_SYS_WAIT_H
57327 # include <sys/wait.h>
57328 #else
57329 # if HAVE_WAIT_H
57330 #  include <wait.h>
57331 # endif
57332 #endif
57333
57334 #ifdef __STDC__
57335 pid_t wait(union wait *);
57336 #endif
57337
57338 int
57339 main ()
57340 {
57341
57342   union wait x; int i;
57343   wait(&x); i = WIFEXITED(x)
57344
57345   ;
57346   return 0;
57347 }
57348 _ACEOF
57349 rm -f conftest.$ac_objext
57350 if { (ac_try="$ac_compile"
57351 case "(($ac_try" in
57352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57353   *) ac_try_echo=$ac_try;;
57354 esac
57355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57356 $as_echo "$ac_try_echo") >&5
57357   (eval "$ac_compile") 2>conftest.er1
57358   ac_status=$?
57359   grep -v '^ *+' conftest.er1 >conftest.err
57360   rm -f conftest.er1
57361   cat conftest.err >&5
57362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57363   (exit $ac_status); } && {
57364          test -z "$ac_c_werror_flag" ||
57365          test ! -s conftest.err
57366        } && test -s conftest.$ac_objext; then
57367   cf_cv_arg_union_wait=yes
57368 else
57369   $as_echo "$as_me: failed program was:" >&5
57370 sed 's/^/| /' conftest.$ac_ext >&5
57371
57372         cf_cv_arg_union_wait=no
57373 fi
57374
57375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57376 fi
57377 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
57378 $as_echo "$cf_cv_arg_union_wait" >&6; }
57379     if test $cf_cv_arg_union_wait = yes; then
57380
57381 cat >>confdefs.h <<\_ACEOF
57382 #define WAIT_USES_UNION 1
57383 _ACEOF
57384
57385     fi
57386
57387
57388
57389
57390
57391 for ac_header in sys/wait.h wait.h
57392 do
57393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
57394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57395   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57396 $as_echo_n "checking for $ac_header... " >&6; }
57397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57398   $as_echo_n "(cached) " >&6
57399 fi
57400 ac_res=`eval 'as_val=${'$as_ac_Header'}
57401                  $as_echo "$as_val"'`
57402                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57403 $as_echo "$ac_res" >&6; }
57404 else
57405   # Is the header compilable?
57406 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
57407 $as_echo_n "checking $ac_header usability... " >&6; }
57408 cat >conftest.$ac_ext <<_ACEOF
57409 /* confdefs.h.  */
57410 _ACEOF
57411 cat confdefs.h >>conftest.$ac_ext
57412 cat >>conftest.$ac_ext <<_ACEOF
57413 /* end confdefs.h.  */
57414 $ac_includes_default
57415 #include <$ac_header>
57416 _ACEOF
57417 rm -f conftest.$ac_objext
57418 if { (ac_try="$ac_compile"
57419 case "(($ac_try" in
57420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57421   *) ac_try_echo=$ac_try;;
57422 esac
57423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57424 $as_echo "$ac_try_echo") >&5
57425   (eval "$ac_compile") 2>conftest.er1
57426   ac_status=$?
57427   grep -v '^ *+' conftest.er1 >conftest.err
57428   rm -f conftest.er1
57429   cat conftest.err >&5
57430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57431   (exit $ac_status); } && {
57432          test -z "$ac_c_werror_flag" ||
57433          test ! -s conftest.err
57434        } && test -s conftest.$ac_objext; then
57435   ac_header_compiler=yes
57436 else
57437   $as_echo "$as_me: failed program was:" >&5
57438 sed 's/^/| /' conftest.$ac_ext >&5
57439
57440         ac_header_compiler=no
57441 fi
57442
57443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57444 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57445 $as_echo "$ac_header_compiler" >&6; }
57446
57447 # Is the header present?
57448 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
57449 $as_echo_n "checking $ac_header presence... " >&6; }
57450 cat >conftest.$ac_ext <<_ACEOF
57451 /* confdefs.h.  */
57452 _ACEOF
57453 cat confdefs.h >>conftest.$ac_ext
57454 cat >>conftest.$ac_ext <<_ACEOF
57455 /* end confdefs.h.  */
57456 #include <$ac_header>
57457 _ACEOF
57458 if { (ac_try="$ac_cpp conftest.$ac_ext"
57459 case "(($ac_try" in
57460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57461   *) ac_try_echo=$ac_try;;
57462 esac
57463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57464 $as_echo "$ac_try_echo") >&5
57465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
57466   ac_status=$?
57467   grep -v '^ *+' conftest.er1 >conftest.err
57468   rm -f conftest.er1
57469   cat conftest.err >&5
57470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57471   (exit $ac_status); } >/dev/null && {
57472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
57473          test ! -s conftest.err
57474        }; then
57475   ac_header_preproc=yes
57476 else
57477   $as_echo "$as_me: failed program was:" >&5
57478 sed 's/^/| /' conftest.$ac_ext >&5
57479
57480   ac_header_preproc=no
57481 fi
57482
57483 rm -f conftest.err conftest.$ac_ext
57484 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57485 $as_echo "$ac_header_preproc" >&6; }
57486
57487 # So?  What about this header?
57488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57489   yes:no: )
57490     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57491 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57493 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57494     ac_header_preproc=yes
57495     ;;
57496   no:yes:* )
57497     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57498 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57499     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57500 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57501     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57502 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57503     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57504 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57505     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57507     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57508 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57509
57510     ;;
57511 esac
57512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
57513 $as_echo_n "checking for $ac_header... " >&6; }
57514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
57515   $as_echo_n "(cached) " >&6
57516 else
57517   eval "$as_ac_Header=\$ac_header_preproc"
57518 fi
57519 ac_res=`eval 'as_val=${'$as_ac_Header'}
57520                  $as_echo "$as_val"'`
57521                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57522 $as_echo "$ac_res" >&6; }
57523
57524 fi
57525 as_val=`eval 'as_val=${'$as_ac_Header'}
57526                  $as_echo "$as_val"'`
57527    if test "x$as_val" = x""yes; then
57528   cat >>confdefs.h <<_ACEOF
57529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57530 _ACEOF
57531
57532 fi
57533
57534 done
57535
57536     { $as_echo "$as_me:$LINENO: checking whether wait uses int" >&5
57537 $as_echo_n "checking whether wait uses int... " >&6; }
57538 if test "${cf_cv_arg_int+set}" = set; then
57539   $as_echo_n "(cached) " >&6
57540 else
57541
57542         cat >conftest.$ac_ext <<_ACEOF
57543 /* confdefs.h.  */
57544 _ACEOF
57545 cat confdefs.h >>conftest.$ac_ext
57546 cat >>conftest.$ac_ext <<_ACEOF
57547 /* end confdefs.h.  */
57548
57549 #include <sys/types.h>
57550
57551 #if HAVE_SYS_WAIT_H
57552 # include <sys/wait.h>
57553 #else
57554 # if HAVE_WAIT_H
57555 #  include <wait.h>
57556 # endif
57557 #endif
57558
57559 #ifdef __STDC__
57560 pid_t wait(int *);
57561 #endif
57562
57563 int
57564 main ()
57565 {
57566
57567   int x; int i;
57568   wait(&x); i = WIFEXITED(x)
57569
57570   ;
57571   return 0;
57572 }
57573 _ACEOF
57574 rm -f conftest.$ac_objext
57575 if { (ac_try="$ac_compile"
57576 case "(($ac_try" in
57577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57578   *) ac_try_echo=$ac_try;;
57579 esac
57580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57581 $as_echo "$ac_try_echo") >&5
57582   (eval "$ac_compile") 2>conftest.er1
57583   ac_status=$?
57584   grep -v '^ *+' conftest.er1 >conftest.err
57585   rm -f conftest.er1
57586   cat conftest.err >&5
57587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57588   (exit $ac_status); } && {
57589          test -z "$ac_c_werror_flag" ||
57590          test ! -s conftest.err
57591        } && test -s conftest.$ac_objext; then
57592   cf_cv_arg_int=yes
57593 else
57594   $as_echo "$as_me: failed program was:" >&5
57595 sed 's/^/| /' conftest.$ac_ext >&5
57596
57597         cf_cv_arg_int=no
57598 fi
57599
57600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57601 fi
57602 { $as_echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
57603 $as_echo "$cf_cv_arg_int" >&6; }
57604 if test $cf_cv_arg_int = yes; then
57605
57606 cat >>confdefs.h <<\_ACEOF
57607 #define WAIT_USES_INT 1
57608 _ACEOF
57609
57610 fi
57611
57612
57613 #
57614 # Libraries
57615 #
57616 # cur_colr is on some HP's
57617
57618 { $as_echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
57619 $as_echo_n "checking for main in -lcur_colr... " >&6; }
57620 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
57621   $as_echo_n "(cached) " >&6
57622 else
57623   ac_check_lib_save_LIBS=$LIBS
57624 LIBS="-lcur_colr  $LIBS"
57625 cat >conftest.$ac_ext <<_ACEOF
57626 /* confdefs.h.  */
57627 _ACEOF
57628 cat confdefs.h >>conftest.$ac_ext
57629 cat >>conftest.$ac_ext <<_ACEOF
57630 /* end confdefs.h.  */
57631
57632
57633 int
57634 main ()
57635 {
57636 return main ();
57637   ;
57638   return 0;
57639 }
57640 _ACEOF
57641 rm -f conftest.$ac_objext conftest$ac_exeext
57642 if { (ac_try="$ac_link"
57643 case "(($ac_try" in
57644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57645   *) ac_try_echo=$ac_try;;
57646 esac
57647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57648 $as_echo "$ac_try_echo") >&5
57649   (eval "$ac_link") 2>conftest.er1
57650   ac_status=$?
57651   grep -v '^ *+' conftest.er1 >conftest.err
57652   rm -f conftest.er1
57653   cat conftest.err >&5
57654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57655   (exit $ac_status); } && {
57656          test -z "$ac_c_werror_flag" ||
57657          test ! -s conftest.err
57658        } && test -s conftest$ac_exeext && {
57659          test "$cross_compiling" = yes ||
57660          $as_test_x conftest$ac_exeext
57661        }; then
57662   ac_cv_lib_cur_colr_main=yes
57663 else
57664   $as_echo "$as_me: failed program was:" >&5
57665 sed 's/^/| /' conftest.$ac_ext >&5
57666
57667         ac_cv_lib_cur_colr_main=no
57668 fi
57669
57670 rm -rf conftest.dSYM
57671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57672       conftest$ac_exeext conftest.$ac_ext
57673 LIBS=$ac_check_lib_save_LIBS
57674 fi
57675 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
57676 $as_echo "$ac_cv_lib_cur_colr_main" >&6; }
57677 if test "x$ac_cv_lib_cur_colr_main" = x""yes; then
57678   cat >>confdefs.h <<_ACEOF
57679 #define HAVE_LIBCUR_COLR 1
57680 _ACEOF
57681
57682   LIBS="-lcur_colr $LIBS"
57683
57684 fi
57685
57686
57687 { $as_echo "$as_me:$LINENO: checking for main in -lintl" >&5
57688 $as_echo_n "checking for main in -lintl... " >&6; }
57689 if test "${ac_cv_lib_intl_main+set}" = set; then
57690   $as_echo_n "(cached) " >&6
57691 else
57692   ac_check_lib_save_LIBS=$LIBS
57693 LIBS="-lintl  $LIBS"
57694 cat >conftest.$ac_ext <<_ACEOF
57695 /* confdefs.h.  */
57696 _ACEOF
57697 cat confdefs.h >>conftest.$ac_ext
57698 cat >>conftest.$ac_ext <<_ACEOF
57699 /* end confdefs.h.  */
57700
57701
57702 int
57703 main ()
57704 {
57705 return main ();
57706   ;
57707   return 0;
57708 }
57709 _ACEOF
57710 rm -f conftest.$ac_objext conftest$ac_exeext
57711 if { (ac_try="$ac_link"
57712 case "(($ac_try" in
57713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57714   *) ac_try_echo=$ac_try;;
57715 esac
57716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57717 $as_echo "$ac_try_echo") >&5
57718   (eval "$ac_link") 2>conftest.er1
57719   ac_status=$?
57720   grep -v '^ *+' conftest.er1 >conftest.err
57721   rm -f conftest.er1
57722   cat conftest.err >&5
57723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57724   (exit $ac_status); } && {
57725          test -z "$ac_c_werror_flag" ||
57726          test ! -s conftest.err
57727        } && test -s conftest$ac_exeext && {
57728          test "$cross_compiling" = yes ||
57729          $as_test_x conftest$ac_exeext
57730        }; then
57731   ac_cv_lib_intl_main=yes
57732 else
57733   $as_echo "$as_me: failed program was:" >&5
57734 sed 's/^/| /' conftest.$ac_ext >&5
57735
57736         ac_cv_lib_intl_main=no
57737 fi
57738
57739 rm -rf conftest.dSYM
57740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57741       conftest$ac_exeext conftest.$ac_ext
57742 LIBS=$ac_check_lib_save_LIBS
57743 fi
57744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
57745 $as_echo "$ac_cv_lib_intl_main" >&6; }
57746 if test "x$ac_cv_lib_intl_main" = x""yes; then
57747   cat >>confdefs.h <<_ACEOF
57748 #define HAVE_LIBINTL 1
57749 _ACEOF
57750
57751   LIBS="-lintl $LIBS"
57752
57753 fi
57754
57755
57756     # Make sure we don't use -lnsl and -lsun on Irix systems.
57757     case "$host" in
57758         *sgi-irix*)
57759
57760 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
57761 $as_echo_n "checking for main in -lsocket... " >&6; }
57762 if test "${ac_cv_lib_socket_main+set}" = set; then
57763   $as_echo_n "(cached) " >&6
57764 else
57765   ac_check_lib_save_LIBS=$LIBS
57766 LIBS="-lsocket  $LIBS"
57767 cat >conftest.$ac_ext <<_ACEOF
57768 /* confdefs.h.  */
57769 _ACEOF
57770 cat confdefs.h >>conftest.$ac_ext
57771 cat >>conftest.$ac_ext <<_ACEOF
57772 /* end confdefs.h.  */
57773
57774
57775 int
57776 main ()
57777 {
57778 return main ();
57779   ;
57780   return 0;
57781 }
57782 _ACEOF
57783 rm -f conftest.$ac_objext conftest$ac_exeext
57784 if { (ac_try="$ac_link"
57785 case "(($ac_try" in
57786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57787   *) ac_try_echo=$ac_try;;
57788 esac
57789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57790 $as_echo "$ac_try_echo") >&5
57791   (eval "$ac_link") 2>conftest.er1
57792   ac_status=$?
57793   grep -v '^ *+' conftest.er1 >conftest.err
57794   rm -f conftest.er1
57795   cat conftest.err >&5
57796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57797   (exit $ac_status); } && {
57798          test -z "$ac_c_werror_flag" ||
57799          test ! -s conftest.err
57800        } && test -s conftest$ac_exeext && {
57801          test "$cross_compiling" = yes ||
57802          $as_test_x conftest$ac_exeext
57803        }; then
57804   ac_cv_lib_socket_main=yes
57805 else
57806   $as_echo "$as_me: failed program was:" >&5
57807 sed 's/^/| /' conftest.$ac_ext >&5
57808
57809         ac_cv_lib_socket_main=no
57810 fi
57811
57812 rm -rf conftest.dSYM
57813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57814       conftest$ac_exeext conftest.$ac_ext
57815 LIBS=$ac_check_lib_save_LIBS
57816 fi
57817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
57818 $as_echo "$ac_cv_lib_socket_main" >&6; }
57819 if test "x$ac_cv_lib_socket_main" = x""yes; then
57820   cat >>confdefs.h <<_ACEOF
57821 #define HAVE_LIBSOCKET 1
57822 _ACEOF
57823
57824   LIBS="-lsocket $LIBS"
57825
57826 fi
57827
57828                             ;;
57829         *)
57830
57831 { $as_echo "$as_me:$LINENO: checking for main in -lresolv" >&5
57832 $as_echo_n "checking for main in -lresolv... " >&6; }
57833 if test "${ac_cv_lib_resolv_main+set}" = set; then
57834   $as_echo_n "(cached) " >&6
57835 else
57836   ac_check_lib_save_LIBS=$LIBS
57837 LIBS="-lresolv  $LIBS"
57838 cat >conftest.$ac_ext <<_ACEOF
57839 /* confdefs.h.  */
57840 _ACEOF
57841 cat confdefs.h >>conftest.$ac_ext
57842 cat >>conftest.$ac_ext <<_ACEOF
57843 /* end confdefs.h.  */
57844
57845
57846 int
57847 main ()
57848 {
57849 return main ();
57850   ;
57851   return 0;
57852 }
57853 _ACEOF
57854 rm -f conftest.$ac_objext conftest$ac_exeext
57855 if { (ac_try="$ac_link"
57856 case "(($ac_try" in
57857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57858   *) ac_try_echo=$ac_try;;
57859 esac
57860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57861 $as_echo "$ac_try_echo") >&5
57862   (eval "$ac_link") 2>conftest.er1
57863   ac_status=$?
57864   grep -v '^ *+' conftest.er1 >conftest.err
57865   rm -f conftest.er1
57866   cat conftest.err >&5
57867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57868   (exit $ac_status); } && {
57869          test -z "$ac_c_werror_flag" ||
57870          test ! -s conftest.err
57871        } && test -s conftest$ac_exeext && {
57872          test "$cross_compiling" = yes ||
57873          $as_test_x conftest$ac_exeext
57874        }; then
57875   ac_cv_lib_resolv_main=yes
57876 else
57877   $as_echo "$as_me: failed program was:" >&5
57878 sed 's/^/| /' conftest.$ac_ext >&5
57879
57880         ac_cv_lib_resolv_main=no
57881 fi
57882
57883 rm -rf conftest.dSYM
57884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57885       conftest$ac_exeext conftest.$ac_ext
57886 LIBS=$ac_check_lib_save_LIBS
57887 fi
57888 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
57889 $as_echo "$ac_cv_lib_resolv_main" >&6; }
57890 if test "x$ac_cv_lib_resolv_main" = x""yes; then
57891   cat >>confdefs.h <<_ACEOF
57892 #define HAVE_LIBRESOLV 1
57893 _ACEOF
57894
57895   LIBS="-lresolv $LIBS"
57896
57897 fi
57898
57899
57900 { $as_echo "$as_me:$LINENO: checking for main in -lnsl" >&5
57901 $as_echo_n "checking for main in -lnsl... " >&6; }
57902 if test "${ac_cv_lib_nsl_main+set}" = set; then
57903   $as_echo_n "(cached) " >&6
57904 else
57905   ac_check_lib_save_LIBS=$LIBS
57906 LIBS="-lnsl  $LIBS"
57907 cat >conftest.$ac_ext <<_ACEOF
57908 /* confdefs.h.  */
57909 _ACEOF
57910 cat confdefs.h >>conftest.$ac_ext
57911 cat >>conftest.$ac_ext <<_ACEOF
57912 /* end confdefs.h.  */
57913
57914
57915 int
57916 main ()
57917 {
57918 return main ();
57919   ;
57920   return 0;
57921 }
57922 _ACEOF
57923 rm -f conftest.$ac_objext conftest$ac_exeext
57924 if { (ac_try="$ac_link"
57925 case "(($ac_try" in
57926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57927   *) ac_try_echo=$ac_try;;
57928 esac
57929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57930 $as_echo "$ac_try_echo") >&5
57931   (eval "$ac_link") 2>conftest.er1
57932   ac_status=$?
57933   grep -v '^ *+' conftest.er1 >conftest.err
57934   rm -f conftest.er1
57935   cat conftest.err >&5
57936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57937   (exit $ac_status); } && {
57938          test -z "$ac_c_werror_flag" ||
57939          test ! -s conftest.err
57940        } && test -s conftest$ac_exeext && {
57941          test "$cross_compiling" = yes ||
57942          $as_test_x conftest$ac_exeext
57943        }; then
57944   ac_cv_lib_nsl_main=yes
57945 else
57946   $as_echo "$as_me: failed program was:" >&5
57947 sed 's/^/| /' conftest.$ac_ext >&5
57948
57949         ac_cv_lib_nsl_main=no
57950 fi
57951
57952 rm -rf conftest.dSYM
57953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57954       conftest$ac_exeext conftest.$ac_ext
57955 LIBS=$ac_check_lib_save_LIBS
57956 fi
57957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
57958 $as_echo "$ac_cv_lib_nsl_main" >&6; }
57959 if test "x$ac_cv_lib_nsl_main" = x""yes; then
57960   cat >>confdefs.h <<_ACEOF
57961 #define HAVE_LIBNSL 1
57962 _ACEOF
57963
57964   LIBS="-lnsl $LIBS"
57965
57966 fi
57967
57968
57969 { $as_echo "$as_me:$LINENO: checking for main in -lsocket" >&5
57970 $as_echo_n "checking for main in -lsocket... " >&6; }
57971 if test "${ac_cv_lib_socket_main+set}" = set; then
57972   $as_echo_n "(cached) " >&6
57973 else
57974   ac_check_lib_save_LIBS=$LIBS
57975 LIBS="-lsocket  $LIBS"
57976 cat >conftest.$ac_ext <<_ACEOF
57977 /* confdefs.h.  */
57978 _ACEOF
57979 cat confdefs.h >>conftest.$ac_ext
57980 cat >>conftest.$ac_ext <<_ACEOF
57981 /* end confdefs.h.  */
57982
57983
57984 int
57985 main ()
57986 {
57987 return main ();
57988   ;
57989   return 0;
57990 }
57991 _ACEOF
57992 rm -f conftest.$ac_objext conftest$ac_exeext
57993 if { (ac_try="$ac_link"
57994 case "(($ac_try" in
57995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57996   *) ac_try_echo=$ac_try;;
57997 esac
57998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57999 $as_echo "$ac_try_echo") >&5
58000   (eval "$ac_link") 2>conftest.er1
58001   ac_status=$?
58002   grep -v '^ *+' conftest.er1 >conftest.err
58003   rm -f conftest.er1
58004   cat conftest.err >&5
58005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58006   (exit $ac_status); } && {
58007          test -z "$ac_c_werror_flag" ||
58008          test ! -s conftest.err
58009        } && test -s conftest$ac_exeext && {
58010          test "$cross_compiling" = yes ||
58011          $as_test_x conftest$ac_exeext
58012        }; then
58013   ac_cv_lib_socket_main=yes
58014 else
58015   $as_echo "$as_me: failed program was:" >&5
58016 sed 's/^/| /' conftest.$ac_ext >&5
58017
58018         ac_cv_lib_socket_main=no
58019 fi
58020
58021 rm -rf conftest.dSYM
58022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58023       conftest$ac_exeext conftest.$ac_ext
58024 LIBS=$ac_check_lib_save_LIBS
58025 fi
58026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
58027 $as_echo "$ac_cv_lib_socket_main" >&6; }
58028 if test "x$ac_cv_lib_socket_main" = x""yes; then
58029   cat >>confdefs.h <<_ACEOF
58030 #define HAVE_LIBSOCKET 1
58031 _ACEOF
58032
58033   LIBS="-lsocket $LIBS"
58034
58035 fi
58036
58037
58038 { $as_echo "$as_me:$LINENO: checking for main in -lsun" >&5
58039 $as_echo_n "checking for main in -lsun... " >&6; }
58040 if test "${ac_cv_lib_sun_main+set}" = set; then
58041   $as_echo_n "(cached) " >&6
58042 else
58043   ac_check_lib_save_LIBS=$LIBS
58044 LIBS="-lsun  $LIBS"
58045 cat >conftest.$ac_ext <<_ACEOF
58046 /* confdefs.h.  */
58047 _ACEOF
58048 cat confdefs.h >>conftest.$ac_ext
58049 cat >>conftest.$ac_ext <<_ACEOF
58050 /* end confdefs.h.  */
58051
58052
58053 int
58054 main ()
58055 {
58056 return main ();
58057   ;
58058   return 0;
58059 }
58060 _ACEOF
58061 rm -f conftest.$ac_objext conftest$ac_exeext
58062 if { (ac_try="$ac_link"
58063 case "(($ac_try" in
58064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58065   *) ac_try_echo=$ac_try;;
58066 esac
58067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58068 $as_echo "$ac_try_echo") >&5
58069   (eval "$ac_link") 2>conftest.er1
58070   ac_status=$?
58071   grep -v '^ *+' conftest.er1 >conftest.err
58072   rm -f conftest.er1
58073   cat conftest.err >&5
58074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58075   (exit $ac_status); } && {
58076          test -z "$ac_c_werror_flag" ||
58077          test ! -s conftest.err
58078        } && test -s conftest$ac_exeext && {
58079          test "$cross_compiling" = yes ||
58080          $as_test_x conftest$ac_exeext
58081        }; then
58082   ac_cv_lib_sun_main=yes
58083 else
58084   $as_echo "$as_me: failed program was:" >&5
58085 sed 's/^/| /' conftest.$ac_ext >&5
58086
58087         ac_cv_lib_sun_main=no
58088 fi
58089
58090 rm -rf conftest.dSYM
58091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58092       conftest$ac_exeext conftest.$ac_ext
58093 LIBS=$ac_check_lib_save_LIBS
58094 fi
58095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
58096 $as_echo "$ac_cv_lib_sun_main" >&6; }
58097 if test "x$ac_cv_lib_sun_main" = x""yes; then
58098   cat >>confdefs.h <<_ACEOF
58099 #define HAVE_LIBSUN 1
58100 _ACEOF
58101
58102   LIBS="-lsun $LIBS"
58103
58104 fi
58105
58106                             ;;
58107     esac
58108
58109
58110
58111
58112
58113
58114
58115
58116     # if any of the precious variables are set, disable the pkg-config run
58117     explicit_glib=no
58118     test x"$GLIB_CFLAGS" = x"" || explicit_glib=yes
58119     test x"$GLIB_LIBS" = x"" || explicit_glib=yes
58120     test x"$GLIB_GENMARSHAL" = x"" || explicit_glib=yes
58121     test x"$GOBJECT_QUERY" = x"" || explicit_glib=yes
58122     test x"$GLIB_MKENUMS" = x"" || explicit_glib=yes
58123
58124     if test x"$explicit_glib" = x"no"; then
58125         # search for pkg-config, which the glib configuration uses, adding a few
58126         # system-specific search paths.
58127         # Extract the first word of "pkg-config", so it can be a program name with args.
58128 set dummy pkg-config; ac_word=$2
58129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58130 $as_echo_n "checking for $ac_word... " >&6; }
58131 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
58132   $as_echo_n "(cached) " >&6
58133 else
58134   case $PKG_CONFIG in
58135   [\\/]* | ?:[\\/]*)
58136   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
58137   ;;
58138   *)
58139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58140 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
58141 for as_dir in $as_dummy
58142 do
58143   IFS=$as_save_IFS
58144   test -z "$as_dir" && as_dir=.
58145   for ac_exec_ext in '' $ac_executable_extensions; do
58146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58147     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58149     break 2
58150   fi
58151 done
58152 done
58153 IFS=$as_save_IFS
58154
58155   ;;
58156 esac
58157 fi
58158 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
58159 if test -n "$PKG_CONFIG"; then
58160   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
58161 $as_echo "$PKG_CONFIG" >&6; }
58162 else
58163   { $as_echo "$as_me:$LINENO: result: no" >&5
58164 $as_echo "no" >&6; }
58165 fi
58166
58167
58168
58169         case "$host" in
58170             sparc-sun-solaris2.8) # Solaris 8
58171                 # give the linker a runtime search path; pkg-config doesn't supply this.
58172                 # Users could also specify this with LD_LIBRARY_PATH to both ./configure
58173                 # and make.  Adding this support here makes straight './configure; make'
58174                 # "just work" on Solaris 8
58175                 if test -n "$PKG_CONFIG"; then
58176                     glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
58177                     LDFLAGS="$LDFLAGS $glib_R_flag"
58178                 fi
58179                 ;;
58180         esac
58181
58182         # Check whether --enable-glibtest was given.
58183 if test "${enable_glibtest+set}" = set; then
58184   enableval=$enable_glibtest;
58185 else
58186   enable_glibtest=yes
58187 fi
58188
58189
58190   pkg_config_args=glib-2.0
58191   for module in . gmodule gobject gthread
58192   do
58193       case "$module" in
58194          gmodule)
58195              pkg_config_args="$pkg_config_args gmodule-2.0"
58196          ;;
58197          gmodule-no-export)
58198              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
58199          ;;
58200          gobject)
58201              pkg_config_args="$pkg_config_args gobject-2.0"
58202          ;;
58203          gthread)
58204              pkg_config_args="$pkg_config_args gthread-2.0"
58205          ;;
58206          gio*)
58207              pkg_config_args="$pkg_config_args $module-2.0"
58208          ;;
58209       esac
58210   done
58211
58212
58213
58214 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
58215         if test -n "$ac_tool_prefix"; then
58216   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
58217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
58218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58219 $as_echo_n "checking for $ac_word... " >&6; }
58220 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
58221   $as_echo_n "(cached) " >&6
58222 else
58223   case $PKG_CONFIG in
58224   [\\/]* | ?:[\\/]*)
58225   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
58226   ;;
58227   *)
58228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58229 for as_dir in $PATH
58230 do
58231   IFS=$as_save_IFS
58232   test -z "$as_dir" && as_dir=.
58233   for ac_exec_ext in '' $ac_executable_extensions; do
58234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58235     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58236     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58237     break 2
58238   fi
58239 done
58240 done
58241 IFS=$as_save_IFS
58242
58243   ;;
58244 esac
58245 fi
58246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
58247 if test -n "$PKG_CONFIG"; then
58248   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
58249 $as_echo "$PKG_CONFIG" >&6; }
58250 else
58251   { $as_echo "$as_me:$LINENO: result: no" >&5
58252 $as_echo "no" >&6; }
58253 fi
58254
58255
58256 fi
58257 if test -z "$ac_cv_path_PKG_CONFIG"; then
58258   ac_pt_PKG_CONFIG=$PKG_CONFIG
58259   # Extract the first word of "pkg-config", so it can be a program name with args.
58260 set dummy pkg-config; ac_word=$2
58261 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
58262 $as_echo_n "checking for $ac_word... " >&6; }
58263 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
58264   $as_echo_n "(cached) " >&6
58265 else
58266   case $ac_pt_PKG_CONFIG in
58267   [\\/]* | ?:[\\/]*)
58268   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
58269   ;;
58270   *)
58271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58272 for as_dir in $PATH
58273 do
58274   IFS=$as_save_IFS
58275   test -z "$as_dir" && as_dir=.
58276   for ac_exec_ext in '' $ac_executable_extensions; do
58277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
58278     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
58279     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58280     break 2
58281   fi
58282 done
58283 done
58284 IFS=$as_save_IFS
58285
58286   ;;
58287 esac
58288 fi
58289 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
58290 if test -n "$ac_pt_PKG_CONFIG"; then
58291   { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
58292 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
58293 else
58294   { $as_echo "$as_me:$LINENO: result: no" >&5
58295 $as_echo "no" >&6; }
58296 fi
58297
58298   if test "x$ac_pt_PKG_CONFIG" = x; then
58299     PKG_CONFIG=""
58300   else
58301     case $cross_compiling:$ac_tool_warned in
58302 yes:)
58303 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
58304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
58305 ac_tool_warned=yes ;;
58306 esac
58307     PKG_CONFIG=$ac_pt_PKG_CONFIG
58308   fi
58309 else
58310   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
58311 fi
58312
58313 fi
58314 if test -n "$PKG_CONFIG"; then
58315         _pkg_min_version=0.7
58316         { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
58317 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
58318         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
58319                 { $as_echo "$as_me:$LINENO: result: yes" >&5
58320 $as_echo "yes" >&6; }
58321         else
58322                 { $as_echo "$as_me:$LINENO: result: no" >&5
58323 $as_echo "no" >&6; }
58324                 PKG_CONFIG=""
58325         fi
58326
58327 fi
58328
58329   no_glib=""
58330
58331   if test "x$PKG_CONFIG" = x ; then
58332     no_glib=yes
58333     PKG_CONFIG=no
58334   fi
58335
58336   min_glib_version=2.2.0
58337   { $as_echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
58338 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
58339
58340   if test x$PKG_CONFIG != xno ; then
58341     ## don't try to run the test against uninstalled libtool libs
58342     if $PKG_CONFIG --uninstalled $pkg_config_args; then
58343           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
58344           enable_glibtest=no
58345     fi
58346
58347     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
58348           :
58349     else
58350           no_glib=yes
58351     fi
58352   fi
58353
58354   if test x"$no_glib" = x ; then
58355     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
58356     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
58357     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
58358
58359     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
58360     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
58361     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
58362            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
58363     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
58364            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
58365     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
58366            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
58367     if test "x$enable_glibtest" = "xyes" ; then
58368       ac_save_CFLAGS="$CFLAGS"
58369       ac_save_LIBS="$LIBS"
58370       CFLAGS="$CFLAGS $GLIB_CFLAGS"
58371       LIBS="$GLIB_LIBS $LIBS"
58372       rm -f conf.glibtest
58373       if test "$cross_compiling" = yes; then
58374   echo $ac_n "cross compiling; assumed OK... $ac_c"
58375 else
58376   cat >conftest.$ac_ext <<_ACEOF
58377 /* confdefs.h.  */
58378 _ACEOF
58379 cat confdefs.h >>conftest.$ac_ext
58380 cat >>conftest.$ac_ext <<_ACEOF
58381 /* end confdefs.h.  */
58382
58383 #include <glib.h>
58384 #include <stdio.h>
58385 #include <stdlib.h>
58386
58387 int
58388 main ()
58389 {
58390   int major, minor, micro;
58391   char *tmp_version;
58392
58393   system ("touch conf.glibtest");
58394
58395   /* HP/UX 9 (%@#!) writes to sscanf strings */
58396   tmp_version = g_strdup("$min_glib_version");
58397   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
58398      printf("%s, bad version string\n", "$min_glib_version");
58399      exit(1);
58400    }
58401
58402   if ((glib_major_version != $glib_config_major_version) ||
58403       (glib_minor_version != $glib_config_minor_version) ||
58404       (glib_micro_version != $glib_config_micro_version))
58405     {
58406       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
58407              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
58408              glib_major_version, glib_minor_version, glib_micro_version);
58409       printf ("*** was found! If pkg-config was correct, then it is best\n");
58410       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
58411       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
58412       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
58413       printf("*** required on your system.\n");
58414       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
58415       printf("*** to point to the correct configuration files\n");
58416     }
58417   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
58418            (glib_minor_version != GLIB_MINOR_VERSION) ||
58419            (glib_micro_version != GLIB_MICRO_VERSION))
58420     {
58421       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
58422              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
58423       printf("*** library (version %d.%d.%d)\n",
58424              glib_major_version, glib_minor_version, glib_micro_version);
58425     }
58426   else
58427     {
58428       if ((glib_major_version > major) ||
58429         ((glib_major_version == major) && (glib_minor_version > minor)) ||
58430         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
58431       {
58432         return 0;
58433        }
58434      else
58435       {
58436         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
58437                glib_major_version, glib_minor_version, glib_micro_version);
58438         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
58439                major, minor, micro);
58440         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
58441         printf("***\n");
58442         printf("*** If you have already installed a sufficiently new version, this error\n");
58443         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
58444         printf("*** being found. The easiest way to fix this is to remove the old version\n");
58445         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
58446         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
58447         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
58448         printf("*** so that the correct libraries are found at run-time))\n");
58449       }
58450     }
58451   return 1;
58452 }
58453
58454 _ACEOF
58455 rm -f conftest$ac_exeext
58456 if { (ac_try="$ac_link"
58457 case "(($ac_try" in
58458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58459   *) ac_try_echo=$ac_try;;
58460 esac
58461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58462 $as_echo "$ac_try_echo") >&5
58463   (eval "$ac_link") 2>&5
58464   ac_status=$?
58465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58467   { (case "(($ac_try" in
58468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58469   *) ac_try_echo=$ac_try;;
58470 esac
58471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58472 $as_echo "$ac_try_echo") >&5
58473   (eval "$ac_try") 2>&5
58474   ac_status=$?
58475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58476   (exit $ac_status); }; }; then
58477   :
58478 else
58479   $as_echo "$as_me: program exited with status $ac_status" >&5
58480 $as_echo "$as_me: failed program was:" >&5
58481 sed 's/^/| /' conftest.$ac_ext >&5
58482
58483 ( exit $ac_status )
58484 no_glib=yes
58485 fi
58486 rm -rf conftest.dSYM
58487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58488 fi
58489
58490
58491        CFLAGS="$ac_save_CFLAGS"
58492        LIBS="$ac_save_LIBS"
58493      fi
58494   fi
58495   if test "x$no_glib" = x ; then
58496      { $as_echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
58497 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
58498      :
58499   else
58500      { $as_echo "$as_me:$LINENO: result: no" >&5
58501 $as_echo "no" >&6; }
58502      if test "$PKG_CONFIG" = "no" ; then
58503        echo "*** A new enough version of pkg-config was not found."
58504        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
58505      else
58506        if test -f conf.glibtest ; then
58507         :
58508        else
58509           echo "*** Could not run GLIB test program, checking why..."
58510           ac_save_CFLAGS="$CFLAGS"
58511           ac_save_LIBS="$LIBS"
58512           CFLAGS="$CFLAGS $GLIB_CFLAGS"
58513           LIBS="$LIBS $GLIB_LIBS"
58514           cat >conftest.$ac_ext <<_ACEOF
58515 /* confdefs.h.  */
58516 _ACEOF
58517 cat confdefs.h >>conftest.$ac_ext
58518 cat >>conftest.$ac_ext <<_ACEOF
58519 /* end confdefs.h.  */
58520
58521 #include <glib.h>
58522 #include <stdio.h>
58523
58524 int
58525 main ()
58526 {
58527  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
58528   ;
58529   return 0;
58530 }
58531 _ACEOF
58532 rm -f conftest.$ac_objext conftest$ac_exeext
58533 if { (ac_try="$ac_link"
58534 case "(($ac_try" in
58535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58536   *) ac_try_echo=$ac_try;;
58537 esac
58538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58539 $as_echo "$ac_try_echo") >&5
58540   (eval "$ac_link") 2>conftest.er1
58541   ac_status=$?
58542   grep -v '^ *+' conftest.er1 >conftest.err
58543   rm -f conftest.er1
58544   cat conftest.err >&5
58545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58546   (exit $ac_status); } && {
58547          test -z "$ac_c_werror_flag" ||
58548          test ! -s conftest.err
58549        } && test -s conftest$ac_exeext && {
58550          test "$cross_compiling" = yes ||
58551          $as_test_x conftest$ac_exeext
58552        }; then
58553    echo "*** The test program compiled, but did not run. This usually means"
58554           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
58555           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
58556           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
58557           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
58558           echo "*** is required on your system"
58559           echo "***"
58560           echo "*** If you have an old version installed, it is best to remove it, although"
58561           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
58562 else
58563   $as_echo "$as_me: failed program was:" >&5
58564 sed 's/^/| /' conftest.$ac_ext >&5
58565
58566          echo "*** The test program failed to compile or link. See the file config.log for the"
58567           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
58568 fi
58569
58570 rm -rf conftest.dSYM
58571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58572       conftest$ac_exeext conftest.$ac_ext
58573           CFLAGS="$ac_save_CFLAGS"
58574           LIBS="$ac_save_LIBS"
58575        fi
58576      fi
58577      GLIB_CFLAGS=""
58578      GLIB_LIBS=""
58579      GLIB_GENMARSHAL=""
58580      GOBJECT_QUERY=""
58581      GLIB_MKENUMS=""
58582
58583             { { $as_echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
58584 $as_echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
58585    { (exit 1); exit 1; }; }
58586
58587   fi
58588
58589
58590
58591
58592
58593   rm -f conf.glibtest
58594
58595     else
58596         { { $as_echo "$as_me:$LINENO: error: explicit glib" >&5
58597 $as_echo "$as_me: error: explicit glib" >&2;}
58598    { (exit 1); exit 1; }; }
58599     fi
58600
58601     # GLIB_CPPFLAGS is not set by autoconf, yet GLIB_CFLAGS contains what GLIB_CPPFLAGS should contain.
58602     CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS"
58603
58604     LIBS="$GLIB_LIBS $LIBS"
58605
58606
58607
58608
58609 # Check whether --with-readline was given.
58610 if test "${with_readline+set}" = set; then
58611   withval=$with_readline;
58612             case "$withval" in
58613                 y | ye | yes | n | no) : ;;
58614                 *) { { $as_echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
58615 $as_echo "$as_me: error: *** --with-readline does not take a value" >&2;}
58616    { (exit 1); exit 1; }; }
58617             esac
58618             want_readline="$withval"
58619
58620 else
58621
58622             want_readline="maybe" # meaning "only if we can find it"
58623
58624 fi
58625
58626
58627     # unless the user said "no", look for readline.
58628     if test x"$want_readline" != x"no"; then
58629         # we need a tgetent() somewhere..
58630         proceed="false"
58631         { $as_echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
58632 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
58633 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
58634   $as_echo_n "(cached) " >&6
58635 else
58636   ac_check_lib_save_LIBS=$LIBS
58637 LIBS="-ltermcap  $LIBS"
58638 cat >conftest.$ac_ext <<_ACEOF
58639 /* confdefs.h.  */
58640 _ACEOF
58641 cat confdefs.h >>conftest.$ac_ext
58642 cat >>conftest.$ac_ext <<_ACEOF
58643 /* end confdefs.h.  */
58644
58645 /* Override any GCC internal prototype to avoid an error.
58646    Use char because int might match the return type of a GCC
58647    builtin and then its argument prototype would still apply.  */
58648 #ifdef __cplusplus
58649 extern "C"
58650 #endif
58651 char tgetent ();
58652 int
58653 main ()
58654 {
58655 return tgetent ();
58656   ;
58657   return 0;
58658 }
58659 _ACEOF
58660 rm -f conftest.$ac_objext conftest$ac_exeext
58661 if { (ac_try="$ac_link"
58662 case "(($ac_try" in
58663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58664   *) ac_try_echo=$ac_try;;
58665 esac
58666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58667 $as_echo "$ac_try_echo") >&5
58668   (eval "$ac_link") 2>conftest.er1
58669   ac_status=$?
58670   grep -v '^ *+' conftest.er1 >conftest.err
58671   rm -f conftest.er1
58672   cat conftest.err >&5
58673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58674   (exit $ac_status); } && {
58675          test -z "$ac_c_werror_flag" ||
58676          test ! -s conftest.err
58677        } && test -s conftest$ac_exeext && {
58678          test "$cross_compiling" = yes ||
58679          $as_test_x conftest$ac_exeext
58680        }; then
58681   ac_cv_lib_termcap_tgetent=yes
58682 else
58683   $as_echo "$as_me: failed program was:" >&5
58684 sed 's/^/| /' conftest.$ac_ext >&5
58685
58686         ac_cv_lib_termcap_tgetent=no
58687 fi
58688
58689 rm -rf conftest.dSYM
58690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58691       conftest$ac_exeext conftest.$ac_ext
58692 LIBS=$ac_check_lib_save_LIBS
58693 fi
58694 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
58695 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
58696 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then
58697
58698             READLINE_LIBS="-ltermcap"
58699             proceed="true"
58700
58701 else
58702
58703             { $as_echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
58704 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
58705 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
58706   $as_echo_n "(cached) " >&6
58707 else
58708   ac_check_lib_save_LIBS=$LIBS
58709 LIBS="-lcurses  $LIBS"
58710 cat >conftest.$ac_ext <<_ACEOF
58711 /* confdefs.h.  */
58712 _ACEOF
58713 cat confdefs.h >>conftest.$ac_ext
58714 cat >>conftest.$ac_ext <<_ACEOF
58715 /* end confdefs.h.  */
58716
58717 /* Override any GCC internal prototype to avoid an error.
58718    Use char because int might match the return type of a GCC
58719    builtin and then its argument prototype would still apply.  */
58720 #ifdef __cplusplus
58721 extern "C"
58722 #endif
58723 char tgetent ();
58724 int
58725 main ()
58726 {
58727 return tgetent ();
58728   ;
58729   return 0;
58730 }
58731 _ACEOF
58732 rm -f conftest.$ac_objext conftest$ac_exeext
58733 if { (ac_try="$ac_link"
58734 case "(($ac_try" in
58735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58736   *) ac_try_echo=$ac_try;;
58737 esac
58738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58739 $as_echo "$ac_try_echo") >&5
58740   (eval "$ac_link") 2>conftest.er1
58741   ac_status=$?
58742   grep -v '^ *+' conftest.er1 >conftest.err
58743   rm -f conftest.er1
58744   cat conftest.err >&5
58745   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58746   (exit $ac_status); } && {
58747          test -z "$ac_c_werror_flag" ||
58748          test ! -s conftest.err
58749        } && test -s conftest$ac_exeext && {
58750          test "$cross_compiling" = yes ||
58751          $as_test_x conftest$ac_exeext
58752        }; then
58753   ac_cv_lib_curses_tgetent=yes
58754 else
58755   $as_echo "$as_me: failed program was:" >&5
58756 sed 's/^/| /' conftest.$ac_ext >&5
58757
58758         ac_cv_lib_curses_tgetent=no
58759 fi
58760
58761 rm -rf conftest.dSYM
58762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58763       conftest$ac_exeext conftest.$ac_ext
58764 LIBS=$ac_check_lib_save_LIBS
58765 fi
58766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
58767 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
58768 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then
58769
58770                 READLINE_LIBS="-lcurses"
58771                 proceed="true"
58772
58773 else
58774
58775                 { $as_echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
58776 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
58777 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
58778   $as_echo_n "(cached) " >&6
58779 else
58780   ac_check_lib_save_LIBS=$LIBS
58781 LIBS="-lncurses  $LIBS"
58782 cat >conftest.$ac_ext <<_ACEOF
58783 /* confdefs.h.  */
58784 _ACEOF
58785 cat confdefs.h >>conftest.$ac_ext
58786 cat >>conftest.$ac_ext <<_ACEOF
58787 /* end confdefs.h.  */
58788
58789 /* Override any GCC internal prototype to avoid an error.
58790    Use char because int might match the return type of a GCC
58791    builtin and then its argument prototype would still apply.  */
58792 #ifdef __cplusplus
58793 extern "C"
58794 #endif
58795 char tgetent ();
58796 int
58797 main ()
58798 {
58799 return tgetent ();
58800   ;
58801   return 0;
58802 }
58803 _ACEOF
58804 rm -f conftest.$ac_objext conftest$ac_exeext
58805 if { (ac_try="$ac_link"
58806 case "(($ac_try" in
58807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58808   *) ac_try_echo=$ac_try;;
58809 esac
58810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58811 $as_echo "$ac_try_echo") >&5
58812   (eval "$ac_link") 2>conftest.er1
58813   ac_status=$?
58814   grep -v '^ *+' conftest.er1 >conftest.err
58815   rm -f conftest.er1
58816   cat conftest.err >&5
58817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58818   (exit $ac_status); } && {
58819          test -z "$ac_c_werror_flag" ||
58820          test ! -s conftest.err
58821        } && test -s conftest$ac_exeext && {
58822          test "$cross_compiling" = yes ||
58823          $as_test_x conftest$ac_exeext
58824        }; then
58825   ac_cv_lib_ncurses_tgetent=yes
58826 else
58827   $as_echo "$as_me: failed program was:" >&5
58828 sed 's/^/| /' conftest.$ac_ext >&5
58829
58830         ac_cv_lib_ncurses_tgetent=no
58831 fi
58832
58833 rm -rf conftest.dSYM
58834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58835       conftest$ac_exeext conftest.$ac_ext
58836 LIBS=$ac_check_lib_save_LIBS
58837 fi
58838 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
58839 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
58840 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then
58841
58842                     READLINE_LIBS="-lncurses"
58843                     proceed="true"
58844
58845 fi
58846
58847
58848 fi
58849
58850
58851 fi
58852
58853
58854         if $proceed; then
58855             proceed="false"
58856
58857
58858
58859
58860 for ac_header in history.h readline.h readline/history.h readline/readline.h
58861 do
58862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58864   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58865 $as_echo_n "checking for $ac_header... " >&6; }
58866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58867   $as_echo_n "(cached) " >&6
58868 fi
58869 ac_res=`eval 'as_val=${'$as_ac_Header'}
58870                  $as_echo "$as_val"'`
58871                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58872 $as_echo "$ac_res" >&6; }
58873 else
58874   # Is the header compilable?
58875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
58876 $as_echo_n "checking $ac_header usability... " >&6; }
58877 cat >conftest.$ac_ext <<_ACEOF
58878 /* confdefs.h.  */
58879 _ACEOF
58880 cat confdefs.h >>conftest.$ac_ext
58881 cat >>conftest.$ac_ext <<_ACEOF
58882 /* end confdefs.h.  */
58883 $ac_includes_default
58884 #include <$ac_header>
58885 _ACEOF
58886 rm -f conftest.$ac_objext
58887 if { (ac_try="$ac_compile"
58888 case "(($ac_try" in
58889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58890   *) ac_try_echo=$ac_try;;
58891 esac
58892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58893 $as_echo "$ac_try_echo") >&5
58894   (eval "$ac_compile") 2>conftest.er1
58895   ac_status=$?
58896   grep -v '^ *+' conftest.er1 >conftest.err
58897   rm -f conftest.er1
58898   cat conftest.err >&5
58899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58900   (exit $ac_status); } && {
58901          test -z "$ac_c_werror_flag" ||
58902          test ! -s conftest.err
58903        } && test -s conftest.$ac_objext; then
58904   ac_header_compiler=yes
58905 else
58906   $as_echo "$as_me: failed program was:" >&5
58907 sed 's/^/| /' conftest.$ac_ext >&5
58908
58909         ac_header_compiler=no
58910 fi
58911
58912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58914 $as_echo "$ac_header_compiler" >&6; }
58915
58916 # Is the header present?
58917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
58918 $as_echo_n "checking $ac_header presence... " >&6; }
58919 cat >conftest.$ac_ext <<_ACEOF
58920 /* confdefs.h.  */
58921 _ACEOF
58922 cat confdefs.h >>conftest.$ac_ext
58923 cat >>conftest.$ac_ext <<_ACEOF
58924 /* end confdefs.h.  */
58925 #include <$ac_header>
58926 _ACEOF
58927 if { (ac_try="$ac_cpp conftest.$ac_ext"
58928 case "(($ac_try" in
58929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58930   *) ac_try_echo=$ac_try;;
58931 esac
58932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58933 $as_echo "$ac_try_echo") >&5
58934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58935   ac_status=$?
58936   grep -v '^ *+' conftest.er1 >conftest.err
58937   rm -f conftest.er1
58938   cat conftest.err >&5
58939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58940   (exit $ac_status); } >/dev/null && {
58941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58942          test ! -s conftest.err
58943        }; then
58944   ac_header_preproc=yes
58945 else
58946   $as_echo "$as_me: failed program was:" >&5
58947 sed 's/^/| /' conftest.$ac_ext >&5
58948
58949   ac_header_preproc=no
58950 fi
58951
58952 rm -f conftest.err conftest.$ac_ext
58953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58954 $as_echo "$ac_header_preproc" >&6; }
58955
58956 # So?  What about this header?
58957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58958   yes:no: )
58959     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58963     ac_header_preproc=yes
58964     ;;
58965   no:yes:* )
58966     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58969 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58973 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58978
58979     ;;
58980 esac
58981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58982 $as_echo_n "checking for $ac_header... " >&6; }
58983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58984   $as_echo_n "(cached) " >&6
58985 else
58986   eval "$as_ac_Header=\$ac_header_preproc"
58987 fi
58988 ac_res=`eval 'as_val=${'$as_ac_Header'}
58989                  $as_echo "$as_val"'`
58990                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58991 $as_echo "$ac_res" >&6; }
58992
58993 fi
58994 as_val=`eval 'as_val=${'$as_ac_Header'}
58995                  $as_echo "$as_val"'`
58996    if test "x$as_val" = x""yes; then
58997   cat >>confdefs.h <<_ACEOF
58998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
58999 _ACEOF
59000
59001                 # found at least one of the headers, so we can proceed.
59002                 proceed="true"
59003
59004 fi
59005
59006 done
59007
59008         fi
59009
59010         if $proceed; then
59011             proceed="false"
59012             { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
59013 $as_echo_n "checking for readline in -lreadline... " >&6; }
59014 if test "${ac_cv_lib_readline_readline+set}" = set; then
59015   $as_echo_n "(cached) " >&6
59016 else
59017   ac_check_lib_save_LIBS=$LIBS
59018 LIBS="-lreadline $READLINE_LIBS $LIBS"
59019 cat >conftest.$ac_ext <<_ACEOF
59020 /* confdefs.h.  */
59021 _ACEOF
59022 cat confdefs.h >>conftest.$ac_ext
59023 cat >>conftest.$ac_ext <<_ACEOF
59024 /* end confdefs.h.  */
59025
59026 /* Override any GCC internal prototype to avoid an error.
59027    Use char because int might match the return type of a GCC
59028    builtin and then its argument prototype would still apply.  */
59029 #ifdef __cplusplus
59030 extern "C"
59031 #endif
59032 char readline ();
59033 int
59034 main ()
59035 {
59036 return readline ();
59037   ;
59038   return 0;
59039 }
59040 _ACEOF
59041 rm -f conftest.$ac_objext conftest$ac_exeext
59042 if { (ac_try="$ac_link"
59043 case "(($ac_try" in
59044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59045   *) ac_try_echo=$ac_try;;
59046 esac
59047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59048 $as_echo "$ac_try_echo") >&5
59049   (eval "$ac_link") 2>conftest.er1
59050   ac_status=$?
59051   grep -v '^ *+' conftest.er1 >conftest.err
59052   rm -f conftest.er1
59053   cat conftest.err >&5
59054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59055   (exit $ac_status); } && {
59056          test -z "$ac_c_werror_flag" ||
59057          test ! -s conftest.err
59058        } && test -s conftest$ac_exeext && {
59059          test "$cross_compiling" = yes ||
59060          $as_test_x conftest$ac_exeext
59061        }; then
59062   ac_cv_lib_readline_readline=yes
59063 else
59064   $as_echo "$as_me: failed program was:" >&5
59065 sed 's/^/| /' conftest.$ac_ext >&5
59066
59067         ac_cv_lib_readline_readline=no
59068 fi
59069
59070 rm -rf conftest.dSYM
59071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59072       conftest$ac_exeext conftest.$ac_ext
59073 LIBS=$ac_check_lib_save_LIBS
59074 fi
59075 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
59076 $as_echo "$ac_cv_lib_readline_readline" >&6; }
59077 if test "x$ac_cv_lib_readline_readline" = x""yes; then
59078
59079                 READLINE_LIBS="-lreadline $READLINE_LIBS"
59080                 proceed="true"
59081
59082 fi
59083
59084         fi
59085
59086         if $proceed; then
59087             # we have readline!
59088
59089 cat >>confdefs.h <<\_ACEOF
59090 #define HAVE_READLINE 1
59091 _ACEOF
59092
59093         else
59094             # no readline.  if the user *really* wanted it, bail out.
59095             if test x"$want_readline" = x"yes"; then
59096                 { { $as_echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
59097 $as_echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
59098    { (exit 1); exit 1; }; }
59099             fi
59100             READLINE_LIBS=""
59101         fi
59102     fi
59103
59104
59105
59106 { $as_echo "$as_me:$LINENO: checking for modf in -lm" >&5
59107 $as_echo_n "checking for modf in -lm... " >&6; }
59108 if test "${ac_cv_lib_m_modf+set}" = set; then
59109   $as_echo_n "(cached) " >&6
59110 else
59111   ac_check_lib_save_LIBS=$LIBS
59112 LIBS="-lm  $LIBS"
59113 cat >conftest.$ac_ext <<_ACEOF
59114 /* confdefs.h.  */
59115 _ACEOF
59116 cat confdefs.h >>conftest.$ac_ext
59117 cat >>conftest.$ac_ext <<_ACEOF
59118 /* end confdefs.h.  */
59119
59120 /* Override any GCC internal prototype to avoid an error.
59121    Use char because int might match the return type of a GCC
59122    builtin and then its argument prototype would still apply.  */
59123 #ifdef __cplusplus
59124 extern "C"
59125 #endif
59126 char modf ();
59127 int
59128 main ()
59129 {
59130 return modf ();
59131   ;
59132   return 0;
59133 }
59134 _ACEOF
59135 rm -f conftest.$ac_objext conftest$ac_exeext
59136 if { (ac_try="$ac_link"
59137 case "(($ac_try" in
59138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59139   *) ac_try_echo=$ac_try;;
59140 esac
59141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59142 $as_echo "$ac_try_echo") >&5
59143   (eval "$ac_link") 2>conftest.er1
59144   ac_status=$?
59145   grep -v '^ *+' conftest.er1 >conftest.err
59146   rm -f conftest.er1
59147   cat conftest.err >&5
59148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59149   (exit $ac_status); } && {
59150          test -z "$ac_c_werror_flag" ||
59151          test ! -s conftest.err
59152        } && test -s conftest$ac_exeext && {
59153          test "$cross_compiling" = yes ||
59154          $as_test_x conftest$ac_exeext
59155        }; then
59156   ac_cv_lib_m_modf=yes
59157 else
59158   $as_echo "$as_me: failed program was:" >&5
59159 sed 's/^/| /' conftest.$ac_ext >&5
59160
59161         ac_cv_lib_m_modf=no
59162 fi
59163
59164 rm -rf conftest.dSYM
59165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59166       conftest$ac_exeext conftest.$ac_ext
59167 LIBS=$ac_check_lib_save_LIBS
59168 fi
59169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
59170 $as_echo "$ac_cv_lib_m_modf" >&6; }
59171 if test "x$ac_cv_lib_m_modf" = x""yes; then
59172   cat >>confdefs.h <<_ACEOF
59173 #define HAVE_LIBM 1
59174 _ACEOF
59175
59176   LIBS="-lm $LIBS"
59177
59178 fi
59179
59180
59181     if test "${ac_cv_header_execinfo_h+set}" = set; then
59182   { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
59183 $as_echo_n "checking for execinfo.h... " >&6; }
59184 if test "${ac_cv_header_execinfo_h+set}" = set; then
59185   $as_echo_n "(cached) " >&6
59186 fi
59187 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
59188 $as_echo "$ac_cv_header_execinfo_h" >&6; }
59189 else
59190   # Is the header compilable?
59191 { $as_echo "$as_me:$LINENO: checking execinfo.h usability" >&5
59192 $as_echo_n "checking execinfo.h usability... " >&6; }
59193 cat >conftest.$ac_ext <<_ACEOF
59194 /* confdefs.h.  */
59195 _ACEOF
59196 cat confdefs.h >>conftest.$ac_ext
59197 cat >>conftest.$ac_ext <<_ACEOF
59198 /* end confdefs.h.  */
59199 $ac_includes_default
59200 #include <execinfo.h>
59201 _ACEOF
59202 rm -f conftest.$ac_objext
59203 if { (ac_try="$ac_compile"
59204 case "(($ac_try" in
59205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59206   *) ac_try_echo=$ac_try;;
59207 esac
59208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59209 $as_echo "$ac_try_echo") >&5
59210   (eval "$ac_compile") 2>conftest.er1
59211   ac_status=$?
59212   grep -v '^ *+' conftest.er1 >conftest.err
59213   rm -f conftest.er1
59214   cat conftest.err >&5
59215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59216   (exit $ac_status); } && {
59217          test -z "$ac_c_werror_flag" ||
59218          test ! -s conftest.err
59219        } && test -s conftest.$ac_objext; then
59220   ac_header_compiler=yes
59221 else
59222   $as_echo "$as_me: failed program was:" >&5
59223 sed 's/^/| /' conftest.$ac_ext >&5
59224
59225         ac_header_compiler=no
59226 fi
59227
59228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59230 $as_echo "$ac_header_compiler" >&6; }
59231
59232 # Is the header present?
59233 { $as_echo "$as_me:$LINENO: checking execinfo.h presence" >&5
59234 $as_echo_n "checking execinfo.h presence... " >&6; }
59235 cat >conftest.$ac_ext <<_ACEOF
59236 /* confdefs.h.  */
59237 _ACEOF
59238 cat confdefs.h >>conftest.$ac_ext
59239 cat >>conftest.$ac_ext <<_ACEOF
59240 /* end confdefs.h.  */
59241 #include <execinfo.h>
59242 _ACEOF
59243 if { (ac_try="$ac_cpp conftest.$ac_ext"
59244 case "(($ac_try" in
59245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59246   *) ac_try_echo=$ac_try;;
59247 esac
59248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59249 $as_echo "$ac_try_echo") >&5
59250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
59251   ac_status=$?
59252   grep -v '^ *+' conftest.er1 >conftest.err
59253   rm -f conftest.er1
59254   cat conftest.err >&5
59255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59256   (exit $ac_status); } >/dev/null && {
59257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
59258          test ! -s conftest.err
59259        }; then
59260   ac_header_preproc=yes
59261 else
59262   $as_echo "$as_me: failed program was:" >&5
59263 sed 's/^/| /' conftest.$ac_ext >&5
59264
59265   ac_header_preproc=no
59266 fi
59267
59268 rm -f conftest.err conftest.$ac_ext
59269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59270 $as_echo "$ac_header_preproc" >&6; }
59271
59272 # So?  What about this header?
59273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59274   yes:no: )
59275     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59276 $as_echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59277     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the compiler's result" >&5
59278 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the compiler's result" >&2;}
59279     ac_header_preproc=yes
59280     ;;
59281   no:yes:* )
59282     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
59283 $as_echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
59284     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     check for missing prerequisite headers?" >&5
59285 $as_echo "$as_me: WARNING: execinfo.h:     check for missing prerequisite headers?" >&2;}
59286     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: see the Autoconf documentation" >&5
59287 $as_echo "$as_me: WARNING: execinfo.h: see the Autoconf documentation" >&2;}
59288     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
59289 $as_echo "$as_me: WARNING: execinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
59290     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
59291 $as_echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
59292     { $as_echo "$as_me:$LINENO: WARNING: execinfo.h: in the future, the compiler will take precedence" >&5
59293 $as_echo "$as_me: WARNING: execinfo.h: in the future, the compiler will take precedence" >&2;}
59294
59295     ;;
59296 esac
59297 { $as_echo "$as_me:$LINENO: checking for execinfo.h" >&5
59298 $as_echo_n "checking for execinfo.h... " >&6; }
59299 if test "${ac_cv_header_execinfo_h+set}" = set; then
59300   $as_echo_n "(cached) " >&6
59301 else
59302   ac_cv_header_execinfo_h=$ac_header_preproc
59303 fi
59304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
59305 $as_echo "$ac_cv_header_execinfo_h" >&6; }
59306
59307 fi
59308 if test "x$ac_cv_header_execinfo_h" = x""yes; then
59309
59310         { $as_echo "$as_me:$LINENO: checking for backtrace_symbols_fd" >&5
59311 $as_echo_n "checking for backtrace_symbols_fd... " >&6; }
59312 if test "${ac_cv_func_backtrace_symbols_fd+set}" = set; then
59313   $as_echo_n "(cached) " >&6
59314 else
59315   cat >conftest.$ac_ext <<_ACEOF
59316 /* confdefs.h.  */
59317 _ACEOF
59318 cat confdefs.h >>conftest.$ac_ext
59319 cat >>conftest.$ac_ext <<_ACEOF
59320 /* end confdefs.h.  */
59321 /* Define backtrace_symbols_fd to an innocuous variant, in case <limits.h> declares backtrace_symbols_fd.
59322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59323 #define backtrace_symbols_fd innocuous_backtrace_symbols_fd
59324
59325 /* System header to define __stub macros and hopefully few prototypes,
59326     which can conflict with char backtrace_symbols_fd (); below.
59327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59328     <limits.h> exists even on freestanding compilers.  */
59329
59330 #ifdef __STDC__
59331 # include <limits.h>
59332 #else
59333 # include <assert.h>
59334 #endif
59335
59336 #undef backtrace_symbols_fd
59337
59338 /* Override any GCC internal prototype to avoid an error.
59339    Use char because int might match the return type of a GCC
59340    builtin and then its argument prototype would still apply.  */
59341 #ifdef __cplusplus
59342 extern "C"
59343 #endif
59344 char backtrace_symbols_fd ();
59345 /* The GNU C library defines this for functions which it implements
59346     to always fail with ENOSYS.  Some functions are actually named
59347     something starting with __ and the normal name is an alias.  */
59348 #if defined __stub_backtrace_symbols_fd || defined __stub___backtrace_symbols_fd
59349 choke me
59350 #endif
59351
59352 int
59353 main ()
59354 {
59355 return backtrace_symbols_fd ();
59356   ;
59357   return 0;
59358 }
59359 _ACEOF
59360 rm -f conftest.$ac_objext conftest$ac_exeext
59361 if { (ac_try="$ac_link"
59362 case "(($ac_try" in
59363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59364   *) ac_try_echo=$ac_try;;
59365 esac
59366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59367 $as_echo "$ac_try_echo") >&5
59368   (eval "$ac_link") 2>conftest.er1
59369   ac_status=$?
59370   grep -v '^ *+' conftest.er1 >conftest.err
59371   rm -f conftest.er1
59372   cat conftest.err >&5
59373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59374   (exit $ac_status); } && {
59375          test -z "$ac_c_werror_flag" ||
59376          test ! -s conftest.err
59377        } && test -s conftest$ac_exeext && {
59378          test "$cross_compiling" = yes ||
59379          $as_test_x conftest$ac_exeext
59380        }; then
59381   ac_cv_func_backtrace_symbols_fd=yes
59382 else
59383   $as_echo "$as_me: failed program was:" >&5
59384 sed 's/^/| /' conftest.$ac_ext >&5
59385
59386         ac_cv_func_backtrace_symbols_fd=no
59387 fi
59388
59389 rm -rf conftest.dSYM
59390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59391       conftest$ac_exeext conftest.$ac_ext
59392 fi
59393 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_backtrace_symbols_fd" >&5
59394 $as_echo "$ac_cv_func_backtrace_symbols_fd" >&6; }
59395 if test "x$ac_cv_func_backtrace_symbols_fd" = x""yes; then
59396
59397
59398 cat >>confdefs.h <<\_ACEOF
59399 #define HAVE_GLIBC_BACKTRACE 1
59400 _ACEOF
59401
59402
59403 fi
59404
59405
59406 fi
59407
59408
59409
59410
59411 #
59412 # Declarations
59413 #
59414 # Checks for library functions and if the function is declared in
59415 # an appropriate header file.  Functions which exist, but for which
59416 # no declaration is available, are declared in common-src/amanda.h.
59417 # It's not clear that any existing system implements but does not
59418 # declare common functions such as these.
59419 #
59420
59421 ice_have_accept=no
59422
59423 for ac_func in accept
59424 do
59425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59427 $as_echo_n "checking for $ac_func... " >&6; }
59428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59429   $as_echo_n "(cached) " >&6
59430 else
59431   cat >conftest.$ac_ext <<_ACEOF
59432 /* confdefs.h.  */
59433 _ACEOF
59434 cat confdefs.h >>conftest.$ac_ext
59435 cat >>conftest.$ac_ext <<_ACEOF
59436 /* end confdefs.h.  */
59437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59439 #define $ac_func innocuous_$ac_func
59440
59441 /* System header to define __stub macros and hopefully few prototypes,
59442     which can conflict with char $ac_func (); below.
59443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59444     <limits.h> exists even on freestanding compilers.  */
59445
59446 #ifdef __STDC__
59447 # include <limits.h>
59448 #else
59449 # include <assert.h>
59450 #endif
59451
59452 #undef $ac_func
59453
59454 /* Override any GCC internal prototype to avoid an error.
59455    Use char because int might match the return type of a GCC
59456    builtin and then its argument prototype would still apply.  */
59457 #ifdef __cplusplus
59458 extern "C"
59459 #endif
59460 char $ac_func ();
59461 /* The GNU C library defines this for functions which it implements
59462     to always fail with ENOSYS.  Some functions are actually named
59463     something starting with __ and the normal name is an alias.  */
59464 #if defined __stub_$ac_func || defined __stub___$ac_func
59465 choke me
59466 #endif
59467
59468 int
59469 main ()
59470 {
59471 return $ac_func ();
59472   ;
59473   return 0;
59474 }
59475 _ACEOF
59476 rm -f conftest.$ac_objext conftest$ac_exeext
59477 if { (ac_try="$ac_link"
59478 case "(($ac_try" in
59479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59480   *) ac_try_echo=$ac_try;;
59481 esac
59482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59483 $as_echo "$ac_try_echo") >&5
59484   (eval "$ac_link") 2>conftest.er1
59485   ac_status=$?
59486   grep -v '^ *+' conftest.er1 >conftest.err
59487   rm -f conftest.er1
59488   cat conftest.err >&5
59489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59490   (exit $ac_status); } && {
59491          test -z "$ac_c_werror_flag" ||
59492          test ! -s conftest.err
59493        } && test -s conftest$ac_exeext && {
59494          test "$cross_compiling" = yes ||
59495          $as_test_x conftest$ac_exeext
59496        }; then
59497   eval "$as_ac_var=yes"
59498 else
59499   $as_echo "$as_me: failed program was:" >&5
59500 sed 's/^/| /' conftest.$ac_ext >&5
59501
59502         eval "$as_ac_var=no"
59503 fi
59504
59505 rm -rf conftest.dSYM
59506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59507       conftest$ac_exeext conftest.$ac_ext
59508 fi
59509 ac_res=`eval 'as_val=${'$as_ac_var'}
59510                  $as_echo "$as_val"'`
59511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59512 $as_echo "$ac_res" >&6; }
59513 as_val=`eval 'as_val=${'$as_ac_var'}
59514                  $as_echo "$as_val"'`
59515    if test "x$as_val" = x""yes; then
59516   cat >>confdefs.h <<_ACEOF
59517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59518 _ACEOF
59519  ice_have_accept=yes
59520 fi
59521 done
59522
59523 if test "${ice_have_accept}" = yes; then
59524 { $as_echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
59525 $as_echo_n "checking for accept declaration in sys/types.h sys/socket.h... " >&6; }
59526 if test "${ice_cv_have_accept_decl+set}" = set; then
59527   $as_echo_n "(cached) " >&6
59528 else
59529
59530 ice_cv_have_accept_decl=no
59531 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59532 ice_re_word='(^|[^a-zA-Z0-9_])'
59533 for header in sys/types.h sys/socket.h; do
59534 # Check for ordinary declaration
59535 cat >conftest.$ac_ext <<_ACEOF
59536 /* confdefs.h.  */
59537 _ACEOF
59538 cat confdefs.h >>conftest.$ac_ext
59539 cat >>conftest.$ac_ext <<_ACEOF
59540 /* end confdefs.h.  */
59541 #include <$header>
59542
59543 _ACEOF
59544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59545   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
59546   ice_cv_have_accept_decl=yes
59547 fi
59548 rm -f conftest*
59549
59550 if test "$ice_cv_have_accept_decl" = yes; then
59551         break
59552 fi
59553 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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 #include <$header>
59561
59562 _ACEOF
59563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59564   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59565   ice_cv_have_accept_decl=yes
59566 fi
59567 rm -f conftest*
59568
59569 if test "$ice_cv_have_accept_decl" = yes; then
59570         break
59571 fi
59572 done
59573
59574 fi
59575
59576 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
59577 $as_echo "$ice_cv_have_accept_decl" >&6; }
59578 if test "$ice_cv_have_accept_decl" = yes; then
59579
59580 cat >>confdefs.h <<_ACEOF
59581 #define HAVE_ACCEPT_DECL 1
59582 _ACEOF
59583
59584 fi
59585 fi
59586
59587 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
59588 # for constant arguments.  Useless!
59589 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
59590 $as_echo_n "checking for working alloca.h... " >&6; }
59591 if test "${ac_cv_working_alloca_h+set}" = set; then
59592   $as_echo_n "(cached) " >&6
59593 else
59594   cat >conftest.$ac_ext <<_ACEOF
59595 /* confdefs.h.  */
59596 _ACEOF
59597 cat confdefs.h >>conftest.$ac_ext
59598 cat >>conftest.$ac_ext <<_ACEOF
59599 /* end confdefs.h.  */
59600 #include <alloca.h>
59601 int
59602 main ()
59603 {
59604 char *p = (char *) alloca (2 * sizeof (int));
59605                           if (p) return 0;
59606   ;
59607   return 0;
59608 }
59609 _ACEOF
59610 rm -f conftest.$ac_objext conftest$ac_exeext
59611 if { (ac_try="$ac_link"
59612 case "(($ac_try" in
59613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59614   *) ac_try_echo=$ac_try;;
59615 esac
59616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59617 $as_echo "$ac_try_echo") >&5
59618   (eval "$ac_link") 2>conftest.er1
59619   ac_status=$?
59620   grep -v '^ *+' conftest.er1 >conftest.err
59621   rm -f conftest.er1
59622   cat conftest.err >&5
59623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59624   (exit $ac_status); } && {
59625          test -z "$ac_c_werror_flag" ||
59626          test ! -s conftest.err
59627        } && test -s conftest$ac_exeext && {
59628          test "$cross_compiling" = yes ||
59629          $as_test_x conftest$ac_exeext
59630        }; then
59631   ac_cv_working_alloca_h=yes
59632 else
59633   $as_echo "$as_me: failed program was:" >&5
59634 sed 's/^/| /' conftest.$ac_ext >&5
59635
59636         ac_cv_working_alloca_h=no
59637 fi
59638
59639 rm -rf conftest.dSYM
59640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59641       conftest$ac_exeext conftest.$ac_ext
59642 fi
59643 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
59644 $as_echo "$ac_cv_working_alloca_h" >&6; }
59645 if test $ac_cv_working_alloca_h = yes; then
59646
59647 cat >>confdefs.h <<\_ACEOF
59648 #define HAVE_ALLOCA_H 1
59649 _ACEOF
59650
59651 fi
59652
59653 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
59654 $as_echo_n "checking for alloca... " >&6; }
59655 if test "${ac_cv_func_alloca_works+set}" = set; then
59656   $as_echo_n "(cached) " >&6
59657 else
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 #ifdef __GNUC__
59665 # define alloca __builtin_alloca
59666 #else
59667 # ifdef _MSC_VER
59668 #  include <malloc.h>
59669 #  define alloca _alloca
59670 # else
59671 #  ifdef HAVE_ALLOCA_H
59672 #   include <alloca.h>
59673 #  else
59674 #   ifdef _AIX
59675  #pragma alloca
59676 #   else
59677 #    ifndef alloca /* predefined by HP cc +Olibcalls */
59678 char *alloca ();
59679 #    endif
59680 #   endif
59681 #  endif
59682 # endif
59683 #endif
59684
59685 int
59686 main ()
59687 {
59688 char *p = (char *) alloca (1);
59689                                     if (p) return 0;
59690   ;
59691   return 0;
59692 }
59693 _ACEOF
59694 rm -f conftest.$ac_objext conftest$ac_exeext
59695 if { (ac_try="$ac_link"
59696 case "(($ac_try" in
59697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59698   *) ac_try_echo=$ac_try;;
59699 esac
59700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59701 $as_echo "$ac_try_echo") >&5
59702   (eval "$ac_link") 2>conftest.er1
59703   ac_status=$?
59704   grep -v '^ *+' conftest.er1 >conftest.err
59705   rm -f conftest.er1
59706   cat conftest.err >&5
59707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59708   (exit $ac_status); } && {
59709          test -z "$ac_c_werror_flag" ||
59710          test ! -s conftest.err
59711        } && test -s conftest$ac_exeext && {
59712          test "$cross_compiling" = yes ||
59713          $as_test_x conftest$ac_exeext
59714        }; then
59715   ac_cv_func_alloca_works=yes
59716 else
59717   $as_echo "$as_me: failed program was:" >&5
59718 sed 's/^/| /' conftest.$ac_ext >&5
59719
59720         ac_cv_func_alloca_works=no
59721 fi
59722
59723 rm -rf conftest.dSYM
59724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59725       conftest$ac_exeext conftest.$ac_ext
59726 fi
59727 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
59728 $as_echo "$ac_cv_func_alloca_works" >&6; }
59729
59730 if test $ac_cv_func_alloca_works = yes; then
59731
59732 cat >>confdefs.h <<\_ACEOF
59733 #define HAVE_ALLOCA 1
59734 _ACEOF
59735
59736 else
59737   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
59738 # that cause trouble.  Some versions do not even contain alloca or
59739 # contain a buggy version.  If you still want to use their alloca,
59740 # use ar to extract alloca.o from them instead of compiling alloca.c.
59741
59742 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
59743
59744 cat >>confdefs.h <<\_ACEOF
59745 #define C_ALLOCA 1
59746 _ACEOF
59747
59748
59749 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
59750 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
59751 if test "${ac_cv_os_cray+set}" = set; then
59752   $as_echo_n "(cached) " >&6
59753 else
59754   cat >conftest.$ac_ext <<_ACEOF
59755 /* confdefs.h.  */
59756 _ACEOF
59757 cat confdefs.h >>conftest.$ac_ext
59758 cat >>conftest.$ac_ext <<_ACEOF
59759 /* end confdefs.h.  */
59760 #if defined CRAY && ! defined CRAY2
59761 webecray
59762 #else
59763 wenotbecray
59764 #endif
59765
59766 _ACEOF
59767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59768   $EGREP "webecray" >/dev/null 2>&1; then
59769   ac_cv_os_cray=yes
59770 else
59771   ac_cv_os_cray=no
59772 fi
59773 rm -f conftest*
59774
59775 fi
59776 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
59777 $as_echo "$ac_cv_os_cray" >&6; }
59778 if test $ac_cv_os_cray = yes; then
59779   for ac_func in _getb67 GETB67 getb67; do
59780     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59781 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59782 $as_echo_n "checking for $ac_func... " >&6; }
59783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59784   $as_echo_n "(cached) " >&6
59785 else
59786   cat >conftest.$ac_ext <<_ACEOF
59787 /* confdefs.h.  */
59788 _ACEOF
59789 cat confdefs.h >>conftest.$ac_ext
59790 cat >>conftest.$ac_ext <<_ACEOF
59791 /* end confdefs.h.  */
59792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59794 #define $ac_func innocuous_$ac_func
59795
59796 /* System header to define __stub macros and hopefully few prototypes,
59797     which can conflict with char $ac_func (); below.
59798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59799     <limits.h> exists even on freestanding compilers.  */
59800
59801 #ifdef __STDC__
59802 # include <limits.h>
59803 #else
59804 # include <assert.h>
59805 #endif
59806
59807 #undef $ac_func
59808
59809 /* Override any GCC internal prototype to avoid an error.
59810    Use char because int might match the return type of a GCC
59811    builtin and then its argument prototype would still apply.  */
59812 #ifdef __cplusplus
59813 extern "C"
59814 #endif
59815 char $ac_func ();
59816 /* The GNU C library defines this for functions which it implements
59817     to always fail with ENOSYS.  Some functions are actually named
59818     something starting with __ and the normal name is an alias.  */
59819 #if defined __stub_$ac_func || defined __stub___$ac_func
59820 choke me
59821 #endif
59822
59823 int
59824 main ()
59825 {
59826 return $ac_func ();
59827   ;
59828   return 0;
59829 }
59830 _ACEOF
59831 rm -f conftest.$ac_objext conftest$ac_exeext
59832 if { (ac_try="$ac_link"
59833 case "(($ac_try" in
59834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59835   *) ac_try_echo=$ac_try;;
59836 esac
59837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59838 $as_echo "$ac_try_echo") >&5
59839   (eval "$ac_link") 2>conftest.er1
59840   ac_status=$?
59841   grep -v '^ *+' conftest.er1 >conftest.err
59842   rm -f conftest.er1
59843   cat conftest.err >&5
59844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59845   (exit $ac_status); } && {
59846          test -z "$ac_c_werror_flag" ||
59847          test ! -s conftest.err
59848        } && test -s conftest$ac_exeext && {
59849          test "$cross_compiling" = yes ||
59850          $as_test_x conftest$ac_exeext
59851        }; then
59852   eval "$as_ac_var=yes"
59853 else
59854   $as_echo "$as_me: failed program was:" >&5
59855 sed 's/^/| /' conftest.$ac_ext >&5
59856
59857         eval "$as_ac_var=no"
59858 fi
59859
59860 rm -rf conftest.dSYM
59861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59862       conftest$ac_exeext conftest.$ac_ext
59863 fi
59864 ac_res=`eval 'as_val=${'$as_ac_var'}
59865                  $as_echo "$as_val"'`
59866                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59867 $as_echo "$ac_res" >&6; }
59868 as_val=`eval 'as_val=${'$as_ac_var'}
59869                  $as_echo "$as_val"'`
59870    if test "x$as_val" = x""yes; then
59871
59872 cat >>confdefs.h <<_ACEOF
59873 #define CRAY_STACKSEG_END $ac_func
59874 _ACEOF
59875
59876     break
59877 fi
59878
59879   done
59880 fi
59881
59882 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
59883 $as_echo_n "checking stack direction for C alloca... " >&6; }
59884 if test "${ac_cv_c_stack_direction+set}" = set; then
59885   $as_echo_n "(cached) " >&6
59886 else
59887   if test "$cross_compiling" = yes; then
59888   ac_cv_c_stack_direction=0
59889 else
59890   cat >conftest.$ac_ext <<_ACEOF
59891 /* confdefs.h.  */
59892 _ACEOF
59893 cat confdefs.h >>conftest.$ac_ext
59894 cat >>conftest.$ac_ext <<_ACEOF
59895 /* end confdefs.h.  */
59896 $ac_includes_default
59897 int
59898 find_stack_direction ()
59899 {
59900   static char *addr = 0;
59901   auto char dummy;
59902   if (addr == 0)
59903     {
59904       addr = &dummy;
59905       return find_stack_direction ();
59906     }
59907   else
59908     return (&dummy > addr) ? 1 : -1;
59909 }
59910
59911 int
59912 main ()
59913 {
59914   return find_stack_direction () < 0;
59915 }
59916 _ACEOF
59917 rm -f conftest$ac_exeext
59918 if { (ac_try="$ac_link"
59919 case "(($ac_try" in
59920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59921   *) ac_try_echo=$ac_try;;
59922 esac
59923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59924 $as_echo "$ac_try_echo") >&5
59925   (eval "$ac_link") 2>&5
59926   ac_status=$?
59927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59929   { (case "(($ac_try" in
59930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59931   *) ac_try_echo=$ac_try;;
59932 esac
59933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59934 $as_echo "$ac_try_echo") >&5
59935   (eval "$ac_try") 2>&5
59936   ac_status=$?
59937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59938   (exit $ac_status); }; }; then
59939   ac_cv_c_stack_direction=1
59940 else
59941   $as_echo "$as_me: program exited with status $ac_status" >&5
59942 $as_echo "$as_me: failed program was:" >&5
59943 sed 's/^/| /' conftest.$ac_ext >&5
59944
59945 ( exit $ac_status )
59946 ac_cv_c_stack_direction=-1
59947 fi
59948 rm -rf conftest.dSYM
59949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59950 fi
59951
59952
59953 fi
59954 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
59955 $as_echo "$ac_cv_c_stack_direction" >&6; }
59956
59957 cat >>confdefs.h <<_ACEOF
59958 #define STACK_DIRECTION $ac_cv_c_stack_direction
59959 _ACEOF
59960
59961
59962 fi
59963
59964
59965 for ac_func in atexit
59966 do
59967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59968 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59969 $as_echo_n "checking for $ac_func... " >&6; }
59970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59971   $as_echo_n "(cached) " >&6
59972 else
59973   cat >conftest.$ac_ext <<_ACEOF
59974 /* confdefs.h.  */
59975 _ACEOF
59976 cat confdefs.h >>conftest.$ac_ext
59977 cat >>conftest.$ac_ext <<_ACEOF
59978 /* end confdefs.h.  */
59979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59981 #define $ac_func innocuous_$ac_func
59982
59983 /* System header to define __stub macros and hopefully few prototypes,
59984     which can conflict with char $ac_func (); below.
59985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59986     <limits.h> exists even on freestanding compilers.  */
59987
59988 #ifdef __STDC__
59989 # include <limits.h>
59990 #else
59991 # include <assert.h>
59992 #endif
59993
59994 #undef $ac_func
59995
59996 /* Override any GCC internal prototype to avoid an error.
59997    Use char because int might match the return type of a GCC
59998    builtin and then its argument prototype would still apply.  */
59999 #ifdef __cplusplus
60000 extern "C"
60001 #endif
60002 char $ac_func ();
60003 /* The GNU C library defines this for functions which it implements
60004     to always fail with ENOSYS.  Some functions are actually named
60005     something starting with __ and the normal name is an alias.  */
60006 #if defined __stub_$ac_func || defined __stub___$ac_func
60007 choke me
60008 #endif
60009
60010 int
60011 main ()
60012 {
60013 return $ac_func ();
60014   ;
60015   return 0;
60016 }
60017 _ACEOF
60018 rm -f conftest.$ac_objext conftest$ac_exeext
60019 if { (ac_try="$ac_link"
60020 case "(($ac_try" in
60021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60022   *) ac_try_echo=$ac_try;;
60023 esac
60024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60025 $as_echo "$ac_try_echo") >&5
60026   (eval "$ac_link") 2>conftest.er1
60027   ac_status=$?
60028   grep -v '^ *+' conftest.er1 >conftest.err
60029   rm -f conftest.er1
60030   cat conftest.err >&5
60031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60032   (exit $ac_status); } && {
60033          test -z "$ac_c_werror_flag" ||
60034          test ! -s conftest.err
60035        } && test -s conftest$ac_exeext && {
60036          test "$cross_compiling" = yes ||
60037          $as_test_x conftest$ac_exeext
60038        }; then
60039   eval "$as_ac_var=yes"
60040 else
60041   $as_echo "$as_me: failed program was:" >&5
60042 sed 's/^/| /' conftest.$ac_ext >&5
60043
60044         eval "$as_ac_var=no"
60045 fi
60046
60047 rm -rf conftest.dSYM
60048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60049       conftest$ac_exeext conftest.$ac_ext
60050 fi
60051 ac_res=`eval 'as_val=${'$as_ac_var'}
60052                  $as_echo "$as_val"'`
60053                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60054 $as_echo "$ac_res" >&6; }
60055 as_val=`eval 'as_val=${'$as_ac_var'}
60056                  $as_echo "$as_val"'`
60057    if test "x$as_val" = x""yes; then
60058   cat >>confdefs.h <<_ACEOF
60059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60060 _ACEOF
60061
60062 fi
60063 done
60064
60065
60066 ice_have_atof=no
60067
60068 for ac_func in atof
60069 do
60070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60071 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60072 $as_echo_n "checking for $ac_func... " >&6; }
60073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60074   $as_echo_n "(cached) " >&6
60075 else
60076   cat >conftest.$ac_ext <<_ACEOF
60077 /* confdefs.h.  */
60078 _ACEOF
60079 cat confdefs.h >>conftest.$ac_ext
60080 cat >>conftest.$ac_ext <<_ACEOF
60081 /* end confdefs.h.  */
60082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60084 #define $ac_func innocuous_$ac_func
60085
60086 /* System header to define __stub macros and hopefully few prototypes,
60087     which can conflict with char $ac_func (); below.
60088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60089     <limits.h> exists even on freestanding compilers.  */
60090
60091 #ifdef __STDC__
60092 # include <limits.h>
60093 #else
60094 # include <assert.h>
60095 #endif
60096
60097 #undef $ac_func
60098
60099 /* Override any GCC internal prototype to avoid an error.
60100    Use char because int might match the return type of a GCC
60101    builtin and then its argument prototype would still apply.  */
60102 #ifdef __cplusplus
60103 extern "C"
60104 #endif
60105 char $ac_func ();
60106 /* The GNU C library defines this for functions which it implements
60107     to always fail with ENOSYS.  Some functions are actually named
60108     something starting with __ and the normal name is an alias.  */
60109 #if defined __stub_$ac_func || defined __stub___$ac_func
60110 choke me
60111 #endif
60112
60113 int
60114 main ()
60115 {
60116 return $ac_func ();
60117   ;
60118   return 0;
60119 }
60120 _ACEOF
60121 rm -f conftest.$ac_objext conftest$ac_exeext
60122 if { (ac_try="$ac_link"
60123 case "(($ac_try" in
60124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60125   *) ac_try_echo=$ac_try;;
60126 esac
60127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60128 $as_echo "$ac_try_echo") >&5
60129   (eval "$ac_link") 2>conftest.er1
60130   ac_status=$?
60131   grep -v '^ *+' conftest.er1 >conftest.err
60132   rm -f conftest.er1
60133   cat conftest.err >&5
60134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60135   (exit $ac_status); } && {
60136          test -z "$ac_c_werror_flag" ||
60137          test ! -s conftest.err
60138        } && test -s conftest$ac_exeext && {
60139          test "$cross_compiling" = yes ||
60140          $as_test_x conftest$ac_exeext
60141        }; then
60142   eval "$as_ac_var=yes"
60143 else
60144   $as_echo "$as_me: failed program was:" >&5
60145 sed 's/^/| /' conftest.$ac_ext >&5
60146
60147         eval "$as_ac_var=no"
60148 fi
60149
60150 rm -rf conftest.dSYM
60151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60152       conftest$ac_exeext conftest.$ac_ext
60153 fi
60154 ac_res=`eval 'as_val=${'$as_ac_var'}
60155                  $as_echo "$as_val"'`
60156                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60157 $as_echo "$ac_res" >&6; }
60158 as_val=`eval 'as_val=${'$as_ac_var'}
60159                  $as_echo "$as_val"'`
60160    if test "x$as_val" = x""yes; then
60161   cat >>confdefs.h <<_ACEOF
60162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60163 _ACEOF
60164  ice_have_atof=yes
60165 fi
60166 done
60167
60168 if test "${ice_have_atof}" = yes; then
60169 { $as_echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
60170 $as_echo_n "checking for atof declaration in stdlib.h... " >&6; }
60171 if test "${ice_cv_have_atof_decl+set}" = set; then
60172   $as_echo_n "(cached) " >&6
60173 else
60174
60175 ice_cv_have_atof_decl=no
60176 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60177 ice_re_word='(^|[^a-zA-Z0-9_])'
60178 for header in stdlib.h; do
60179 # Check for ordinary declaration
60180 cat >conftest.$ac_ext <<_ACEOF
60181 /* confdefs.h.  */
60182 _ACEOF
60183 cat confdefs.h >>conftest.$ac_ext
60184 cat >>conftest.$ac_ext <<_ACEOF
60185 /* end confdefs.h.  */
60186 #include <$header>
60187
60188 _ACEOF
60189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60190   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
60191   ice_cv_have_atof_decl=yes
60192 fi
60193 rm -f conftest*
60194
60195 if test "$ice_cv_have_atof_decl" = yes; then
60196         break
60197 fi
60198 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60199 cat >conftest.$ac_ext <<_ACEOF
60200 /* confdefs.h.  */
60201 _ACEOF
60202 cat confdefs.h >>conftest.$ac_ext
60203 cat >>conftest.$ac_ext <<_ACEOF
60204 /* end confdefs.h.  */
60205 #include <$header>
60206
60207 _ACEOF
60208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60209   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60210   ice_cv_have_atof_decl=yes
60211 fi
60212 rm -f conftest*
60213
60214 if test "$ice_cv_have_atof_decl" = yes; then
60215         break
60216 fi
60217 done
60218
60219 fi
60220
60221 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
60222 $as_echo "$ice_cv_have_atof_decl" >&6; }
60223 if test "$ice_cv_have_atof_decl" = yes; then
60224
60225 cat >>confdefs.h <<_ACEOF
60226 #define HAVE_ATOF_DECL 1
60227 _ACEOF
60228
60229 fi
60230 fi
60231
60232
60233 ice_have_atol=no
60234
60235 for ac_func in atol
60236 do
60237 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60238 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60239 $as_echo_n "checking for $ac_func... " >&6; }
60240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60241   $as_echo_n "(cached) " >&6
60242 else
60243   cat >conftest.$ac_ext <<_ACEOF
60244 /* confdefs.h.  */
60245 _ACEOF
60246 cat confdefs.h >>conftest.$ac_ext
60247 cat >>conftest.$ac_ext <<_ACEOF
60248 /* end confdefs.h.  */
60249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60251 #define $ac_func innocuous_$ac_func
60252
60253 /* System header to define __stub macros and hopefully few prototypes,
60254     which can conflict with char $ac_func (); below.
60255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60256     <limits.h> exists even on freestanding compilers.  */
60257
60258 #ifdef __STDC__
60259 # include <limits.h>
60260 #else
60261 # include <assert.h>
60262 #endif
60263
60264 #undef $ac_func
60265
60266 /* Override any GCC internal prototype to avoid an error.
60267    Use char because int might match the return type of a GCC
60268    builtin and then its argument prototype would still apply.  */
60269 #ifdef __cplusplus
60270 extern "C"
60271 #endif
60272 char $ac_func ();
60273 /* The GNU C library defines this for functions which it implements
60274     to always fail with ENOSYS.  Some functions are actually named
60275     something starting with __ and the normal name is an alias.  */
60276 #if defined __stub_$ac_func || defined __stub___$ac_func
60277 choke me
60278 #endif
60279
60280 int
60281 main ()
60282 {
60283 return $ac_func ();
60284   ;
60285   return 0;
60286 }
60287 _ACEOF
60288 rm -f conftest.$ac_objext conftest$ac_exeext
60289 if { (ac_try="$ac_link"
60290 case "(($ac_try" in
60291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60292   *) ac_try_echo=$ac_try;;
60293 esac
60294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60295 $as_echo "$ac_try_echo") >&5
60296   (eval "$ac_link") 2>conftest.er1
60297   ac_status=$?
60298   grep -v '^ *+' conftest.er1 >conftest.err
60299   rm -f conftest.er1
60300   cat conftest.err >&5
60301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60302   (exit $ac_status); } && {
60303          test -z "$ac_c_werror_flag" ||
60304          test ! -s conftest.err
60305        } && test -s conftest$ac_exeext && {
60306          test "$cross_compiling" = yes ||
60307          $as_test_x conftest$ac_exeext
60308        }; then
60309   eval "$as_ac_var=yes"
60310 else
60311   $as_echo "$as_me: failed program was:" >&5
60312 sed 's/^/| /' conftest.$ac_ext >&5
60313
60314         eval "$as_ac_var=no"
60315 fi
60316
60317 rm -rf conftest.dSYM
60318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60319       conftest$ac_exeext conftest.$ac_ext
60320 fi
60321 ac_res=`eval 'as_val=${'$as_ac_var'}
60322                  $as_echo "$as_val"'`
60323                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60324 $as_echo "$ac_res" >&6; }
60325 as_val=`eval 'as_val=${'$as_ac_var'}
60326                  $as_echo "$as_val"'`
60327    if test "x$as_val" = x""yes; then
60328   cat >>confdefs.h <<_ACEOF
60329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60330 _ACEOF
60331  ice_have_atol=yes
60332 fi
60333 done
60334
60335 if test "${ice_have_atol}" = yes; then
60336 { $as_echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
60337 $as_echo_n "checking for atol declaration in stdlib.h... " >&6; }
60338 if test "${ice_cv_have_atol_decl+set}" = set; then
60339   $as_echo_n "(cached) " >&6
60340 else
60341
60342 ice_cv_have_atol_decl=no
60343 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60344 ice_re_word='(^|[^a-zA-Z0-9_])'
60345 for header in stdlib.h; do
60346 # Check for ordinary declaration
60347 cat >conftest.$ac_ext <<_ACEOF
60348 /* confdefs.h.  */
60349 _ACEOF
60350 cat confdefs.h >>conftest.$ac_ext
60351 cat >>conftest.$ac_ext <<_ACEOF
60352 /* end confdefs.h.  */
60353 #include <$header>
60354
60355 _ACEOF
60356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60357   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
60358   ice_cv_have_atol_decl=yes
60359 fi
60360 rm -f conftest*
60361
60362 if test "$ice_cv_have_atol_decl" = yes; then
60363         break
60364 fi
60365 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60366 cat >conftest.$ac_ext <<_ACEOF
60367 /* confdefs.h.  */
60368 _ACEOF
60369 cat confdefs.h >>conftest.$ac_ext
60370 cat >>conftest.$ac_ext <<_ACEOF
60371 /* end confdefs.h.  */
60372 #include <$header>
60373
60374 _ACEOF
60375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60376   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60377   ice_cv_have_atol_decl=yes
60378 fi
60379 rm -f conftest*
60380
60381 if test "$ice_cv_have_atol_decl" = yes; then
60382         break
60383 fi
60384 done
60385
60386 fi
60387
60388 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
60389 $as_echo "$ice_cv_have_atol_decl" >&6; }
60390 if test "$ice_cv_have_atol_decl" = yes; then
60391
60392 cat >>confdefs.h <<_ACEOF
60393 #define HAVE_ATOL_DECL 1
60394 _ACEOF
60395
60396 fi
60397 fi
60398
60399
60400 ice_have_atoll=no
60401
60402 for ac_func in atoll
60403 do
60404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60405 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60406 $as_echo_n "checking for $ac_func... " >&6; }
60407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60408   $as_echo_n "(cached) " >&6
60409 else
60410   cat >conftest.$ac_ext <<_ACEOF
60411 /* confdefs.h.  */
60412 _ACEOF
60413 cat confdefs.h >>conftest.$ac_ext
60414 cat >>conftest.$ac_ext <<_ACEOF
60415 /* end confdefs.h.  */
60416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60418 #define $ac_func innocuous_$ac_func
60419
60420 /* System header to define __stub macros and hopefully few prototypes,
60421     which can conflict with char $ac_func (); below.
60422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60423     <limits.h> exists even on freestanding compilers.  */
60424
60425 #ifdef __STDC__
60426 # include <limits.h>
60427 #else
60428 # include <assert.h>
60429 #endif
60430
60431 #undef $ac_func
60432
60433 /* Override any GCC internal prototype to avoid an error.
60434    Use char because int might match the return type of a GCC
60435    builtin and then its argument prototype would still apply.  */
60436 #ifdef __cplusplus
60437 extern "C"
60438 #endif
60439 char $ac_func ();
60440 /* The GNU C library defines this for functions which it implements
60441     to always fail with ENOSYS.  Some functions are actually named
60442     something starting with __ and the normal name is an alias.  */
60443 #if defined __stub_$ac_func || defined __stub___$ac_func
60444 choke me
60445 #endif
60446
60447 int
60448 main ()
60449 {
60450 return $ac_func ();
60451   ;
60452   return 0;
60453 }
60454 _ACEOF
60455 rm -f conftest.$ac_objext conftest$ac_exeext
60456 if { (ac_try="$ac_link"
60457 case "(($ac_try" in
60458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60459   *) ac_try_echo=$ac_try;;
60460 esac
60461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60462 $as_echo "$ac_try_echo") >&5
60463   (eval "$ac_link") 2>conftest.er1
60464   ac_status=$?
60465   grep -v '^ *+' conftest.er1 >conftest.err
60466   rm -f conftest.er1
60467   cat conftest.err >&5
60468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60469   (exit $ac_status); } && {
60470          test -z "$ac_c_werror_flag" ||
60471          test ! -s conftest.err
60472        } && test -s conftest$ac_exeext && {
60473          test "$cross_compiling" = yes ||
60474          $as_test_x conftest$ac_exeext
60475        }; then
60476   eval "$as_ac_var=yes"
60477 else
60478   $as_echo "$as_me: failed program was:" >&5
60479 sed 's/^/| /' conftest.$ac_ext >&5
60480
60481         eval "$as_ac_var=no"
60482 fi
60483
60484 rm -rf conftest.dSYM
60485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60486       conftest$ac_exeext conftest.$ac_ext
60487 fi
60488 ac_res=`eval 'as_val=${'$as_ac_var'}
60489                  $as_echo "$as_val"'`
60490                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60491 $as_echo "$ac_res" >&6; }
60492 as_val=`eval 'as_val=${'$as_ac_var'}
60493                  $as_echo "$as_val"'`
60494    if test "x$as_val" = x""yes; then
60495   cat >>confdefs.h <<_ACEOF
60496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60497 _ACEOF
60498  ice_have_atoll=yes
60499 fi
60500 done
60501
60502 if test "${ice_have_atoll}" = yes; then
60503 { $as_echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
60504 $as_echo_n "checking for atoll declaration in stdlib.h... " >&6; }
60505 if test "${ice_cv_have_atoll_decl+set}" = set; then
60506   $as_echo_n "(cached) " >&6
60507 else
60508
60509 ice_cv_have_atoll_decl=no
60510 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60511 ice_re_word='(^|[^a-zA-Z0-9_])'
60512 for header in stdlib.h; do
60513 # Check for ordinary declaration
60514 cat >conftest.$ac_ext <<_ACEOF
60515 /* confdefs.h.  */
60516 _ACEOF
60517 cat confdefs.h >>conftest.$ac_ext
60518 cat >>conftest.$ac_ext <<_ACEOF
60519 /* end confdefs.h.  */
60520 #include <$header>
60521
60522 _ACEOF
60523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60524   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
60525   ice_cv_have_atoll_decl=yes
60526 fi
60527 rm -f conftest*
60528
60529 if test "$ice_cv_have_atoll_decl" = yes; then
60530         break
60531 fi
60532 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60533 cat >conftest.$ac_ext <<_ACEOF
60534 /* confdefs.h.  */
60535 _ACEOF
60536 cat confdefs.h >>conftest.$ac_ext
60537 cat >>conftest.$ac_ext <<_ACEOF
60538 /* end confdefs.h.  */
60539 #include <$header>
60540
60541 _ACEOF
60542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60543   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60544   ice_cv_have_atoll_decl=yes
60545 fi
60546 rm -f conftest*
60547
60548 if test "$ice_cv_have_atoll_decl" = yes; then
60549         break
60550 fi
60551 done
60552
60553 fi
60554
60555 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
60556 $as_echo "$ice_cv_have_atoll_decl" >&6; }
60557 if test "$ice_cv_have_atoll_decl" = yes; then
60558
60559 cat >>confdefs.h <<_ACEOF
60560 #define HAVE_ATOLL_DECL 1
60561 _ACEOF
60562
60563 fi
60564 fi
60565
60566
60567 ice_have_strtol=no
60568
60569 for ac_func in strtol
60570 do
60571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60573 $as_echo_n "checking for $ac_func... " >&6; }
60574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60575   $as_echo_n "(cached) " >&6
60576 else
60577   cat >conftest.$ac_ext <<_ACEOF
60578 /* confdefs.h.  */
60579 _ACEOF
60580 cat confdefs.h >>conftest.$ac_ext
60581 cat >>conftest.$ac_ext <<_ACEOF
60582 /* end confdefs.h.  */
60583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60585 #define $ac_func innocuous_$ac_func
60586
60587 /* System header to define __stub macros and hopefully few prototypes,
60588     which can conflict with char $ac_func (); below.
60589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60590     <limits.h> exists even on freestanding compilers.  */
60591
60592 #ifdef __STDC__
60593 # include <limits.h>
60594 #else
60595 # include <assert.h>
60596 #endif
60597
60598 #undef $ac_func
60599
60600 /* Override any GCC internal prototype to avoid an error.
60601    Use char because int might match the return type of a GCC
60602    builtin and then its argument prototype would still apply.  */
60603 #ifdef __cplusplus
60604 extern "C"
60605 #endif
60606 char $ac_func ();
60607 /* The GNU C library defines this for functions which it implements
60608     to always fail with ENOSYS.  Some functions are actually named
60609     something starting with __ and the normal name is an alias.  */
60610 #if defined __stub_$ac_func || defined __stub___$ac_func
60611 choke me
60612 #endif
60613
60614 int
60615 main ()
60616 {
60617 return $ac_func ();
60618   ;
60619   return 0;
60620 }
60621 _ACEOF
60622 rm -f conftest.$ac_objext conftest$ac_exeext
60623 if { (ac_try="$ac_link"
60624 case "(($ac_try" in
60625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60626   *) ac_try_echo=$ac_try;;
60627 esac
60628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60629 $as_echo "$ac_try_echo") >&5
60630   (eval "$ac_link") 2>conftest.er1
60631   ac_status=$?
60632   grep -v '^ *+' conftest.er1 >conftest.err
60633   rm -f conftest.er1
60634   cat conftest.err >&5
60635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60636   (exit $ac_status); } && {
60637          test -z "$ac_c_werror_flag" ||
60638          test ! -s conftest.err
60639        } && test -s conftest$ac_exeext && {
60640          test "$cross_compiling" = yes ||
60641          $as_test_x conftest$ac_exeext
60642        }; then
60643   eval "$as_ac_var=yes"
60644 else
60645   $as_echo "$as_me: failed program was:" >&5
60646 sed 's/^/| /' conftest.$ac_ext >&5
60647
60648         eval "$as_ac_var=no"
60649 fi
60650
60651 rm -rf conftest.dSYM
60652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60653       conftest$ac_exeext conftest.$ac_ext
60654 fi
60655 ac_res=`eval 'as_val=${'$as_ac_var'}
60656                  $as_echo "$as_val"'`
60657                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60658 $as_echo "$ac_res" >&6; }
60659 as_val=`eval 'as_val=${'$as_ac_var'}
60660                  $as_echo "$as_val"'`
60661    if test "x$as_val" = x""yes; then
60662   cat >>confdefs.h <<_ACEOF
60663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60664 _ACEOF
60665  ice_have_strtol=yes
60666 fi
60667 done
60668
60669 if test "${ice_have_strtol}" = yes; then
60670 { $as_echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
60671 $as_echo_n "checking for strtol declaration in stdlib.h... " >&6; }
60672 if test "${ice_cv_have_strtol_decl+set}" = set; then
60673   $as_echo_n "(cached) " >&6
60674 else
60675
60676 ice_cv_have_strtol_decl=no
60677 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60678 ice_re_word='(^|[^a-zA-Z0-9_])'
60679 for header in stdlib.h; do
60680 # Check for ordinary declaration
60681 cat >conftest.$ac_ext <<_ACEOF
60682 /* confdefs.h.  */
60683 _ACEOF
60684 cat confdefs.h >>conftest.$ac_ext
60685 cat >>conftest.$ac_ext <<_ACEOF
60686 /* end confdefs.h.  */
60687 #include <$header>
60688
60689 _ACEOF
60690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60691   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
60692   ice_cv_have_strtol_decl=yes
60693 fi
60694 rm -f conftest*
60695
60696 if test "$ice_cv_have_strtol_decl" = yes; then
60697         break
60698 fi
60699 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60700 cat >conftest.$ac_ext <<_ACEOF
60701 /* confdefs.h.  */
60702 _ACEOF
60703 cat confdefs.h >>conftest.$ac_ext
60704 cat >>conftest.$ac_ext <<_ACEOF
60705 /* end confdefs.h.  */
60706 #include <$header>
60707
60708 _ACEOF
60709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60710   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60711   ice_cv_have_strtol_decl=yes
60712 fi
60713 rm -f conftest*
60714
60715 if test "$ice_cv_have_strtol_decl" = yes; then
60716         break
60717 fi
60718 done
60719
60720 fi
60721
60722 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
60723 $as_echo "$ice_cv_have_strtol_decl" >&6; }
60724 if test "$ice_cv_have_strtol_decl" = yes; then
60725
60726 cat >>confdefs.h <<_ACEOF
60727 #define HAVE_STRTOL_DECL 1
60728 _ACEOF
60729
60730 fi
60731 fi
60732
60733
60734 ice_have_strtoll=no
60735
60736 for ac_func in strtoll
60737 do
60738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60739 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60740 $as_echo_n "checking for $ac_func... " >&6; }
60741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60742   $as_echo_n "(cached) " >&6
60743 else
60744   cat >conftest.$ac_ext <<_ACEOF
60745 /* confdefs.h.  */
60746 _ACEOF
60747 cat confdefs.h >>conftest.$ac_ext
60748 cat >>conftest.$ac_ext <<_ACEOF
60749 /* end confdefs.h.  */
60750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60752 #define $ac_func innocuous_$ac_func
60753
60754 /* System header to define __stub macros and hopefully few prototypes,
60755     which can conflict with char $ac_func (); below.
60756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60757     <limits.h> exists even on freestanding compilers.  */
60758
60759 #ifdef __STDC__
60760 # include <limits.h>
60761 #else
60762 # include <assert.h>
60763 #endif
60764
60765 #undef $ac_func
60766
60767 /* Override any GCC internal prototype to avoid an error.
60768    Use char because int might match the return type of a GCC
60769    builtin and then its argument prototype would still apply.  */
60770 #ifdef __cplusplus
60771 extern "C"
60772 #endif
60773 char $ac_func ();
60774 /* The GNU C library defines this for functions which it implements
60775     to always fail with ENOSYS.  Some functions are actually named
60776     something starting with __ and the normal name is an alias.  */
60777 #if defined __stub_$ac_func || defined __stub___$ac_func
60778 choke me
60779 #endif
60780
60781 int
60782 main ()
60783 {
60784 return $ac_func ();
60785   ;
60786   return 0;
60787 }
60788 _ACEOF
60789 rm -f conftest.$ac_objext conftest$ac_exeext
60790 if { (ac_try="$ac_link"
60791 case "(($ac_try" in
60792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60793   *) ac_try_echo=$ac_try;;
60794 esac
60795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60796 $as_echo "$ac_try_echo") >&5
60797   (eval "$ac_link") 2>conftest.er1
60798   ac_status=$?
60799   grep -v '^ *+' conftest.er1 >conftest.err
60800   rm -f conftest.er1
60801   cat conftest.err >&5
60802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60803   (exit $ac_status); } && {
60804          test -z "$ac_c_werror_flag" ||
60805          test ! -s conftest.err
60806        } && test -s conftest$ac_exeext && {
60807          test "$cross_compiling" = yes ||
60808          $as_test_x conftest$ac_exeext
60809        }; then
60810   eval "$as_ac_var=yes"
60811 else
60812   $as_echo "$as_me: failed program was:" >&5
60813 sed 's/^/| /' conftest.$ac_ext >&5
60814
60815         eval "$as_ac_var=no"
60816 fi
60817
60818 rm -rf conftest.dSYM
60819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60820       conftest$ac_exeext conftest.$ac_ext
60821 fi
60822 ac_res=`eval 'as_val=${'$as_ac_var'}
60823                  $as_echo "$as_val"'`
60824                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60825 $as_echo "$ac_res" >&6; }
60826 as_val=`eval 'as_val=${'$as_ac_var'}
60827                  $as_echo "$as_val"'`
60828    if test "x$as_val" = x""yes; then
60829   cat >>confdefs.h <<_ACEOF
60830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60831 _ACEOF
60832  ice_have_strtoll=yes
60833 fi
60834 done
60835
60836 if test "${ice_have_strtoll}" = yes; then
60837 { $as_echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
60838 $as_echo_n "checking for strtoll declaration in stdlib.h... " >&6; }
60839 if test "${ice_cv_have_strtoll_decl+set}" = set; then
60840   $as_echo_n "(cached) " >&6
60841 else
60842
60843 ice_cv_have_strtoll_decl=no
60844 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60845 ice_re_word='(^|[^a-zA-Z0-9_])'
60846 for header in stdlib.h; do
60847 # Check for ordinary declaration
60848 cat >conftest.$ac_ext <<_ACEOF
60849 /* confdefs.h.  */
60850 _ACEOF
60851 cat confdefs.h >>conftest.$ac_ext
60852 cat >>conftest.$ac_ext <<_ACEOF
60853 /* end confdefs.h.  */
60854 #include <$header>
60855
60856 _ACEOF
60857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60858   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
60859   ice_cv_have_strtoll_decl=yes
60860 fi
60861 rm -f conftest*
60862
60863 if test "$ice_cv_have_strtoll_decl" = yes; then
60864         break
60865 fi
60866 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60867 cat >conftest.$ac_ext <<_ACEOF
60868 /* confdefs.h.  */
60869 _ACEOF
60870 cat confdefs.h >>conftest.$ac_ext
60871 cat >>conftest.$ac_ext <<_ACEOF
60872 /* end confdefs.h.  */
60873 #include <$header>
60874
60875 _ACEOF
60876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60877   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60878   ice_cv_have_strtoll_decl=yes
60879 fi
60880 rm -f conftest*
60881
60882 if test "$ice_cv_have_strtoll_decl" = yes; then
60883         break
60884 fi
60885 done
60886
60887 fi
60888
60889 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
60890 $as_echo "$ice_cv_have_strtoll_decl" >&6; }
60891 if test "$ice_cv_have_strtoll_decl" = yes; then
60892
60893 cat >>confdefs.h <<_ACEOF
60894 #define HAVE_STRTOLL_DECL 1
60895 _ACEOF
60896
60897 fi
60898 fi
60899
60900
60901 for ac_func in basename
60902 do
60903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
60904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
60905 $as_echo_n "checking for $ac_func... " >&6; }
60906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60907   $as_echo_n "(cached) " >&6
60908 else
60909   cat >conftest.$ac_ext <<_ACEOF
60910 /* confdefs.h.  */
60911 _ACEOF
60912 cat confdefs.h >>conftest.$ac_ext
60913 cat >>conftest.$ac_ext <<_ACEOF
60914 /* end confdefs.h.  */
60915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60917 #define $ac_func innocuous_$ac_func
60918
60919 /* System header to define __stub macros and hopefully few prototypes,
60920     which can conflict with char $ac_func (); below.
60921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60922     <limits.h> exists even on freestanding compilers.  */
60923
60924 #ifdef __STDC__
60925 # include <limits.h>
60926 #else
60927 # include <assert.h>
60928 #endif
60929
60930 #undef $ac_func
60931
60932 /* Override any GCC internal prototype to avoid an error.
60933    Use char because int might match the return type of a GCC
60934    builtin and then its argument prototype would still apply.  */
60935 #ifdef __cplusplus
60936 extern "C"
60937 #endif
60938 char $ac_func ();
60939 /* The GNU C library defines this for functions which it implements
60940     to always fail with ENOSYS.  Some functions are actually named
60941     something starting with __ and the normal name is an alias.  */
60942 #if defined __stub_$ac_func || defined __stub___$ac_func
60943 choke me
60944 #endif
60945
60946 int
60947 main ()
60948 {
60949 return $ac_func ();
60950   ;
60951   return 0;
60952 }
60953 _ACEOF
60954 rm -f conftest.$ac_objext conftest$ac_exeext
60955 if { (ac_try="$ac_link"
60956 case "(($ac_try" in
60957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60958   *) ac_try_echo=$ac_try;;
60959 esac
60960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60961 $as_echo "$ac_try_echo") >&5
60962   (eval "$ac_link") 2>conftest.er1
60963   ac_status=$?
60964   grep -v '^ *+' conftest.er1 >conftest.err
60965   rm -f conftest.er1
60966   cat conftest.err >&5
60967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60968   (exit $ac_status); } && {
60969          test -z "$ac_c_werror_flag" ||
60970          test ! -s conftest.err
60971        } && test -s conftest$ac_exeext && {
60972          test "$cross_compiling" = yes ||
60973          $as_test_x conftest$ac_exeext
60974        }; then
60975   eval "$as_ac_var=yes"
60976 else
60977   $as_echo "$as_me: failed program was:" >&5
60978 sed 's/^/| /' conftest.$ac_ext >&5
60979
60980         eval "$as_ac_var=no"
60981 fi
60982
60983 rm -rf conftest.dSYM
60984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60985       conftest$ac_exeext conftest.$ac_ext
60986 fi
60987 ac_res=`eval 'as_val=${'$as_ac_var'}
60988                  $as_echo "$as_val"'`
60989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60990 $as_echo "$ac_res" >&6; }
60991 as_val=`eval 'as_val=${'$as_ac_var'}
60992                  $as_echo "$as_val"'`
60993    if test "x$as_val" = x""yes; then
60994   cat >>confdefs.h <<_ACEOF
60995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
60996 _ACEOF
60997
60998 fi
60999 done
61000
61001
61002 ice_have_bind=no
61003
61004 for ac_func in bind
61005 do
61006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61008 $as_echo_n "checking for $ac_func... " >&6; }
61009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61010   $as_echo_n "(cached) " >&6
61011 else
61012   cat >conftest.$ac_ext <<_ACEOF
61013 /* confdefs.h.  */
61014 _ACEOF
61015 cat confdefs.h >>conftest.$ac_ext
61016 cat >>conftest.$ac_ext <<_ACEOF
61017 /* end confdefs.h.  */
61018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61020 #define $ac_func innocuous_$ac_func
61021
61022 /* System header to define __stub macros and hopefully few prototypes,
61023     which can conflict with char $ac_func (); below.
61024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61025     <limits.h> exists even on freestanding compilers.  */
61026
61027 #ifdef __STDC__
61028 # include <limits.h>
61029 #else
61030 # include <assert.h>
61031 #endif
61032
61033 #undef $ac_func
61034
61035 /* Override any GCC internal prototype to avoid an error.
61036    Use char because int might match the return type of a GCC
61037    builtin and then its argument prototype would still apply.  */
61038 #ifdef __cplusplus
61039 extern "C"
61040 #endif
61041 char $ac_func ();
61042 /* The GNU C library defines this for functions which it implements
61043     to always fail with ENOSYS.  Some functions are actually named
61044     something starting with __ and the normal name is an alias.  */
61045 #if defined __stub_$ac_func || defined __stub___$ac_func
61046 choke me
61047 #endif
61048
61049 int
61050 main ()
61051 {
61052 return $ac_func ();
61053   ;
61054   return 0;
61055 }
61056 _ACEOF
61057 rm -f conftest.$ac_objext conftest$ac_exeext
61058 if { (ac_try="$ac_link"
61059 case "(($ac_try" in
61060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61061   *) ac_try_echo=$ac_try;;
61062 esac
61063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61064 $as_echo "$ac_try_echo") >&5
61065   (eval "$ac_link") 2>conftest.er1
61066   ac_status=$?
61067   grep -v '^ *+' conftest.er1 >conftest.err
61068   rm -f conftest.er1
61069   cat conftest.err >&5
61070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61071   (exit $ac_status); } && {
61072          test -z "$ac_c_werror_flag" ||
61073          test ! -s conftest.err
61074        } && test -s conftest$ac_exeext && {
61075          test "$cross_compiling" = yes ||
61076          $as_test_x conftest$ac_exeext
61077        }; then
61078   eval "$as_ac_var=yes"
61079 else
61080   $as_echo "$as_me: failed program was:" >&5
61081 sed 's/^/| /' conftest.$ac_ext >&5
61082
61083         eval "$as_ac_var=no"
61084 fi
61085
61086 rm -rf conftest.dSYM
61087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61088       conftest$ac_exeext conftest.$ac_ext
61089 fi
61090 ac_res=`eval 'as_val=${'$as_ac_var'}
61091                  $as_echo "$as_val"'`
61092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61093 $as_echo "$ac_res" >&6; }
61094 as_val=`eval 'as_val=${'$as_ac_var'}
61095                  $as_echo "$as_val"'`
61096    if test "x$as_val" = x""yes; then
61097   cat >>confdefs.h <<_ACEOF
61098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61099 _ACEOF
61100  ice_have_bind=yes
61101 fi
61102 done
61103
61104 if test "${ice_have_bind}" = yes; then
61105 { $as_echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
61106 $as_echo_n "checking for bind declaration in sys/types.h sys/socket.h... " >&6; }
61107 if test "${ice_cv_have_bind_decl+set}" = set; then
61108   $as_echo_n "(cached) " >&6
61109 else
61110
61111 ice_cv_have_bind_decl=no
61112 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61113 ice_re_word='(^|[^a-zA-Z0-9_])'
61114 for header in sys/types.h sys/socket.h; do
61115 # Check for ordinary declaration
61116 cat >conftest.$ac_ext <<_ACEOF
61117 /* confdefs.h.  */
61118 _ACEOF
61119 cat confdefs.h >>conftest.$ac_ext
61120 cat >>conftest.$ac_ext <<_ACEOF
61121 /* end confdefs.h.  */
61122 #include <$header>
61123
61124 _ACEOF
61125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61126   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
61127   ice_cv_have_bind_decl=yes
61128 fi
61129 rm -f conftest*
61130
61131 if test "$ice_cv_have_bind_decl" = yes; then
61132         break
61133 fi
61134 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61135 cat >conftest.$ac_ext <<_ACEOF
61136 /* confdefs.h.  */
61137 _ACEOF
61138 cat confdefs.h >>conftest.$ac_ext
61139 cat >>conftest.$ac_ext <<_ACEOF
61140 /* end confdefs.h.  */
61141 #include <$header>
61142
61143 _ACEOF
61144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61145   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61146   ice_cv_have_bind_decl=yes
61147 fi
61148 rm -f conftest*
61149
61150 if test "$ice_cv_have_bind_decl" = yes; then
61151         break
61152 fi
61153 done
61154
61155 fi
61156
61157 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
61158 $as_echo "$ice_cv_have_bind_decl" >&6; }
61159 if test "$ice_cv_have_bind_decl" = yes; then
61160
61161 cat >>confdefs.h <<_ACEOF
61162 #define HAVE_BIND_DECL 1
61163 _ACEOF
61164
61165 fi
61166 fi
61167
61168
61169 ice_have_bcopy=no
61170
61171 for ac_func in bcopy
61172 do
61173 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61174 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61175 $as_echo_n "checking for $ac_func... " >&6; }
61176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61177   $as_echo_n "(cached) " >&6
61178 else
61179   cat >conftest.$ac_ext <<_ACEOF
61180 /* confdefs.h.  */
61181 _ACEOF
61182 cat confdefs.h >>conftest.$ac_ext
61183 cat >>conftest.$ac_ext <<_ACEOF
61184 /* end confdefs.h.  */
61185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61187 #define $ac_func innocuous_$ac_func
61188
61189 /* System header to define __stub macros and hopefully few prototypes,
61190     which can conflict with char $ac_func (); below.
61191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61192     <limits.h> exists even on freestanding compilers.  */
61193
61194 #ifdef __STDC__
61195 # include <limits.h>
61196 #else
61197 # include <assert.h>
61198 #endif
61199
61200 #undef $ac_func
61201
61202 /* Override any GCC internal prototype to avoid an error.
61203    Use char because int might match the return type of a GCC
61204    builtin and then its argument prototype would still apply.  */
61205 #ifdef __cplusplus
61206 extern "C"
61207 #endif
61208 char $ac_func ();
61209 /* The GNU C library defines this for functions which it implements
61210     to always fail with ENOSYS.  Some functions are actually named
61211     something starting with __ and the normal name is an alias.  */
61212 #if defined __stub_$ac_func || defined __stub___$ac_func
61213 choke me
61214 #endif
61215
61216 int
61217 main ()
61218 {
61219 return $ac_func ();
61220   ;
61221   return 0;
61222 }
61223 _ACEOF
61224 rm -f conftest.$ac_objext conftest$ac_exeext
61225 if { (ac_try="$ac_link"
61226 case "(($ac_try" in
61227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61228   *) ac_try_echo=$ac_try;;
61229 esac
61230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61231 $as_echo "$ac_try_echo") >&5
61232   (eval "$ac_link") 2>conftest.er1
61233   ac_status=$?
61234   grep -v '^ *+' conftest.er1 >conftest.err
61235   rm -f conftest.er1
61236   cat conftest.err >&5
61237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61238   (exit $ac_status); } && {
61239          test -z "$ac_c_werror_flag" ||
61240          test ! -s conftest.err
61241        } && test -s conftest$ac_exeext && {
61242          test "$cross_compiling" = yes ||
61243          $as_test_x conftest$ac_exeext
61244        }; then
61245   eval "$as_ac_var=yes"
61246 else
61247   $as_echo "$as_me: failed program was:" >&5
61248 sed 's/^/| /' conftest.$ac_ext >&5
61249
61250         eval "$as_ac_var=no"
61251 fi
61252
61253 rm -rf conftest.dSYM
61254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61255       conftest$ac_exeext conftest.$ac_ext
61256 fi
61257 ac_res=`eval 'as_val=${'$as_ac_var'}
61258                  $as_echo "$as_val"'`
61259                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61260 $as_echo "$ac_res" >&6; }
61261 as_val=`eval 'as_val=${'$as_ac_var'}
61262                  $as_echo "$as_val"'`
61263    if test "x$as_val" = x""yes; then
61264   cat >>confdefs.h <<_ACEOF
61265 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61266 _ACEOF
61267  ice_have_bcopy=yes
61268 fi
61269 done
61270
61271 if test "${ice_have_bcopy}" = yes; then
61272 { $as_echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
61273 $as_echo_n "checking for bcopy declaration in string.h strings.h stdlib.h... " >&6; }
61274 if test "${ice_cv_have_bcopy_decl+set}" = set; then
61275   $as_echo_n "(cached) " >&6
61276 else
61277
61278 ice_cv_have_bcopy_decl=no
61279 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61280 ice_re_word='(^|[^a-zA-Z0-9_])'
61281 for header in string.h strings.h stdlib.h; do
61282 # Check for ordinary declaration
61283 cat >conftest.$ac_ext <<_ACEOF
61284 /* confdefs.h.  */
61285 _ACEOF
61286 cat confdefs.h >>conftest.$ac_ext
61287 cat >>conftest.$ac_ext <<_ACEOF
61288 /* end confdefs.h.  */
61289 #include <$header>
61290
61291 _ACEOF
61292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61293   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
61294   ice_cv_have_bcopy_decl=yes
61295 fi
61296 rm -f conftest*
61297
61298 if test "$ice_cv_have_bcopy_decl" = yes; then
61299         break
61300 fi
61301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61302 cat >conftest.$ac_ext <<_ACEOF
61303 /* confdefs.h.  */
61304 _ACEOF
61305 cat confdefs.h >>conftest.$ac_ext
61306 cat >>conftest.$ac_ext <<_ACEOF
61307 /* end confdefs.h.  */
61308 #include <$header>
61309
61310 _ACEOF
61311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61312   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61313   ice_cv_have_bcopy_decl=yes
61314 fi
61315 rm -f conftest*
61316
61317 if test "$ice_cv_have_bcopy_decl" = yes; then
61318         break
61319 fi
61320 done
61321
61322 fi
61323
61324 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
61325 $as_echo "$ice_cv_have_bcopy_decl" >&6; }
61326 if test "$ice_cv_have_bcopy_decl" = yes; then
61327
61328 cat >>confdefs.h <<_ACEOF
61329 #define HAVE_BCOPY_DECL 1
61330 _ACEOF
61331
61332 fi
61333 fi
61334
61335
61336 ice_have_bzero=no
61337
61338 for ac_func in bzero
61339 do
61340 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61341 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61342 $as_echo_n "checking for $ac_func... " >&6; }
61343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61344   $as_echo_n "(cached) " >&6
61345 else
61346   cat >conftest.$ac_ext <<_ACEOF
61347 /* confdefs.h.  */
61348 _ACEOF
61349 cat confdefs.h >>conftest.$ac_ext
61350 cat >>conftest.$ac_ext <<_ACEOF
61351 /* end confdefs.h.  */
61352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61354 #define $ac_func innocuous_$ac_func
61355
61356 /* System header to define __stub macros and hopefully few prototypes,
61357     which can conflict with char $ac_func (); below.
61358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61359     <limits.h> exists even on freestanding compilers.  */
61360
61361 #ifdef __STDC__
61362 # include <limits.h>
61363 #else
61364 # include <assert.h>
61365 #endif
61366
61367 #undef $ac_func
61368
61369 /* Override any GCC internal prototype to avoid an error.
61370    Use char because int might match the return type of a GCC
61371    builtin and then its argument prototype would still apply.  */
61372 #ifdef __cplusplus
61373 extern "C"
61374 #endif
61375 char $ac_func ();
61376 /* The GNU C library defines this for functions which it implements
61377     to always fail with ENOSYS.  Some functions are actually named
61378     something starting with __ and the normal name is an alias.  */
61379 #if defined __stub_$ac_func || defined __stub___$ac_func
61380 choke me
61381 #endif
61382
61383 int
61384 main ()
61385 {
61386 return $ac_func ();
61387   ;
61388   return 0;
61389 }
61390 _ACEOF
61391 rm -f conftest.$ac_objext conftest$ac_exeext
61392 if { (ac_try="$ac_link"
61393 case "(($ac_try" in
61394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61395   *) ac_try_echo=$ac_try;;
61396 esac
61397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61398 $as_echo "$ac_try_echo") >&5
61399   (eval "$ac_link") 2>conftest.er1
61400   ac_status=$?
61401   grep -v '^ *+' conftest.er1 >conftest.err
61402   rm -f conftest.er1
61403   cat conftest.err >&5
61404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61405   (exit $ac_status); } && {
61406          test -z "$ac_c_werror_flag" ||
61407          test ! -s conftest.err
61408        } && test -s conftest$ac_exeext && {
61409          test "$cross_compiling" = yes ||
61410          $as_test_x conftest$ac_exeext
61411        }; then
61412   eval "$as_ac_var=yes"
61413 else
61414   $as_echo "$as_me: failed program was:" >&5
61415 sed 's/^/| /' conftest.$ac_ext >&5
61416
61417         eval "$as_ac_var=no"
61418 fi
61419
61420 rm -rf conftest.dSYM
61421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61422       conftest$ac_exeext conftest.$ac_ext
61423 fi
61424 ac_res=`eval 'as_val=${'$as_ac_var'}
61425                  $as_echo "$as_val"'`
61426                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61427 $as_echo "$ac_res" >&6; }
61428 as_val=`eval 'as_val=${'$as_ac_var'}
61429                  $as_echo "$as_val"'`
61430    if test "x$as_val" = x""yes; then
61431   cat >>confdefs.h <<_ACEOF
61432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61433 _ACEOF
61434  ice_have_bzero=yes
61435 fi
61436 done
61437
61438 if test "${ice_have_bzero}" = yes; then
61439 { $as_echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
61440 $as_echo_n "checking for bzero declaration in string.h strings.h stdlib.h... " >&6; }
61441 if test "${ice_cv_have_bzero_decl+set}" = set; then
61442   $as_echo_n "(cached) " >&6
61443 else
61444
61445 ice_cv_have_bzero_decl=no
61446 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61447 ice_re_word='(^|[^a-zA-Z0-9_])'
61448 for header in string.h strings.h stdlib.h; do
61449 # Check for ordinary declaration
61450 cat >conftest.$ac_ext <<_ACEOF
61451 /* confdefs.h.  */
61452 _ACEOF
61453 cat confdefs.h >>conftest.$ac_ext
61454 cat >>conftest.$ac_ext <<_ACEOF
61455 /* end confdefs.h.  */
61456 #include <$header>
61457
61458 _ACEOF
61459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61460   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
61461   ice_cv_have_bzero_decl=yes
61462 fi
61463 rm -f conftest*
61464
61465 if test "$ice_cv_have_bzero_decl" = yes; then
61466         break
61467 fi
61468 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61469 cat >conftest.$ac_ext <<_ACEOF
61470 /* confdefs.h.  */
61471 _ACEOF
61472 cat confdefs.h >>conftest.$ac_ext
61473 cat >>conftest.$ac_ext <<_ACEOF
61474 /* end confdefs.h.  */
61475 #include <$header>
61476
61477 _ACEOF
61478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61479   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61480   ice_cv_have_bzero_decl=yes
61481 fi
61482 rm -f conftest*
61483
61484 if test "$ice_cv_have_bzero_decl" = yes; then
61485         break
61486 fi
61487 done
61488
61489 fi
61490
61491 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
61492 $as_echo "$ice_cv_have_bzero_decl" >&6; }
61493 if test "$ice_cv_have_bzero_decl" = yes; then
61494
61495 cat >>confdefs.h <<_ACEOF
61496 #define HAVE_BZERO_DECL 1
61497 _ACEOF
61498
61499 fi
61500 fi
61501
61502 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
61503 $as_echo_n "checking whether closedir returns void... " >&6; }
61504 if test "${ac_cv_func_closedir_void+set}" = set; then
61505   $as_echo_n "(cached) " >&6
61506 else
61507   if test "$cross_compiling" = yes; then
61508   ac_cv_func_closedir_void=yes
61509 else
61510   cat >conftest.$ac_ext <<_ACEOF
61511 /* confdefs.h.  */
61512 _ACEOF
61513 cat confdefs.h >>conftest.$ac_ext
61514 cat >>conftest.$ac_ext <<_ACEOF
61515 /* end confdefs.h.  */
61516 $ac_includes_default
61517 #include <$ac_header_dirent>
61518 #ifndef __cplusplus
61519 int closedir ();
61520 #endif
61521
61522 int
61523 main ()
61524 {
61525 return closedir (opendir (".")) != 0;
61526   ;
61527   return 0;
61528 }
61529 _ACEOF
61530 rm -f conftest$ac_exeext
61531 if { (ac_try="$ac_link"
61532 case "(($ac_try" in
61533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61534   *) ac_try_echo=$ac_try;;
61535 esac
61536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61537 $as_echo "$ac_try_echo") >&5
61538   (eval "$ac_link") 2>&5
61539   ac_status=$?
61540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61542   { (case "(($ac_try" in
61543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61544   *) ac_try_echo=$ac_try;;
61545 esac
61546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61547 $as_echo "$ac_try_echo") >&5
61548   (eval "$ac_try") 2>&5
61549   ac_status=$?
61550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61551   (exit $ac_status); }; }; then
61552   ac_cv_func_closedir_void=no
61553 else
61554   $as_echo "$as_me: program exited with status $ac_status" >&5
61555 $as_echo "$as_me: failed program was:" >&5
61556 sed 's/^/| /' conftest.$ac_ext >&5
61557
61558 ( exit $ac_status )
61559 ac_cv_func_closedir_void=yes
61560 fi
61561 rm -rf conftest.dSYM
61562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61563 fi
61564
61565
61566 fi
61567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
61568 $as_echo "$ac_cv_func_closedir_void" >&6; }
61569 if test $ac_cv_func_closedir_void = yes; then
61570
61571 cat >>confdefs.h <<\_ACEOF
61572 #define CLOSEDIR_VOID 1
61573 _ACEOF
61574
61575 fi
61576
61577
61578 ice_have_closelog=no
61579
61580 for ac_func in closelog
61581 do
61582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61583 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61584 $as_echo_n "checking for $ac_func... " >&6; }
61585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61586   $as_echo_n "(cached) " >&6
61587 else
61588   cat >conftest.$ac_ext <<_ACEOF
61589 /* confdefs.h.  */
61590 _ACEOF
61591 cat confdefs.h >>conftest.$ac_ext
61592 cat >>conftest.$ac_ext <<_ACEOF
61593 /* end confdefs.h.  */
61594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61596 #define $ac_func innocuous_$ac_func
61597
61598 /* System header to define __stub macros and hopefully few prototypes,
61599     which can conflict with char $ac_func (); below.
61600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61601     <limits.h> exists even on freestanding compilers.  */
61602
61603 #ifdef __STDC__
61604 # include <limits.h>
61605 #else
61606 # include <assert.h>
61607 #endif
61608
61609 #undef $ac_func
61610
61611 /* Override any GCC internal prototype to avoid an error.
61612    Use char because int might match the return type of a GCC
61613    builtin and then its argument prototype would still apply.  */
61614 #ifdef __cplusplus
61615 extern "C"
61616 #endif
61617 char $ac_func ();
61618 /* The GNU C library defines this for functions which it implements
61619     to always fail with ENOSYS.  Some functions are actually named
61620     something starting with __ and the normal name is an alias.  */
61621 #if defined __stub_$ac_func || defined __stub___$ac_func
61622 choke me
61623 #endif
61624
61625 int
61626 main ()
61627 {
61628 return $ac_func ();
61629   ;
61630   return 0;
61631 }
61632 _ACEOF
61633 rm -f conftest.$ac_objext conftest$ac_exeext
61634 if { (ac_try="$ac_link"
61635 case "(($ac_try" in
61636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61637   *) ac_try_echo=$ac_try;;
61638 esac
61639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61640 $as_echo "$ac_try_echo") >&5
61641   (eval "$ac_link") 2>conftest.er1
61642   ac_status=$?
61643   grep -v '^ *+' conftest.er1 >conftest.err
61644   rm -f conftest.er1
61645   cat conftest.err >&5
61646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61647   (exit $ac_status); } && {
61648          test -z "$ac_c_werror_flag" ||
61649          test ! -s conftest.err
61650        } && test -s conftest$ac_exeext && {
61651          test "$cross_compiling" = yes ||
61652          $as_test_x conftest$ac_exeext
61653        }; then
61654   eval "$as_ac_var=yes"
61655 else
61656   $as_echo "$as_me: failed program was:" >&5
61657 sed 's/^/| /' conftest.$ac_ext >&5
61658
61659         eval "$as_ac_var=no"
61660 fi
61661
61662 rm -rf conftest.dSYM
61663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61664       conftest$ac_exeext conftest.$ac_ext
61665 fi
61666 ac_res=`eval 'as_val=${'$as_ac_var'}
61667                  $as_echo "$as_val"'`
61668                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61669 $as_echo "$ac_res" >&6; }
61670 as_val=`eval 'as_val=${'$as_ac_var'}
61671                  $as_echo "$as_val"'`
61672    if test "x$as_val" = x""yes; then
61673   cat >>confdefs.h <<_ACEOF
61674 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61675 _ACEOF
61676  ice_have_closelog=yes
61677 fi
61678 done
61679
61680 if test "${ice_have_closelog}" = yes; then
61681 { $as_echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
61682 $as_echo_n "checking for closelog declaration in syslog.h... " >&6; }
61683 if test "${ice_cv_have_closelog_decl+set}" = set; then
61684   $as_echo_n "(cached) " >&6
61685 else
61686
61687 ice_cv_have_closelog_decl=no
61688 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61689 ice_re_word='(^|[^a-zA-Z0-9_])'
61690 for header in syslog.h; do
61691 # Check for ordinary declaration
61692 cat >conftest.$ac_ext <<_ACEOF
61693 /* confdefs.h.  */
61694 _ACEOF
61695 cat confdefs.h >>conftest.$ac_ext
61696 cat >>conftest.$ac_ext <<_ACEOF
61697 /* end confdefs.h.  */
61698 #include <$header>
61699
61700 _ACEOF
61701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61702   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
61703   ice_cv_have_closelog_decl=yes
61704 fi
61705 rm -f conftest*
61706
61707 if test "$ice_cv_have_closelog_decl" = yes; then
61708         break
61709 fi
61710 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61711 cat >conftest.$ac_ext <<_ACEOF
61712 /* confdefs.h.  */
61713 _ACEOF
61714 cat confdefs.h >>conftest.$ac_ext
61715 cat >>conftest.$ac_ext <<_ACEOF
61716 /* end confdefs.h.  */
61717 #include <$header>
61718
61719 _ACEOF
61720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61721   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61722   ice_cv_have_closelog_decl=yes
61723 fi
61724 rm -f conftest*
61725
61726 if test "$ice_cv_have_closelog_decl" = yes; then
61727         break
61728 fi
61729 done
61730
61731 fi
61732
61733 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
61734 $as_echo "$ice_cv_have_closelog_decl" >&6; }
61735 if test "$ice_cv_have_closelog_decl" = yes; then
61736
61737 cat >>confdefs.h <<_ACEOF
61738 #define HAVE_CLOSELOG_DECL 1
61739 _ACEOF
61740
61741 fi
61742 fi
61743
61744
61745 ice_have_connect=no
61746
61747 for ac_func in connect
61748 do
61749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61750 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61751 $as_echo_n "checking for $ac_func... " >&6; }
61752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61753   $as_echo_n "(cached) " >&6
61754 else
61755   cat >conftest.$ac_ext <<_ACEOF
61756 /* confdefs.h.  */
61757 _ACEOF
61758 cat confdefs.h >>conftest.$ac_ext
61759 cat >>conftest.$ac_ext <<_ACEOF
61760 /* end confdefs.h.  */
61761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61763 #define $ac_func innocuous_$ac_func
61764
61765 /* System header to define __stub macros and hopefully few prototypes,
61766     which can conflict with char $ac_func (); below.
61767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61768     <limits.h> exists even on freestanding compilers.  */
61769
61770 #ifdef __STDC__
61771 # include <limits.h>
61772 #else
61773 # include <assert.h>
61774 #endif
61775
61776 #undef $ac_func
61777
61778 /* Override any GCC internal prototype to avoid an error.
61779    Use char because int might match the return type of a GCC
61780    builtin and then its argument prototype would still apply.  */
61781 #ifdef __cplusplus
61782 extern "C"
61783 #endif
61784 char $ac_func ();
61785 /* The GNU C library defines this for functions which it implements
61786     to always fail with ENOSYS.  Some functions are actually named
61787     something starting with __ and the normal name is an alias.  */
61788 #if defined __stub_$ac_func || defined __stub___$ac_func
61789 choke me
61790 #endif
61791
61792 int
61793 main ()
61794 {
61795 return $ac_func ();
61796   ;
61797   return 0;
61798 }
61799 _ACEOF
61800 rm -f conftest.$ac_objext conftest$ac_exeext
61801 if { (ac_try="$ac_link"
61802 case "(($ac_try" in
61803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61804   *) ac_try_echo=$ac_try;;
61805 esac
61806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61807 $as_echo "$ac_try_echo") >&5
61808   (eval "$ac_link") 2>conftest.er1
61809   ac_status=$?
61810   grep -v '^ *+' conftest.er1 >conftest.err
61811   rm -f conftest.er1
61812   cat conftest.err >&5
61813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61814   (exit $ac_status); } && {
61815          test -z "$ac_c_werror_flag" ||
61816          test ! -s conftest.err
61817        } && test -s conftest$ac_exeext && {
61818          test "$cross_compiling" = yes ||
61819          $as_test_x conftest$ac_exeext
61820        }; then
61821   eval "$as_ac_var=yes"
61822 else
61823   $as_echo "$as_me: failed program was:" >&5
61824 sed 's/^/| /' conftest.$ac_ext >&5
61825
61826         eval "$as_ac_var=no"
61827 fi
61828
61829 rm -rf conftest.dSYM
61830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61831       conftest$ac_exeext conftest.$ac_ext
61832 fi
61833 ac_res=`eval 'as_val=${'$as_ac_var'}
61834                  $as_echo "$as_val"'`
61835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61836 $as_echo "$ac_res" >&6; }
61837 as_val=`eval 'as_val=${'$as_ac_var'}
61838                  $as_echo "$as_val"'`
61839    if test "x$as_val" = x""yes; then
61840   cat >>confdefs.h <<_ACEOF
61841 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
61842 _ACEOF
61843  ice_have_connect=yes
61844 fi
61845 done
61846
61847 if test "${ice_have_connect}" = yes; then
61848 { $as_echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
61849 $as_echo_n "checking for connect declaration in sys/types.h sys/socket.h... " >&6; }
61850 if test "${ice_cv_have_connect_decl+set}" = set; then
61851   $as_echo_n "(cached) " >&6
61852 else
61853
61854 ice_cv_have_connect_decl=no
61855 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61856 ice_re_word='(^|[^a-zA-Z0-9_])'
61857 for header in sys/types.h sys/socket.h; do
61858 # Check for ordinary declaration
61859 cat >conftest.$ac_ext <<_ACEOF
61860 /* confdefs.h.  */
61861 _ACEOF
61862 cat confdefs.h >>conftest.$ac_ext
61863 cat >>conftest.$ac_ext <<_ACEOF
61864 /* end confdefs.h.  */
61865 #include <$header>
61866
61867 _ACEOF
61868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61869   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
61870   ice_cv_have_connect_decl=yes
61871 fi
61872 rm -f conftest*
61873
61874 if test "$ice_cv_have_connect_decl" = yes; then
61875         break
61876 fi
61877 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61878 cat >conftest.$ac_ext <<_ACEOF
61879 /* confdefs.h.  */
61880 _ACEOF
61881 cat confdefs.h >>conftest.$ac_ext
61882 cat >>conftest.$ac_ext <<_ACEOF
61883 /* end confdefs.h.  */
61884 #include <$header>
61885
61886 _ACEOF
61887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61888   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61889   ice_cv_have_connect_decl=yes
61890 fi
61891 rm -f conftest*
61892
61893 if test "$ice_cv_have_connect_decl" = yes; then
61894         break
61895 fi
61896 done
61897
61898 fi
61899
61900 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
61901 $as_echo "$ice_cv_have_connect_decl" >&6; }
61902 if test "$ice_cv_have_connect_decl" = yes; then
61903
61904 cat >>confdefs.h <<_ACEOF
61905 #define HAVE_CONNECT_DECL 1
61906 _ACEOF
61907
61908 fi
61909 fi
61910
61911
61912 ice_have_fclose=no
61913
61914 for ac_func in fclose
61915 do
61916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
61917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
61918 $as_echo_n "checking for $ac_func... " >&6; }
61919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61920   $as_echo_n "(cached) " >&6
61921 else
61922   cat >conftest.$ac_ext <<_ACEOF
61923 /* confdefs.h.  */
61924 _ACEOF
61925 cat confdefs.h >>conftest.$ac_ext
61926 cat >>conftest.$ac_ext <<_ACEOF
61927 /* end confdefs.h.  */
61928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61930 #define $ac_func innocuous_$ac_func
61931
61932 /* System header to define __stub macros and hopefully few prototypes,
61933     which can conflict with char $ac_func (); below.
61934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61935     <limits.h> exists even on freestanding compilers.  */
61936
61937 #ifdef __STDC__
61938 # include <limits.h>
61939 #else
61940 # include <assert.h>
61941 #endif
61942
61943 #undef $ac_func
61944
61945 /* Override any GCC internal prototype to avoid an error.
61946    Use char because int might match the return type of a GCC
61947    builtin and then its argument prototype would still apply.  */
61948 #ifdef __cplusplus
61949 extern "C"
61950 #endif
61951 char $ac_func ();
61952 /* The GNU C library defines this for functions which it implements
61953     to always fail with ENOSYS.  Some functions are actually named
61954     something starting with __ and the normal name is an alias.  */
61955 #if defined __stub_$ac_func || defined __stub___$ac_func
61956 choke me
61957 #endif
61958
61959 int
61960 main ()
61961 {
61962 return $ac_func ();
61963   ;
61964   return 0;
61965 }
61966 _ACEOF
61967 rm -f conftest.$ac_objext conftest$ac_exeext
61968 if { (ac_try="$ac_link"
61969 case "(($ac_try" in
61970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61971   *) ac_try_echo=$ac_try;;
61972 esac
61973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61974 $as_echo "$ac_try_echo") >&5
61975   (eval "$ac_link") 2>conftest.er1
61976   ac_status=$?
61977   grep -v '^ *+' conftest.er1 >conftest.err
61978   rm -f conftest.er1
61979   cat conftest.err >&5
61980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61981   (exit $ac_status); } && {
61982          test -z "$ac_c_werror_flag" ||
61983          test ! -s conftest.err
61984        } && test -s conftest$ac_exeext && {
61985          test "$cross_compiling" = yes ||
61986          $as_test_x conftest$ac_exeext
61987        }; then
61988   eval "$as_ac_var=yes"
61989 else
61990   $as_echo "$as_me: failed program was:" >&5
61991 sed 's/^/| /' conftest.$ac_ext >&5
61992
61993         eval "$as_ac_var=no"
61994 fi
61995
61996 rm -rf conftest.dSYM
61997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61998       conftest$ac_exeext conftest.$ac_ext
61999 fi
62000 ac_res=`eval 'as_val=${'$as_ac_var'}
62001                  $as_echo "$as_val"'`
62002                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62003 $as_echo "$ac_res" >&6; }
62004 as_val=`eval 'as_val=${'$as_ac_var'}
62005                  $as_echo "$as_val"'`
62006    if test "x$as_val" = x""yes; then
62007   cat >>confdefs.h <<_ACEOF
62008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62009 _ACEOF
62010  ice_have_fclose=yes
62011 fi
62012 done
62013
62014 if test "${ice_have_fclose}" = yes; then
62015 { $as_echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
62016 $as_echo_n "checking for fclose declaration in stdio.h... " >&6; }
62017 if test "${ice_cv_have_fclose_decl+set}" = set; then
62018   $as_echo_n "(cached) " >&6
62019 else
62020
62021 ice_cv_have_fclose_decl=no
62022 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62023 ice_re_word='(^|[^a-zA-Z0-9_])'
62024 for header in stdio.h; do
62025 # Check for ordinary declaration
62026 cat >conftest.$ac_ext <<_ACEOF
62027 /* confdefs.h.  */
62028 _ACEOF
62029 cat confdefs.h >>conftest.$ac_ext
62030 cat >>conftest.$ac_ext <<_ACEOF
62031 /* end confdefs.h.  */
62032 #include <$header>
62033
62034 _ACEOF
62035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62036   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
62037   ice_cv_have_fclose_decl=yes
62038 fi
62039 rm -f conftest*
62040
62041 if test "$ice_cv_have_fclose_decl" = yes; then
62042         break
62043 fi
62044 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62045 cat >conftest.$ac_ext <<_ACEOF
62046 /* confdefs.h.  */
62047 _ACEOF
62048 cat confdefs.h >>conftest.$ac_ext
62049 cat >>conftest.$ac_ext <<_ACEOF
62050 /* end confdefs.h.  */
62051 #include <$header>
62052
62053 _ACEOF
62054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62055   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62056   ice_cv_have_fclose_decl=yes
62057 fi
62058 rm -f conftest*
62059
62060 if test "$ice_cv_have_fclose_decl" = yes; then
62061         break
62062 fi
62063 done
62064
62065 fi
62066
62067 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
62068 $as_echo "$ice_cv_have_fclose_decl" >&6; }
62069 if test "$ice_cv_have_fclose_decl" = yes; then
62070
62071 cat >>confdefs.h <<_ACEOF
62072 #define HAVE_FCLOSE_DECL 1
62073 _ACEOF
62074
62075 fi
62076 fi
62077
62078
62079 ice_have_fflush=no
62080
62081 for ac_func in fflush
62082 do
62083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62084 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62085 $as_echo_n "checking for $ac_func... " >&6; }
62086 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62087   $as_echo_n "(cached) " >&6
62088 else
62089   cat >conftest.$ac_ext <<_ACEOF
62090 /* confdefs.h.  */
62091 _ACEOF
62092 cat confdefs.h >>conftest.$ac_ext
62093 cat >>conftest.$ac_ext <<_ACEOF
62094 /* end confdefs.h.  */
62095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62097 #define $ac_func innocuous_$ac_func
62098
62099 /* System header to define __stub macros and hopefully few prototypes,
62100     which can conflict with char $ac_func (); below.
62101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62102     <limits.h> exists even on freestanding compilers.  */
62103
62104 #ifdef __STDC__
62105 # include <limits.h>
62106 #else
62107 # include <assert.h>
62108 #endif
62109
62110 #undef $ac_func
62111
62112 /* Override any GCC internal prototype to avoid an error.
62113    Use char because int might match the return type of a GCC
62114    builtin and then its argument prototype would still apply.  */
62115 #ifdef __cplusplus
62116 extern "C"
62117 #endif
62118 char $ac_func ();
62119 /* The GNU C library defines this for functions which it implements
62120     to always fail with ENOSYS.  Some functions are actually named
62121     something starting with __ and the normal name is an alias.  */
62122 #if defined __stub_$ac_func || defined __stub___$ac_func
62123 choke me
62124 #endif
62125
62126 int
62127 main ()
62128 {
62129 return $ac_func ();
62130   ;
62131   return 0;
62132 }
62133 _ACEOF
62134 rm -f conftest.$ac_objext conftest$ac_exeext
62135 if { (ac_try="$ac_link"
62136 case "(($ac_try" in
62137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62138   *) ac_try_echo=$ac_try;;
62139 esac
62140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62141 $as_echo "$ac_try_echo") >&5
62142   (eval "$ac_link") 2>conftest.er1
62143   ac_status=$?
62144   grep -v '^ *+' conftest.er1 >conftest.err
62145   rm -f conftest.er1
62146   cat conftest.err >&5
62147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62148   (exit $ac_status); } && {
62149          test -z "$ac_c_werror_flag" ||
62150          test ! -s conftest.err
62151        } && test -s conftest$ac_exeext && {
62152          test "$cross_compiling" = yes ||
62153          $as_test_x conftest$ac_exeext
62154        }; then
62155   eval "$as_ac_var=yes"
62156 else
62157   $as_echo "$as_me: failed program was:" >&5
62158 sed 's/^/| /' conftest.$ac_ext >&5
62159
62160         eval "$as_ac_var=no"
62161 fi
62162
62163 rm -rf conftest.dSYM
62164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62165       conftest$ac_exeext conftest.$ac_ext
62166 fi
62167 ac_res=`eval 'as_val=${'$as_ac_var'}
62168                  $as_echo "$as_val"'`
62169                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62170 $as_echo "$ac_res" >&6; }
62171 as_val=`eval 'as_val=${'$as_ac_var'}
62172                  $as_echo "$as_val"'`
62173    if test "x$as_val" = x""yes; then
62174   cat >>confdefs.h <<_ACEOF
62175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62176 _ACEOF
62177  ice_have_fflush=yes
62178 fi
62179 done
62180
62181 if test "${ice_have_fflush}" = yes; then
62182 { $as_echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
62183 $as_echo_n "checking for fflush declaration in stdio.h... " >&6; }
62184 if test "${ice_cv_have_fflush_decl+set}" = set; then
62185   $as_echo_n "(cached) " >&6
62186 else
62187
62188 ice_cv_have_fflush_decl=no
62189 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62190 ice_re_word='(^|[^a-zA-Z0-9_])'
62191 for header in stdio.h; do
62192 # Check for ordinary declaration
62193 cat >conftest.$ac_ext <<_ACEOF
62194 /* confdefs.h.  */
62195 _ACEOF
62196 cat confdefs.h >>conftest.$ac_ext
62197 cat >>conftest.$ac_ext <<_ACEOF
62198 /* end confdefs.h.  */
62199 #include <$header>
62200
62201 _ACEOF
62202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62203   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
62204   ice_cv_have_fflush_decl=yes
62205 fi
62206 rm -f conftest*
62207
62208 if test "$ice_cv_have_fflush_decl" = yes; then
62209         break
62210 fi
62211 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62212 cat >conftest.$ac_ext <<_ACEOF
62213 /* confdefs.h.  */
62214 _ACEOF
62215 cat confdefs.h >>conftest.$ac_ext
62216 cat >>conftest.$ac_ext <<_ACEOF
62217 /* end confdefs.h.  */
62218 #include <$header>
62219
62220 _ACEOF
62221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62222   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62223   ice_cv_have_fflush_decl=yes
62224 fi
62225 rm -f conftest*
62226
62227 if test "$ice_cv_have_fflush_decl" = yes; then
62228         break
62229 fi
62230 done
62231
62232 fi
62233
62234 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
62235 $as_echo "$ice_cv_have_fflush_decl" >&6; }
62236 if test "$ice_cv_have_fflush_decl" = yes; then
62237
62238 cat >>confdefs.h <<_ACEOF
62239 #define HAVE_FFLUSH_DECL 1
62240 _ACEOF
62241
62242 fi
62243 fi
62244
62245
62246 ice_have_fprintf=no
62247
62248 for ac_func in fprintf
62249 do
62250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62252 $as_echo_n "checking for $ac_func... " >&6; }
62253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62254   $as_echo_n "(cached) " >&6
62255 else
62256   cat >conftest.$ac_ext <<_ACEOF
62257 /* confdefs.h.  */
62258 _ACEOF
62259 cat confdefs.h >>conftest.$ac_ext
62260 cat >>conftest.$ac_ext <<_ACEOF
62261 /* end confdefs.h.  */
62262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62264 #define $ac_func innocuous_$ac_func
62265
62266 /* System header to define __stub macros and hopefully few prototypes,
62267     which can conflict with char $ac_func (); below.
62268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62269     <limits.h> exists even on freestanding compilers.  */
62270
62271 #ifdef __STDC__
62272 # include <limits.h>
62273 #else
62274 # include <assert.h>
62275 #endif
62276
62277 #undef $ac_func
62278
62279 /* Override any GCC internal prototype to avoid an error.
62280    Use char because int might match the return type of a GCC
62281    builtin and then its argument prototype would still apply.  */
62282 #ifdef __cplusplus
62283 extern "C"
62284 #endif
62285 char $ac_func ();
62286 /* The GNU C library defines this for functions which it implements
62287     to always fail with ENOSYS.  Some functions are actually named
62288     something starting with __ and the normal name is an alias.  */
62289 #if defined __stub_$ac_func || defined __stub___$ac_func
62290 choke me
62291 #endif
62292
62293 int
62294 main ()
62295 {
62296 return $ac_func ();
62297   ;
62298   return 0;
62299 }
62300 _ACEOF
62301 rm -f conftest.$ac_objext conftest$ac_exeext
62302 if { (ac_try="$ac_link"
62303 case "(($ac_try" in
62304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62305   *) ac_try_echo=$ac_try;;
62306 esac
62307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62308 $as_echo "$ac_try_echo") >&5
62309   (eval "$ac_link") 2>conftest.er1
62310   ac_status=$?
62311   grep -v '^ *+' conftest.er1 >conftest.err
62312   rm -f conftest.er1
62313   cat conftest.err >&5
62314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62315   (exit $ac_status); } && {
62316          test -z "$ac_c_werror_flag" ||
62317          test ! -s conftest.err
62318        } && test -s conftest$ac_exeext && {
62319          test "$cross_compiling" = yes ||
62320          $as_test_x conftest$ac_exeext
62321        }; then
62322   eval "$as_ac_var=yes"
62323 else
62324   $as_echo "$as_me: failed program was:" >&5
62325 sed 's/^/| /' conftest.$ac_ext >&5
62326
62327         eval "$as_ac_var=no"
62328 fi
62329
62330 rm -rf conftest.dSYM
62331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62332       conftest$ac_exeext conftest.$ac_ext
62333 fi
62334 ac_res=`eval 'as_val=${'$as_ac_var'}
62335                  $as_echo "$as_val"'`
62336                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62337 $as_echo "$ac_res" >&6; }
62338 as_val=`eval 'as_val=${'$as_ac_var'}
62339                  $as_echo "$as_val"'`
62340    if test "x$as_val" = x""yes; then
62341   cat >>confdefs.h <<_ACEOF
62342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62343 _ACEOF
62344  ice_have_fprintf=yes
62345 fi
62346 done
62347
62348 if test "${ice_have_fprintf}" = yes; then
62349 { $as_echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
62350 $as_echo_n "checking for fprintf declaration in stdio.h... " >&6; }
62351 if test "${ice_cv_have_fprintf_decl+set}" = set; then
62352   $as_echo_n "(cached) " >&6
62353 else
62354
62355 ice_cv_have_fprintf_decl=no
62356 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62357 ice_re_word='(^|[^a-zA-Z0-9_])'
62358 for header in stdio.h; do
62359 # Check for ordinary declaration
62360 cat >conftest.$ac_ext <<_ACEOF
62361 /* confdefs.h.  */
62362 _ACEOF
62363 cat confdefs.h >>conftest.$ac_ext
62364 cat >>conftest.$ac_ext <<_ACEOF
62365 /* end confdefs.h.  */
62366 #include <$header>
62367
62368 _ACEOF
62369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62370   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
62371   ice_cv_have_fprintf_decl=yes
62372 fi
62373 rm -f conftest*
62374
62375 if test "$ice_cv_have_fprintf_decl" = yes; then
62376         break
62377 fi
62378 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62379 cat >conftest.$ac_ext <<_ACEOF
62380 /* confdefs.h.  */
62381 _ACEOF
62382 cat confdefs.h >>conftest.$ac_ext
62383 cat >>conftest.$ac_ext <<_ACEOF
62384 /* end confdefs.h.  */
62385 #include <$header>
62386
62387 _ACEOF
62388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62389   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62390   ice_cv_have_fprintf_decl=yes
62391 fi
62392 rm -f conftest*
62393
62394 if test "$ice_cv_have_fprintf_decl" = yes; then
62395         break
62396 fi
62397 done
62398
62399 fi
62400
62401 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
62402 $as_echo "$ice_cv_have_fprintf_decl" >&6; }
62403 if test "$ice_cv_have_fprintf_decl" = yes; then
62404
62405 cat >>confdefs.h <<_ACEOF
62406 #define HAVE_FPRINTF_DECL 1
62407 _ACEOF
62408
62409 fi
62410 fi
62411
62412
62413 ice_have_fputc=no
62414
62415 for ac_func in fputc
62416 do
62417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62419 $as_echo_n "checking for $ac_func... " >&6; }
62420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62421   $as_echo_n "(cached) " >&6
62422 else
62423   cat >conftest.$ac_ext <<_ACEOF
62424 /* confdefs.h.  */
62425 _ACEOF
62426 cat confdefs.h >>conftest.$ac_ext
62427 cat >>conftest.$ac_ext <<_ACEOF
62428 /* end confdefs.h.  */
62429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62431 #define $ac_func innocuous_$ac_func
62432
62433 /* System header to define __stub macros and hopefully few prototypes,
62434     which can conflict with char $ac_func (); below.
62435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62436     <limits.h> exists even on freestanding compilers.  */
62437
62438 #ifdef __STDC__
62439 # include <limits.h>
62440 #else
62441 # include <assert.h>
62442 #endif
62443
62444 #undef $ac_func
62445
62446 /* Override any GCC internal prototype to avoid an error.
62447    Use char because int might match the return type of a GCC
62448    builtin and then its argument prototype would still apply.  */
62449 #ifdef __cplusplus
62450 extern "C"
62451 #endif
62452 char $ac_func ();
62453 /* The GNU C library defines this for functions which it implements
62454     to always fail with ENOSYS.  Some functions are actually named
62455     something starting with __ and the normal name is an alias.  */
62456 #if defined __stub_$ac_func || defined __stub___$ac_func
62457 choke me
62458 #endif
62459
62460 int
62461 main ()
62462 {
62463 return $ac_func ();
62464   ;
62465   return 0;
62466 }
62467 _ACEOF
62468 rm -f conftest.$ac_objext conftest$ac_exeext
62469 if { (ac_try="$ac_link"
62470 case "(($ac_try" in
62471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62472   *) ac_try_echo=$ac_try;;
62473 esac
62474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62475 $as_echo "$ac_try_echo") >&5
62476   (eval "$ac_link") 2>conftest.er1
62477   ac_status=$?
62478   grep -v '^ *+' conftest.er1 >conftest.err
62479   rm -f conftest.er1
62480   cat conftest.err >&5
62481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62482   (exit $ac_status); } && {
62483          test -z "$ac_c_werror_flag" ||
62484          test ! -s conftest.err
62485        } && test -s conftest$ac_exeext && {
62486          test "$cross_compiling" = yes ||
62487          $as_test_x conftest$ac_exeext
62488        }; then
62489   eval "$as_ac_var=yes"
62490 else
62491   $as_echo "$as_me: failed program was:" >&5
62492 sed 's/^/| /' conftest.$ac_ext >&5
62493
62494         eval "$as_ac_var=no"
62495 fi
62496
62497 rm -rf conftest.dSYM
62498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62499       conftest$ac_exeext conftest.$ac_ext
62500 fi
62501 ac_res=`eval 'as_val=${'$as_ac_var'}
62502                  $as_echo "$as_val"'`
62503                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62504 $as_echo "$ac_res" >&6; }
62505 as_val=`eval 'as_val=${'$as_ac_var'}
62506                  $as_echo "$as_val"'`
62507    if test "x$as_val" = x""yes; then
62508   cat >>confdefs.h <<_ACEOF
62509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62510 _ACEOF
62511  ice_have_fputc=yes
62512 fi
62513 done
62514
62515 if test "${ice_have_fputc}" = yes; then
62516 { $as_echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
62517 $as_echo_n "checking for fputc declaration in stdio.h... " >&6; }
62518 if test "${ice_cv_have_fputc_decl+set}" = set; then
62519   $as_echo_n "(cached) " >&6
62520 else
62521
62522 ice_cv_have_fputc_decl=no
62523 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62524 ice_re_word='(^|[^a-zA-Z0-9_])'
62525 for header in stdio.h; do
62526 # Check for ordinary declaration
62527 cat >conftest.$ac_ext <<_ACEOF
62528 /* confdefs.h.  */
62529 _ACEOF
62530 cat confdefs.h >>conftest.$ac_ext
62531 cat >>conftest.$ac_ext <<_ACEOF
62532 /* end confdefs.h.  */
62533 #include <$header>
62534
62535 _ACEOF
62536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62537   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
62538   ice_cv_have_fputc_decl=yes
62539 fi
62540 rm -f conftest*
62541
62542 if test "$ice_cv_have_fputc_decl" = yes; then
62543         break
62544 fi
62545 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62546 cat >conftest.$ac_ext <<_ACEOF
62547 /* confdefs.h.  */
62548 _ACEOF
62549 cat confdefs.h >>conftest.$ac_ext
62550 cat >>conftest.$ac_ext <<_ACEOF
62551 /* end confdefs.h.  */
62552 #include <$header>
62553
62554 _ACEOF
62555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62556   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62557   ice_cv_have_fputc_decl=yes
62558 fi
62559 rm -f conftest*
62560
62561 if test "$ice_cv_have_fputc_decl" = yes; then
62562         break
62563 fi
62564 done
62565
62566 fi
62567
62568 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
62569 $as_echo "$ice_cv_have_fputc_decl" >&6; }
62570 if test "$ice_cv_have_fputc_decl" = yes; then
62571
62572 cat >>confdefs.h <<_ACEOF
62573 #define HAVE_FPUTC_DECL 1
62574 _ACEOF
62575
62576 fi
62577 fi
62578
62579
62580 ice_have_fputs=no
62581
62582 for ac_func in fputs
62583 do
62584 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62585 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62586 $as_echo_n "checking for $ac_func... " >&6; }
62587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62588   $as_echo_n "(cached) " >&6
62589 else
62590   cat >conftest.$ac_ext <<_ACEOF
62591 /* confdefs.h.  */
62592 _ACEOF
62593 cat confdefs.h >>conftest.$ac_ext
62594 cat >>conftest.$ac_ext <<_ACEOF
62595 /* end confdefs.h.  */
62596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62598 #define $ac_func innocuous_$ac_func
62599
62600 /* System header to define __stub macros and hopefully few prototypes,
62601     which can conflict with char $ac_func (); below.
62602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62603     <limits.h> exists even on freestanding compilers.  */
62604
62605 #ifdef __STDC__
62606 # include <limits.h>
62607 #else
62608 # include <assert.h>
62609 #endif
62610
62611 #undef $ac_func
62612
62613 /* Override any GCC internal prototype to avoid an error.
62614    Use char because int might match the return type of a GCC
62615    builtin and then its argument prototype would still apply.  */
62616 #ifdef __cplusplus
62617 extern "C"
62618 #endif
62619 char $ac_func ();
62620 /* The GNU C library defines this for functions which it implements
62621     to always fail with ENOSYS.  Some functions are actually named
62622     something starting with __ and the normal name is an alias.  */
62623 #if defined __stub_$ac_func || defined __stub___$ac_func
62624 choke me
62625 #endif
62626
62627 int
62628 main ()
62629 {
62630 return $ac_func ();
62631   ;
62632   return 0;
62633 }
62634 _ACEOF
62635 rm -f conftest.$ac_objext conftest$ac_exeext
62636 if { (ac_try="$ac_link"
62637 case "(($ac_try" in
62638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62639   *) ac_try_echo=$ac_try;;
62640 esac
62641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62642 $as_echo "$ac_try_echo") >&5
62643   (eval "$ac_link") 2>conftest.er1
62644   ac_status=$?
62645   grep -v '^ *+' conftest.er1 >conftest.err
62646   rm -f conftest.er1
62647   cat conftest.err >&5
62648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62649   (exit $ac_status); } && {
62650          test -z "$ac_c_werror_flag" ||
62651          test ! -s conftest.err
62652        } && test -s conftest$ac_exeext && {
62653          test "$cross_compiling" = yes ||
62654          $as_test_x conftest$ac_exeext
62655        }; then
62656   eval "$as_ac_var=yes"
62657 else
62658   $as_echo "$as_me: failed program was:" >&5
62659 sed 's/^/| /' conftest.$ac_ext >&5
62660
62661         eval "$as_ac_var=no"
62662 fi
62663
62664 rm -rf conftest.dSYM
62665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62666       conftest$ac_exeext conftest.$ac_ext
62667 fi
62668 ac_res=`eval 'as_val=${'$as_ac_var'}
62669                  $as_echo "$as_val"'`
62670                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62671 $as_echo "$ac_res" >&6; }
62672 as_val=`eval 'as_val=${'$as_ac_var'}
62673                  $as_echo "$as_val"'`
62674    if test "x$as_val" = x""yes; then
62675   cat >>confdefs.h <<_ACEOF
62676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62677 _ACEOF
62678  ice_have_fputs=yes
62679 fi
62680 done
62681
62682 if test "${ice_have_fputs}" = yes; then
62683 { $as_echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
62684 $as_echo_n "checking for fputs declaration in stdio.h... " >&6; }
62685 if test "${ice_cv_have_fputs_decl+set}" = set; then
62686   $as_echo_n "(cached) " >&6
62687 else
62688
62689 ice_cv_have_fputs_decl=no
62690 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62691 ice_re_word='(^|[^a-zA-Z0-9_])'
62692 for header in stdio.h; do
62693 # Check for ordinary declaration
62694 cat >conftest.$ac_ext <<_ACEOF
62695 /* confdefs.h.  */
62696 _ACEOF
62697 cat confdefs.h >>conftest.$ac_ext
62698 cat >>conftest.$ac_ext <<_ACEOF
62699 /* end confdefs.h.  */
62700 #include <$header>
62701
62702 _ACEOF
62703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62704   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
62705   ice_cv_have_fputs_decl=yes
62706 fi
62707 rm -f conftest*
62708
62709 if test "$ice_cv_have_fputs_decl" = yes; then
62710         break
62711 fi
62712 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62713 cat >conftest.$ac_ext <<_ACEOF
62714 /* confdefs.h.  */
62715 _ACEOF
62716 cat confdefs.h >>conftest.$ac_ext
62717 cat >>conftest.$ac_ext <<_ACEOF
62718 /* end confdefs.h.  */
62719 #include <$header>
62720
62721 _ACEOF
62722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62723   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62724   ice_cv_have_fputs_decl=yes
62725 fi
62726 rm -f conftest*
62727
62728 if test "$ice_cv_have_fputs_decl" = yes; then
62729         break
62730 fi
62731 done
62732
62733 fi
62734
62735 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
62736 $as_echo "$ice_cv_have_fputs_decl" >&6; }
62737 if test "$ice_cv_have_fputs_decl" = yes; then
62738
62739 cat >>confdefs.h <<_ACEOF
62740 #define HAVE_FPUTS_DECL 1
62741 _ACEOF
62742
62743 fi
62744 fi
62745
62746
62747 ice_have_fread=no
62748
62749 for ac_func in fread
62750 do
62751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62752 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62753 $as_echo_n "checking for $ac_func... " >&6; }
62754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62755   $as_echo_n "(cached) " >&6
62756 else
62757   cat >conftest.$ac_ext <<_ACEOF
62758 /* confdefs.h.  */
62759 _ACEOF
62760 cat confdefs.h >>conftest.$ac_ext
62761 cat >>conftest.$ac_ext <<_ACEOF
62762 /* end confdefs.h.  */
62763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62765 #define $ac_func innocuous_$ac_func
62766
62767 /* System header to define __stub macros and hopefully few prototypes,
62768     which can conflict with char $ac_func (); below.
62769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62770     <limits.h> exists even on freestanding compilers.  */
62771
62772 #ifdef __STDC__
62773 # include <limits.h>
62774 #else
62775 # include <assert.h>
62776 #endif
62777
62778 #undef $ac_func
62779
62780 /* Override any GCC internal prototype to avoid an error.
62781    Use char because int might match the return type of a GCC
62782    builtin and then its argument prototype would still apply.  */
62783 #ifdef __cplusplus
62784 extern "C"
62785 #endif
62786 char $ac_func ();
62787 /* The GNU C library defines this for functions which it implements
62788     to always fail with ENOSYS.  Some functions are actually named
62789     something starting with __ and the normal name is an alias.  */
62790 #if defined __stub_$ac_func || defined __stub___$ac_func
62791 choke me
62792 #endif
62793
62794 int
62795 main ()
62796 {
62797 return $ac_func ();
62798   ;
62799   return 0;
62800 }
62801 _ACEOF
62802 rm -f conftest.$ac_objext conftest$ac_exeext
62803 if { (ac_try="$ac_link"
62804 case "(($ac_try" in
62805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62806   *) ac_try_echo=$ac_try;;
62807 esac
62808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62809 $as_echo "$ac_try_echo") >&5
62810   (eval "$ac_link") 2>conftest.er1
62811   ac_status=$?
62812   grep -v '^ *+' conftest.er1 >conftest.err
62813   rm -f conftest.er1
62814   cat conftest.err >&5
62815   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62816   (exit $ac_status); } && {
62817          test -z "$ac_c_werror_flag" ||
62818          test ! -s conftest.err
62819        } && test -s conftest$ac_exeext && {
62820          test "$cross_compiling" = yes ||
62821          $as_test_x conftest$ac_exeext
62822        }; then
62823   eval "$as_ac_var=yes"
62824 else
62825   $as_echo "$as_me: failed program was:" >&5
62826 sed 's/^/| /' conftest.$ac_ext >&5
62827
62828         eval "$as_ac_var=no"
62829 fi
62830
62831 rm -rf conftest.dSYM
62832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62833       conftest$ac_exeext conftest.$ac_ext
62834 fi
62835 ac_res=`eval 'as_val=${'$as_ac_var'}
62836                  $as_echo "$as_val"'`
62837                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62838 $as_echo "$ac_res" >&6; }
62839 as_val=`eval 'as_val=${'$as_ac_var'}
62840                  $as_echo "$as_val"'`
62841    if test "x$as_val" = x""yes; then
62842   cat >>confdefs.h <<_ACEOF
62843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62844 _ACEOF
62845  ice_have_fread=yes
62846 fi
62847 done
62848
62849 if test "${ice_have_fread}" = yes; then
62850 { $as_echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
62851 $as_echo_n "checking for fread declaration in stdio.h stdlib.h... " >&6; }
62852 if test "${ice_cv_have_fread_decl+set}" = set; then
62853   $as_echo_n "(cached) " >&6
62854 else
62855
62856 ice_cv_have_fread_decl=no
62857 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62858 ice_re_word='(^|[^a-zA-Z0-9_])'
62859 for header in stdio.h stdlib.h; do
62860 # Check for ordinary declaration
62861 cat >conftest.$ac_ext <<_ACEOF
62862 /* confdefs.h.  */
62863 _ACEOF
62864 cat confdefs.h >>conftest.$ac_ext
62865 cat >>conftest.$ac_ext <<_ACEOF
62866 /* end confdefs.h.  */
62867 #include <$header>
62868
62869 _ACEOF
62870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62871   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
62872   ice_cv_have_fread_decl=yes
62873 fi
62874 rm -f conftest*
62875
62876 if test "$ice_cv_have_fread_decl" = yes; then
62877         break
62878 fi
62879 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62880 cat >conftest.$ac_ext <<_ACEOF
62881 /* confdefs.h.  */
62882 _ACEOF
62883 cat confdefs.h >>conftest.$ac_ext
62884 cat >>conftest.$ac_ext <<_ACEOF
62885 /* end confdefs.h.  */
62886 #include <$header>
62887
62888 _ACEOF
62889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62890   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62891   ice_cv_have_fread_decl=yes
62892 fi
62893 rm -f conftest*
62894
62895 if test "$ice_cv_have_fread_decl" = yes; then
62896         break
62897 fi
62898 done
62899
62900 fi
62901
62902 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
62903 $as_echo "$ice_cv_have_fread_decl" >&6; }
62904 if test "$ice_cv_have_fread_decl" = yes; then
62905
62906 cat >>confdefs.h <<_ACEOF
62907 #define HAVE_FREAD_DECL 1
62908 _ACEOF
62909
62910 fi
62911 fi
62912
62913
62914 ice_have_fseek=no
62915
62916 for ac_func in fseek
62917 do
62918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62919 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62920 $as_echo_n "checking for $ac_func... " >&6; }
62921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62922   $as_echo_n "(cached) " >&6
62923 else
62924   cat >conftest.$ac_ext <<_ACEOF
62925 /* confdefs.h.  */
62926 _ACEOF
62927 cat confdefs.h >>conftest.$ac_ext
62928 cat >>conftest.$ac_ext <<_ACEOF
62929 /* end confdefs.h.  */
62930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62932 #define $ac_func innocuous_$ac_func
62933
62934 /* System header to define __stub macros and hopefully few prototypes,
62935     which can conflict with char $ac_func (); below.
62936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62937     <limits.h> exists even on freestanding compilers.  */
62938
62939 #ifdef __STDC__
62940 # include <limits.h>
62941 #else
62942 # include <assert.h>
62943 #endif
62944
62945 #undef $ac_func
62946
62947 /* Override any GCC internal prototype to avoid an error.
62948    Use char because int might match the return type of a GCC
62949    builtin and then its argument prototype would still apply.  */
62950 #ifdef __cplusplus
62951 extern "C"
62952 #endif
62953 char $ac_func ();
62954 /* The GNU C library defines this for functions which it implements
62955     to always fail with ENOSYS.  Some functions are actually named
62956     something starting with __ and the normal name is an alias.  */
62957 #if defined __stub_$ac_func || defined __stub___$ac_func
62958 choke me
62959 #endif
62960
62961 int
62962 main ()
62963 {
62964 return $ac_func ();
62965   ;
62966   return 0;
62967 }
62968 _ACEOF
62969 rm -f conftest.$ac_objext conftest$ac_exeext
62970 if { (ac_try="$ac_link"
62971 case "(($ac_try" in
62972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62973   *) ac_try_echo=$ac_try;;
62974 esac
62975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62976 $as_echo "$ac_try_echo") >&5
62977   (eval "$ac_link") 2>conftest.er1
62978   ac_status=$?
62979   grep -v '^ *+' conftest.er1 >conftest.err
62980   rm -f conftest.er1
62981   cat conftest.err >&5
62982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62983   (exit $ac_status); } && {
62984          test -z "$ac_c_werror_flag" ||
62985          test ! -s conftest.err
62986        } && test -s conftest$ac_exeext && {
62987          test "$cross_compiling" = yes ||
62988          $as_test_x conftest$ac_exeext
62989        }; then
62990   eval "$as_ac_var=yes"
62991 else
62992   $as_echo "$as_me: failed program was:" >&5
62993 sed 's/^/| /' conftest.$ac_ext >&5
62994
62995         eval "$as_ac_var=no"
62996 fi
62997
62998 rm -rf conftest.dSYM
62999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63000       conftest$ac_exeext conftest.$ac_ext
63001 fi
63002 ac_res=`eval 'as_val=${'$as_ac_var'}
63003                  $as_echo "$as_val"'`
63004                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63005 $as_echo "$ac_res" >&6; }
63006 as_val=`eval 'as_val=${'$as_ac_var'}
63007                  $as_echo "$as_val"'`
63008    if test "x$as_val" = x""yes; then
63009   cat >>confdefs.h <<_ACEOF
63010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63011 _ACEOF
63012  ice_have_fseek=yes
63013 fi
63014 done
63015
63016 if test "${ice_have_fseek}" = yes; then
63017 { $as_echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
63018 $as_echo_n "checking for fseek declaration in stdio.h... " >&6; }
63019 if test "${ice_cv_have_fseek_decl+set}" = set; then
63020   $as_echo_n "(cached) " >&6
63021 else
63022
63023 ice_cv_have_fseek_decl=no
63024 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63025 ice_re_word='(^|[^a-zA-Z0-9_])'
63026 for header in stdio.h; do
63027 # Check for ordinary declaration
63028 cat >conftest.$ac_ext <<_ACEOF
63029 /* confdefs.h.  */
63030 _ACEOF
63031 cat confdefs.h >>conftest.$ac_ext
63032 cat >>conftest.$ac_ext <<_ACEOF
63033 /* end confdefs.h.  */
63034 #include <$header>
63035
63036 _ACEOF
63037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63038   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
63039   ice_cv_have_fseek_decl=yes
63040 fi
63041 rm -f conftest*
63042
63043 if test "$ice_cv_have_fseek_decl" = yes; then
63044         break
63045 fi
63046 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63047 cat >conftest.$ac_ext <<_ACEOF
63048 /* confdefs.h.  */
63049 _ACEOF
63050 cat confdefs.h >>conftest.$ac_ext
63051 cat >>conftest.$ac_ext <<_ACEOF
63052 /* end confdefs.h.  */
63053 #include <$header>
63054
63055 _ACEOF
63056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63057   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63058   ice_cv_have_fseek_decl=yes
63059 fi
63060 rm -f conftest*
63061
63062 if test "$ice_cv_have_fseek_decl" = yes; then
63063         break
63064 fi
63065 done
63066
63067 fi
63068
63069 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
63070 $as_echo "$ice_cv_have_fseek_decl" >&6; }
63071 if test "$ice_cv_have_fseek_decl" = yes; then
63072
63073 cat >>confdefs.h <<_ACEOF
63074 #define HAVE_FSEEK_DECL 1
63075 _ACEOF
63076
63077 fi
63078 fi
63079
63080
63081 ice_have_fwrite=no
63082
63083 for ac_func in fwrite
63084 do
63085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63087 $as_echo_n "checking for $ac_func... " >&6; }
63088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63089   $as_echo_n "(cached) " >&6
63090 else
63091   cat >conftest.$ac_ext <<_ACEOF
63092 /* confdefs.h.  */
63093 _ACEOF
63094 cat confdefs.h >>conftest.$ac_ext
63095 cat >>conftest.$ac_ext <<_ACEOF
63096 /* end confdefs.h.  */
63097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63099 #define $ac_func innocuous_$ac_func
63100
63101 /* System header to define __stub macros and hopefully few prototypes,
63102     which can conflict with char $ac_func (); below.
63103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63104     <limits.h> exists even on freestanding compilers.  */
63105
63106 #ifdef __STDC__
63107 # include <limits.h>
63108 #else
63109 # include <assert.h>
63110 #endif
63111
63112 #undef $ac_func
63113
63114 /* Override any GCC internal prototype to avoid an error.
63115    Use char because int might match the return type of a GCC
63116    builtin and then its argument prototype would still apply.  */
63117 #ifdef __cplusplus
63118 extern "C"
63119 #endif
63120 char $ac_func ();
63121 /* The GNU C library defines this for functions which it implements
63122     to always fail with ENOSYS.  Some functions are actually named
63123     something starting with __ and the normal name is an alias.  */
63124 #if defined __stub_$ac_func || defined __stub___$ac_func
63125 choke me
63126 #endif
63127
63128 int
63129 main ()
63130 {
63131 return $ac_func ();
63132   ;
63133   return 0;
63134 }
63135 _ACEOF
63136 rm -f conftest.$ac_objext conftest$ac_exeext
63137 if { (ac_try="$ac_link"
63138 case "(($ac_try" in
63139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63140   *) ac_try_echo=$ac_try;;
63141 esac
63142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63143 $as_echo "$ac_try_echo") >&5
63144   (eval "$ac_link") 2>conftest.er1
63145   ac_status=$?
63146   grep -v '^ *+' conftest.er1 >conftest.err
63147   rm -f conftest.er1
63148   cat conftest.err >&5
63149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63150   (exit $ac_status); } && {
63151          test -z "$ac_c_werror_flag" ||
63152          test ! -s conftest.err
63153        } && test -s conftest$ac_exeext && {
63154          test "$cross_compiling" = yes ||
63155          $as_test_x conftest$ac_exeext
63156        }; then
63157   eval "$as_ac_var=yes"
63158 else
63159   $as_echo "$as_me: failed program was:" >&5
63160 sed 's/^/| /' conftest.$ac_ext >&5
63161
63162         eval "$as_ac_var=no"
63163 fi
63164
63165 rm -rf conftest.dSYM
63166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63167       conftest$ac_exeext conftest.$ac_ext
63168 fi
63169 ac_res=`eval 'as_val=${'$as_ac_var'}
63170                  $as_echo "$as_val"'`
63171                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63172 $as_echo "$ac_res" >&6; }
63173 as_val=`eval 'as_val=${'$as_ac_var'}
63174                  $as_echo "$as_val"'`
63175    if test "x$as_val" = x""yes; then
63176   cat >>confdefs.h <<_ACEOF
63177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63178 _ACEOF
63179  ice_have_fwrite=yes
63180 fi
63181 done
63182
63183 if test "${ice_have_fwrite}" = yes; then
63184 { $as_echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
63185 $as_echo_n "checking for fwrite declaration in stdio.h stdlib.h... " >&6; }
63186 if test "${ice_cv_have_fwrite_decl+set}" = set; then
63187   $as_echo_n "(cached) " >&6
63188 else
63189
63190 ice_cv_have_fwrite_decl=no
63191 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63192 ice_re_word='(^|[^a-zA-Z0-9_])'
63193 for header in stdio.h stdlib.h; do
63194 # Check for ordinary declaration
63195 cat >conftest.$ac_ext <<_ACEOF
63196 /* confdefs.h.  */
63197 _ACEOF
63198 cat confdefs.h >>conftest.$ac_ext
63199 cat >>conftest.$ac_ext <<_ACEOF
63200 /* end confdefs.h.  */
63201 #include <$header>
63202
63203 _ACEOF
63204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63205   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
63206   ice_cv_have_fwrite_decl=yes
63207 fi
63208 rm -f conftest*
63209
63210 if test "$ice_cv_have_fwrite_decl" = yes; then
63211         break
63212 fi
63213 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63214 cat >conftest.$ac_ext <<_ACEOF
63215 /* confdefs.h.  */
63216 _ACEOF
63217 cat confdefs.h >>conftest.$ac_ext
63218 cat >>conftest.$ac_ext <<_ACEOF
63219 /* end confdefs.h.  */
63220 #include <$header>
63221
63222 _ACEOF
63223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63224   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63225   ice_cv_have_fwrite_decl=yes
63226 fi
63227 rm -f conftest*
63228
63229 if test "$ice_cv_have_fwrite_decl" = yes; then
63230         break
63231 fi
63232 done
63233
63234 fi
63235
63236 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
63237 $as_echo "$ice_cv_have_fwrite_decl" >&6; }
63238 if test "$ice_cv_have_fwrite_decl" = yes; then
63239
63240 cat >>confdefs.h <<_ACEOF
63241 #define HAVE_FWRITE_DECL 1
63242 _ACEOF
63243
63244 fi
63245 fi
63246
63247
63248 for ac_func in getgrgid_r
63249 do
63250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63252 $as_echo_n "checking for $ac_func... " >&6; }
63253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63254   $as_echo_n "(cached) " >&6
63255 else
63256   cat >conftest.$ac_ext <<_ACEOF
63257 /* confdefs.h.  */
63258 _ACEOF
63259 cat confdefs.h >>conftest.$ac_ext
63260 cat >>conftest.$ac_ext <<_ACEOF
63261 /* end confdefs.h.  */
63262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63264 #define $ac_func innocuous_$ac_func
63265
63266 /* System header to define __stub macros and hopefully few prototypes,
63267     which can conflict with char $ac_func (); below.
63268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63269     <limits.h> exists even on freestanding compilers.  */
63270
63271 #ifdef __STDC__
63272 # include <limits.h>
63273 #else
63274 # include <assert.h>
63275 #endif
63276
63277 #undef $ac_func
63278
63279 /* Override any GCC internal prototype to avoid an error.
63280    Use char because int might match the return type of a GCC
63281    builtin and then its argument prototype would still apply.  */
63282 #ifdef __cplusplus
63283 extern "C"
63284 #endif
63285 char $ac_func ();
63286 /* The GNU C library defines this for functions which it implements
63287     to always fail with ENOSYS.  Some functions are actually named
63288     something starting with __ and the normal name is an alias.  */
63289 #if defined __stub_$ac_func || defined __stub___$ac_func
63290 choke me
63291 #endif
63292
63293 int
63294 main ()
63295 {
63296 return $ac_func ();
63297   ;
63298   return 0;
63299 }
63300 _ACEOF
63301 rm -f conftest.$ac_objext conftest$ac_exeext
63302 if { (ac_try="$ac_link"
63303 case "(($ac_try" in
63304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63305   *) ac_try_echo=$ac_try;;
63306 esac
63307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63308 $as_echo "$ac_try_echo") >&5
63309   (eval "$ac_link") 2>conftest.er1
63310   ac_status=$?
63311   grep -v '^ *+' conftest.er1 >conftest.err
63312   rm -f conftest.er1
63313   cat conftest.err >&5
63314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63315   (exit $ac_status); } && {
63316          test -z "$ac_c_werror_flag" ||
63317          test ! -s conftest.err
63318        } && test -s conftest$ac_exeext && {
63319          test "$cross_compiling" = yes ||
63320          $as_test_x conftest$ac_exeext
63321        }; then
63322   eval "$as_ac_var=yes"
63323 else
63324   $as_echo "$as_me: failed program was:" >&5
63325 sed 's/^/| /' conftest.$ac_ext >&5
63326
63327         eval "$as_ac_var=no"
63328 fi
63329
63330 rm -rf conftest.dSYM
63331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63332       conftest$ac_exeext conftest.$ac_ext
63333 fi
63334 ac_res=`eval 'as_val=${'$as_ac_var'}
63335                  $as_echo "$as_val"'`
63336                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63337 $as_echo "$ac_res" >&6; }
63338 as_val=`eval 'as_val=${'$as_ac_var'}
63339                  $as_echo "$as_val"'`
63340    if test "x$as_val" = x""yes; then
63341   cat >>confdefs.h <<_ACEOF
63342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63343 _ACEOF
63344
63345 fi
63346 done
63347
63348
63349 for ac_func in getpwuid_r
63350 do
63351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63353 $as_echo_n "checking for $ac_func... " >&6; }
63354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63355   $as_echo_n "(cached) " >&6
63356 else
63357   cat >conftest.$ac_ext <<_ACEOF
63358 /* confdefs.h.  */
63359 _ACEOF
63360 cat confdefs.h >>conftest.$ac_ext
63361 cat >>conftest.$ac_ext <<_ACEOF
63362 /* end confdefs.h.  */
63363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63365 #define $ac_func innocuous_$ac_func
63366
63367 /* System header to define __stub macros and hopefully few prototypes,
63368     which can conflict with char $ac_func (); below.
63369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63370     <limits.h> exists even on freestanding compilers.  */
63371
63372 #ifdef __STDC__
63373 # include <limits.h>
63374 #else
63375 # include <assert.h>
63376 #endif
63377
63378 #undef $ac_func
63379
63380 /* Override any GCC internal prototype to avoid an error.
63381    Use char because int might match the return type of a GCC
63382    builtin and then its argument prototype would still apply.  */
63383 #ifdef __cplusplus
63384 extern "C"
63385 #endif
63386 char $ac_func ();
63387 /* The GNU C library defines this for functions which it implements
63388     to always fail with ENOSYS.  Some functions are actually named
63389     something starting with __ and the normal name is an alias.  */
63390 #if defined __stub_$ac_func || defined __stub___$ac_func
63391 choke me
63392 #endif
63393
63394 int
63395 main ()
63396 {
63397 return $ac_func ();
63398   ;
63399   return 0;
63400 }
63401 _ACEOF
63402 rm -f conftest.$ac_objext conftest$ac_exeext
63403 if { (ac_try="$ac_link"
63404 case "(($ac_try" in
63405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63406   *) ac_try_echo=$ac_try;;
63407 esac
63408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63409 $as_echo "$ac_try_echo") >&5
63410   (eval "$ac_link") 2>conftest.er1
63411   ac_status=$?
63412   grep -v '^ *+' conftest.er1 >conftest.err
63413   rm -f conftest.er1
63414   cat conftest.err >&5
63415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63416   (exit $ac_status); } && {
63417          test -z "$ac_c_werror_flag" ||
63418          test ! -s conftest.err
63419        } && test -s conftest$ac_exeext && {
63420          test "$cross_compiling" = yes ||
63421          $as_test_x conftest$ac_exeext
63422        }; then
63423   eval "$as_ac_var=yes"
63424 else
63425   $as_echo "$as_me: failed program was:" >&5
63426 sed 's/^/| /' conftest.$ac_ext >&5
63427
63428         eval "$as_ac_var=no"
63429 fi
63430
63431 rm -rf conftest.dSYM
63432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63433       conftest$ac_exeext conftest.$ac_ext
63434 fi
63435 ac_res=`eval 'as_val=${'$as_ac_var'}
63436                  $as_echo "$as_val"'`
63437                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63438 $as_echo "$ac_res" >&6; }
63439 as_val=`eval 'as_val=${'$as_ac_var'}
63440                  $as_echo "$as_val"'`
63441    if test "x$as_val" = x""yes; then
63442   cat >>confdefs.h <<_ACEOF
63443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63444 _ACEOF
63445
63446 fi
63447 done
63448
63449
63450 ice_have_gethostname=no
63451
63452 for ac_func in gethostname
63453 do
63454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63456 $as_echo_n "checking for $ac_func... " >&6; }
63457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63458   $as_echo_n "(cached) " >&6
63459 else
63460   cat >conftest.$ac_ext <<_ACEOF
63461 /* confdefs.h.  */
63462 _ACEOF
63463 cat confdefs.h >>conftest.$ac_ext
63464 cat >>conftest.$ac_ext <<_ACEOF
63465 /* end confdefs.h.  */
63466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63468 #define $ac_func innocuous_$ac_func
63469
63470 /* System header to define __stub macros and hopefully few prototypes,
63471     which can conflict with char $ac_func (); below.
63472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63473     <limits.h> exists even on freestanding compilers.  */
63474
63475 #ifdef __STDC__
63476 # include <limits.h>
63477 #else
63478 # include <assert.h>
63479 #endif
63480
63481 #undef $ac_func
63482
63483 /* Override any GCC internal prototype to avoid an error.
63484    Use char because int might match the return type of a GCC
63485    builtin and then its argument prototype would still apply.  */
63486 #ifdef __cplusplus
63487 extern "C"
63488 #endif
63489 char $ac_func ();
63490 /* The GNU C library defines this for functions which it implements
63491     to always fail with ENOSYS.  Some functions are actually named
63492     something starting with __ and the normal name is an alias.  */
63493 #if defined __stub_$ac_func || defined __stub___$ac_func
63494 choke me
63495 #endif
63496
63497 int
63498 main ()
63499 {
63500 return $ac_func ();
63501   ;
63502   return 0;
63503 }
63504 _ACEOF
63505 rm -f conftest.$ac_objext conftest$ac_exeext
63506 if { (ac_try="$ac_link"
63507 case "(($ac_try" in
63508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63509   *) ac_try_echo=$ac_try;;
63510 esac
63511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63512 $as_echo "$ac_try_echo") >&5
63513   (eval "$ac_link") 2>conftest.er1
63514   ac_status=$?
63515   grep -v '^ *+' conftest.er1 >conftest.err
63516   rm -f conftest.er1
63517   cat conftest.err >&5
63518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63519   (exit $ac_status); } && {
63520          test -z "$ac_c_werror_flag" ||
63521          test ! -s conftest.err
63522        } && test -s conftest$ac_exeext && {
63523          test "$cross_compiling" = yes ||
63524          $as_test_x conftest$ac_exeext
63525        }; then
63526   eval "$as_ac_var=yes"
63527 else
63528   $as_echo "$as_me: failed program was:" >&5
63529 sed 's/^/| /' conftest.$ac_ext >&5
63530
63531         eval "$as_ac_var=no"
63532 fi
63533
63534 rm -rf conftest.dSYM
63535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63536       conftest$ac_exeext conftest.$ac_ext
63537 fi
63538 ac_res=`eval 'as_val=${'$as_ac_var'}
63539                  $as_echo "$as_val"'`
63540                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63541 $as_echo "$ac_res" >&6; }
63542 as_val=`eval 'as_val=${'$as_ac_var'}
63543                  $as_echo "$as_val"'`
63544    if test "x$as_val" = x""yes; then
63545   cat >>confdefs.h <<_ACEOF
63546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63547 _ACEOF
63548  ice_have_gethostname=yes
63549 fi
63550 done
63551
63552 if test "${ice_have_gethostname}" = yes; then
63553 { $as_echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
63554 $as_echo_n "checking for gethostname declaration in unistd.h... " >&6; }
63555 if test "${ice_cv_have_gethostname_decl+set}" = set; then
63556   $as_echo_n "(cached) " >&6
63557 else
63558
63559 ice_cv_have_gethostname_decl=no
63560 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63561 ice_re_word='(^|[^a-zA-Z0-9_])'
63562 for header in unistd.h; do
63563 # Check for ordinary declaration
63564 cat >conftest.$ac_ext <<_ACEOF
63565 /* confdefs.h.  */
63566 _ACEOF
63567 cat confdefs.h >>conftest.$ac_ext
63568 cat >>conftest.$ac_ext <<_ACEOF
63569 /* end confdefs.h.  */
63570 #include <$header>
63571
63572 _ACEOF
63573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63574   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
63575   ice_cv_have_gethostname_decl=yes
63576 fi
63577 rm -f conftest*
63578
63579 if test "$ice_cv_have_gethostname_decl" = yes; then
63580         break
63581 fi
63582 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63583 cat >conftest.$ac_ext <<_ACEOF
63584 /* confdefs.h.  */
63585 _ACEOF
63586 cat confdefs.h >>conftest.$ac_ext
63587 cat >>conftest.$ac_ext <<_ACEOF
63588 /* end confdefs.h.  */
63589 #include <$header>
63590
63591 _ACEOF
63592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63593   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63594   ice_cv_have_gethostname_decl=yes
63595 fi
63596 rm -f conftest*
63597
63598 if test "$ice_cv_have_gethostname_decl" = yes; then
63599         break
63600 fi
63601 done
63602
63603 fi
63604
63605 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
63606 $as_echo "$ice_cv_have_gethostname_decl" >&6; }
63607 if test "$ice_cv_have_gethostname_decl" = yes; then
63608
63609 cat >>confdefs.h <<_ACEOF
63610 #define HAVE_GETHOSTNAME_DECL 1
63611 _ACEOF
63612
63613 fi
63614 fi
63615
63616
63617 ice_have_getopt=no
63618
63619 for ac_func in getopt
63620 do
63621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63623 $as_echo_n "checking for $ac_func... " >&6; }
63624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63625   $as_echo_n "(cached) " >&6
63626 else
63627   cat >conftest.$ac_ext <<_ACEOF
63628 /* confdefs.h.  */
63629 _ACEOF
63630 cat confdefs.h >>conftest.$ac_ext
63631 cat >>conftest.$ac_ext <<_ACEOF
63632 /* end confdefs.h.  */
63633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63635 #define $ac_func innocuous_$ac_func
63636
63637 /* System header to define __stub macros and hopefully few prototypes,
63638     which can conflict with char $ac_func (); below.
63639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63640     <limits.h> exists even on freestanding compilers.  */
63641
63642 #ifdef __STDC__
63643 # include <limits.h>
63644 #else
63645 # include <assert.h>
63646 #endif
63647
63648 #undef $ac_func
63649
63650 /* Override any GCC internal prototype to avoid an error.
63651    Use char because int might match the return type of a GCC
63652    builtin and then its argument prototype would still apply.  */
63653 #ifdef __cplusplus
63654 extern "C"
63655 #endif
63656 char $ac_func ();
63657 /* The GNU C library defines this for functions which it implements
63658     to always fail with ENOSYS.  Some functions are actually named
63659     something starting with __ and the normal name is an alias.  */
63660 #if defined __stub_$ac_func || defined __stub___$ac_func
63661 choke me
63662 #endif
63663
63664 int
63665 main ()
63666 {
63667 return $ac_func ();
63668   ;
63669   return 0;
63670 }
63671 _ACEOF
63672 rm -f conftest.$ac_objext conftest$ac_exeext
63673 if { (ac_try="$ac_link"
63674 case "(($ac_try" in
63675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63676   *) ac_try_echo=$ac_try;;
63677 esac
63678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63679 $as_echo "$ac_try_echo") >&5
63680   (eval "$ac_link") 2>conftest.er1
63681   ac_status=$?
63682   grep -v '^ *+' conftest.er1 >conftest.err
63683   rm -f conftest.er1
63684   cat conftest.err >&5
63685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63686   (exit $ac_status); } && {
63687          test -z "$ac_c_werror_flag" ||
63688          test ! -s conftest.err
63689        } && test -s conftest$ac_exeext && {
63690          test "$cross_compiling" = yes ||
63691          $as_test_x conftest$ac_exeext
63692        }; then
63693   eval "$as_ac_var=yes"
63694 else
63695   $as_echo "$as_me: failed program was:" >&5
63696 sed 's/^/| /' conftest.$ac_ext >&5
63697
63698         eval "$as_ac_var=no"
63699 fi
63700
63701 rm -rf conftest.dSYM
63702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63703       conftest$ac_exeext conftest.$ac_ext
63704 fi
63705 ac_res=`eval 'as_val=${'$as_ac_var'}
63706                  $as_echo "$as_val"'`
63707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63708 $as_echo "$ac_res" >&6; }
63709 as_val=`eval 'as_val=${'$as_ac_var'}
63710                  $as_echo "$as_val"'`
63711    if test "x$as_val" = x""yes; then
63712   cat >>confdefs.h <<_ACEOF
63713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63714 _ACEOF
63715  ice_have_getopt=yes
63716 fi
63717 done
63718
63719 if test "${ice_have_getopt}" = yes; then
63720 { $as_echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
63721 $as_echo_n "checking for getopt declaration in stdlib.h unistd.h libc.h... " >&6; }
63722 if test "${ice_cv_have_getopt_decl+set}" = set; then
63723   $as_echo_n "(cached) " >&6
63724 else
63725
63726 ice_cv_have_getopt_decl=no
63727 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63728 ice_re_word='(^|[^a-zA-Z0-9_])'
63729 for header in stdlib.h unistd.h libc.h; do
63730 # Check for ordinary declaration
63731 cat >conftest.$ac_ext <<_ACEOF
63732 /* confdefs.h.  */
63733 _ACEOF
63734 cat confdefs.h >>conftest.$ac_ext
63735 cat >>conftest.$ac_ext <<_ACEOF
63736 /* end confdefs.h.  */
63737 #include <$header>
63738
63739 _ACEOF
63740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63741   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
63742   ice_cv_have_getopt_decl=yes
63743 fi
63744 rm -f conftest*
63745
63746 if test "$ice_cv_have_getopt_decl" = yes; then
63747         break
63748 fi
63749 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63750 cat >conftest.$ac_ext <<_ACEOF
63751 /* confdefs.h.  */
63752 _ACEOF
63753 cat confdefs.h >>conftest.$ac_ext
63754 cat >>conftest.$ac_ext <<_ACEOF
63755 /* end confdefs.h.  */
63756 #include <$header>
63757
63758 _ACEOF
63759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63760   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63761   ice_cv_have_getopt_decl=yes
63762 fi
63763 rm -f conftest*
63764
63765 if test "$ice_cv_have_getopt_decl" = yes; then
63766         break
63767 fi
63768 done
63769
63770 fi
63771
63772 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
63773 $as_echo "$ice_cv_have_getopt_decl" >&6; }
63774 if test "$ice_cv_have_getopt_decl" = yes; then
63775
63776 cat >>confdefs.h <<_ACEOF
63777 #define HAVE_GETOPT_DECL 1
63778 _ACEOF
63779
63780 fi
63781 fi
63782
63783
63784 ice_have_getpeername=no
63785
63786 for ac_func in getpeername
63787 do
63788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63789 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63790 $as_echo_n "checking for $ac_func... " >&6; }
63791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63792   $as_echo_n "(cached) " >&6
63793 else
63794   cat >conftest.$ac_ext <<_ACEOF
63795 /* confdefs.h.  */
63796 _ACEOF
63797 cat confdefs.h >>conftest.$ac_ext
63798 cat >>conftest.$ac_ext <<_ACEOF
63799 /* end confdefs.h.  */
63800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63802 #define $ac_func innocuous_$ac_func
63803
63804 /* System header to define __stub macros and hopefully few prototypes,
63805     which can conflict with char $ac_func (); below.
63806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63807     <limits.h> exists even on freestanding compilers.  */
63808
63809 #ifdef __STDC__
63810 # include <limits.h>
63811 #else
63812 # include <assert.h>
63813 #endif
63814
63815 #undef $ac_func
63816
63817 /* Override any GCC internal prototype to avoid an error.
63818    Use char because int might match the return type of a GCC
63819    builtin and then its argument prototype would still apply.  */
63820 #ifdef __cplusplus
63821 extern "C"
63822 #endif
63823 char $ac_func ();
63824 /* The GNU C library defines this for functions which it implements
63825     to always fail with ENOSYS.  Some functions are actually named
63826     something starting with __ and the normal name is an alias.  */
63827 #if defined __stub_$ac_func || defined __stub___$ac_func
63828 choke me
63829 #endif
63830
63831 int
63832 main ()
63833 {
63834 return $ac_func ();
63835   ;
63836   return 0;
63837 }
63838 _ACEOF
63839 rm -f conftest.$ac_objext conftest$ac_exeext
63840 if { (ac_try="$ac_link"
63841 case "(($ac_try" in
63842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63843   *) ac_try_echo=$ac_try;;
63844 esac
63845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63846 $as_echo "$ac_try_echo") >&5
63847   (eval "$ac_link") 2>conftest.er1
63848   ac_status=$?
63849   grep -v '^ *+' conftest.er1 >conftest.err
63850   rm -f conftest.er1
63851   cat conftest.err >&5
63852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63853   (exit $ac_status); } && {
63854          test -z "$ac_c_werror_flag" ||
63855          test ! -s conftest.err
63856        } && test -s conftest$ac_exeext && {
63857          test "$cross_compiling" = yes ||
63858          $as_test_x conftest$ac_exeext
63859        }; then
63860   eval "$as_ac_var=yes"
63861 else
63862   $as_echo "$as_me: failed program was:" >&5
63863 sed 's/^/| /' conftest.$ac_ext >&5
63864
63865         eval "$as_ac_var=no"
63866 fi
63867
63868 rm -rf conftest.dSYM
63869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63870       conftest$ac_exeext conftest.$ac_ext
63871 fi
63872 ac_res=`eval 'as_val=${'$as_ac_var'}
63873                  $as_echo "$as_val"'`
63874                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63875 $as_echo "$ac_res" >&6; }
63876 as_val=`eval 'as_val=${'$as_ac_var'}
63877                  $as_echo "$as_val"'`
63878    if test "x$as_val" = x""yes; then
63879   cat >>confdefs.h <<_ACEOF
63880 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63881 _ACEOF
63882  ice_have_getpeername=yes
63883 fi
63884 done
63885
63886 if test "${ice_have_getpeername}" = yes; then
63887 { $as_echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
63888 $as_echo_n "checking for getpeername declaration in sys/types.h sys/socket.h... " >&6; }
63889 if test "${ice_cv_have_getpeername_decl+set}" = set; then
63890   $as_echo_n "(cached) " >&6
63891 else
63892
63893 ice_cv_have_getpeername_decl=no
63894 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63895 ice_re_word='(^|[^a-zA-Z0-9_])'
63896 for header in sys/types.h sys/socket.h; do
63897 # Check for ordinary declaration
63898 cat >conftest.$ac_ext <<_ACEOF
63899 /* confdefs.h.  */
63900 _ACEOF
63901 cat confdefs.h >>conftest.$ac_ext
63902 cat >>conftest.$ac_ext <<_ACEOF
63903 /* end confdefs.h.  */
63904 #include <$header>
63905
63906 _ACEOF
63907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63908   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
63909   ice_cv_have_getpeername_decl=yes
63910 fi
63911 rm -f conftest*
63912
63913 if test "$ice_cv_have_getpeername_decl" = yes; then
63914         break
63915 fi
63916 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63917 cat >conftest.$ac_ext <<_ACEOF
63918 /* confdefs.h.  */
63919 _ACEOF
63920 cat confdefs.h >>conftest.$ac_ext
63921 cat >>conftest.$ac_ext <<_ACEOF
63922 /* end confdefs.h.  */
63923 #include <$header>
63924
63925 _ACEOF
63926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63927   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63928   ice_cv_have_getpeername_decl=yes
63929 fi
63930 rm -f conftest*
63931
63932 if test "$ice_cv_have_getpeername_decl" = yes; then
63933         break
63934 fi
63935 done
63936
63937 fi
63938
63939 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
63940 $as_echo "$ice_cv_have_getpeername_decl" >&6; }
63941 if test "$ice_cv_have_getpeername_decl" = yes; then
63942
63943 cat >>confdefs.h <<_ACEOF
63944 #define HAVE_GETPEERNAME_DECL 1
63945 _ACEOF
63946
63947 fi
63948 fi
63949
63950 { $as_echo "$as_me:$LINENO: checking for getpgrp" >&5
63951 $as_echo_n "checking for getpgrp... " >&6; }
63952 if test "${ac_cv_func_getpgrp+set}" = set; then
63953   $as_echo_n "(cached) " >&6
63954 else
63955   cat >conftest.$ac_ext <<_ACEOF
63956 /* confdefs.h.  */
63957 _ACEOF
63958 cat confdefs.h >>conftest.$ac_ext
63959 cat >>conftest.$ac_ext <<_ACEOF
63960 /* end confdefs.h.  */
63961 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
63962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63963 #define getpgrp innocuous_getpgrp
63964
63965 /* System header to define __stub macros and hopefully few prototypes,
63966     which can conflict with char getpgrp (); below.
63967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63968     <limits.h> exists even on freestanding compilers.  */
63969
63970 #ifdef __STDC__
63971 # include <limits.h>
63972 #else
63973 # include <assert.h>
63974 #endif
63975
63976 #undef getpgrp
63977
63978 /* Override any GCC internal prototype to avoid an error.
63979    Use char because int might match the return type of a GCC
63980    builtin and then its argument prototype would still apply.  */
63981 #ifdef __cplusplus
63982 extern "C"
63983 #endif
63984 char getpgrp ();
63985 /* The GNU C library defines this for functions which it implements
63986     to always fail with ENOSYS.  Some functions are actually named
63987     something starting with __ and the normal name is an alias.  */
63988 #if defined __stub_getpgrp || defined __stub___getpgrp
63989 choke me
63990 #endif
63991
63992 int
63993 main ()
63994 {
63995 return getpgrp ();
63996   ;
63997   return 0;
63998 }
63999 _ACEOF
64000 rm -f conftest.$ac_objext conftest$ac_exeext
64001 if { (ac_try="$ac_link"
64002 case "(($ac_try" in
64003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64004   *) ac_try_echo=$ac_try;;
64005 esac
64006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64007 $as_echo "$ac_try_echo") >&5
64008   (eval "$ac_link") 2>conftest.er1
64009   ac_status=$?
64010   grep -v '^ *+' conftest.er1 >conftest.err
64011   rm -f conftest.er1
64012   cat conftest.err >&5
64013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64014   (exit $ac_status); } && {
64015          test -z "$ac_c_werror_flag" ||
64016          test ! -s conftest.err
64017        } && test -s conftest$ac_exeext && {
64018          test "$cross_compiling" = yes ||
64019          $as_test_x conftest$ac_exeext
64020        }; then
64021   ac_cv_func_getpgrp=yes
64022 else
64023   $as_echo "$as_me: failed program was:" >&5
64024 sed 's/^/| /' conftest.$ac_ext >&5
64025
64026         ac_cv_func_getpgrp=no
64027 fi
64028
64029 rm -rf conftest.dSYM
64030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64031       conftest$ac_exeext conftest.$ac_ext
64032 fi
64033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
64034 $as_echo "$ac_cv_func_getpgrp" >&6; }
64035
64036 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
64037 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
64038 if test "${ac_cv_func_getpgrp_void+set}" = set; then
64039   $as_echo_n "(cached) " >&6
64040 else
64041   # Use it with a single arg.
64042 cat >conftest.$ac_ext <<_ACEOF
64043 /* confdefs.h.  */
64044 _ACEOF
64045 cat confdefs.h >>conftest.$ac_ext
64046 cat >>conftest.$ac_ext <<_ACEOF
64047 /* end confdefs.h.  */
64048 $ac_includes_default
64049 int
64050 main ()
64051 {
64052 getpgrp (0);
64053   ;
64054   return 0;
64055 }
64056 _ACEOF
64057 rm -f conftest.$ac_objext
64058 if { (ac_try="$ac_compile"
64059 case "(($ac_try" in
64060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64061   *) ac_try_echo=$ac_try;;
64062 esac
64063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64064 $as_echo "$ac_try_echo") >&5
64065   (eval "$ac_compile") 2>conftest.er1
64066   ac_status=$?
64067   grep -v '^ *+' conftest.er1 >conftest.err
64068   rm -f conftest.er1
64069   cat conftest.err >&5
64070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64071   (exit $ac_status); } && {
64072          test -z "$ac_c_werror_flag" ||
64073          test ! -s conftest.err
64074        } && test -s conftest.$ac_objext; then
64075   ac_cv_func_getpgrp_void=no
64076 else
64077   $as_echo "$as_me: failed program was:" >&5
64078 sed 's/^/| /' conftest.$ac_ext >&5
64079
64080         ac_cv_func_getpgrp_void=yes
64081 fi
64082
64083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64084
64085 fi
64086 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
64087 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
64088 if test $ac_cv_func_getpgrp_void = yes; then
64089
64090 cat >>confdefs.h <<\_ACEOF
64091 #define GETPGRP_VOID 1
64092 _ACEOF
64093
64094 fi
64095
64096
64097 ice_have_getsockname=no
64098
64099 for ac_func in getsockname
64100 do
64101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64102 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64103 $as_echo_n "checking for $ac_func... " >&6; }
64104 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64105   $as_echo_n "(cached) " >&6
64106 else
64107   cat >conftest.$ac_ext <<_ACEOF
64108 /* confdefs.h.  */
64109 _ACEOF
64110 cat confdefs.h >>conftest.$ac_ext
64111 cat >>conftest.$ac_ext <<_ACEOF
64112 /* end confdefs.h.  */
64113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64115 #define $ac_func innocuous_$ac_func
64116
64117 /* System header to define __stub macros and hopefully few prototypes,
64118     which can conflict with char $ac_func (); below.
64119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64120     <limits.h> exists even on freestanding compilers.  */
64121
64122 #ifdef __STDC__
64123 # include <limits.h>
64124 #else
64125 # include <assert.h>
64126 #endif
64127
64128 #undef $ac_func
64129
64130 /* Override any GCC internal prototype to avoid an error.
64131    Use char because int might match the return type of a GCC
64132    builtin and then its argument prototype would still apply.  */
64133 #ifdef __cplusplus
64134 extern "C"
64135 #endif
64136 char $ac_func ();
64137 /* The GNU C library defines this for functions which it implements
64138     to always fail with ENOSYS.  Some functions are actually named
64139     something starting with __ and the normal name is an alias.  */
64140 #if defined __stub_$ac_func || defined __stub___$ac_func
64141 choke me
64142 #endif
64143
64144 int
64145 main ()
64146 {
64147 return $ac_func ();
64148   ;
64149   return 0;
64150 }
64151 _ACEOF
64152 rm -f conftest.$ac_objext conftest$ac_exeext
64153 if { (ac_try="$ac_link"
64154 case "(($ac_try" in
64155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64156   *) ac_try_echo=$ac_try;;
64157 esac
64158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64159 $as_echo "$ac_try_echo") >&5
64160   (eval "$ac_link") 2>conftest.er1
64161   ac_status=$?
64162   grep -v '^ *+' conftest.er1 >conftest.err
64163   rm -f conftest.er1
64164   cat conftest.err >&5
64165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64166   (exit $ac_status); } && {
64167          test -z "$ac_c_werror_flag" ||
64168          test ! -s conftest.err
64169        } && test -s conftest$ac_exeext && {
64170          test "$cross_compiling" = yes ||
64171          $as_test_x conftest$ac_exeext
64172        }; then
64173   eval "$as_ac_var=yes"
64174 else
64175   $as_echo "$as_me: failed program was:" >&5
64176 sed 's/^/| /' conftest.$ac_ext >&5
64177
64178         eval "$as_ac_var=no"
64179 fi
64180
64181 rm -rf conftest.dSYM
64182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64183       conftest$ac_exeext conftest.$ac_ext
64184 fi
64185 ac_res=`eval 'as_val=${'$as_ac_var'}
64186                  $as_echo "$as_val"'`
64187                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64188 $as_echo "$ac_res" >&6; }
64189 as_val=`eval 'as_val=${'$as_ac_var'}
64190                  $as_echo "$as_val"'`
64191    if test "x$as_val" = x""yes; then
64192   cat >>confdefs.h <<_ACEOF
64193 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64194 _ACEOF
64195  ice_have_getsockname=yes
64196 fi
64197 done
64198
64199 if test "${ice_have_getsockname}" = yes; then
64200 { $as_echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
64201 $as_echo_n "checking for getsockname declaration in sys/types.h sys/socket.h... " >&6; }
64202 if test "${ice_cv_have_getsockname_decl+set}" = set; then
64203   $as_echo_n "(cached) " >&6
64204 else
64205
64206 ice_cv_have_getsockname_decl=no
64207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64208 ice_re_word='(^|[^a-zA-Z0-9_])'
64209 for header in sys/types.h sys/socket.h; do
64210 # Check for ordinary declaration
64211 cat >conftest.$ac_ext <<_ACEOF
64212 /* confdefs.h.  */
64213 _ACEOF
64214 cat confdefs.h >>conftest.$ac_ext
64215 cat >>conftest.$ac_ext <<_ACEOF
64216 /* end confdefs.h.  */
64217 #include <$header>
64218
64219 _ACEOF
64220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64221   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
64222   ice_cv_have_getsockname_decl=yes
64223 fi
64224 rm -f conftest*
64225
64226 if test "$ice_cv_have_getsockname_decl" = yes; then
64227         break
64228 fi
64229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64230 cat >conftest.$ac_ext <<_ACEOF
64231 /* confdefs.h.  */
64232 _ACEOF
64233 cat confdefs.h >>conftest.$ac_ext
64234 cat >>conftest.$ac_ext <<_ACEOF
64235 /* end confdefs.h.  */
64236 #include <$header>
64237
64238 _ACEOF
64239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64240   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64241   ice_cv_have_getsockname_decl=yes
64242 fi
64243 rm -f conftest*
64244
64245 if test "$ice_cv_have_getsockname_decl" = yes; then
64246         break
64247 fi
64248 done
64249
64250 fi
64251
64252 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
64253 $as_echo "$ice_cv_have_getsockname_decl" >&6; }
64254 if test "$ice_cv_have_getsockname_decl" = yes; then
64255
64256 cat >>confdefs.h <<_ACEOF
64257 #define HAVE_GETSOCKNAME_DECL 1
64258 _ACEOF
64259
64260 fi
64261 fi
64262
64263
64264 ice_have_getsockopt=no
64265
64266 for ac_func in getsockopt
64267 do
64268 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64269 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64270 $as_echo_n "checking for $ac_func... " >&6; }
64271 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64272   $as_echo_n "(cached) " >&6
64273 else
64274   cat >conftest.$ac_ext <<_ACEOF
64275 /* confdefs.h.  */
64276 _ACEOF
64277 cat confdefs.h >>conftest.$ac_ext
64278 cat >>conftest.$ac_ext <<_ACEOF
64279 /* end confdefs.h.  */
64280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64282 #define $ac_func innocuous_$ac_func
64283
64284 /* System header to define __stub macros and hopefully few prototypes,
64285     which can conflict with char $ac_func (); below.
64286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64287     <limits.h> exists even on freestanding compilers.  */
64288
64289 #ifdef __STDC__
64290 # include <limits.h>
64291 #else
64292 # include <assert.h>
64293 #endif
64294
64295 #undef $ac_func
64296
64297 /* Override any GCC internal prototype to avoid an error.
64298    Use char because int might match the return type of a GCC
64299    builtin and then its argument prototype would still apply.  */
64300 #ifdef __cplusplus
64301 extern "C"
64302 #endif
64303 char $ac_func ();
64304 /* The GNU C library defines this for functions which it implements
64305     to always fail with ENOSYS.  Some functions are actually named
64306     something starting with __ and the normal name is an alias.  */
64307 #if defined __stub_$ac_func || defined __stub___$ac_func
64308 choke me
64309 #endif
64310
64311 int
64312 main ()
64313 {
64314 return $ac_func ();
64315   ;
64316   return 0;
64317 }
64318 _ACEOF
64319 rm -f conftest.$ac_objext conftest$ac_exeext
64320 if { (ac_try="$ac_link"
64321 case "(($ac_try" in
64322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64323   *) ac_try_echo=$ac_try;;
64324 esac
64325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64326 $as_echo "$ac_try_echo") >&5
64327   (eval "$ac_link") 2>conftest.er1
64328   ac_status=$?
64329   grep -v '^ *+' conftest.er1 >conftest.err
64330   rm -f conftest.er1
64331   cat conftest.err >&5
64332   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64333   (exit $ac_status); } && {
64334          test -z "$ac_c_werror_flag" ||
64335          test ! -s conftest.err
64336        } && test -s conftest$ac_exeext && {
64337          test "$cross_compiling" = yes ||
64338          $as_test_x conftest$ac_exeext
64339        }; then
64340   eval "$as_ac_var=yes"
64341 else
64342   $as_echo "$as_me: failed program was:" >&5
64343 sed 's/^/| /' conftest.$ac_ext >&5
64344
64345         eval "$as_ac_var=no"
64346 fi
64347
64348 rm -rf conftest.dSYM
64349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64350       conftest$ac_exeext conftest.$ac_ext
64351 fi
64352 ac_res=`eval 'as_val=${'$as_ac_var'}
64353                  $as_echo "$as_val"'`
64354                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64355 $as_echo "$ac_res" >&6; }
64356 as_val=`eval 'as_val=${'$as_ac_var'}
64357                  $as_echo "$as_val"'`
64358    if test "x$as_val" = x""yes; then
64359   cat >>confdefs.h <<_ACEOF
64360 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64361 _ACEOF
64362  ice_have_getsockopt=yes
64363 fi
64364 done
64365
64366 if test "${ice_have_getsockopt}" = yes; then
64367 { $as_echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
64368 $as_echo_n "checking for getsockopt declaration in sys/types.h sys/socket.h... " >&6; }
64369 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
64370   $as_echo_n "(cached) " >&6
64371 else
64372
64373 ice_cv_have_getsockopt_decl=no
64374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64375 ice_re_word='(^|[^a-zA-Z0-9_])'
64376 for header in sys/types.h sys/socket.h; do
64377 # Check for ordinary declaration
64378 cat >conftest.$ac_ext <<_ACEOF
64379 /* confdefs.h.  */
64380 _ACEOF
64381 cat confdefs.h >>conftest.$ac_ext
64382 cat >>conftest.$ac_ext <<_ACEOF
64383 /* end confdefs.h.  */
64384 #include <$header>
64385
64386 _ACEOF
64387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64388   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
64389   ice_cv_have_getsockopt_decl=yes
64390 fi
64391 rm -f conftest*
64392
64393 if test "$ice_cv_have_getsockopt_decl" = yes; then
64394         break
64395 fi
64396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64397 cat >conftest.$ac_ext <<_ACEOF
64398 /* confdefs.h.  */
64399 _ACEOF
64400 cat confdefs.h >>conftest.$ac_ext
64401 cat >>conftest.$ac_ext <<_ACEOF
64402 /* end confdefs.h.  */
64403 #include <$header>
64404
64405 _ACEOF
64406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64407   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64408   ice_cv_have_getsockopt_decl=yes
64409 fi
64410 rm -f conftest*
64411
64412 if test "$ice_cv_have_getsockopt_decl" = yes; then
64413         break
64414 fi
64415 done
64416
64417 fi
64418
64419 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
64420 $as_echo "$ice_cv_have_getsockopt_decl" >&6; }
64421 if test "$ice_cv_have_getsockopt_decl" = yes; then
64422
64423 cat >>confdefs.h <<_ACEOF
64424 #define HAVE_GETSOCKOPT_DECL 1
64425 _ACEOF
64426
64427 fi
64428 fi
64429
64430
64431 ice_have_initgroups=no
64432
64433 for ac_func in initgroups
64434 do
64435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64436 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64437 $as_echo_n "checking for $ac_func... " >&6; }
64438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64439   $as_echo_n "(cached) " >&6
64440 else
64441   cat >conftest.$ac_ext <<_ACEOF
64442 /* confdefs.h.  */
64443 _ACEOF
64444 cat confdefs.h >>conftest.$ac_ext
64445 cat >>conftest.$ac_ext <<_ACEOF
64446 /* end confdefs.h.  */
64447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64449 #define $ac_func innocuous_$ac_func
64450
64451 /* System header to define __stub macros and hopefully few prototypes,
64452     which can conflict with char $ac_func (); below.
64453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64454     <limits.h> exists even on freestanding compilers.  */
64455
64456 #ifdef __STDC__
64457 # include <limits.h>
64458 #else
64459 # include <assert.h>
64460 #endif
64461
64462 #undef $ac_func
64463
64464 /* Override any GCC internal prototype to avoid an error.
64465    Use char because int might match the return type of a GCC
64466    builtin and then its argument prototype would still apply.  */
64467 #ifdef __cplusplus
64468 extern "C"
64469 #endif
64470 char $ac_func ();
64471 /* The GNU C library defines this for functions which it implements
64472     to always fail with ENOSYS.  Some functions are actually named
64473     something starting with __ and the normal name is an alias.  */
64474 #if defined __stub_$ac_func || defined __stub___$ac_func
64475 choke me
64476 #endif
64477
64478 int
64479 main ()
64480 {
64481 return $ac_func ();
64482   ;
64483   return 0;
64484 }
64485 _ACEOF
64486 rm -f conftest.$ac_objext conftest$ac_exeext
64487 if { (ac_try="$ac_link"
64488 case "(($ac_try" in
64489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64490   *) ac_try_echo=$ac_try;;
64491 esac
64492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64493 $as_echo "$ac_try_echo") >&5
64494   (eval "$ac_link") 2>conftest.er1
64495   ac_status=$?
64496   grep -v '^ *+' conftest.er1 >conftest.err
64497   rm -f conftest.er1
64498   cat conftest.err >&5
64499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64500   (exit $ac_status); } && {
64501          test -z "$ac_c_werror_flag" ||
64502          test ! -s conftest.err
64503        } && test -s conftest$ac_exeext && {
64504          test "$cross_compiling" = yes ||
64505          $as_test_x conftest$ac_exeext
64506        }; then
64507   eval "$as_ac_var=yes"
64508 else
64509   $as_echo "$as_me: failed program was:" >&5
64510 sed 's/^/| /' conftest.$ac_ext >&5
64511
64512         eval "$as_ac_var=no"
64513 fi
64514
64515 rm -rf conftest.dSYM
64516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64517       conftest$ac_exeext conftest.$ac_ext
64518 fi
64519 ac_res=`eval 'as_val=${'$as_ac_var'}
64520                  $as_echo "$as_val"'`
64521                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64522 $as_echo "$ac_res" >&6; }
64523 as_val=`eval 'as_val=${'$as_ac_var'}
64524                  $as_echo "$as_val"'`
64525    if test "x$as_val" = x""yes; then
64526   cat >>confdefs.h <<_ACEOF
64527 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64528 _ACEOF
64529  ice_have_initgroups=yes
64530 fi
64531 done
64532
64533 if test "${ice_have_initgroups}" = yes; then
64534 { $as_echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
64535 $as_echo_n "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... " >&6; }
64536 if test "${ice_cv_have_initgroups_decl+set}" = set; then
64537   $as_echo_n "(cached) " >&6
64538 else
64539
64540 ice_cv_have_initgroups_decl=no
64541 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64542 ice_re_word='(^|[^a-zA-Z0-9_])'
64543 for header in grp.h sys/types.h unistd.h libc.h; do
64544 # Check for ordinary declaration
64545 cat >conftest.$ac_ext <<_ACEOF
64546 /* confdefs.h.  */
64547 _ACEOF
64548 cat confdefs.h >>conftest.$ac_ext
64549 cat >>conftest.$ac_ext <<_ACEOF
64550 /* end confdefs.h.  */
64551 #include <$header>
64552
64553 _ACEOF
64554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64555   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
64556   ice_cv_have_initgroups_decl=yes
64557 fi
64558 rm -f conftest*
64559
64560 if test "$ice_cv_have_initgroups_decl" = yes; then
64561         break
64562 fi
64563 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64564 cat >conftest.$ac_ext <<_ACEOF
64565 /* confdefs.h.  */
64566 _ACEOF
64567 cat confdefs.h >>conftest.$ac_ext
64568 cat >>conftest.$ac_ext <<_ACEOF
64569 /* end confdefs.h.  */
64570 #include <$header>
64571
64572 _ACEOF
64573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64574   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64575   ice_cv_have_initgroups_decl=yes
64576 fi
64577 rm -f conftest*
64578
64579 if test "$ice_cv_have_initgroups_decl" = yes; then
64580         break
64581 fi
64582 done
64583
64584 fi
64585
64586 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
64587 $as_echo "$ice_cv_have_initgroups_decl" >&6; }
64588 if test "$ice_cv_have_initgroups_decl" = yes; then
64589
64590 cat >>confdefs.h <<_ACEOF
64591 #define HAVE_INITGROUPS_DECL 1
64592 _ACEOF
64593
64594 fi
64595 fi
64596
64597
64598 ice_have_ioctl=no
64599
64600 for ac_func in ioctl
64601 do
64602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64603 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64604 $as_echo_n "checking for $ac_func... " >&6; }
64605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64606   $as_echo_n "(cached) " >&6
64607 else
64608   cat >conftest.$ac_ext <<_ACEOF
64609 /* confdefs.h.  */
64610 _ACEOF
64611 cat confdefs.h >>conftest.$ac_ext
64612 cat >>conftest.$ac_ext <<_ACEOF
64613 /* end confdefs.h.  */
64614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64616 #define $ac_func innocuous_$ac_func
64617
64618 /* System header to define __stub macros and hopefully few prototypes,
64619     which can conflict with char $ac_func (); below.
64620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64621     <limits.h> exists even on freestanding compilers.  */
64622
64623 #ifdef __STDC__
64624 # include <limits.h>
64625 #else
64626 # include <assert.h>
64627 #endif
64628
64629 #undef $ac_func
64630
64631 /* Override any GCC internal prototype to avoid an error.
64632    Use char because int might match the return type of a GCC
64633    builtin and then its argument prototype would still apply.  */
64634 #ifdef __cplusplus
64635 extern "C"
64636 #endif
64637 char $ac_func ();
64638 /* The GNU C library defines this for functions which it implements
64639     to always fail with ENOSYS.  Some functions are actually named
64640     something starting with __ and the normal name is an alias.  */
64641 #if defined __stub_$ac_func || defined __stub___$ac_func
64642 choke me
64643 #endif
64644
64645 int
64646 main ()
64647 {
64648 return $ac_func ();
64649   ;
64650   return 0;
64651 }
64652 _ACEOF
64653 rm -f conftest.$ac_objext conftest$ac_exeext
64654 if { (ac_try="$ac_link"
64655 case "(($ac_try" in
64656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64657   *) ac_try_echo=$ac_try;;
64658 esac
64659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64660 $as_echo "$ac_try_echo") >&5
64661   (eval "$ac_link") 2>conftest.er1
64662   ac_status=$?
64663   grep -v '^ *+' conftest.er1 >conftest.err
64664   rm -f conftest.er1
64665   cat conftest.err >&5
64666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64667   (exit $ac_status); } && {
64668          test -z "$ac_c_werror_flag" ||
64669          test ! -s conftest.err
64670        } && test -s conftest$ac_exeext && {
64671          test "$cross_compiling" = yes ||
64672          $as_test_x conftest$ac_exeext
64673        }; then
64674   eval "$as_ac_var=yes"
64675 else
64676   $as_echo "$as_me: failed program was:" >&5
64677 sed 's/^/| /' conftest.$ac_ext >&5
64678
64679         eval "$as_ac_var=no"
64680 fi
64681
64682 rm -rf conftest.dSYM
64683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64684       conftest$ac_exeext conftest.$ac_ext
64685 fi
64686 ac_res=`eval 'as_val=${'$as_ac_var'}
64687                  $as_echo "$as_val"'`
64688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64689 $as_echo "$ac_res" >&6; }
64690 as_val=`eval 'as_val=${'$as_ac_var'}
64691                  $as_echo "$as_val"'`
64692    if test "x$as_val" = x""yes; then
64693   cat >>confdefs.h <<_ACEOF
64694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64695 _ACEOF
64696  ice_have_ioctl=yes
64697 fi
64698 done
64699
64700 if test "${ice_have_ioctl}" = yes; then
64701 { $as_echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
64702 $as_echo_n "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... " >&6; }
64703 if test "${ice_cv_have_ioctl_decl+set}" = set; then
64704   $as_echo_n "(cached) " >&6
64705 else
64706
64707 ice_cv_have_ioctl_decl=no
64708 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64709 ice_re_word='(^|[^a-zA-Z0-9_])'
64710 for header in sys/ioctl.h unistd.h libc.h; do
64711 # Check for ordinary declaration
64712 cat >conftest.$ac_ext <<_ACEOF
64713 /* confdefs.h.  */
64714 _ACEOF
64715 cat confdefs.h >>conftest.$ac_ext
64716 cat >>conftest.$ac_ext <<_ACEOF
64717 /* end confdefs.h.  */
64718 #include <$header>
64719
64720 _ACEOF
64721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64722   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
64723   ice_cv_have_ioctl_decl=yes
64724 fi
64725 rm -f conftest*
64726
64727 if test "$ice_cv_have_ioctl_decl" = yes; then
64728         break
64729 fi
64730 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64731 cat >conftest.$ac_ext <<_ACEOF
64732 /* confdefs.h.  */
64733 _ACEOF
64734 cat confdefs.h >>conftest.$ac_ext
64735 cat >>conftest.$ac_ext <<_ACEOF
64736 /* end confdefs.h.  */
64737 #include <$header>
64738
64739 _ACEOF
64740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64741   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64742   ice_cv_have_ioctl_decl=yes
64743 fi
64744 rm -f conftest*
64745
64746 if test "$ice_cv_have_ioctl_decl" = yes; then
64747         break
64748 fi
64749 done
64750
64751 fi
64752
64753 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
64754 $as_echo "$ice_cv_have_ioctl_decl" >&6; }
64755 if test "$ice_cv_have_ioctl_decl" = yes; then
64756
64757 cat >>confdefs.h <<_ACEOF
64758 #define HAVE_IOCTL_DECL 1
64759 _ACEOF
64760
64761 fi
64762 fi
64763
64764
64765 ice_have_isnormal=no
64766
64767 for ac_func in isnormal
64768 do
64769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64771 $as_echo_n "checking for $ac_func... " >&6; }
64772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64773   $as_echo_n "(cached) " >&6
64774 else
64775   cat >conftest.$ac_ext <<_ACEOF
64776 /* confdefs.h.  */
64777 _ACEOF
64778 cat confdefs.h >>conftest.$ac_ext
64779 cat >>conftest.$ac_ext <<_ACEOF
64780 /* end confdefs.h.  */
64781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64783 #define $ac_func innocuous_$ac_func
64784
64785 /* System header to define __stub macros and hopefully few prototypes,
64786     which can conflict with char $ac_func (); below.
64787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64788     <limits.h> exists even on freestanding compilers.  */
64789
64790 #ifdef __STDC__
64791 # include <limits.h>
64792 #else
64793 # include <assert.h>
64794 #endif
64795
64796 #undef $ac_func
64797
64798 /* Override any GCC internal prototype to avoid an error.
64799    Use char because int might match the return type of a GCC
64800    builtin and then its argument prototype would still apply.  */
64801 #ifdef __cplusplus
64802 extern "C"
64803 #endif
64804 char $ac_func ();
64805 /* The GNU C library defines this for functions which it implements
64806     to always fail with ENOSYS.  Some functions are actually named
64807     something starting with __ and the normal name is an alias.  */
64808 #if defined __stub_$ac_func || defined __stub___$ac_func
64809 choke me
64810 #endif
64811
64812 int
64813 main ()
64814 {
64815 return $ac_func ();
64816   ;
64817   return 0;
64818 }
64819 _ACEOF
64820 rm -f conftest.$ac_objext conftest$ac_exeext
64821 if { (ac_try="$ac_link"
64822 case "(($ac_try" in
64823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64824   *) ac_try_echo=$ac_try;;
64825 esac
64826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64827 $as_echo "$ac_try_echo") >&5
64828   (eval "$ac_link") 2>conftest.er1
64829   ac_status=$?
64830   grep -v '^ *+' conftest.er1 >conftest.err
64831   rm -f conftest.er1
64832   cat conftest.err >&5
64833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64834   (exit $ac_status); } && {
64835          test -z "$ac_c_werror_flag" ||
64836          test ! -s conftest.err
64837        } && test -s conftest$ac_exeext && {
64838          test "$cross_compiling" = yes ||
64839          $as_test_x conftest$ac_exeext
64840        }; then
64841   eval "$as_ac_var=yes"
64842 else
64843   $as_echo "$as_me: failed program was:" >&5
64844 sed 's/^/| /' conftest.$ac_ext >&5
64845
64846         eval "$as_ac_var=no"
64847 fi
64848
64849 rm -rf conftest.dSYM
64850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64851       conftest$ac_exeext conftest.$ac_ext
64852 fi
64853 ac_res=`eval 'as_val=${'$as_ac_var'}
64854                  $as_echo "$as_val"'`
64855                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64856 $as_echo "$ac_res" >&6; }
64857 as_val=`eval 'as_val=${'$as_ac_var'}
64858                  $as_echo "$as_val"'`
64859    if test "x$as_val" = x""yes; then
64860   cat >>confdefs.h <<_ACEOF
64861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64862 _ACEOF
64863  ice_have_isnormal=yes
64864 fi
64865 done
64866
64867 if test "${ice_have_isnormal}" = yes; then
64868 { $as_echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
64869 $as_echo_n "checking for isnormal declaration in math.h... " >&6; }
64870 if test "${ice_cv_have_isnormal_decl+set}" = set; then
64871   $as_echo_n "(cached) " >&6
64872 else
64873
64874 ice_cv_have_isnormal_decl=no
64875 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64876 ice_re_word='(^|[^a-zA-Z0-9_])'
64877 for header in math.h; do
64878 # Check for ordinary declaration
64879 cat >conftest.$ac_ext <<_ACEOF
64880 /* confdefs.h.  */
64881 _ACEOF
64882 cat confdefs.h >>conftest.$ac_ext
64883 cat >>conftest.$ac_ext <<_ACEOF
64884 /* end confdefs.h.  */
64885 #include <$header>
64886
64887 _ACEOF
64888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64889   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
64890   ice_cv_have_isnormal_decl=yes
64891 fi
64892 rm -f conftest*
64893
64894 if test "$ice_cv_have_isnormal_decl" = yes; then
64895         break
64896 fi
64897 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64898 cat >conftest.$ac_ext <<_ACEOF
64899 /* confdefs.h.  */
64900 _ACEOF
64901 cat confdefs.h >>conftest.$ac_ext
64902 cat >>conftest.$ac_ext <<_ACEOF
64903 /* end confdefs.h.  */
64904 #include <$header>
64905
64906 _ACEOF
64907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64908   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64909   ice_cv_have_isnormal_decl=yes
64910 fi
64911 rm -f conftest*
64912
64913 if test "$ice_cv_have_isnormal_decl" = yes; then
64914         break
64915 fi
64916 done
64917
64918 fi
64919
64920 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
64921 $as_echo "$ice_cv_have_isnormal_decl" >&6; }
64922 if test "$ice_cv_have_isnormal_decl" = yes; then
64923
64924 cat >>confdefs.h <<_ACEOF
64925 #define HAVE_ISNORMAL_DECL 1
64926 _ACEOF
64927
64928 fi
64929 fi
64930
64931
64932 ice_have_listen=no
64933
64934 for ac_func in listen
64935 do
64936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64937 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64938 $as_echo_n "checking for $ac_func... " >&6; }
64939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64940   $as_echo_n "(cached) " >&6
64941 else
64942   cat >conftest.$ac_ext <<_ACEOF
64943 /* confdefs.h.  */
64944 _ACEOF
64945 cat confdefs.h >>conftest.$ac_ext
64946 cat >>conftest.$ac_ext <<_ACEOF
64947 /* end confdefs.h.  */
64948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64950 #define $ac_func innocuous_$ac_func
64951
64952 /* System header to define __stub macros and hopefully few prototypes,
64953     which can conflict with char $ac_func (); below.
64954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64955     <limits.h> exists even on freestanding compilers.  */
64956
64957 #ifdef __STDC__
64958 # include <limits.h>
64959 #else
64960 # include <assert.h>
64961 #endif
64962
64963 #undef $ac_func
64964
64965 /* Override any GCC internal prototype to avoid an error.
64966    Use char because int might match the return type of a GCC
64967    builtin and then its argument prototype would still apply.  */
64968 #ifdef __cplusplus
64969 extern "C"
64970 #endif
64971 char $ac_func ();
64972 /* The GNU C library defines this for functions which it implements
64973     to always fail with ENOSYS.  Some functions are actually named
64974     something starting with __ and the normal name is an alias.  */
64975 #if defined __stub_$ac_func || defined __stub___$ac_func
64976 choke me
64977 #endif
64978
64979 int
64980 main ()
64981 {
64982 return $ac_func ();
64983   ;
64984   return 0;
64985 }
64986 _ACEOF
64987 rm -f conftest.$ac_objext conftest$ac_exeext
64988 if { (ac_try="$ac_link"
64989 case "(($ac_try" in
64990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64991   *) ac_try_echo=$ac_try;;
64992 esac
64993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64994 $as_echo "$ac_try_echo") >&5
64995   (eval "$ac_link") 2>conftest.er1
64996   ac_status=$?
64997   grep -v '^ *+' conftest.er1 >conftest.err
64998   rm -f conftest.er1
64999   cat conftest.err >&5
65000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65001   (exit $ac_status); } && {
65002          test -z "$ac_c_werror_flag" ||
65003          test ! -s conftest.err
65004        } && test -s conftest$ac_exeext && {
65005          test "$cross_compiling" = yes ||
65006          $as_test_x conftest$ac_exeext
65007        }; then
65008   eval "$as_ac_var=yes"
65009 else
65010   $as_echo "$as_me: failed program was:" >&5
65011 sed 's/^/| /' conftest.$ac_ext >&5
65012
65013         eval "$as_ac_var=no"
65014 fi
65015
65016 rm -rf conftest.dSYM
65017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65018       conftest$ac_exeext conftest.$ac_ext
65019 fi
65020 ac_res=`eval 'as_val=${'$as_ac_var'}
65021                  $as_echo "$as_val"'`
65022                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65023 $as_echo "$ac_res" >&6; }
65024 as_val=`eval 'as_val=${'$as_ac_var'}
65025                  $as_echo "$as_val"'`
65026    if test "x$as_val" = x""yes; then
65027   cat >>confdefs.h <<_ACEOF
65028 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65029 _ACEOF
65030  ice_have_listen=yes
65031 fi
65032 done
65033
65034 if test "${ice_have_listen}" = yes; then
65035 { $as_echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
65036 $as_echo_n "checking for listen declaration in sys/types.h sys/socket.h... " >&6; }
65037 if test "${ice_cv_have_listen_decl+set}" = set; then
65038   $as_echo_n "(cached) " >&6
65039 else
65040
65041 ice_cv_have_listen_decl=no
65042 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65043 ice_re_word='(^|[^a-zA-Z0-9_])'
65044 for header in sys/types.h sys/socket.h; do
65045 # Check for ordinary declaration
65046 cat >conftest.$ac_ext <<_ACEOF
65047 /* confdefs.h.  */
65048 _ACEOF
65049 cat confdefs.h >>conftest.$ac_ext
65050 cat >>conftest.$ac_ext <<_ACEOF
65051 /* end confdefs.h.  */
65052 #include <$header>
65053
65054 _ACEOF
65055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65056   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
65057   ice_cv_have_listen_decl=yes
65058 fi
65059 rm -f conftest*
65060
65061 if test "$ice_cv_have_listen_decl" = yes; then
65062         break
65063 fi
65064 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65065 cat >conftest.$ac_ext <<_ACEOF
65066 /* confdefs.h.  */
65067 _ACEOF
65068 cat confdefs.h >>conftest.$ac_ext
65069 cat >>conftest.$ac_ext <<_ACEOF
65070 /* end confdefs.h.  */
65071 #include <$header>
65072
65073 _ACEOF
65074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65075   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65076   ice_cv_have_listen_decl=yes
65077 fi
65078 rm -f conftest*
65079
65080 if test "$ice_cv_have_listen_decl" = yes; then
65081         break
65082 fi
65083 done
65084
65085 fi
65086
65087 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
65088 $as_echo "$ice_cv_have_listen_decl" >&6; }
65089 if test "$ice_cv_have_listen_decl" = yes; then
65090
65091 cat >>confdefs.h <<_ACEOF
65092 #define HAVE_LISTEN_DECL 1
65093 _ACEOF
65094
65095 fi
65096 fi
65097
65098
65099 ice_have_lstat=no
65100
65101 for ac_func in lstat
65102 do
65103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65104 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65105 $as_echo_n "checking for $ac_func... " >&6; }
65106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65107   $as_echo_n "(cached) " >&6
65108 else
65109   cat >conftest.$ac_ext <<_ACEOF
65110 /* confdefs.h.  */
65111 _ACEOF
65112 cat confdefs.h >>conftest.$ac_ext
65113 cat >>conftest.$ac_ext <<_ACEOF
65114 /* end confdefs.h.  */
65115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65117 #define $ac_func innocuous_$ac_func
65118
65119 /* System header to define __stub macros and hopefully few prototypes,
65120     which can conflict with char $ac_func (); below.
65121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65122     <limits.h> exists even on freestanding compilers.  */
65123
65124 #ifdef __STDC__
65125 # include <limits.h>
65126 #else
65127 # include <assert.h>
65128 #endif
65129
65130 #undef $ac_func
65131
65132 /* Override any GCC internal prototype to avoid an error.
65133    Use char because int might match the return type of a GCC
65134    builtin and then its argument prototype would still apply.  */
65135 #ifdef __cplusplus
65136 extern "C"
65137 #endif
65138 char $ac_func ();
65139 /* The GNU C library defines this for functions which it implements
65140     to always fail with ENOSYS.  Some functions are actually named
65141     something starting with __ and the normal name is an alias.  */
65142 #if defined __stub_$ac_func || defined __stub___$ac_func
65143 choke me
65144 #endif
65145
65146 int
65147 main ()
65148 {
65149 return $ac_func ();
65150   ;
65151   return 0;
65152 }
65153 _ACEOF
65154 rm -f conftest.$ac_objext conftest$ac_exeext
65155 if { (ac_try="$ac_link"
65156 case "(($ac_try" in
65157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65158   *) ac_try_echo=$ac_try;;
65159 esac
65160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65161 $as_echo "$ac_try_echo") >&5
65162   (eval "$ac_link") 2>conftest.er1
65163   ac_status=$?
65164   grep -v '^ *+' conftest.er1 >conftest.err
65165   rm -f conftest.er1
65166   cat conftest.err >&5
65167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65168   (exit $ac_status); } && {
65169          test -z "$ac_c_werror_flag" ||
65170          test ! -s conftest.err
65171        } && test -s conftest$ac_exeext && {
65172          test "$cross_compiling" = yes ||
65173          $as_test_x conftest$ac_exeext
65174        }; then
65175   eval "$as_ac_var=yes"
65176 else
65177   $as_echo "$as_me: failed program was:" >&5
65178 sed 's/^/| /' conftest.$ac_ext >&5
65179
65180         eval "$as_ac_var=no"
65181 fi
65182
65183 rm -rf conftest.dSYM
65184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65185       conftest$ac_exeext conftest.$ac_ext
65186 fi
65187 ac_res=`eval 'as_val=${'$as_ac_var'}
65188                  $as_echo "$as_val"'`
65189                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65190 $as_echo "$ac_res" >&6; }
65191 as_val=`eval 'as_val=${'$as_ac_var'}
65192                  $as_echo "$as_val"'`
65193    if test "x$as_val" = x""yes; then
65194   cat >>confdefs.h <<_ACEOF
65195 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65196 _ACEOF
65197  ice_have_lstat=yes
65198 fi
65199 done
65200
65201 if test "${ice_have_lstat}" = yes; then
65202 { $as_echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
65203 $as_echo_n "checking for lstat declaration in sys/types.h sys/stat.h... " >&6; }
65204 if test "${ice_cv_have_lstat_decl+set}" = set; then
65205   $as_echo_n "(cached) " >&6
65206 else
65207
65208 ice_cv_have_lstat_decl=no
65209 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65210 ice_re_word='(^|[^a-zA-Z0-9_])'
65211 for header in sys/types.h sys/stat.h; do
65212 # Check for ordinary declaration
65213 cat >conftest.$ac_ext <<_ACEOF
65214 /* confdefs.h.  */
65215 _ACEOF
65216 cat confdefs.h >>conftest.$ac_ext
65217 cat >>conftest.$ac_ext <<_ACEOF
65218 /* end confdefs.h.  */
65219 #include <$header>
65220
65221 _ACEOF
65222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65223   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
65224   ice_cv_have_lstat_decl=yes
65225 fi
65226 rm -f conftest*
65227
65228 if test "$ice_cv_have_lstat_decl" = yes; then
65229         break
65230 fi
65231 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65232 cat >conftest.$ac_ext <<_ACEOF
65233 /* confdefs.h.  */
65234 _ACEOF
65235 cat confdefs.h >>conftest.$ac_ext
65236 cat >>conftest.$ac_ext <<_ACEOF
65237 /* end confdefs.h.  */
65238 #include <$header>
65239
65240 _ACEOF
65241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65242   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65243   ice_cv_have_lstat_decl=yes
65244 fi
65245 rm -f conftest*
65246
65247 if test "$ice_cv_have_lstat_decl" = yes; then
65248         break
65249 fi
65250 done
65251
65252 fi
65253
65254 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
65255 $as_echo "$ice_cv_have_lstat_decl" >&6; }
65256 if test "$ice_cv_have_lstat_decl" = yes; then
65257
65258 cat >>confdefs.h <<_ACEOF
65259 #define HAVE_LSTAT_DECL 1
65260 _ACEOF
65261
65262 fi
65263 fi
65264
65265
65266 ice_have_malloc=no
65267
65268 for ac_func in malloc
65269 do
65270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65271 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65272 $as_echo_n "checking for $ac_func... " >&6; }
65273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65274   $as_echo_n "(cached) " >&6
65275 else
65276   cat >conftest.$ac_ext <<_ACEOF
65277 /* confdefs.h.  */
65278 _ACEOF
65279 cat confdefs.h >>conftest.$ac_ext
65280 cat >>conftest.$ac_ext <<_ACEOF
65281 /* end confdefs.h.  */
65282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65284 #define $ac_func innocuous_$ac_func
65285
65286 /* System header to define __stub macros and hopefully few prototypes,
65287     which can conflict with char $ac_func (); below.
65288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65289     <limits.h> exists even on freestanding compilers.  */
65290
65291 #ifdef __STDC__
65292 # include <limits.h>
65293 #else
65294 # include <assert.h>
65295 #endif
65296
65297 #undef $ac_func
65298
65299 /* Override any GCC internal prototype to avoid an error.
65300    Use char because int might match the return type of a GCC
65301    builtin and then its argument prototype would still apply.  */
65302 #ifdef __cplusplus
65303 extern "C"
65304 #endif
65305 char $ac_func ();
65306 /* The GNU C library defines this for functions which it implements
65307     to always fail with ENOSYS.  Some functions are actually named
65308     something starting with __ and the normal name is an alias.  */
65309 #if defined __stub_$ac_func || defined __stub___$ac_func
65310 choke me
65311 #endif
65312
65313 int
65314 main ()
65315 {
65316 return $ac_func ();
65317   ;
65318   return 0;
65319 }
65320 _ACEOF
65321 rm -f conftest.$ac_objext conftest$ac_exeext
65322 if { (ac_try="$ac_link"
65323 case "(($ac_try" in
65324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65325   *) ac_try_echo=$ac_try;;
65326 esac
65327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65328 $as_echo "$ac_try_echo") >&5
65329   (eval "$ac_link") 2>conftest.er1
65330   ac_status=$?
65331   grep -v '^ *+' conftest.er1 >conftest.err
65332   rm -f conftest.er1
65333   cat conftest.err >&5
65334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65335   (exit $ac_status); } && {
65336          test -z "$ac_c_werror_flag" ||
65337          test ! -s conftest.err
65338        } && test -s conftest$ac_exeext && {
65339          test "$cross_compiling" = yes ||
65340          $as_test_x conftest$ac_exeext
65341        }; then
65342   eval "$as_ac_var=yes"
65343 else
65344   $as_echo "$as_me: failed program was:" >&5
65345 sed 's/^/| /' conftest.$ac_ext >&5
65346
65347         eval "$as_ac_var=no"
65348 fi
65349
65350 rm -rf conftest.dSYM
65351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65352       conftest$ac_exeext conftest.$ac_ext
65353 fi
65354 ac_res=`eval 'as_val=${'$as_ac_var'}
65355                  $as_echo "$as_val"'`
65356                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65357 $as_echo "$ac_res" >&6; }
65358 as_val=`eval 'as_val=${'$as_ac_var'}
65359                  $as_echo "$as_val"'`
65360    if test "x$as_val" = x""yes; then
65361   cat >>confdefs.h <<_ACEOF
65362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65363 _ACEOF
65364  ice_have_malloc=yes
65365 fi
65366 done
65367
65368 if test "${ice_have_malloc}" = yes; then
65369 { $as_echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
65370 $as_echo_n "checking for malloc declaration in stdlib.h... " >&6; }
65371 if test "${ice_cv_have_malloc_decl+set}" = set; then
65372   $as_echo_n "(cached) " >&6
65373 else
65374
65375 ice_cv_have_malloc_decl=no
65376 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65377 ice_re_word='(^|[^a-zA-Z0-9_])'
65378 for header in stdlib.h; do
65379 # Check for ordinary declaration
65380 cat >conftest.$ac_ext <<_ACEOF
65381 /* confdefs.h.  */
65382 _ACEOF
65383 cat confdefs.h >>conftest.$ac_ext
65384 cat >>conftest.$ac_ext <<_ACEOF
65385 /* end confdefs.h.  */
65386 #include <$header>
65387
65388 _ACEOF
65389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65390   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
65391   ice_cv_have_malloc_decl=yes
65392 fi
65393 rm -f conftest*
65394
65395 if test "$ice_cv_have_malloc_decl" = yes; then
65396         break
65397 fi
65398 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65399 cat >conftest.$ac_ext <<_ACEOF
65400 /* confdefs.h.  */
65401 _ACEOF
65402 cat confdefs.h >>conftest.$ac_ext
65403 cat >>conftest.$ac_ext <<_ACEOF
65404 /* end confdefs.h.  */
65405 #include <$header>
65406
65407 _ACEOF
65408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65409   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65410   ice_cv_have_malloc_decl=yes
65411 fi
65412 rm -f conftest*
65413
65414 if test "$ice_cv_have_malloc_decl" = yes; then
65415         break
65416 fi
65417 done
65418
65419 fi
65420
65421 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
65422 $as_echo "$ice_cv_have_malloc_decl" >&6; }
65423 if test "$ice_cv_have_malloc_decl" = yes; then
65424
65425 cat >>confdefs.h <<_ACEOF
65426 #define HAVE_MALLOC_DECL 1
65427 _ACEOF
65428
65429 fi
65430 fi
65431
65432
65433 ice_have_memmove=no
65434
65435 for ac_func in memmove
65436 do
65437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65439 $as_echo_n "checking for $ac_func... " >&6; }
65440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65441   $as_echo_n "(cached) " >&6
65442 else
65443   cat >conftest.$ac_ext <<_ACEOF
65444 /* confdefs.h.  */
65445 _ACEOF
65446 cat confdefs.h >>conftest.$ac_ext
65447 cat >>conftest.$ac_ext <<_ACEOF
65448 /* end confdefs.h.  */
65449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65451 #define $ac_func innocuous_$ac_func
65452
65453 /* System header to define __stub macros and hopefully few prototypes,
65454     which can conflict with char $ac_func (); below.
65455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65456     <limits.h> exists even on freestanding compilers.  */
65457
65458 #ifdef __STDC__
65459 # include <limits.h>
65460 #else
65461 # include <assert.h>
65462 #endif
65463
65464 #undef $ac_func
65465
65466 /* Override any GCC internal prototype to avoid an error.
65467    Use char because int might match the return type of a GCC
65468    builtin and then its argument prototype would still apply.  */
65469 #ifdef __cplusplus
65470 extern "C"
65471 #endif
65472 char $ac_func ();
65473 /* The GNU C library defines this for functions which it implements
65474     to always fail with ENOSYS.  Some functions are actually named
65475     something starting with __ and the normal name is an alias.  */
65476 #if defined __stub_$ac_func || defined __stub___$ac_func
65477 choke me
65478 #endif
65479
65480 int
65481 main ()
65482 {
65483 return $ac_func ();
65484   ;
65485   return 0;
65486 }
65487 _ACEOF
65488 rm -f conftest.$ac_objext conftest$ac_exeext
65489 if { (ac_try="$ac_link"
65490 case "(($ac_try" in
65491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65492   *) ac_try_echo=$ac_try;;
65493 esac
65494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65495 $as_echo "$ac_try_echo") >&5
65496   (eval "$ac_link") 2>conftest.er1
65497   ac_status=$?
65498   grep -v '^ *+' conftest.er1 >conftest.err
65499   rm -f conftest.er1
65500   cat conftest.err >&5
65501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65502   (exit $ac_status); } && {
65503          test -z "$ac_c_werror_flag" ||
65504          test ! -s conftest.err
65505        } && test -s conftest$ac_exeext && {
65506          test "$cross_compiling" = yes ||
65507          $as_test_x conftest$ac_exeext
65508        }; then
65509   eval "$as_ac_var=yes"
65510 else
65511   $as_echo "$as_me: failed program was:" >&5
65512 sed 's/^/| /' conftest.$ac_ext >&5
65513
65514         eval "$as_ac_var=no"
65515 fi
65516
65517 rm -rf conftest.dSYM
65518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65519       conftest$ac_exeext conftest.$ac_ext
65520 fi
65521 ac_res=`eval 'as_val=${'$as_ac_var'}
65522                  $as_echo "$as_val"'`
65523                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65524 $as_echo "$ac_res" >&6; }
65525 as_val=`eval 'as_val=${'$as_ac_var'}
65526                  $as_echo "$as_val"'`
65527    if test "x$as_val" = x""yes; then
65528   cat >>confdefs.h <<_ACEOF
65529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65530 _ACEOF
65531  ice_have_memmove=yes
65532 fi
65533 done
65534
65535 if test "${ice_have_memmove}" = yes; then
65536 { $as_echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
65537 $as_echo_n "checking for memmove declaration in string.h strings.h... " >&6; }
65538 if test "${ice_cv_have_memmove_decl+set}" = set; then
65539   $as_echo_n "(cached) " >&6
65540 else
65541
65542 ice_cv_have_memmove_decl=no
65543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65544 ice_re_word='(^|[^a-zA-Z0-9_])'
65545 for header in string.h strings.h; do
65546 # Check for ordinary declaration
65547 cat >conftest.$ac_ext <<_ACEOF
65548 /* confdefs.h.  */
65549 _ACEOF
65550 cat confdefs.h >>conftest.$ac_ext
65551 cat >>conftest.$ac_ext <<_ACEOF
65552 /* end confdefs.h.  */
65553 #include <$header>
65554
65555 _ACEOF
65556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65557   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
65558   ice_cv_have_memmove_decl=yes
65559 fi
65560 rm -f conftest*
65561
65562 if test "$ice_cv_have_memmove_decl" = yes; then
65563         break
65564 fi
65565 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65566 cat >conftest.$ac_ext <<_ACEOF
65567 /* confdefs.h.  */
65568 _ACEOF
65569 cat confdefs.h >>conftest.$ac_ext
65570 cat >>conftest.$ac_ext <<_ACEOF
65571 /* end confdefs.h.  */
65572 #include <$header>
65573
65574 _ACEOF
65575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65576   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65577   ice_cv_have_memmove_decl=yes
65578 fi
65579 rm -f conftest*
65580
65581 if test "$ice_cv_have_memmove_decl" = yes; then
65582         break
65583 fi
65584 done
65585
65586 fi
65587
65588 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
65589 $as_echo "$ice_cv_have_memmove_decl" >&6; }
65590 if test "$ice_cv_have_memmove_decl" = yes; then
65591
65592 cat >>confdefs.h <<_ACEOF
65593 #define HAVE_MEMMOVE_DECL 1
65594 _ACEOF
65595
65596 fi
65597 fi
65598
65599
65600 ice_have_memset=no
65601
65602 for ac_func in memset
65603 do
65604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65605 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65606 $as_echo_n "checking for $ac_func... " >&6; }
65607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65608   $as_echo_n "(cached) " >&6
65609 else
65610   cat >conftest.$ac_ext <<_ACEOF
65611 /* confdefs.h.  */
65612 _ACEOF
65613 cat confdefs.h >>conftest.$ac_ext
65614 cat >>conftest.$ac_ext <<_ACEOF
65615 /* end confdefs.h.  */
65616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65618 #define $ac_func innocuous_$ac_func
65619
65620 /* System header to define __stub macros and hopefully few prototypes,
65621     which can conflict with char $ac_func (); below.
65622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65623     <limits.h> exists even on freestanding compilers.  */
65624
65625 #ifdef __STDC__
65626 # include <limits.h>
65627 #else
65628 # include <assert.h>
65629 #endif
65630
65631 #undef $ac_func
65632
65633 /* Override any GCC internal prototype to avoid an error.
65634    Use char because int might match the return type of a GCC
65635    builtin and then its argument prototype would still apply.  */
65636 #ifdef __cplusplus
65637 extern "C"
65638 #endif
65639 char $ac_func ();
65640 /* The GNU C library defines this for functions which it implements
65641     to always fail with ENOSYS.  Some functions are actually named
65642     something starting with __ and the normal name is an alias.  */
65643 #if defined __stub_$ac_func || defined __stub___$ac_func
65644 choke me
65645 #endif
65646
65647 int
65648 main ()
65649 {
65650 return $ac_func ();
65651   ;
65652   return 0;
65653 }
65654 _ACEOF
65655 rm -f conftest.$ac_objext conftest$ac_exeext
65656 if { (ac_try="$ac_link"
65657 case "(($ac_try" in
65658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65659   *) ac_try_echo=$ac_try;;
65660 esac
65661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65662 $as_echo "$ac_try_echo") >&5
65663   (eval "$ac_link") 2>conftest.er1
65664   ac_status=$?
65665   grep -v '^ *+' conftest.er1 >conftest.err
65666   rm -f conftest.er1
65667   cat conftest.err >&5
65668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65669   (exit $ac_status); } && {
65670          test -z "$ac_c_werror_flag" ||
65671          test ! -s conftest.err
65672        } && test -s conftest$ac_exeext && {
65673          test "$cross_compiling" = yes ||
65674          $as_test_x conftest$ac_exeext
65675        }; then
65676   eval "$as_ac_var=yes"
65677 else
65678   $as_echo "$as_me: failed program was:" >&5
65679 sed 's/^/| /' conftest.$ac_ext >&5
65680
65681         eval "$as_ac_var=no"
65682 fi
65683
65684 rm -rf conftest.dSYM
65685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65686       conftest$ac_exeext conftest.$ac_ext
65687 fi
65688 ac_res=`eval 'as_val=${'$as_ac_var'}
65689                  $as_echo "$as_val"'`
65690                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65691 $as_echo "$ac_res" >&6; }
65692 as_val=`eval 'as_val=${'$as_ac_var'}
65693                  $as_echo "$as_val"'`
65694    if test "x$as_val" = x""yes; then
65695   cat >>confdefs.h <<_ACEOF
65696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65697 _ACEOF
65698  ice_have_memset=yes
65699 fi
65700 done
65701
65702 if test "${ice_have_memset}" = yes; then
65703 { $as_echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
65704 $as_echo_n "checking for memset declaration in string.h strings.h... " >&6; }
65705 if test "${ice_cv_have_memset_decl+set}" = set; then
65706   $as_echo_n "(cached) " >&6
65707 else
65708
65709 ice_cv_have_memset_decl=no
65710 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65711 ice_re_word='(^|[^a-zA-Z0-9_])'
65712 for header in string.h strings.h; do
65713 # Check for ordinary declaration
65714 cat >conftest.$ac_ext <<_ACEOF
65715 /* confdefs.h.  */
65716 _ACEOF
65717 cat confdefs.h >>conftest.$ac_ext
65718 cat >>conftest.$ac_ext <<_ACEOF
65719 /* end confdefs.h.  */
65720 #include <$header>
65721
65722 _ACEOF
65723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65724   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
65725   ice_cv_have_memset_decl=yes
65726 fi
65727 rm -f conftest*
65728
65729 if test "$ice_cv_have_memset_decl" = yes; then
65730         break
65731 fi
65732 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65733 cat >conftest.$ac_ext <<_ACEOF
65734 /* confdefs.h.  */
65735 _ACEOF
65736 cat confdefs.h >>conftest.$ac_ext
65737 cat >>conftest.$ac_ext <<_ACEOF
65738 /* end confdefs.h.  */
65739 #include <$header>
65740
65741 _ACEOF
65742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65743   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65744   ice_cv_have_memset_decl=yes
65745 fi
65746 rm -f conftest*
65747
65748 if test "$ice_cv_have_memset_decl" = yes; then
65749         break
65750 fi
65751 done
65752
65753 fi
65754
65755 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
65756 $as_echo "$ice_cv_have_memset_decl" >&6; }
65757 if test "$ice_cv_have_memset_decl" = yes; then
65758
65759 cat >>confdefs.h <<_ACEOF
65760 #define HAVE_MEMSET_DECL 1
65761 _ACEOF
65762
65763 fi
65764 fi
65765
65766
65767 ice_have_mkstemp=no
65768
65769 for ac_func in mkstemp
65770 do
65771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65772 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65773 $as_echo_n "checking for $ac_func... " >&6; }
65774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65775   $as_echo_n "(cached) " >&6
65776 else
65777   cat >conftest.$ac_ext <<_ACEOF
65778 /* confdefs.h.  */
65779 _ACEOF
65780 cat confdefs.h >>conftest.$ac_ext
65781 cat >>conftest.$ac_ext <<_ACEOF
65782 /* end confdefs.h.  */
65783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65785 #define $ac_func innocuous_$ac_func
65786
65787 /* System header to define __stub macros and hopefully few prototypes,
65788     which can conflict with char $ac_func (); below.
65789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65790     <limits.h> exists even on freestanding compilers.  */
65791
65792 #ifdef __STDC__
65793 # include <limits.h>
65794 #else
65795 # include <assert.h>
65796 #endif
65797
65798 #undef $ac_func
65799
65800 /* Override any GCC internal prototype to avoid an error.
65801    Use char because int might match the return type of a GCC
65802    builtin and then its argument prototype would still apply.  */
65803 #ifdef __cplusplus
65804 extern "C"
65805 #endif
65806 char $ac_func ();
65807 /* The GNU C library defines this for functions which it implements
65808     to always fail with ENOSYS.  Some functions are actually named
65809     something starting with __ and the normal name is an alias.  */
65810 #if defined __stub_$ac_func || defined __stub___$ac_func
65811 choke me
65812 #endif
65813
65814 int
65815 main ()
65816 {
65817 return $ac_func ();
65818   ;
65819   return 0;
65820 }
65821 _ACEOF
65822 rm -f conftest.$ac_objext conftest$ac_exeext
65823 if { (ac_try="$ac_link"
65824 case "(($ac_try" in
65825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65826   *) ac_try_echo=$ac_try;;
65827 esac
65828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65829 $as_echo "$ac_try_echo") >&5
65830   (eval "$ac_link") 2>conftest.er1
65831   ac_status=$?
65832   grep -v '^ *+' conftest.er1 >conftest.err
65833   rm -f conftest.er1
65834   cat conftest.err >&5
65835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65836   (exit $ac_status); } && {
65837          test -z "$ac_c_werror_flag" ||
65838          test ! -s conftest.err
65839        } && test -s conftest$ac_exeext && {
65840          test "$cross_compiling" = yes ||
65841          $as_test_x conftest$ac_exeext
65842        }; then
65843   eval "$as_ac_var=yes"
65844 else
65845   $as_echo "$as_me: failed program was:" >&5
65846 sed 's/^/| /' conftest.$ac_ext >&5
65847
65848         eval "$as_ac_var=no"
65849 fi
65850
65851 rm -rf conftest.dSYM
65852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65853       conftest$ac_exeext conftest.$ac_ext
65854 fi
65855 ac_res=`eval 'as_val=${'$as_ac_var'}
65856                  $as_echo "$as_val"'`
65857                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65858 $as_echo "$ac_res" >&6; }
65859 as_val=`eval 'as_val=${'$as_ac_var'}
65860                  $as_echo "$as_val"'`
65861    if test "x$as_val" = x""yes; then
65862   cat >>confdefs.h <<_ACEOF
65863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65864 _ACEOF
65865  ice_have_mkstemp=yes
65866 fi
65867 done
65868
65869 if test "${ice_have_mkstemp}" = yes; then
65870 { $as_echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
65871 $as_echo_n "checking for mkstemp declaration in stdlib.h... " >&6; }
65872 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
65873   $as_echo_n "(cached) " >&6
65874 else
65875
65876 ice_cv_have_mkstemp_decl=no
65877 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65878 ice_re_word='(^|[^a-zA-Z0-9_])'
65879 for header in stdlib.h; do
65880 # Check for ordinary declaration
65881 cat >conftest.$ac_ext <<_ACEOF
65882 /* confdefs.h.  */
65883 _ACEOF
65884 cat confdefs.h >>conftest.$ac_ext
65885 cat >>conftest.$ac_ext <<_ACEOF
65886 /* end confdefs.h.  */
65887 #include <$header>
65888
65889 _ACEOF
65890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65891   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
65892   ice_cv_have_mkstemp_decl=yes
65893 fi
65894 rm -f conftest*
65895
65896 if test "$ice_cv_have_mkstemp_decl" = yes; then
65897         break
65898 fi
65899 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65900 cat >conftest.$ac_ext <<_ACEOF
65901 /* confdefs.h.  */
65902 _ACEOF
65903 cat confdefs.h >>conftest.$ac_ext
65904 cat >>conftest.$ac_ext <<_ACEOF
65905 /* end confdefs.h.  */
65906 #include <$header>
65907
65908 _ACEOF
65909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65910   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65911   ice_cv_have_mkstemp_decl=yes
65912 fi
65913 rm -f conftest*
65914
65915 if test "$ice_cv_have_mkstemp_decl" = yes; then
65916         break
65917 fi
65918 done
65919
65920 fi
65921
65922 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
65923 $as_echo "$ice_cv_have_mkstemp_decl" >&6; }
65924 if test "$ice_cv_have_mkstemp_decl" = yes; then
65925
65926 cat >>confdefs.h <<_ACEOF
65927 #define HAVE_MKSTEMP_DECL 1
65928 _ACEOF
65929
65930 fi
65931 fi
65932
65933
65934 ice_have_mktemp=no
65935
65936 for ac_func in mktemp
65937 do
65938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65939 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65940 $as_echo_n "checking for $ac_func... " >&6; }
65941 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65942   $as_echo_n "(cached) " >&6
65943 else
65944   cat >conftest.$ac_ext <<_ACEOF
65945 /* confdefs.h.  */
65946 _ACEOF
65947 cat confdefs.h >>conftest.$ac_ext
65948 cat >>conftest.$ac_ext <<_ACEOF
65949 /* end confdefs.h.  */
65950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65952 #define $ac_func innocuous_$ac_func
65953
65954 /* System header to define __stub macros and hopefully few prototypes,
65955     which can conflict with char $ac_func (); below.
65956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65957     <limits.h> exists even on freestanding compilers.  */
65958
65959 #ifdef __STDC__
65960 # include <limits.h>
65961 #else
65962 # include <assert.h>
65963 #endif
65964
65965 #undef $ac_func
65966
65967 /* Override any GCC internal prototype to avoid an error.
65968    Use char because int might match the return type of a GCC
65969    builtin and then its argument prototype would still apply.  */
65970 #ifdef __cplusplus
65971 extern "C"
65972 #endif
65973 char $ac_func ();
65974 /* The GNU C library defines this for functions which it implements
65975     to always fail with ENOSYS.  Some functions are actually named
65976     something starting with __ and the normal name is an alias.  */
65977 #if defined __stub_$ac_func || defined __stub___$ac_func
65978 choke me
65979 #endif
65980
65981 int
65982 main ()
65983 {
65984 return $ac_func ();
65985   ;
65986   return 0;
65987 }
65988 _ACEOF
65989 rm -f conftest.$ac_objext conftest$ac_exeext
65990 if { (ac_try="$ac_link"
65991 case "(($ac_try" in
65992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65993   *) ac_try_echo=$ac_try;;
65994 esac
65995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65996 $as_echo "$ac_try_echo") >&5
65997   (eval "$ac_link") 2>conftest.er1
65998   ac_status=$?
65999   grep -v '^ *+' conftest.er1 >conftest.err
66000   rm -f conftest.er1
66001   cat conftest.err >&5
66002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66003   (exit $ac_status); } && {
66004          test -z "$ac_c_werror_flag" ||
66005          test ! -s conftest.err
66006        } && test -s conftest$ac_exeext && {
66007          test "$cross_compiling" = yes ||
66008          $as_test_x conftest$ac_exeext
66009        }; then
66010   eval "$as_ac_var=yes"
66011 else
66012   $as_echo "$as_me: failed program was:" >&5
66013 sed 's/^/| /' conftest.$ac_ext >&5
66014
66015         eval "$as_ac_var=no"
66016 fi
66017
66018 rm -rf conftest.dSYM
66019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66020       conftest$ac_exeext conftest.$ac_ext
66021 fi
66022 ac_res=`eval 'as_val=${'$as_ac_var'}
66023                  $as_echo "$as_val"'`
66024                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66025 $as_echo "$ac_res" >&6; }
66026 as_val=`eval 'as_val=${'$as_ac_var'}
66027                  $as_echo "$as_val"'`
66028    if test "x$as_val" = x""yes; then
66029   cat >>confdefs.h <<_ACEOF
66030 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66031 _ACEOF
66032  ice_have_mktemp=yes
66033 fi
66034 done
66035
66036 if test "${ice_have_mktemp}" = yes; then
66037 { $as_echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
66038 $as_echo_n "checking for mktemp declaration in stdlib.h... " >&6; }
66039 if test "${ice_cv_have_mktemp_decl+set}" = set; then
66040   $as_echo_n "(cached) " >&6
66041 else
66042
66043 ice_cv_have_mktemp_decl=no
66044 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66045 ice_re_word='(^|[^a-zA-Z0-9_])'
66046 for header in stdlib.h; do
66047 # Check for ordinary declaration
66048 cat >conftest.$ac_ext <<_ACEOF
66049 /* confdefs.h.  */
66050 _ACEOF
66051 cat confdefs.h >>conftest.$ac_ext
66052 cat >>conftest.$ac_ext <<_ACEOF
66053 /* end confdefs.h.  */
66054 #include <$header>
66055
66056 _ACEOF
66057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66058   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
66059   ice_cv_have_mktemp_decl=yes
66060 fi
66061 rm -f conftest*
66062
66063 if test "$ice_cv_have_mktemp_decl" = yes; then
66064         break
66065 fi
66066 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66067 cat >conftest.$ac_ext <<_ACEOF
66068 /* confdefs.h.  */
66069 _ACEOF
66070 cat confdefs.h >>conftest.$ac_ext
66071 cat >>conftest.$ac_ext <<_ACEOF
66072 /* end confdefs.h.  */
66073 #include <$header>
66074
66075 _ACEOF
66076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66077   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66078   ice_cv_have_mktemp_decl=yes
66079 fi
66080 rm -f conftest*
66081
66082 if test "$ice_cv_have_mktemp_decl" = yes; then
66083         break
66084 fi
66085 done
66086
66087 fi
66088
66089 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
66090 $as_echo "$ice_cv_have_mktemp_decl" >&6; }
66091 if test "$ice_cv_have_mktemp_decl" = yes; then
66092
66093 cat >>confdefs.h <<_ACEOF
66094 #define HAVE_MKTEMP_DECL 1
66095 _ACEOF
66096
66097 fi
66098 fi
66099
66100
66101 ice_have_mktime=no
66102
66103 for ac_func in mktime
66104 do
66105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66106 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66107 $as_echo_n "checking for $ac_func... " >&6; }
66108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66109   $as_echo_n "(cached) " >&6
66110 else
66111   cat >conftest.$ac_ext <<_ACEOF
66112 /* confdefs.h.  */
66113 _ACEOF
66114 cat confdefs.h >>conftest.$ac_ext
66115 cat >>conftest.$ac_ext <<_ACEOF
66116 /* end confdefs.h.  */
66117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66119 #define $ac_func innocuous_$ac_func
66120
66121 /* System header to define __stub macros and hopefully few prototypes,
66122     which can conflict with char $ac_func (); below.
66123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66124     <limits.h> exists even on freestanding compilers.  */
66125
66126 #ifdef __STDC__
66127 # include <limits.h>
66128 #else
66129 # include <assert.h>
66130 #endif
66131
66132 #undef $ac_func
66133
66134 /* Override any GCC internal prototype to avoid an error.
66135    Use char because int might match the return type of a GCC
66136    builtin and then its argument prototype would still apply.  */
66137 #ifdef __cplusplus
66138 extern "C"
66139 #endif
66140 char $ac_func ();
66141 /* The GNU C library defines this for functions which it implements
66142     to always fail with ENOSYS.  Some functions are actually named
66143     something starting with __ and the normal name is an alias.  */
66144 #if defined __stub_$ac_func || defined __stub___$ac_func
66145 choke me
66146 #endif
66147
66148 int
66149 main ()
66150 {
66151 return $ac_func ();
66152   ;
66153   return 0;
66154 }
66155 _ACEOF
66156 rm -f conftest.$ac_objext conftest$ac_exeext
66157 if { (ac_try="$ac_link"
66158 case "(($ac_try" in
66159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66160   *) ac_try_echo=$ac_try;;
66161 esac
66162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66163 $as_echo "$ac_try_echo") >&5
66164   (eval "$ac_link") 2>conftest.er1
66165   ac_status=$?
66166   grep -v '^ *+' conftest.er1 >conftest.err
66167   rm -f conftest.er1
66168   cat conftest.err >&5
66169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66170   (exit $ac_status); } && {
66171          test -z "$ac_c_werror_flag" ||
66172          test ! -s conftest.err
66173        } && test -s conftest$ac_exeext && {
66174          test "$cross_compiling" = yes ||
66175          $as_test_x conftest$ac_exeext
66176        }; then
66177   eval "$as_ac_var=yes"
66178 else
66179   $as_echo "$as_me: failed program was:" >&5
66180 sed 's/^/| /' conftest.$ac_ext >&5
66181
66182         eval "$as_ac_var=no"
66183 fi
66184
66185 rm -rf conftest.dSYM
66186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66187       conftest$ac_exeext conftest.$ac_ext
66188 fi
66189 ac_res=`eval 'as_val=${'$as_ac_var'}
66190                  $as_echo "$as_val"'`
66191                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66192 $as_echo "$ac_res" >&6; }
66193 as_val=`eval 'as_val=${'$as_ac_var'}
66194                  $as_echo "$as_val"'`
66195    if test "x$as_val" = x""yes; then
66196   cat >>confdefs.h <<_ACEOF
66197 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66198 _ACEOF
66199  ice_have_mktime=yes
66200 fi
66201 done
66202
66203 if test "${ice_have_mktime}" = yes; then
66204 { $as_echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
66205 $as_echo_n "checking for mktime declaration in time.h sys/time.h... " >&6; }
66206 if test "${ice_cv_have_mktime_decl+set}" = set; then
66207   $as_echo_n "(cached) " >&6
66208 else
66209
66210 ice_cv_have_mktime_decl=no
66211 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66212 ice_re_word='(^|[^a-zA-Z0-9_])'
66213 for header in time.h sys/time.h; do
66214 # Check for ordinary declaration
66215 cat >conftest.$ac_ext <<_ACEOF
66216 /* confdefs.h.  */
66217 _ACEOF
66218 cat confdefs.h >>conftest.$ac_ext
66219 cat >>conftest.$ac_ext <<_ACEOF
66220 /* end confdefs.h.  */
66221 #include <$header>
66222
66223 _ACEOF
66224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66225   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
66226   ice_cv_have_mktime_decl=yes
66227 fi
66228 rm -f conftest*
66229
66230 if test "$ice_cv_have_mktime_decl" = yes; then
66231         break
66232 fi
66233 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66234 cat >conftest.$ac_ext <<_ACEOF
66235 /* confdefs.h.  */
66236 _ACEOF
66237 cat confdefs.h >>conftest.$ac_ext
66238 cat >>conftest.$ac_ext <<_ACEOF
66239 /* end confdefs.h.  */
66240 #include <$header>
66241
66242 _ACEOF
66243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66244   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66245   ice_cv_have_mktime_decl=yes
66246 fi
66247 rm -f conftest*
66248
66249 if test "$ice_cv_have_mktime_decl" = yes; then
66250         break
66251 fi
66252 done
66253
66254 fi
66255
66256 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
66257 $as_echo "$ice_cv_have_mktime_decl" >&6; }
66258 if test "$ice_cv_have_mktime_decl" = yes; then
66259
66260 cat >>confdefs.h <<_ACEOF
66261 #define HAVE_MKTIME_DECL 1
66262 _ACEOF
66263
66264 fi
66265 fi
66266
66267
66268 for ac_func in on_exit
66269 do
66270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66271 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66272 $as_echo_n "checking for $ac_func... " >&6; }
66273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66274   $as_echo_n "(cached) " >&6
66275 else
66276   cat >conftest.$ac_ext <<_ACEOF
66277 /* confdefs.h.  */
66278 _ACEOF
66279 cat confdefs.h >>conftest.$ac_ext
66280 cat >>conftest.$ac_ext <<_ACEOF
66281 /* end confdefs.h.  */
66282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66284 #define $ac_func innocuous_$ac_func
66285
66286 /* System header to define __stub macros and hopefully few prototypes,
66287     which can conflict with char $ac_func (); below.
66288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66289     <limits.h> exists even on freestanding compilers.  */
66290
66291 #ifdef __STDC__
66292 # include <limits.h>
66293 #else
66294 # include <assert.h>
66295 #endif
66296
66297 #undef $ac_func
66298
66299 /* Override any GCC internal prototype to avoid an error.
66300    Use char because int might match the return type of a GCC
66301    builtin and then its argument prototype would still apply.  */
66302 #ifdef __cplusplus
66303 extern "C"
66304 #endif
66305 char $ac_func ();
66306 /* The GNU C library defines this for functions which it implements
66307     to always fail with ENOSYS.  Some functions are actually named
66308     something starting with __ and the normal name is an alias.  */
66309 #if defined __stub_$ac_func || defined __stub___$ac_func
66310 choke me
66311 #endif
66312
66313 int
66314 main ()
66315 {
66316 return $ac_func ();
66317   ;
66318   return 0;
66319 }
66320 _ACEOF
66321 rm -f conftest.$ac_objext conftest$ac_exeext
66322 if { (ac_try="$ac_link"
66323 case "(($ac_try" in
66324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66325   *) ac_try_echo=$ac_try;;
66326 esac
66327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66328 $as_echo "$ac_try_echo") >&5
66329   (eval "$ac_link") 2>conftest.er1
66330   ac_status=$?
66331   grep -v '^ *+' conftest.er1 >conftest.err
66332   rm -f conftest.er1
66333   cat conftest.err >&5
66334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66335   (exit $ac_status); } && {
66336          test -z "$ac_c_werror_flag" ||
66337          test ! -s conftest.err
66338        } && test -s conftest$ac_exeext && {
66339          test "$cross_compiling" = yes ||
66340          $as_test_x conftest$ac_exeext
66341        }; then
66342   eval "$as_ac_var=yes"
66343 else
66344   $as_echo "$as_me: failed program was:" >&5
66345 sed 's/^/| /' conftest.$ac_ext >&5
66346
66347         eval "$as_ac_var=no"
66348 fi
66349
66350 rm -rf conftest.dSYM
66351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66352       conftest$ac_exeext conftest.$ac_ext
66353 fi
66354 ac_res=`eval 'as_val=${'$as_ac_var'}
66355                  $as_echo "$as_val"'`
66356                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66357 $as_echo "$ac_res" >&6; }
66358 as_val=`eval 'as_val=${'$as_ac_var'}
66359                  $as_echo "$as_val"'`
66360    if test "x$as_val" = x""yes; then
66361   cat >>confdefs.h <<_ACEOF
66362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66363 _ACEOF
66364
66365 fi
66366 done
66367
66368
66369 ice_have_openlog=no
66370
66371 for ac_func in openlog
66372 do
66373 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66374 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66375 $as_echo_n "checking for $ac_func... " >&6; }
66376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66377   $as_echo_n "(cached) " >&6
66378 else
66379   cat >conftest.$ac_ext <<_ACEOF
66380 /* confdefs.h.  */
66381 _ACEOF
66382 cat confdefs.h >>conftest.$ac_ext
66383 cat >>conftest.$ac_ext <<_ACEOF
66384 /* end confdefs.h.  */
66385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66387 #define $ac_func innocuous_$ac_func
66388
66389 /* System header to define __stub macros and hopefully few prototypes,
66390     which can conflict with char $ac_func (); below.
66391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66392     <limits.h> exists even on freestanding compilers.  */
66393
66394 #ifdef __STDC__
66395 # include <limits.h>
66396 #else
66397 # include <assert.h>
66398 #endif
66399
66400 #undef $ac_func
66401
66402 /* Override any GCC internal prototype to avoid an error.
66403    Use char because int might match the return type of a GCC
66404    builtin and then its argument prototype would still apply.  */
66405 #ifdef __cplusplus
66406 extern "C"
66407 #endif
66408 char $ac_func ();
66409 /* The GNU C library defines this for functions which it implements
66410     to always fail with ENOSYS.  Some functions are actually named
66411     something starting with __ and the normal name is an alias.  */
66412 #if defined __stub_$ac_func || defined __stub___$ac_func
66413 choke me
66414 #endif
66415
66416 int
66417 main ()
66418 {
66419 return $ac_func ();
66420   ;
66421   return 0;
66422 }
66423 _ACEOF
66424 rm -f conftest.$ac_objext conftest$ac_exeext
66425 if { (ac_try="$ac_link"
66426 case "(($ac_try" in
66427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66428   *) ac_try_echo=$ac_try;;
66429 esac
66430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66431 $as_echo "$ac_try_echo") >&5
66432   (eval "$ac_link") 2>conftest.er1
66433   ac_status=$?
66434   grep -v '^ *+' conftest.er1 >conftest.err
66435   rm -f conftest.er1
66436   cat conftest.err >&5
66437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66438   (exit $ac_status); } && {
66439          test -z "$ac_c_werror_flag" ||
66440          test ! -s conftest.err
66441        } && test -s conftest$ac_exeext && {
66442          test "$cross_compiling" = yes ||
66443          $as_test_x conftest$ac_exeext
66444        }; then
66445   eval "$as_ac_var=yes"
66446 else
66447   $as_echo "$as_me: failed program was:" >&5
66448 sed 's/^/| /' conftest.$ac_ext >&5
66449
66450         eval "$as_ac_var=no"
66451 fi
66452
66453 rm -rf conftest.dSYM
66454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66455       conftest$ac_exeext conftest.$ac_ext
66456 fi
66457 ac_res=`eval 'as_val=${'$as_ac_var'}
66458                  $as_echo "$as_val"'`
66459                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66460 $as_echo "$ac_res" >&6; }
66461 as_val=`eval 'as_val=${'$as_ac_var'}
66462                  $as_echo "$as_val"'`
66463    if test "x$as_val" = x""yes; then
66464   cat >>confdefs.h <<_ACEOF
66465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66466 _ACEOF
66467  ice_have_openlog=yes
66468 fi
66469 done
66470
66471 if test "${ice_have_openlog}" = yes; then
66472 { $as_echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
66473 $as_echo_n "checking for openlog declaration in syslog.h... " >&6; }
66474 if test "${ice_cv_have_openlog_decl+set}" = set; then
66475   $as_echo_n "(cached) " >&6
66476 else
66477
66478 ice_cv_have_openlog_decl=no
66479 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66480 ice_re_word='(^|[^a-zA-Z0-9_])'
66481 for header in syslog.h; do
66482 # Check for ordinary declaration
66483 cat >conftest.$ac_ext <<_ACEOF
66484 /* confdefs.h.  */
66485 _ACEOF
66486 cat confdefs.h >>conftest.$ac_ext
66487 cat >>conftest.$ac_ext <<_ACEOF
66488 /* end confdefs.h.  */
66489 #include <$header>
66490
66491 _ACEOF
66492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66493   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
66494   ice_cv_have_openlog_decl=yes
66495 fi
66496 rm -f conftest*
66497
66498 if test "$ice_cv_have_openlog_decl" = yes; then
66499         break
66500 fi
66501 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66502 cat >conftest.$ac_ext <<_ACEOF
66503 /* confdefs.h.  */
66504 _ACEOF
66505 cat confdefs.h >>conftest.$ac_ext
66506 cat >>conftest.$ac_ext <<_ACEOF
66507 /* end confdefs.h.  */
66508 #include <$header>
66509
66510 _ACEOF
66511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66512   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66513   ice_cv_have_openlog_decl=yes
66514 fi
66515 rm -f conftest*
66516
66517 if test "$ice_cv_have_openlog_decl" = yes; then
66518         break
66519 fi
66520 done
66521
66522 fi
66523
66524 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
66525 $as_echo "$ice_cv_have_openlog_decl" >&6; }
66526 if test "$ice_cv_have_openlog_decl" = yes; then
66527
66528 cat >>confdefs.h <<_ACEOF
66529 #define HAVE_OPENLOG_DECL 1
66530 _ACEOF
66531
66532 fi
66533 fi
66534
66535
66536 ice_have_pclose=no
66537
66538 for ac_func in pclose
66539 do
66540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66542 $as_echo_n "checking for $ac_func... " >&6; }
66543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66544   $as_echo_n "(cached) " >&6
66545 else
66546   cat >conftest.$ac_ext <<_ACEOF
66547 /* confdefs.h.  */
66548 _ACEOF
66549 cat confdefs.h >>conftest.$ac_ext
66550 cat >>conftest.$ac_ext <<_ACEOF
66551 /* end confdefs.h.  */
66552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66554 #define $ac_func innocuous_$ac_func
66555
66556 /* System header to define __stub macros and hopefully few prototypes,
66557     which can conflict with char $ac_func (); below.
66558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66559     <limits.h> exists even on freestanding compilers.  */
66560
66561 #ifdef __STDC__
66562 # include <limits.h>
66563 #else
66564 # include <assert.h>
66565 #endif
66566
66567 #undef $ac_func
66568
66569 /* Override any GCC internal prototype to avoid an error.
66570    Use char because int might match the return type of a GCC
66571    builtin and then its argument prototype would still apply.  */
66572 #ifdef __cplusplus
66573 extern "C"
66574 #endif
66575 char $ac_func ();
66576 /* The GNU C library defines this for functions which it implements
66577     to always fail with ENOSYS.  Some functions are actually named
66578     something starting with __ and the normal name is an alias.  */
66579 #if defined __stub_$ac_func || defined __stub___$ac_func
66580 choke me
66581 #endif
66582
66583 int
66584 main ()
66585 {
66586 return $ac_func ();
66587   ;
66588   return 0;
66589 }
66590 _ACEOF
66591 rm -f conftest.$ac_objext conftest$ac_exeext
66592 if { (ac_try="$ac_link"
66593 case "(($ac_try" in
66594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66595   *) ac_try_echo=$ac_try;;
66596 esac
66597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66598 $as_echo "$ac_try_echo") >&5
66599   (eval "$ac_link") 2>conftest.er1
66600   ac_status=$?
66601   grep -v '^ *+' conftest.er1 >conftest.err
66602   rm -f conftest.er1
66603   cat conftest.err >&5
66604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66605   (exit $ac_status); } && {
66606          test -z "$ac_c_werror_flag" ||
66607          test ! -s conftest.err
66608        } && test -s conftest$ac_exeext && {
66609          test "$cross_compiling" = yes ||
66610          $as_test_x conftest$ac_exeext
66611        }; then
66612   eval "$as_ac_var=yes"
66613 else
66614   $as_echo "$as_me: failed program was:" >&5
66615 sed 's/^/| /' conftest.$ac_ext >&5
66616
66617         eval "$as_ac_var=no"
66618 fi
66619
66620 rm -rf conftest.dSYM
66621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66622       conftest$ac_exeext conftest.$ac_ext
66623 fi
66624 ac_res=`eval 'as_val=${'$as_ac_var'}
66625                  $as_echo "$as_val"'`
66626                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66627 $as_echo "$ac_res" >&6; }
66628 as_val=`eval 'as_val=${'$as_ac_var'}
66629                  $as_echo "$as_val"'`
66630    if test "x$as_val" = x""yes; then
66631   cat >>confdefs.h <<_ACEOF
66632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66633 _ACEOF
66634  ice_have_pclose=yes
66635 fi
66636 done
66637
66638 if test "${ice_have_pclose}" = yes; then
66639 { $as_echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
66640 $as_echo_n "checking for pclose declaration in stdio.h... " >&6; }
66641 if test "${ice_cv_have_pclose_decl+set}" = set; then
66642   $as_echo_n "(cached) " >&6
66643 else
66644
66645 ice_cv_have_pclose_decl=no
66646 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66647 ice_re_word='(^|[^a-zA-Z0-9_])'
66648 for header in stdio.h; do
66649 # Check for ordinary declaration
66650 cat >conftest.$ac_ext <<_ACEOF
66651 /* confdefs.h.  */
66652 _ACEOF
66653 cat confdefs.h >>conftest.$ac_ext
66654 cat >>conftest.$ac_ext <<_ACEOF
66655 /* end confdefs.h.  */
66656 #include <$header>
66657
66658 _ACEOF
66659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66660   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
66661   ice_cv_have_pclose_decl=yes
66662 fi
66663 rm -f conftest*
66664
66665 if test "$ice_cv_have_pclose_decl" = yes; then
66666         break
66667 fi
66668 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66669 cat >conftest.$ac_ext <<_ACEOF
66670 /* confdefs.h.  */
66671 _ACEOF
66672 cat confdefs.h >>conftest.$ac_ext
66673 cat >>conftest.$ac_ext <<_ACEOF
66674 /* end confdefs.h.  */
66675 #include <$header>
66676
66677 _ACEOF
66678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66679   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66680   ice_cv_have_pclose_decl=yes
66681 fi
66682 rm -f conftest*
66683
66684 if test "$ice_cv_have_pclose_decl" = yes; then
66685         break
66686 fi
66687 done
66688
66689 fi
66690
66691 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
66692 $as_echo "$ice_cv_have_pclose_decl" >&6; }
66693 if test "$ice_cv_have_pclose_decl" = yes; then
66694
66695 cat >>confdefs.h <<_ACEOF
66696 #define HAVE_PCLOSE_DECL 1
66697 _ACEOF
66698
66699 fi
66700 fi
66701
66702
66703 ice_have_perror=no
66704
66705 for ac_func in perror
66706 do
66707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66709 $as_echo_n "checking for $ac_func... " >&6; }
66710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66711   $as_echo_n "(cached) " >&6
66712 else
66713   cat >conftest.$ac_ext <<_ACEOF
66714 /* confdefs.h.  */
66715 _ACEOF
66716 cat confdefs.h >>conftest.$ac_ext
66717 cat >>conftest.$ac_ext <<_ACEOF
66718 /* end confdefs.h.  */
66719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66721 #define $ac_func innocuous_$ac_func
66722
66723 /* System header to define __stub macros and hopefully few prototypes,
66724     which can conflict with char $ac_func (); below.
66725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66726     <limits.h> exists even on freestanding compilers.  */
66727
66728 #ifdef __STDC__
66729 # include <limits.h>
66730 #else
66731 # include <assert.h>
66732 #endif
66733
66734 #undef $ac_func
66735
66736 /* Override any GCC internal prototype to avoid an error.
66737    Use char because int might match the return type of a GCC
66738    builtin and then its argument prototype would still apply.  */
66739 #ifdef __cplusplus
66740 extern "C"
66741 #endif
66742 char $ac_func ();
66743 /* The GNU C library defines this for functions which it implements
66744     to always fail with ENOSYS.  Some functions are actually named
66745     something starting with __ and the normal name is an alias.  */
66746 #if defined __stub_$ac_func || defined __stub___$ac_func
66747 choke me
66748 #endif
66749
66750 int
66751 main ()
66752 {
66753 return $ac_func ();
66754   ;
66755   return 0;
66756 }
66757 _ACEOF
66758 rm -f conftest.$ac_objext conftest$ac_exeext
66759 if { (ac_try="$ac_link"
66760 case "(($ac_try" in
66761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66762   *) ac_try_echo=$ac_try;;
66763 esac
66764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66765 $as_echo "$ac_try_echo") >&5
66766   (eval "$ac_link") 2>conftest.er1
66767   ac_status=$?
66768   grep -v '^ *+' conftest.er1 >conftest.err
66769   rm -f conftest.er1
66770   cat conftest.err >&5
66771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66772   (exit $ac_status); } && {
66773          test -z "$ac_c_werror_flag" ||
66774          test ! -s conftest.err
66775        } && test -s conftest$ac_exeext && {
66776          test "$cross_compiling" = yes ||
66777          $as_test_x conftest$ac_exeext
66778        }; then
66779   eval "$as_ac_var=yes"
66780 else
66781   $as_echo "$as_me: failed program was:" >&5
66782 sed 's/^/| /' conftest.$ac_ext >&5
66783
66784         eval "$as_ac_var=no"
66785 fi
66786
66787 rm -rf conftest.dSYM
66788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66789       conftest$ac_exeext conftest.$ac_ext
66790 fi
66791 ac_res=`eval 'as_val=${'$as_ac_var'}
66792                  $as_echo "$as_val"'`
66793                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66794 $as_echo "$ac_res" >&6; }
66795 as_val=`eval 'as_val=${'$as_ac_var'}
66796                  $as_echo "$as_val"'`
66797    if test "x$as_val" = x""yes; then
66798   cat >>confdefs.h <<_ACEOF
66799 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66800 _ACEOF
66801  ice_have_perror=yes
66802 fi
66803 done
66804
66805 if test "${ice_have_perror}" = yes; then
66806 { $as_echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
66807 $as_echo_n "checking for perror declaration in stdio.h... " >&6; }
66808 if test "${ice_cv_have_perror_decl+set}" = set; then
66809   $as_echo_n "(cached) " >&6
66810 else
66811
66812 ice_cv_have_perror_decl=no
66813 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66814 ice_re_word='(^|[^a-zA-Z0-9_])'
66815 for header in stdio.h; do
66816 # Check for ordinary declaration
66817 cat >conftest.$ac_ext <<_ACEOF
66818 /* confdefs.h.  */
66819 _ACEOF
66820 cat confdefs.h >>conftest.$ac_ext
66821 cat >>conftest.$ac_ext <<_ACEOF
66822 /* end confdefs.h.  */
66823 #include <$header>
66824
66825 _ACEOF
66826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66827   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
66828   ice_cv_have_perror_decl=yes
66829 fi
66830 rm -f conftest*
66831
66832 if test "$ice_cv_have_perror_decl" = yes; then
66833         break
66834 fi
66835 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66836 cat >conftest.$ac_ext <<_ACEOF
66837 /* confdefs.h.  */
66838 _ACEOF
66839 cat confdefs.h >>conftest.$ac_ext
66840 cat >>conftest.$ac_ext <<_ACEOF
66841 /* end confdefs.h.  */
66842 #include <$header>
66843
66844 _ACEOF
66845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66846   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66847   ice_cv_have_perror_decl=yes
66848 fi
66849 rm -f conftest*
66850
66851 if test "$ice_cv_have_perror_decl" = yes; then
66852         break
66853 fi
66854 done
66855
66856 fi
66857
66858 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
66859 $as_echo "$ice_cv_have_perror_decl" >&6; }
66860 if test "$ice_cv_have_perror_decl" = yes; then
66861
66862 cat >>confdefs.h <<_ACEOF
66863 #define HAVE_PERROR_DECL 1
66864 _ACEOF
66865
66866 fi
66867 fi
66868
66869
66870 ice_have_printf=no
66871
66872 for ac_func in printf
66873 do
66874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66875 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66876 $as_echo_n "checking for $ac_func... " >&6; }
66877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66878   $as_echo_n "(cached) " >&6
66879 else
66880   cat >conftest.$ac_ext <<_ACEOF
66881 /* confdefs.h.  */
66882 _ACEOF
66883 cat confdefs.h >>conftest.$ac_ext
66884 cat >>conftest.$ac_ext <<_ACEOF
66885 /* end confdefs.h.  */
66886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66888 #define $ac_func innocuous_$ac_func
66889
66890 /* System header to define __stub macros and hopefully few prototypes,
66891     which can conflict with char $ac_func (); below.
66892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66893     <limits.h> exists even on freestanding compilers.  */
66894
66895 #ifdef __STDC__
66896 # include <limits.h>
66897 #else
66898 # include <assert.h>
66899 #endif
66900
66901 #undef $ac_func
66902
66903 /* Override any GCC internal prototype to avoid an error.
66904    Use char because int might match the return type of a GCC
66905    builtin and then its argument prototype would still apply.  */
66906 #ifdef __cplusplus
66907 extern "C"
66908 #endif
66909 char $ac_func ();
66910 /* The GNU C library defines this for functions which it implements
66911     to always fail with ENOSYS.  Some functions are actually named
66912     something starting with __ and the normal name is an alias.  */
66913 #if defined __stub_$ac_func || defined __stub___$ac_func
66914 choke me
66915 #endif
66916
66917 int
66918 main ()
66919 {
66920 return $ac_func ();
66921   ;
66922   return 0;
66923 }
66924 _ACEOF
66925 rm -f conftest.$ac_objext conftest$ac_exeext
66926 if { (ac_try="$ac_link"
66927 case "(($ac_try" in
66928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66929   *) ac_try_echo=$ac_try;;
66930 esac
66931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66932 $as_echo "$ac_try_echo") >&5
66933   (eval "$ac_link") 2>conftest.er1
66934   ac_status=$?
66935   grep -v '^ *+' conftest.er1 >conftest.err
66936   rm -f conftest.er1
66937   cat conftest.err >&5
66938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66939   (exit $ac_status); } && {
66940          test -z "$ac_c_werror_flag" ||
66941          test ! -s conftest.err
66942        } && test -s conftest$ac_exeext && {
66943          test "$cross_compiling" = yes ||
66944          $as_test_x conftest$ac_exeext
66945        }; then
66946   eval "$as_ac_var=yes"
66947 else
66948   $as_echo "$as_me: failed program was:" >&5
66949 sed 's/^/| /' conftest.$ac_ext >&5
66950
66951         eval "$as_ac_var=no"
66952 fi
66953
66954 rm -rf conftest.dSYM
66955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66956       conftest$ac_exeext conftest.$ac_ext
66957 fi
66958 ac_res=`eval 'as_val=${'$as_ac_var'}
66959                  $as_echo "$as_val"'`
66960                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66961 $as_echo "$ac_res" >&6; }
66962 as_val=`eval 'as_val=${'$as_ac_var'}
66963                  $as_echo "$as_val"'`
66964    if test "x$as_val" = x""yes; then
66965   cat >>confdefs.h <<_ACEOF
66966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66967 _ACEOF
66968  ice_have_printf=yes
66969 fi
66970 done
66971
66972 if test "${ice_have_printf}" = yes; then
66973 { $as_echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
66974 $as_echo_n "checking for printf declaration in stdio.h... " >&6; }
66975 if test "${ice_cv_have_printf_decl+set}" = set; then
66976   $as_echo_n "(cached) " >&6
66977 else
66978
66979 ice_cv_have_printf_decl=no
66980 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66981 ice_re_word='(^|[^a-zA-Z0-9_])'
66982 for header in stdio.h; do
66983 # Check for ordinary declaration
66984 cat >conftest.$ac_ext <<_ACEOF
66985 /* confdefs.h.  */
66986 _ACEOF
66987 cat confdefs.h >>conftest.$ac_ext
66988 cat >>conftest.$ac_ext <<_ACEOF
66989 /* end confdefs.h.  */
66990 #include <$header>
66991
66992 _ACEOF
66993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66994   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
66995   ice_cv_have_printf_decl=yes
66996 fi
66997 rm -f conftest*
66998
66999 if test "$ice_cv_have_printf_decl" = yes; then
67000         break
67001 fi
67002 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67003 cat >conftest.$ac_ext <<_ACEOF
67004 /* confdefs.h.  */
67005 _ACEOF
67006 cat confdefs.h >>conftest.$ac_ext
67007 cat >>conftest.$ac_ext <<_ACEOF
67008 /* end confdefs.h.  */
67009 #include <$header>
67010
67011 _ACEOF
67012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67013   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67014   ice_cv_have_printf_decl=yes
67015 fi
67016 rm -f conftest*
67017
67018 if test "$ice_cv_have_printf_decl" = yes; then
67019         break
67020 fi
67021 done
67022
67023 fi
67024
67025 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
67026 $as_echo "$ice_cv_have_printf_decl" >&6; }
67027 if test "$ice_cv_have_printf_decl" = yes; then
67028
67029 cat >>confdefs.h <<_ACEOF
67030 #define HAVE_PRINTF_DECL 1
67031 _ACEOF
67032
67033 fi
67034 fi
67035
67036
67037 for ac_func in putenv
67038 do
67039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67040 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67041 $as_echo_n "checking for $ac_func... " >&6; }
67042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67043   $as_echo_n "(cached) " >&6
67044 else
67045   cat >conftest.$ac_ext <<_ACEOF
67046 /* confdefs.h.  */
67047 _ACEOF
67048 cat confdefs.h >>conftest.$ac_ext
67049 cat >>conftest.$ac_ext <<_ACEOF
67050 /* end confdefs.h.  */
67051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67053 #define $ac_func innocuous_$ac_func
67054
67055 /* System header to define __stub macros and hopefully few prototypes,
67056     which can conflict with char $ac_func (); below.
67057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67058     <limits.h> exists even on freestanding compilers.  */
67059
67060 #ifdef __STDC__
67061 # include <limits.h>
67062 #else
67063 # include <assert.h>
67064 #endif
67065
67066 #undef $ac_func
67067
67068 /* Override any GCC internal prototype to avoid an error.
67069    Use char because int might match the return type of a GCC
67070    builtin and then its argument prototype would still apply.  */
67071 #ifdef __cplusplus
67072 extern "C"
67073 #endif
67074 char $ac_func ();
67075 /* The GNU C library defines this for functions which it implements
67076     to always fail with ENOSYS.  Some functions are actually named
67077     something starting with __ and the normal name is an alias.  */
67078 #if defined __stub_$ac_func || defined __stub___$ac_func
67079 choke me
67080 #endif
67081
67082 int
67083 main ()
67084 {
67085 return $ac_func ();
67086   ;
67087   return 0;
67088 }
67089 _ACEOF
67090 rm -f conftest.$ac_objext conftest$ac_exeext
67091 if { (ac_try="$ac_link"
67092 case "(($ac_try" in
67093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67094   *) ac_try_echo=$ac_try;;
67095 esac
67096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67097 $as_echo "$ac_try_echo") >&5
67098   (eval "$ac_link") 2>conftest.er1
67099   ac_status=$?
67100   grep -v '^ *+' conftest.er1 >conftest.err
67101   rm -f conftest.er1
67102   cat conftest.err >&5
67103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67104   (exit $ac_status); } && {
67105          test -z "$ac_c_werror_flag" ||
67106          test ! -s conftest.err
67107        } && test -s conftest$ac_exeext && {
67108          test "$cross_compiling" = yes ||
67109          $as_test_x conftest$ac_exeext
67110        }; then
67111   eval "$as_ac_var=yes"
67112 else
67113   $as_echo "$as_me: failed program was:" >&5
67114 sed 's/^/| /' conftest.$ac_ext >&5
67115
67116         eval "$as_ac_var=no"
67117 fi
67118
67119 rm -rf conftest.dSYM
67120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67121       conftest$ac_exeext conftest.$ac_ext
67122 fi
67123 ac_res=`eval 'as_val=${'$as_ac_var'}
67124                  $as_echo "$as_val"'`
67125                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67126 $as_echo "$ac_res" >&6; }
67127 as_val=`eval 'as_val=${'$as_ac_var'}
67128                  $as_echo "$as_val"'`
67129    if test "x$as_val" = x""yes; then
67130   cat >>confdefs.h <<_ACEOF
67131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67132 _ACEOF
67133
67134 fi
67135 done
67136
67137
67138 ice_have_puts=no
67139
67140 for ac_func in puts
67141 do
67142 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67143 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67144 $as_echo_n "checking for $ac_func... " >&6; }
67145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67146   $as_echo_n "(cached) " >&6
67147 else
67148   cat >conftest.$ac_ext <<_ACEOF
67149 /* confdefs.h.  */
67150 _ACEOF
67151 cat confdefs.h >>conftest.$ac_ext
67152 cat >>conftest.$ac_ext <<_ACEOF
67153 /* end confdefs.h.  */
67154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67156 #define $ac_func innocuous_$ac_func
67157
67158 /* System header to define __stub macros and hopefully few prototypes,
67159     which can conflict with char $ac_func (); below.
67160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67161     <limits.h> exists even on freestanding compilers.  */
67162
67163 #ifdef __STDC__
67164 # include <limits.h>
67165 #else
67166 # include <assert.h>
67167 #endif
67168
67169 #undef $ac_func
67170
67171 /* Override any GCC internal prototype to avoid an error.
67172    Use char because int might match the return type of a GCC
67173    builtin and then its argument prototype would still apply.  */
67174 #ifdef __cplusplus
67175 extern "C"
67176 #endif
67177 char $ac_func ();
67178 /* The GNU C library defines this for functions which it implements
67179     to always fail with ENOSYS.  Some functions are actually named
67180     something starting with __ and the normal name is an alias.  */
67181 #if defined __stub_$ac_func || defined __stub___$ac_func
67182 choke me
67183 #endif
67184
67185 int
67186 main ()
67187 {
67188 return $ac_func ();
67189   ;
67190   return 0;
67191 }
67192 _ACEOF
67193 rm -f conftest.$ac_objext conftest$ac_exeext
67194 if { (ac_try="$ac_link"
67195 case "(($ac_try" in
67196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67197   *) ac_try_echo=$ac_try;;
67198 esac
67199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67200 $as_echo "$ac_try_echo") >&5
67201   (eval "$ac_link") 2>conftest.er1
67202   ac_status=$?
67203   grep -v '^ *+' conftest.er1 >conftest.err
67204   rm -f conftest.er1
67205   cat conftest.err >&5
67206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67207   (exit $ac_status); } && {
67208          test -z "$ac_c_werror_flag" ||
67209          test ! -s conftest.err
67210        } && test -s conftest$ac_exeext && {
67211          test "$cross_compiling" = yes ||
67212          $as_test_x conftest$ac_exeext
67213        }; then
67214   eval "$as_ac_var=yes"
67215 else
67216   $as_echo "$as_me: failed program was:" >&5
67217 sed 's/^/| /' conftest.$ac_ext >&5
67218
67219         eval "$as_ac_var=no"
67220 fi
67221
67222 rm -rf conftest.dSYM
67223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67224       conftest$ac_exeext conftest.$ac_ext
67225 fi
67226 ac_res=`eval 'as_val=${'$as_ac_var'}
67227                  $as_echo "$as_val"'`
67228                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67229 $as_echo "$ac_res" >&6; }
67230 as_val=`eval 'as_val=${'$as_ac_var'}
67231                  $as_echo "$as_val"'`
67232    if test "x$as_val" = x""yes; then
67233   cat >>confdefs.h <<_ACEOF
67234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67235 _ACEOF
67236  ice_have_puts=yes
67237 fi
67238 done
67239
67240 if test "${ice_have_puts}" = yes; then
67241 { $as_echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
67242 $as_echo_n "checking for puts declaration in stdio.h... " >&6; }
67243 if test "${ice_cv_have_puts_decl+set}" = set; then
67244   $as_echo_n "(cached) " >&6
67245 else
67246
67247 ice_cv_have_puts_decl=no
67248 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67249 ice_re_word='(^|[^a-zA-Z0-9_])'
67250 for header in stdio.h; do
67251 # Check for ordinary declaration
67252 cat >conftest.$ac_ext <<_ACEOF
67253 /* confdefs.h.  */
67254 _ACEOF
67255 cat confdefs.h >>conftest.$ac_ext
67256 cat >>conftest.$ac_ext <<_ACEOF
67257 /* end confdefs.h.  */
67258 #include <$header>
67259
67260 _ACEOF
67261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67262   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
67263   ice_cv_have_puts_decl=yes
67264 fi
67265 rm -f conftest*
67266
67267 if test "$ice_cv_have_puts_decl" = yes; then
67268         break
67269 fi
67270 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67271 cat >conftest.$ac_ext <<_ACEOF
67272 /* confdefs.h.  */
67273 _ACEOF
67274 cat confdefs.h >>conftest.$ac_ext
67275 cat >>conftest.$ac_ext <<_ACEOF
67276 /* end confdefs.h.  */
67277 #include <$header>
67278
67279 _ACEOF
67280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67281   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67282   ice_cv_have_puts_decl=yes
67283 fi
67284 rm -f conftest*
67285
67286 if test "$ice_cv_have_puts_decl" = yes; then
67287         break
67288 fi
67289 done
67290
67291 fi
67292
67293 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
67294 $as_echo "$ice_cv_have_puts_decl" >&6; }
67295 if test "$ice_cv_have_puts_decl" = yes; then
67296
67297 cat >>confdefs.h <<_ACEOF
67298 #define HAVE_PUTS_DECL 1
67299 _ACEOF
67300
67301 fi
67302 fi
67303
67304
67305 ice_have_realloc=no
67306
67307 for ac_func in realloc
67308 do
67309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67310 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67311 $as_echo_n "checking for $ac_func... " >&6; }
67312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67313   $as_echo_n "(cached) " >&6
67314 else
67315   cat >conftest.$ac_ext <<_ACEOF
67316 /* confdefs.h.  */
67317 _ACEOF
67318 cat confdefs.h >>conftest.$ac_ext
67319 cat >>conftest.$ac_ext <<_ACEOF
67320 /* end confdefs.h.  */
67321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67323 #define $ac_func innocuous_$ac_func
67324
67325 /* System header to define __stub macros and hopefully few prototypes,
67326     which can conflict with char $ac_func (); below.
67327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67328     <limits.h> exists even on freestanding compilers.  */
67329
67330 #ifdef __STDC__
67331 # include <limits.h>
67332 #else
67333 # include <assert.h>
67334 #endif
67335
67336 #undef $ac_func
67337
67338 /* Override any GCC internal prototype to avoid an error.
67339    Use char because int might match the return type of a GCC
67340    builtin and then its argument prototype would still apply.  */
67341 #ifdef __cplusplus
67342 extern "C"
67343 #endif
67344 char $ac_func ();
67345 /* The GNU C library defines this for functions which it implements
67346     to always fail with ENOSYS.  Some functions are actually named
67347     something starting with __ and the normal name is an alias.  */
67348 #if defined __stub_$ac_func || defined __stub___$ac_func
67349 choke me
67350 #endif
67351
67352 int
67353 main ()
67354 {
67355 return $ac_func ();
67356   ;
67357   return 0;
67358 }
67359 _ACEOF
67360 rm -f conftest.$ac_objext conftest$ac_exeext
67361 if { (ac_try="$ac_link"
67362 case "(($ac_try" in
67363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67364   *) ac_try_echo=$ac_try;;
67365 esac
67366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67367 $as_echo "$ac_try_echo") >&5
67368   (eval "$ac_link") 2>conftest.er1
67369   ac_status=$?
67370   grep -v '^ *+' conftest.er1 >conftest.err
67371   rm -f conftest.er1
67372   cat conftest.err >&5
67373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67374   (exit $ac_status); } && {
67375          test -z "$ac_c_werror_flag" ||
67376          test ! -s conftest.err
67377        } && test -s conftest$ac_exeext && {
67378          test "$cross_compiling" = yes ||
67379          $as_test_x conftest$ac_exeext
67380        }; then
67381   eval "$as_ac_var=yes"
67382 else
67383   $as_echo "$as_me: failed program was:" >&5
67384 sed 's/^/| /' conftest.$ac_ext >&5
67385
67386         eval "$as_ac_var=no"
67387 fi
67388
67389 rm -rf conftest.dSYM
67390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67391       conftest$ac_exeext conftest.$ac_ext
67392 fi
67393 ac_res=`eval 'as_val=${'$as_ac_var'}
67394                  $as_echo "$as_val"'`
67395                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67396 $as_echo "$ac_res" >&6; }
67397 as_val=`eval 'as_val=${'$as_ac_var'}
67398                  $as_echo "$as_val"'`
67399    if test "x$as_val" = x""yes; then
67400   cat >>confdefs.h <<_ACEOF
67401 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67402 _ACEOF
67403  ice_have_realloc=yes
67404 fi
67405 done
67406
67407 if test "${ice_have_realloc}" = yes; then
67408 { $as_echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
67409 $as_echo_n "checking for realloc declaration in stdlib.h... " >&6; }
67410 if test "${ice_cv_have_realloc_decl+set}" = set; then
67411   $as_echo_n "(cached) " >&6
67412 else
67413
67414 ice_cv_have_realloc_decl=no
67415 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67416 ice_re_word='(^|[^a-zA-Z0-9_])'
67417 for header in stdlib.h; do
67418 # Check for ordinary declaration
67419 cat >conftest.$ac_ext <<_ACEOF
67420 /* confdefs.h.  */
67421 _ACEOF
67422 cat confdefs.h >>conftest.$ac_ext
67423 cat >>conftest.$ac_ext <<_ACEOF
67424 /* end confdefs.h.  */
67425 #include <$header>
67426
67427 _ACEOF
67428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67429   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
67430   ice_cv_have_realloc_decl=yes
67431 fi
67432 rm -f conftest*
67433
67434 if test "$ice_cv_have_realloc_decl" = yes; then
67435         break
67436 fi
67437 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67438 cat >conftest.$ac_ext <<_ACEOF
67439 /* confdefs.h.  */
67440 _ACEOF
67441 cat confdefs.h >>conftest.$ac_ext
67442 cat >>conftest.$ac_ext <<_ACEOF
67443 /* end confdefs.h.  */
67444 #include <$header>
67445
67446 _ACEOF
67447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67448   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67449   ice_cv_have_realloc_decl=yes
67450 fi
67451 rm -f conftest*
67452
67453 if test "$ice_cv_have_realloc_decl" = yes; then
67454         break
67455 fi
67456 done
67457
67458 fi
67459
67460 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
67461 $as_echo "$ice_cv_have_realloc_decl" >&6; }
67462 if test "$ice_cv_have_realloc_decl" = yes; then
67463
67464 cat >>confdefs.h <<_ACEOF
67465 #define HAVE_REALLOC_DECL 1
67466 _ACEOF
67467
67468 fi
67469 fi
67470
67471
67472 ice_have_recvfrom=no
67473
67474 for ac_func in recvfrom
67475 do
67476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67478 $as_echo_n "checking for $ac_func... " >&6; }
67479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67480   $as_echo_n "(cached) " >&6
67481 else
67482   cat >conftest.$ac_ext <<_ACEOF
67483 /* confdefs.h.  */
67484 _ACEOF
67485 cat confdefs.h >>conftest.$ac_ext
67486 cat >>conftest.$ac_ext <<_ACEOF
67487 /* end confdefs.h.  */
67488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67490 #define $ac_func innocuous_$ac_func
67491
67492 /* System header to define __stub macros and hopefully few prototypes,
67493     which can conflict with char $ac_func (); below.
67494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67495     <limits.h> exists even on freestanding compilers.  */
67496
67497 #ifdef __STDC__
67498 # include <limits.h>
67499 #else
67500 # include <assert.h>
67501 #endif
67502
67503 #undef $ac_func
67504
67505 /* Override any GCC internal prototype to avoid an error.
67506    Use char because int might match the return type of a GCC
67507    builtin and then its argument prototype would still apply.  */
67508 #ifdef __cplusplus
67509 extern "C"
67510 #endif
67511 char $ac_func ();
67512 /* The GNU C library defines this for functions which it implements
67513     to always fail with ENOSYS.  Some functions are actually named
67514     something starting with __ and the normal name is an alias.  */
67515 #if defined __stub_$ac_func || defined __stub___$ac_func
67516 choke me
67517 #endif
67518
67519 int
67520 main ()
67521 {
67522 return $ac_func ();
67523   ;
67524   return 0;
67525 }
67526 _ACEOF
67527 rm -f conftest.$ac_objext conftest$ac_exeext
67528 if { (ac_try="$ac_link"
67529 case "(($ac_try" in
67530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67531   *) ac_try_echo=$ac_try;;
67532 esac
67533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67534 $as_echo "$ac_try_echo") >&5
67535   (eval "$ac_link") 2>conftest.er1
67536   ac_status=$?
67537   grep -v '^ *+' conftest.er1 >conftest.err
67538   rm -f conftest.er1
67539   cat conftest.err >&5
67540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67541   (exit $ac_status); } && {
67542          test -z "$ac_c_werror_flag" ||
67543          test ! -s conftest.err
67544        } && test -s conftest$ac_exeext && {
67545          test "$cross_compiling" = yes ||
67546          $as_test_x conftest$ac_exeext
67547        }; then
67548   eval "$as_ac_var=yes"
67549 else
67550   $as_echo "$as_me: failed program was:" >&5
67551 sed 's/^/| /' conftest.$ac_ext >&5
67552
67553         eval "$as_ac_var=no"
67554 fi
67555
67556 rm -rf conftest.dSYM
67557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67558       conftest$ac_exeext conftest.$ac_ext
67559 fi
67560 ac_res=`eval 'as_val=${'$as_ac_var'}
67561                  $as_echo "$as_val"'`
67562                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67563 $as_echo "$ac_res" >&6; }
67564 as_val=`eval 'as_val=${'$as_ac_var'}
67565                  $as_echo "$as_val"'`
67566    if test "x$as_val" = x""yes; then
67567   cat >>confdefs.h <<_ACEOF
67568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67569 _ACEOF
67570  ice_have_recvfrom=yes
67571 fi
67572 done
67573
67574 if test "${ice_have_recvfrom}" = yes; then
67575 { $as_echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
67576 $as_echo_n "checking for recvfrom declaration in sys/types.h sys/socket.h... " >&6; }
67577 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
67578   $as_echo_n "(cached) " >&6
67579 else
67580
67581 ice_cv_have_recvfrom_decl=no
67582 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67583 ice_re_word='(^|[^a-zA-Z0-9_])'
67584 for header in sys/types.h sys/socket.h; do
67585 # Check for ordinary declaration
67586 cat >conftest.$ac_ext <<_ACEOF
67587 /* confdefs.h.  */
67588 _ACEOF
67589 cat confdefs.h >>conftest.$ac_ext
67590 cat >>conftest.$ac_ext <<_ACEOF
67591 /* end confdefs.h.  */
67592 #include <$header>
67593
67594 _ACEOF
67595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67596   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
67597   ice_cv_have_recvfrom_decl=yes
67598 fi
67599 rm -f conftest*
67600
67601 if test "$ice_cv_have_recvfrom_decl" = yes; then
67602         break
67603 fi
67604 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67605 cat >conftest.$ac_ext <<_ACEOF
67606 /* confdefs.h.  */
67607 _ACEOF
67608 cat confdefs.h >>conftest.$ac_ext
67609 cat >>conftest.$ac_ext <<_ACEOF
67610 /* end confdefs.h.  */
67611 #include <$header>
67612
67613 _ACEOF
67614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67615   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67616   ice_cv_have_recvfrom_decl=yes
67617 fi
67618 rm -f conftest*
67619
67620 if test "$ice_cv_have_recvfrom_decl" = yes; then
67621         break
67622 fi
67623 done
67624
67625 fi
67626
67627 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
67628 $as_echo "$ice_cv_have_recvfrom_decl" >&6; }
67629 if test "$ice_cv_have_recvfrom_decl" = yes; then
67630
67631 cat >>confdefs.h <<_ACEOF
67632 #define HAVE_RECVFROM_DECL 1
67633 _ACEOF
67634
67635 fi
67636 fi
67637
67638
67639 ice_have_remove=no
67640
67641 for ac_func in remove
67642 do
67643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67644 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67645 $as_echo_n "checking for $ac_func... " >&6; }
67646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67647   $as_echo_n "(cached) " >&6
67648 else
67649   cat >conftest.$ac_ext <<_ACEOF
67650 /* confdefs.h.  */
67651 _ACEOF
67652 cat confdefs.h >>conftest.$ac_ext
67653 cat >>conftest.$ac_ext <<_ACEOF
67654 /* end confdefs.h.  */
67655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67657 #define $ac_func innocuous_$ac_func
67658
67659 /* System header to define __stub macros and hopefully few prototypes,
67660     which can conflict with char $ac_func (); below.
67661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67662     <limits.h> exists even on freestanding compilers.  */
67663
67664 #ifdef __STDC__
67665 # include <limits.h>
67666 #else
67667 # include <assert.h>
67668 #endif
67669
67670 #undef $ac_func
67671
67672 /* Override any GCC internal prototype to avoid an error.
67673    Use char because int might match the return type of a GCC
67674    builtin and then its argument prototype would still apply.  */
67675 #ifdef __cplusplus
67676 extern "C"
67677 #endif
67678 char $ac_func ();
67679 /* The GNU C library defines this for functions which it implements
67680     to always fail with ENOSYS.  Some functions are actually named
67681     something starting with __ and the normal name is an alias.  */
67682 #if defined __stub_$ac_func || defined __stub___$ac_func
67683 choke me
67684 #endif
67685
67686 int
67687 main ()
67688 {
67689 return $ac_func ();
67690   ;
67691   return 0;
67692 }
67693 _ACEOF
67694 rm -f conftest.$ac_objext conftest$ac_exeext
67695 if { (ac_try="$ac_link"
67696 case "(($ac_try" in
67697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67698   *) ac_try_echo=$ac_try;;
67699 esac
67700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67701 $as_echo "$ac_try_echo") >&5
67702   (eval "$ac_link") 2>conftest.er1
67703   ac_status=$?
67704   grep -v '^ *+' conftest.er1 >conftest.err
67705   rm -f conftest.er1
67706   cat conftest.err >&5
67707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67708   (exit $ac_status); } && {
67709          test -z "$ac_c_werror_flag" ||
67710          test ! -s conftest.err
67711        } && test -s conftest$ac_exeext && {
67712          test "$cross_compiling" = yes ||
67713          $as_test_x conftest$ac_exeext
67714        }; then
67715   eval "$as_ac_var=yes"
67716 else
67717   $as_echo "$as_me: failed program was:" >&5
67718 sed 's/^/| /' conftest.$ac_ext >&5
67719
67720         eval "$as_ac_var=no"
67721 fi
67722
67723 rm -rf conftest.dSYM
67724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67725       conftest$ac_exeext conftest.$ac_ext
67726 fi
67727 ac_res=`eval 'as_val=${'$as_ac_var'}
67728                  $as_echo "$as_val"'`
67729                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67730 $as_echo "$ac_res" >&6; }
67731 as_val=`eval 'as_val=${'$as_ac_var'}
67732                  $as_echo "$as_val"'`
67733    if test "x$as_val" = x""yes; then
67734   cat >>confdefs.h <<_ACEOF
67735 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67736 _ACEOF
67737  ice_have_remove=yes
67738 fi
67739 done
67740
67741 if test "${ice_have_remove}" = yes; then
67742 { $as_echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
67743 $as_echo_n "checking for remove declaration in stdio.h... " >&6; }
67744 if test "${ice_cv_have_remove_decl+set}" = set; then
67745   $as_echo_n "(cached) " >&6
67746 else
67747
67748 ice_cv_have_remove_decl=no
67749 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67750 ice_re_word='(^|[^a-zA-Z0-9_])'
67751 for header in stdio.h; do
67752 # Check for ordinary declaration
67753 cat >conftest.$ac_ext <<_ACEOF
67754 /* confdefs.h.  */
67755 _ACEOF
67756 cat confdefs.h >>conftest.$ac_ext
67757 cat >>conftest.$ac_ext <<_ACEOF
67758 /* end confdefs.h.  */
67759 #include <$header>
67760
67761 _ACEOF
67762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67763   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
67764   ice_cv_have_remove_decl=yes
67765 fi
67766 rm -f conftest*
67767
67768 if test "$ice_cv_have_remove_decl" = yes; then
67769         break
67770 fi
67771 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67772 cat >conftest.$ac_ext <<_ACEOF
67773 /* confdefs.h.  */
67774 _ACEOF
67775 cat confdefs.h >>conftest.$ac_ext
67776 cat >>conftest.$ac_ext <<_ACEOF
67777 /* end confdefs.h.  */
67778 #include <$header>
67779
67780 _ACEOF
67781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67782   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67783   ice_cv_have_remove_decl=yes
67784 fi
67785 rm -f conftest*
67786
67787 if test "$ice_cv_have_remove_decl" = yes; then
67788         break
67789 fi
67790 done
67791
67792 fi
67793
67794 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
67795 $as_echo "$ice_cv_have_remove_decl" >&6; }
67796 if test "$ice_cv_have_remove_decl" = yes; then
67797
67798 cat >>confdefs.h <<_ACEOF
67799 #define HAVE_REMOVE_DECL 1
67800 _ACEOF
67801
67802 fi
67803 fi
67804
67805
67806 ice_have_rename=no
67807
67808 for ac_func in rename
67809 do
67810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67812 $as_echo_n "checking for $ac_func... " >&6; }
67813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67814   $as_echo_n "(cached) " >&6
67815 else
67816   cat >conftest.$ac_ext <<_ACEOF
67817 /* confdefs.h.  */
67818 _ACEOF
67819 cat confdefs.h >>conftest.$ac_ext
67820 cat >>conftest.$ac_ext <<_ACEOF
67821 /* end confdefs.h.  */
67822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67824 #define $ac_func innocuous_$ac_func
67825
67826 /* System header to define __stub macros and hopefully few prototypes,
67827     which can conflict with char $ac_func (); below.
67828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67829     <limits.h> exists even on freestanding compilers.  */
67830
67831 #ifdef __STDC__
67832 # include <limits.h>
67833 #else
67834 # include <assert.h>
67835 #endif
67836
67837 #undef $ac_func
67838
67839 /* Override any GCC internal prototype to avoid an error.
67840    Use char because int might match the return type of a GCC
67841    builtin and then its argument prototype would still apply.  */
67842 #ifdef __cplusplus
67843 extern "C"
67844 #endif
67845 char $ac_func ();
67846 /* The GNU C library defines this for functions which it implements
67847     to always fail with ENOSYS.  Some functions are actually named
67848     something starting with __ and the normal name is an alias.  */
67849 #if defined __stub_$ac_func || defined __stub___$ac_func
67850 choke me
67851 #endif
67852
67853 int
67854 main ()
67855 {
67856 return $ac_func ();
67857   ;
67858   return 0;
67859 }
67860 _ACEOF
67861 rm -f conftest.$ac_objext conftest$ac_exeext
67862 if { (ac_try="$ac_link"
67863 case "(($ac_try" in
67864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67865   *) ac_try_echo=$ac_try;;
67866 esac
67867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67868 $as_echo "$ac_try_echo") >&5
67869   (eval "$ac_link") 2>conftest.er1
67870   ac_status=$?
67871   grep -v '^ *+' conftest.er1 >conftest.err
67872   rm -f conftest.er1
67873   cat conftest.err >&5
67874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67875   (exit $ac_status); } && {
67876          test -z "$ac_c_werror_flag" ||
67877          test ! -s conftest.err
67878        } && test -s conftest$ac_exeext && {
67879          test "$cross_compiling" = yes ||
67880          $as_test_x conftest$ac_exeext
67881        }; then
67882   eval "$as_ac_var=yes"
67883 else
67884   $as_echo "$as_me: failed program was:" >&5
67885 sed 's/^/| /' conftest.$ac_ext >&5
67886
67887         eval "$as_ac_var=no"
67888 fi
67889
67890 rm -rf conftest.dSYM
67891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67892       conftest$ac_exeext conftest.$ac_ext
67893 fi
67894 ac_res=`eval 'as_val=${'$as_ac_var'}
67895                  $as_echo "$as_val"'`
67896                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
67897 $as_echo "$ac_res" >&6; }
67898 as_val=`eval 'as_val=${'$as_ac_var'}
67899                  $as_echo "$as_val"'`
67900    if test "x$as_val" = x""yes; then
67901   cat >>confdefs.h <<_ACEOF
67902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
67903 _ACEOF
67904  ice_have_rename=yes
67905 fi
67906 done
67907
67908 if test "${ice_have_rename}" = yes; then
67909 { $as_echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
67910 $as_echo_n "checking for rename declaration in stdio.h... " >&6; }
67911 if test "${ice_cv_have_rename_decl+set}" = set; then
67912   $as_echo_n "(cached) " >&6
67913 else
67914
67915 ice_cv_have_rename_decl=no
67916 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67917 ice_re_word='(^|[^a-zA-Z0-9_])'
67918 for header in stdio.h; do
67919 # Check for ordinary declaration
67920 cat >conftest.$ac_ext <<_ACEOF
67921 /* confdefs.h.  */
67922 _ACEOF
67923 cat confdefs.h >>conftest.$ac_ext
67924 cat >>conftest.$ac_ext <<_ACEOF
67925 /* end confdefs.h.  */
67926 #include <$header>
67927
67928 _ACEOF
67929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67930   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
67931   ice_cv_have_rename_decl=yes
67932 fi
67933 rm -f conftest*
67934
67935 if test "$ice_cv_have_rename_decl" = yes; then
67936         break
67937 fi
67938 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67939 cat >conftest.$ac_ext <<_ACEOF
67940 /* confdefs.h.  */
67941 _ACEOF
67942 cat confdefs.h >>conftest.$ac_ext
67943 cat >>conftest.$ac_ext <<_ACEOF
67944 /* end confdefs.h.  */
67945 #include <$header>
67946
67947 _ACEOF
67948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67949   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67950   ice_cv_have_rename_decl=yes
67951 fi
67952 rm -f conftest*
67953
67954 if test "$ice_cv_have_rename_decl" = yes; then
67955         break
67956 fi
67957 done
67958
67959 fi
67960
67961 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
67962 $as_echo "$ice_cv_have_rename_decl" >&6; }
67963 if test "$ice_cv_have_rename_decl" = yes; then
67964
67965 cat >>confdefs.h <<_ACEOF
67966 #define HAVE_RENAME_DECL 1
67967 _ACEOF
67968
67969 fi
67970 fi
67971
67972
67973 ice_have_rewind=no
67974
67975 for ac_func in rewind
67976 do
67977 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
67978 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
67979 $as_echo_n "checking for $ac_func... " >&6; }
67980 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67981   $as_echo_n "(cached) " >&6
67982 else
67983   cat >conftest.$ac_ext <<_ACEOF
67984 /* confdefs.h.  */
67985 _ACEOF
67986 cat confdefs.h >>conftest.$ac_ext
67987 cat >>conftest.$ac_ext <<_ACEOF
67988 /* end confdefs.h.  */
67989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67991 #define $ac_func innocuous_$ac_func
67992
67993 /* System header to define __stub macros and hopefully few prototypes,
67994     which can conflict with char $ac_func (); below.
67995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67996     <limits.h> exists even on freestanding compilers.  */
67997
67998 #ifdef __STDC__
67999 # include <limits.h>
68000 #else
68001 # include <assert.h>
68002 #endif
68003
68004 #undef $ac_func
68005
68006 /* Override any GCC internal prototype to avoid an error.
68007    Use char because int might match the return type of a GCC
68008    builtin and then its argument prototype would still apply.  */
68009 #ifdef __cplusplus
68010 extern "C"
68011 #endif
68012 char $ac_func ();
68013 /* The GNU C library defines this for functions which it implements
68014     to always fail with ENOSYS.  Some functions are actually named
68015     something starting with __ and the normal name is an alias.  */
68016 #if defined __stub_$ac_func || defined __stub___$ac_func
68017 choke me
68018 #endif
68019
68020 int
68021 main ()
68022 {
68023 return $ac_func ();
68024   ;
68025   return 0;
68026 }
68027 _ACEOF
68028 rm -f conftest.$ac_objext conftest$ac_exeext
68029 if { (ac_try="$ac_link"
68030 case "(($ac_try" in
68031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68032   *) ac_try_echo=$ac_try;;
68033 esac
68034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68035 $as_echo "$ac_try_echo") >&5
68036   (eval "$ac_link") 2>conftest.er1
68037   ac_status=$?
68038   grep -v '^ *+' conftest.er1 >conftest.err
68039   rm -f conftest.er1
68040   cat conftest.err >&5
68041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68042   (exit $ac_status); } && {
68043          test -z "$ac_c_werror_flag" ||
68044          test ! -s conftest.err
68045        } && test -s conftest$ac_exeext && {
68046          test "$cross_compiling" = yes ||
68047          $as_test_x conftest$ac_exeext
68048        }; then
68049   eval "$as_ac_var=yes"
68050 else
68051   $as_echo "$as_me: failed program was:" >&5
68052 sed 's/^/| /' conftest.$ac_ext >&5
68053
68054         eval "$as_ac_var=no"
68055 fi
68056
68057 rm -rf conftest.dSYM
68058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68059       conftest$ac_exeext conftest.$ac_ext
68060 fi
68061 ac_res=`eval 'as_val=${'$as_ac_var'}
68062                  $as_echo "$as_val"'`
68063                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68064 $as_echo "$ac_res" >&6; }
68065 as_val=`eval 'as_val=${'$as_ac_var'}
68066                  $as_echo "$as_val"'`
68067    if test "x$as_val" = x""yes; then
68068   cat >>confdefs.h <<_ACEOF
68069 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68070 _ACEOF
68071  ice_have_rewind=yes
68072 fi
68073 done
68074
68075 if test "${ice_have_rewind}" = yes; then
68076 { $as_echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
68077 $as_echo_n "checking for rewind declaration in stdio.h... " >&6; }
68078 if test "${ice_cv_have_rewind_decl+set}" = set; then
68079   $as_echo_n "(cached) " >&6
68080 else
68081
68082 ice_cv_have_rewind_decl=no
68083 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68084 ice_re_word='(^|[^a-zA-Z0-9_])'
68085 for header in stdio.h; do
68086 # Check for ordinary declaration
68087 cat >conftest.$ac_ext <<_ACEOF
68088 /* confdefs.h.  */
68089 _ACEOF
68090 cat confdefs.h >>conftest.$ac_ext
68091 cat >>conftest.$ac_ext <<_ACEOF
68092 /* end confdefs.h.  */
68093 #include <$header>
68094
68095 _ACEOF
68096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68097   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
68098   ice_cv_have_rewind_decl=yes
68099 fi
68100 rm -f conftest*
68101
68102 if test "$ice_cv_have_rewind_decl" = yes; then
68103         break
68104 fi
68105 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68106 cat >conftest.$ac_ext <<_ACEOF
68107 /* confdefs.h.  */
68108 _ACEOF
68109 cat confdefs.h >>conftest.$ac_ext
68110 cat >>conftest.$ac_ext <<_ACEOF
68111 /* end confdefs.h.  */
68112 #include <$header>
68113
68114 _ACEOF
68115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68116   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68117   ice_cv_have_rewind_decl=yes
68118 fi
68119 rm -f conftest*
68120
68121 if test "$ice_cv_have_rewind_decl" = yes; then
68122         break
68123 fi
68124 done
68125
68126 fi
68127
68128 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
68129 $as_echo "$ice_cv_have_rewind_decl" >&6; }
68130 if test "$ice_cv_have_rewind_decl" = yes; then
68131
68132 cat >>confdefs.h <<_ACEOF
68133 #define HAVE_REWIND_DECL 1
68134 _ACEOF
68135
68136 fi
68137 fi
68138
68139
68140 ice_have_ruserok=no
68141
68142 for ac_func in ruserok
68143 do
68144 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68145 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68146 $as_echo_n "checking for $ac_func... " >&6; }
68147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68148   $as_echo_n "(cached) " >&6
68149 else
68150   cat >conftest.$ac_ext <<_ACEOF
68151 /* confdefs.h.  */
68152 _ACEOF
68153 cat confdefs.h >>conftest.$ac_ext
68154 cat >>conftest.$ac_ext <<_ACEOF
68155 /* end confdefs.h.  */
68156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68158 #define $ac_func innocuous_$ac_func
68159
68160 /* System header to define __stub macros and hopefully few prototypes,
68161     which can conflict with char $ac_func (); below.
68162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68163     <limits.h> exists even on freestanding compilers.  */
68164
68165 #ifdef __STDC__
68166 # include <limits.h>
68167 #else
68168 # include <assert.h>
68169 #endif
68170
68171 #undef $ac_func
68172
68173 /* Override any GCC internal prototype to avoid an error.
68174    Use char because int might match the return type of a GCC
68175    builtin and then its argument prototype would still apply.  */
68176 #ifdef __cplusplus
68177 extern "C"
68178 #endif
68179 char $ac_func ();
68180 /* The GNU C library defines this for functions which it implements
68181     to always fail with ENOSYS.  Some functions are actually named
68182     something starting with __ and the normal name is an alias.  */
68183 #if defined __stub_$ac_func || defined __stub___$ac_func
68184 choke me
68185 #endif
68186
68187 int
68188 main ()
68189 {
68190 return $ac_func ();
68191   ;
68192   return 0;
68193 }
68194 _ACEOF
68195 rm -f conftest.$ac_objext conftest$ac_exeext
68196 if { (ac_try="$ac_link"
68197 case "(($ac_try" in
68198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68199   *) ac_try_echo=$ac_try;;
68200 esac
68201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68202 $as_echo "$ac_try_echo") >&5
68203   (eval "$ac_link") 2>conftest.er1
68204   ac_status=$?
68205   grep -v '^ *+' conftest.er1 >conftest.err
68206   rm -f conftest.er1
68207   cat conftest.err >&5
68208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68209   (exit $ac_status); } && {
68210          test -z "$ac_c_werror_flag" ||
68211          test ! -s conftest.err
68212        } && test -s conftest$ac_exeext && {
68213          test "$cross_compiling" = yes ||
68214          $as_test_x conftest$ac_exeext
68215        }; then
68216   eval "$as_ac_var=yes"
68217 else
68218   $as_echo "$as_me: failed program was:" >&5
68219 sed 's/^/| /' conftest.$ac_ext >&5
68220
68221         eval "$as_ac_var=no"
68222 fi
68223
68224 rm -rf conftest.dSYM
68225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68226       conftest$ac_exeext conftest.$ac_ext
68227 fi
68228 ac_res=`eval 'as_val=${'$as_ac_var'}
68229                  $as_echo "$as_val"'`
68230                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68231 $as_echo "$ac_res" >&6; }
68232 as_val=`eval 'as_val=${'$as_ac_var'}
68233                  $as_echo "$as_val"'`
68234    if test "x$as_val" = x""yes; then
68235   cat >>confdefs.h <<_ACEOF
68236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68237 _ACEOF
68238  ice_have_ruserok=yes
68239 fi
68240 done
68241
68242 if test "${ice_have_ruserok}" = yes; then
68243 { $as_echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
68244 $as_echo_n "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... " >&6; }
68245 if test "${ice_cv_have_ruserok_decl+set}" = set; then
68246   $as_echo_n "(cached) " >&6
68247 else
68248
68249 ice_cv_have_ruserok_decl=no
68250 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68251 ice_re_word='(^|[^a-zA-Z0-9_])'
68252 for header in netdb.h sys/socket.h libc.h unistd.h; do
68253 # Check for ordinary declaration
68254 cat >conftest.$ac_ext <<_ACEOF
68255 /* confdefs.h.  */
68256 _ACEOF
68257 cat confdefs.h >>conftest.$ac_ext
68258 cat >>conftest.$ac_ext <<_ACEOF
68259 /* end confdefs.h.  */
68260 #include <$header>
68261
68262 _ACEOF
68263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68264   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
68265   ice_cv_have_ruserok_decl=yes
68266 fi
68267 rm -f conftest*
68268
68269 if test "$ice_cv_have_ruserok_decl" = yes; then
68270         break
68271 fi
68272 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68273 cat >conftest.$ac_ext <<_ACEOF
68274 /* confdefs.h.  */
68275 _ACEOF
68276 cat confdefs.h >>conftest.$ac_ext
68277 cat >>conftest.$ac_ext <<_ACEOF
68278 /* end confdefs.h.  */
68279 #include <$header>
68280
68281 _ACEOF
68282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68283   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68284   ice_cv_have_ruserok_decl=yes
68285 fi
68286 rm -f conftest*
68287
68288 if test "$ice_cv_have_ruserok_decl" = yes; then
68289         break
68290 fi
68291 done
68292
68293 fi
68294
68295 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
68296 $as_echo "$ice_cv_have_ruserok_decl" >&6; }
68297 if test "$ice_cv_have_ruserok_decl" = yes; then
68298
68299 cat >>confdefs.h <<_ACEOF
68300 #define HAVE_RUSEROK_DECL 1
68301 _ACEOF
68302
68303 fi
68304 fi
68305
68306
68307 ice_have_select=no
68308
68309 for ac_func in select
68310 do
68311 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68312 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68313 $as_echo_n "checking for $ac_func... " >&6; }
68314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68315   $as_echo_n "(cached) " >&6
68316 else
68317   cat >conftest.$ac_ext <<_ACEOF
68318 /* confdefs.h.  */
68319 _ACEOF
68320 cat confdefs.h >>conftest.$ac_ext
68321 cat >>conftest.$ac_ext <<_ACEOF
68322 /* end confdefs.h.  */
68323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68325 #define $ac_func innocuous_$ac_func
68326
68327 /* System header to define __stub macros and hopefully few prototypes,
68328     which can conflict with char $ac_func (); below.
68329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68330     <limits.h> exists even on freestanding compilers.  */
68331
68332 #ifdef __STDC__
68333 # include <limits.h>
68334 #else
68335 # include <assert.h>
68336 #endif
68337
68338 #undef $ac_func
68339
68340 /* Override any GCC internal prototype to avoid an error.
68341    Use char because int might match the return type of a GCC
68342    builtin and then its argument prototype would still apply.  */
68343 #ifdef __cplusplus
68344 extern "C"
68345 #endif
68346 char $ac_func ();
68347 /* The GNU C library defines this for functions which it implements
68348     to always fail with ENOSYS.  Some functions are actually named
68349     something starting with __ and the normal name is an alias.  */
68350 #if defined __stub_$ac_func || defined __stub___$ac_func
68351 choke me
68352 #endif
68353
68354 int
68355 main ()
68356 {
68357 return $ac_func ();
68358   ;
68359   return 0;
68360 }
68361 _ACEOF
68362 rm -f conftest.$ac_objext conftest$ac_exeext
68363 if { (ac_try="$ac_link"
68364 case "(($ac_try" in
68365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68366   *) ac_try_echo=$ac_try;;
68367 esac
68368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68369 $as_echo "$ac_try_echo") >&5
68370   (eval "$ac_link") 2>conftest.er1
68371   ac_status=$?
68372   grep -v '^ *+' conftest.er1 >conftest.err
68373   rm -f conftest.er1
68374   cat conftest.err >&5
68375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68376   (exit $ac_status); } && {
68377          test -z "$ac_c_werror_flag" ||
68378          test ! -s conftest.err
68379        } && test -s conftest$ac_exeext && {
68380          test "$cross_compiling" = yes ||
68381          $as_test_x conftest$ac_exeext
68382        }; then
68383   eval "$as_ac_var=yes"
68384 else
68385   $as_echo "$as_me: failed program was:" >&5
68386 sed 's/^/| /' conftest.$ac_ext >&5
68387
68388         eval "$as_ac_var=no"
68389 fi
68390
68391 rm -rf conftest.dSYM
68392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68393       conftest$ac_exeext conftest.$ac_ext
68394 fi
68395 ac_res=`eval 'as_val=${'$as_ac_var'}
68396                  $as_echo "$as_val"'`
68397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68398 $as_echo "$ac_res" >&6; }
68399 as_val=`eval 'as_val=${'$as_ac_var'}
68400                  $as_echo "$as_val"'`
68401    if test "x$as_val" = x""yes; then
68402   cat >>confdefs.h <<_ACEOF
68403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68404 _ACEOF
68405  ice_have_select=yes
68406 fi
68407 done
68408
68409 if test "${ice_have_select}" = yes; then
68410 { $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
68411 $as_echo_n "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... " >&6; }
68412 if test "${ice_cv_have_select_decl+set}" = set; then
68413   $as_echo_n "(cached) " >&6
68414 else
68415
68416 ice_cv_have_select_decl=no
68417 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68418 ice_re_word='(^|[^a-zA-Z0-9_])'
68419 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
68420 # Check for ordinary declaration
68421 cat >conftest.$ac_ext <<_ACEOF
68422 /* confdefs.h.  */
68423 _ACEOF
68424 cat confdefs.h >>conftest.$ac_ext
68425 cat >>conftest.$ac_ext <<_ACEOF
68426 /* end confdefs.h.  */
68427 #include <$header>
68428
68429 _ACEOF
68430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68431   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
68432   ice_cv_have_select_decl=yes
68433 fi
68434 rm -f conftest*
68435
68436 if test "$ice_cv_have_select_decl" = yes; then
68437         break
68438 fi
68439 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68440 cat >conftest.$ac_ext <<_ACEOF
68441 /* confdefs.h.  */
68442 _ACEOF
68443 cat confdefs.h >>conftest.$ac_ext
68444 cat >>conftest.$ac_ext <<_ACEOF
68445 /* end confdefs.h.  */
68446 #include <$header>
68447
68448 _ACEOF
68449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68450   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68451   ice_cv_have_select_decl=yes
68452 fi
68453 rm -f conftest*
68454
68455 if test "$ice_cv_have_select_decl" = yes; then
68456         break
68457 fi
68458 done
68459
68460 fi
68461
68462 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
68463 $as_echo "$ice_cv_have_select_decl" >&6; }
68464 if test "$ice_cv_have_select_decl" = yes; then
68465
68466 cat >>confdefs.h <<_ACEOF
68467 #define HAVE_SELECT_DECL 1
68468 _ACEOF
68469
68470 fi
68471 fi
68472
68473
68474
68475
68476
68477
68478
68479
68480 for ac_header in sys/time.h \
68481             sys/types.h \
68482             sys/select.h \
68483             sys/socket.h \
68484             unistd.h \
68485
68486 do
68487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
68488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68489   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
68490 $as_echo_n "checking for $ac_header... " >&6; }
68491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68492   $as_echo_n "(cached) " >&6
68493 fi
68494 ac_res=`eval 'as_val=${'$as_ac_Header'}
68495                  $as_echo "$as_val"'`
68496                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68497 $as_echo "$ac_res" >&6; }
68498 else
68499   # Is the header compilable?
68500 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
68501 $as_echo_n "checking $ac_header usability... " >&6; }
68502 cat >conftest.$ac_ext <<_ACEOF
68503 /* confdefs.h.  */
68504 _ACEOF
68505 cat confdefs.h >>conftest.$ac_ext
68506 cat >>conftest.$ac_ext <<_ACEOF
68507 /* end confdefs.h.  */
68508 $ac_includes_default
68509 #include <$ac_header>
68510 _ACEOF
68511 rm -f conftest.$ac_objext
68512 if { (ac_try="$ac_compile"
68513 case "(($ac_try" in
68514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68515   *) ac_try_echo=$ac_try;;
68516 esac
68517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68518 $as_echo "$ac_try_echo") >&5
68519   (eval "$ac_compile") 2>conftest.er1
68520   ac_status=$?
68521   grep -v '^ *+' conftest.er1 >conftest.err
68522   rm -f conftest.er1
68523   cat conftest.err >&5
68524   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68525   (exit $ac_status); } && {
68526          test -z "$ac_c_werror_flag" ||
68527          test ! -s conftest.err
68528        } && test -s conftest.$ac_objext; then
68529   ac_header_compiler=yes
68530 else
68531   $as_echo "$as_me: failed program was:" >&5
68532 sed 's/^/| /' conftest.$ac_ext >&5
68533
68534         ac_header_compiler=no
68535 fi
68536
68537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
68538 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68539 $as_echo "$ac_header_compiler" >&6; }
68540
68541 # Is the header present?
68542 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
68543 $as_echo_n "checking $ac_header presence... " >&6; }
68544 cat >conftest.$ac_ext <<_ACEOF
68545 /* confdefs.h.  */
68546 _ACEOF
68547 cat confdefs.h >>conftest.$ac_ext
68548 cat >>conftest.$ac_ext <<_ACEOF
68549 /* end confdefs.h.  */
68550 #include <$ac_header>
68551 _ACEOF
68552 if { (ac_try="$ac_cpp conftest.$ac_ext"
68553 case "(($ac_try" in
68554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68555   *) ac_try_echo=$ac_try;;
68556 esac
68557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68558 $as_echo "$ac_try_echo") >&5
68559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
68560   ac_status=$?
68561   grep -v '^ *+' conftest.er1 >conftest.err
68562   rm -f conftest.er1
68563   cat conftest.err >&5
68564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68565   (exit $ac_status); } >/dev/null && {
68566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
68567          test ! -s conftest.err
68568        }; then
68569   ac_header_preproc=yes
68570 else
68571   $as_echo "$as_me: failed program was:" >&5
68572 sed 's/^/| /' conftest.$ac_ext >&5
68573
68574   ac_header_preproc=no
68575 fi
68576
68577 rm -f conftest.err conftest.$ac_ext
68578 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68579 $as_echo "$ac_header_preproc" >&6; }
68580
68581 # So?  What about this header?
68582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68583   yes:no: )
68584     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68585 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68586     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68587 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68588     ac_header_preproc=yes
68589     ;;
68590   no:yes:* )
68591     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68592 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68593     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
68594 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
68595     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68596 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68597     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
68598 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
68599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68600 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68602 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68603
68604     ;;
68605 esac
68606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
68607 $as_echo_n "checking for $ac_header... " >&6; }
68608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
68609   $as_echo_n "(cached) " >&6
68610 else
68611   eval "$as_ac_Header=\$ac_header_preproc"
68612 fi
68613 ac_res=`eval 'as_val=${'$as_ac_Header'}
68614                  $as_echo "$as_val"'`
68615                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68616 $as_echo "$ac_res" >&6; }
68617
68618 fi
68619 as_val=`eval 'as_val=${'$as_ac_Header'}
68620                  $as_echo "$as_val"'`
68621    if test "x$as_val" = x""yes; then
68622   cat >>confdefs.h <<_ACEOF
68623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
68624 _ACEOF
68625
68626 fi
68627
68628 done
68629
68630
68631         { $as_echo "$as_me:$LINENO: checking for select() argument type" >&5
68632 $as_echo_n "checking for select() argument type... " >&6; }
68633 if test "${amanda_cv_select_arg_type+set}" = set; then
68634   $as_echo_n "(cached) " >&6
68635 else
68636
68637                 rm -f conftest.c
68638                 cat <<EOF >conftest.$ac_ext
68639 #include "confdefs.h"
68640 #ifdef TIME_WITH_SYS_TIME
68641 #  include <sys/time.h>
68642 #  include <time.h>
68643 #else
68644 #  ifdef HAVE_SYS_TIME_H
68645 #    include <sys/time.h>
68646 #  else
68647 #    include <time.h>
68648 #  endif
68649 #endif
68650 #ifdef HAVE_SYS_TYPES_H
68651 # include <sys/types.h>
68652 #endif
68653 #ifdef HAVE_SYS_SELECT_H
68654 #  include <sys/select.h>
68655 #endif
68656 #ifdef HAVE_SYS_SOCKET_H
68657 #  include <sys/socket.h>
68658 #endif
68659 #ifdef HAVE_UNISTD_H
68660 # include <unistd.h>
68661 #endif
68662
68663 int main()
68664 {
68665 #ifdef FD_SET_POINTER
68666         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
68667 #else
68668         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
68669 #endif
68670         return 0;
68671 }
68672 EOF
68673
68674                 # Figure out the select argument type by first trying to
68675                 # compile with the fd_set argument.  If the compile fails,
68676                 # then we know to use the int.  If it suceeds, then try to
68677                 # use the int.  If the int fails, then use fd_set.  If
68678                 # both suceeed, then do a line count on the number of
68679                 # lines that the compiler spit out, assuming that the
68680                 # compile outputing more lines had more errors.
68681                 amanda_cv_select_arg_type=no
68682                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
68683                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
68684                 if test $? -ne 0; then
68685                     amanda_cv_select_arg_type=int
68686                 fi
68687                 if test "$amanda_cv_select_arg_type" = no; then
68688                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
68689                     if test $? -ne 0; then
68690                         amanda_cv_select_arg_type=fd_set
68691                     fi
68692                 fi
68693                 if test "$amanda_cv_select_arg_type" = no; then
68694                     wc_fdset=`wc -l <conftest.fd_set`
68695                     wc_int=`wc -l <conftest.int`
68696                     if test "$wc_fdset" -le "$wc_int"; then
68697                         amanda_cv_select_arg_type=fd_set
68698                     else
68699                         amanda_cv_select_arg_type=int
68700                     fi
68701                 fi
68702                 rm -f conftest*
68703
68704
68705 fi
68706 { $as_echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
68707 $as_echo "$amanda_cv_select_arg_type" >&6; }
68708
68709 cat >>confdefs.h <<_ACEOF
68710 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
68711 _ACEOF
68712
68713
68714
68715
68716 ice_have_sendto=no
68717
68718 for ac_func in sendto
68719 do
68720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68721 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68722 $as_echo_n "checking for $ac_func... " >&6; }
68723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68724   $as_echo_n "(cached) " >&6
68725 else
68726   cat >conftest.$ac_ext <<_ACEOF
68727 /* confdefs.h.  */
68728 _ACEOF
68729 cat confdefs.h >>conftest.$ac_ext
68730 cat >>conftest.$ac_ext <<_ACEOF
68731 /* end confdefs.h.  */
68732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68734 #define $ac_func innocuous_$ac_func
68735
68736 /* System header to define __stub macros and hopefully few prototypes,
68737     which can conflict with char $ac_func (); below.
68738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68739     <limits.h> exists even on freestanding compilers.  */
68740
68741 #ifdef __STDC__
68742 # include <limits.h>
68743 #else
68744 # include <assert.h>
68745 #endif
68746
68747 #undef $ac_func
68748
68749 /* Override any GCC internal prototype to avoid an error.
68750    Use char because int might match the return type of a GCC
68751    builtin and then its argument prototype would still apply.  */
68752 #ifdef __cplusplus
68753 extern "C"
68754 #endif
68755 char $ac_func ();
68756 /* The GNU C library defines this for functions which it implements
68757     to always fail with ENOSYS.  Some functions are actually named
68758     something starting with __ and the normal name is an alias.  */
68759 #if defined __stub_$ac_func || defined __stub___$ac_func
68760 choke me
68761 #endif
68762
68763 int
68764 main ()
68765 {
68766 return $ac_func ();
68767   ;
68768   return 0;
68769 }
68770 _ACEOF
68771 rm -f conftest.$ac_objext conftest$ac_exeext
68772 if { (ac_try="$ac_link"
68773 case "(($ac_try" in
68774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68775   *) ac_try_echo=$ac_try;;
68776 esac
68777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68778 $as_echo "$ac_try_echo") >&5
68779   (eval "$ac_link") 2>conftest.er1
68780   ac_status=$?
68781   grep -v '^ *+' conftest.er1 >conftest.err
68782   rm -f conftest.er1
68783   cat conftest.err >&5
68784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68785   (exit $ac_status); } && {
68786          test -z "$ac_c_werror_flag" ||
68787          test ! -s conftest.err
68788        } && test -s conftest$ac_exeext && {
68789          test "$cross_compiling" = yes ||
68790          $as_test_x conftest$ac_exeext
68791        }; then
68792   eval "$as_ac_var=yes"
68793 else
68794   $as_echo "$as_me: failed program was:" >&5
68795 sed 's/^/| /' conftest.$ac_ext >&5
68796
68797         eval "$as_ac_var=no"
68798 fi
68799
68800 rm -rf conftest.dSYM
68801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68802       conftest$ac_exeext conftest.$ac_ext
68803 fi
68804 ac_res=`eval 'as_val=${'$as_ac_var'}
68805                  $as_echo "$as_val"'`
68806                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68807 $as_echo "$ac_res" >&6; }
68808 as_val=`eval 'as_val=${'$as_ac_var'}
68809                  $as_echo "$as_val"'`
68810    if test "x$as_val" = x""yes; then
68811   cat >>confdefs.h <<_ACEOF
68812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68813 _ACEOF
68814  ice_have_sendto=yes
68815 fi
68816 done
68817
68818 if test "${ice_have_sendto}" = yes; then
68819 { $as_echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
68820 $as_echo_n "checking for sendto declaration in sys/types.h sys/socket.h... " >&6; }
68821 if test "${ice_cv_have_sendto_decl+set}" = set; then
68822   $as_echo_n "(cached) " >&6
68823 else
68824
68825 ice_cv_have_sendto_decl=no
68826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68827 ice_re_word='(^|[^a-zA-Z0-9_])'
68828 for header in sys/types.h sys/socket.h; do
68829 # Check for ordinary declaration
68830 cat >conftest.$ac_ext <<_ACEOF
68831 /* confdefs.h.  */
68832 _ACEOF
68833 cat confdefs.h >>conftest.$ac_ext
68834 cat >>conftest.$ac_ext <<_ACEOF
68835 /* end confdefs.h.  */
68836 #include <$header>
68837
68838 _ACEOF
68839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68840   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
68841   ice_cv_have_sendto_decl=yes
68842 fi
68843 rm -f conftest*
68844
68845 if test "$ice_cv_have_sendto_decl" = yes; then
68846         break
68847 fi
68848 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68849 cat >conftest.$ac_ext <<_ACEOF
68850 /* confdefs.h.  */
68851 _ACEOF
68852 cat confdefs.h >>conftest.$ac_ext
68853 cat >>conftest.$ac_ext <<_ACEOF
68854 /* end confdefs.h.  */
68855 #include <$header>
68856
68857 _ACEOF
68858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68859   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68860   ice_cv_have_sendto_decl=yes
68861 fi
68862 rm -f conftest*
68863
68864 if test "$ice_cv_have_sendto_decl" = yes; then
68865         break
68866 fi
68867 done
68868
68869 fi
68870
68871 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
68872 $as_echo "$ice_cv_have_sendto_decl" >&6; }
68873 if test "$ice_cv_have_sendto_decl" = yes; then
68874
68875 cat >>confdefs.h <<_ACEOF
68876 #define HAVE_SENDTO_DECL 1
68877 _ACEOF
68878
68879 fi
68880 fi
68881
68882
68883 ice_have_setegid=no
68884
68885 for ac_func in setegid
68886 do
68887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
68888 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
68889 $as_echo_n "checking for $ac_func... " >&6; }
68890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68891   $as_echo_n "(cached) " >&6
68892 else
68893   cat >conftest.$ac_ext <<_ACEOF
68894 /* confdefs.h.  */
68895 _ACEOF
68896 cat confdefs.h >>conftest.$ac_ext
68897 cat >>conftest.$ac_ext <<_ACEOF
68898 /* end confdefs.h.  */
68899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68901 #define $ac_func innocuous_$ac_func
68902
68903 /* System header to define __stub macros and hopefully few prototypes,
68904     which can conflict with char $ac_func (); below.
68905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68906     <limits.h> exists even on freestanding compilers.  */
68907
68908 #ifdef __STDC__
68909 # include <limits.h>
68910 #else
68911 # include <assert.h>
68912 #endif
68913
68914 #undef $ac_func
68915
68916 /* Override any GCC internal prototype to avoid an error.
68917    Use char because int might match the return type of a GCC
68918    builtin and then its argument prototype would still apply.  */
68919 #ifdef __cplusplus
68920 extern "C"
68921 #endif
68922 char $ac_func ();
68923 /* The GNU C library defines this for functions which it implements
68924     to always fail with ENOSYS.  Some functions are actually named
68925     something starting with __ and the normal name is an alias.  */
68926 #if defined __stub_$ac_func || defined __stub___$ac_func
68927 choke me
68928 #endif
68929
68930 int
68931 main ()
68932 {
68933 return $ac_func ();
68934   ;
68935   return 0;
68936 }
68937 _ACEOF
68938 rm -f conftest.$ac_objext conftest$ac_exeext
68939 if { (ac_try="$ac_link"
68940 case "(($ac_try" in
68941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68942   *) ac_try_echo=$ac_try;;
68943 esac
68944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
68945 $as_echo "$ac_try_echo") >&5
68946   (eval "$ac_link") 2>conftest.er1
68947   ac_status=$?
68948   grep -v '^ *+' conftest.er1 >conftest.err
68949   rm -f conftest.er1
68950   cat conftest.err >&5
68951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68952   (exit $ac_status); } && {
68953          test -z "$ac_c_werror_flag" ||
68954          test ! -s conftest.err
68955        } && test -s conftest$ac_exeext && {
68956          test "$cross_compiling" = yes ||
68957          $as_test_x conftest$ac_exeext
68958        }; then
68959   eval "$as_ac_var=yes"
68960 else
68961   $as_echo "$as_me: failed program was:" >&5
68962 sed 's/^/| /' conftest.$ac_ext >&5
68963
68964         eval "$as_ac_var=no"
68965 fi
68966
68967 rm -rf conftest.dSYM
68968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68969       conftest$ac_exeext conftest.$ac_ext
68970 fi
68971 ac_res=`eval 'as_val=${'$as_ac_var'}
68972                  $as_echo "$as_val"'`
68973                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
68974 $as_echo "$ac_res" >&6; }
68975 as_val=`eval 'as_val=${'$as_ac_var'}
68976                  $as_echo "$as_val"'`
68977    if test "x$as_val" = x""yes; then
68978   cat >>confdefs.h <<_ACEOF
68979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
68980 _ACEOF
68981  ice_have_setegid=yes
68982 fi
68983 done
68984
68985 if test "${ice_have_setegid}" = yes; then
68986 { $as_echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
68987 $as_echo_n "checking for setegid declaration in unistd.h... " >&6; }
68988 if test "${ice_cv_have_setegid_decl+set}" = set; then
68989   $as_echo_n "(cached) " >&6
68990 else
68991
68992 ice_cv_have_setegid_decl=no
68993 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68994 ice_re_word='(^|[^a-zA-Z0-9_])'
68995 for header in unistd.h; do
68996 # Check for ordinary declaration
68997 cat >conftest.$ac_ext <<_ACEOF
68998 /* confdefs.h.  */
68999 _ACEOF
69000 cat confdefs.h >>conftest.$ac_ext
69001 cat >>conftest.$ac_ext <<_ACEOF
69002 /* end confdefs.h.  */
69003 #include <$header>
69004
69005 _ACEOF
69006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69007   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
69008   ice_cv_have_setegid_decl=yes
69009 fi
69010 rm -f conftest*
69011
69012 if test "$ice_cv_have_setegid_decl" = yes; then
69013         break
69014 fi
69015 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69016 cat >conftest.$ac_ext <<_ACEOF
69017 /* confdefs.h.  */
69018 _ACEOF
69019 cat confdefs.h >>conftest.$ac_ext
69020 cat >>conftest.$ac_ext <<_ACEOF
69021 /* end confdefs.h.  */
69022 #include <$header>
69023
69024 _ACEOF
69025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69026   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69027   ice_cv_have_setegid_decl=yes
69028 fi
69029 rm -f conftest*
69030
69031 if test "$ice_cv_have_setegid_decl" = yes; then
69032         break
69033 fi
69034 done
69035
69036 fi
69037
69038 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
69039 $as_echo "$ice_cv_have_setegid_decl" >&6; }
69040 if test "$ice_cv_have_setegid_decl" = yes; then
69041
69042 cat >>confdefs.h <<_ACEOF
69043 #define HAVE_SETEGID_DECL 1
69044 _ACEOF
69045
69046 fi
69047 fi
69048
69049
69050 ice_have_seteuid=no
69051
69052 for ac_func in seteuid
69053 do
69054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69055 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69056 $as_echo_n "checking for $ac_func... " >&6; }
69057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69058   $as_echo_n "(cached) " >&6
69059 else
69060   cat >conftest.$ac_ext <<_ACEOF
69061 /* confdefs.h.  */
69062 _ACEOF
69063 cat confdefs.h >>conftest.$ac_ext
69064 cat >>conftest.$ac_ext <<_ACEOF
69065 /* end confdefs.h.  */
69066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69068 #define $ac_func innocuous_$ac_func
69069
69070 /* System header to define __stub macros and hopefully few prototypes,
69071     which can conflict with char $ac_func (); below.
69072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69073     <limits.h> exists even on freestanding compilers.  */
69074
69075 #ifdef __STDC__
69076 # include <limits.h>
69077 #else
69078 # include <assert.h>
69079 #endif
69080
69081 #undef $ac_func
69082
69083 /* Override any GCC internal prototype to avoid an error.
69084    Use char because int might match the return type of a GCC
69085    builtin and then its argument prototype would still apply.  */
69086 #ifdef __cplusplus
69087 extern "C"
69088 #endif
69089 char $ac_func ();
69090 /* The GNU C library defines this for functions which it implements
69091     to always fail with ENOSYS.  Some functions are actually named
69092     something starting with __ and the normal name is an alias.  */
69093 #if defined __stub_$ac_func || defined __stub___$ac_func
69094 choke me
69095 #endif
69096
69097 int
69098 main ()
69099 {
69100 return $ac_func ();
69101   ;
69102   return 0;
69103 }
69104 _ACEOF
69105 rm -f conftest.$ac_objext conftest$ac_exeext
69106 if { (ac_try="$ac_link"
69107 case "(($ac_try" in
69108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69109   *) ac_try_echo=$ac_try;;
69110 esac
69111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69112 $as_echo "$ac_try_echo") >&5
69113   (eval "$ac_link") 2>conftest.er1
69114   ac_status=$?
69115   grep -v '^ *+' conftest.er1 >conftest.err
69116   rm -f conftest.er1
69117   cat conftest.err >&5
69118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69119   (exit $ac_status); } && {
69120          test -z "$ac_c_werror_flag" ||
69121          test ! -s conftest.err
69122        } && test -s conftest$ac_exeext && {
69123          test "$cross_compiling" = yes ||
69124          $as_test_x conftest$ac_exeext
69125        }; then
69126   eval "$as_ac_var=yes"
69127 else
69128   $as_echo "$as_me: failed program was:" >&5
69129 sed 's/^/| /' conftest.$ac_ext >&5
69130
69131         eval "$as_ac_var=no"
69132 fi
69133
69134 rm -rf conftest.dSYM
69135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69136       conftest$ac_exeext conftest.$ac_ext
69137 fi
69138 ac_res=`eval 'as_val=${'$as_ac_var'}
69139                  $as_echo "$as_val"'`
69140                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69141 $as_echo "$ac_res" >&6; }
69142 as_val=`eval 'as_val=${'$as_ac_var'}
69143                  $as_echo "$as_val"'`
69144    if test "x$as_val" = x""yes; then
69145   cat >>confdefs.h <<_ACEOF
69146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69147 _ACEOF
69148  ice_have_seteuid=yes
69149 fi
69150 done
69151
69152 if test "${ice_have_seteuid}" = yes; then
69153 { $as_echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
69154 $as_echo_n "checking for seteuid declaration in unistd.h... " >&6; }
69155 if test "${ice_cv_have_seteuid_decl+set}" = set; then
69156   $as_echo_n "(cached) " >&6
69157 else
69158
69159 ice_cv_have_seteuid_decl=no
69160 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69161 ice_re_word='(^|[^a-zA-Z0-9_])'
69162 for header in unistd.h; do
69163 # Check for ordinary declaration
69164 cat >conftest.$ac_ext <<_ACEOF
69165 /* confdefs.h.  */
69166 _ACEOF
69167 cat confdefs.h >>conftest.$ac_ext
69168 cat >>conftest.$ac_ext <<_ACEOF
69169 /* end confdefs.h.  */
69170 #include <$header>
69171
69172 _ACEOF
69173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69174   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
69175   ice_cv_have_seteuid_decl=yes
69176 fi
69177 rm -f conftest*
69178
69179 if test "$ice_cv_have_seteuid_decl" = yes; then
69180         break
69181 fi
69182 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69183 cat >conftest.$ac_ext <<_ACEOF
69184 /* confdefs.h.  */
69185 _ACEOF
69186 cat confdefs.h >>conftest.$ac_ext
69187 cat >>conftest.$ac_ext <<_ACEOF
69188 /* end confdefs.h.  */
69189 #include <$header>
69190
69191 _ACEOF
69192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69193   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69194   ice_cv_have_seteuid_decl=yes
69195 fi
69196 rm -f conftest*
69197
69198 if test "$ice_cv_have_seteuid_decl" = yes; then
69199         break
69200 fi
69201 done
69202
69203 fi
69204
69205 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
69206 $as_echo "$ice_cv_have_seteuid_decl" >&6; }
69207 if test "$ice_cv_have_seteuid_decl" = yes; then
69208
69209 cat >>confdefs.h <<_ACEOF
69210 #define HAVE_SETEUID_DECL 1
69211 _ACEOF
69212
69213 fi
69214 fi
69215
69216
69217 ice_have_setresgid=no
69218
69219 for ac_func in setresgid
69220 do
69221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69222 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69223 $as_echo_n "checking for $ac_func... " >&6; }
69224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69225   $as_echo_n "(cached) " >&6
69226 else
69227   cat >conftest.$ac_ext <<_ACEOF
69228 /* confdefs.h.  */
69229 _ACEOF
69230 cat confdefs.h >>conftest.$ac_ext
69231 cat >>conftest.$ac_ext <<_ACEOF
69232 /* end confdefs.h.  */
69233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69235 #define $ac_func innocuous_$ac_func
69236
69237 /* System header to define __stub macros and hopefully few prototypes,
69238     which can conflict with char $ac_func (); below.
69239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69240     <limits.h> exists even on freestanding compilers.  */
69241
69242 #ifdef __STDC__
69243 # include <limits.h>
69244 #else
69245 # include <assert.h>
69246 #endif
69247
69248 #undef $ac_func
69249
69250 /* Override any GCC internal prototype to avoid an error.
69251    Use char because int might match the return type of a GCC
69252    builtin and then its argument prototype would still apply.  */
69253 #ifdef __cplusplus
69254 extern "C"
69255 #endif
69256 char $ac_func ();
69257 /* The GNU C library defines this for functions which it implements
69258     to always fail with ENOSYS.  Some functions are actually named
69259     something starting with __ and the normal name is an alias.  */
69260 #if defined __stub_$ac_func || defined __stub___$ac_func
69261 choke me
69262 #endif
69263
69264 int
69265 main ()
69266 {
69267 return $ac_func ();
69268   ;
69269   return 0;
69270 }
69271 _ACEOF
69272 rm -f conftest.$ac_objext conftest$ac_exeext
69273 if { (ac_try="$ac_link"
69274 case "(($ac_try" in
69275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69276   *) ac_try_echo=$ac_try;;
69277 esac
69278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69279 $as_echo "$ac_try_echo") >&5
69280   (eval "$ac_link") 2>conftest.er1
69281   ac_status=$?
69282   grep -v '^ *+' conftest.er1 >conftest.err
69283   rm -f conftest.er1
69284   cat conftest.err >&5
69285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69286   (exit $ac_status); } && {
69287          test -z "$ac_c_werror_flag" ||
69288          test ! -s conftest.err
69289        } && test -s conftest$ac_exeext && {
69290          test "$cross_compiling" = yes ||
69291          $as_test_x conftest$ac_exeext
69292        }; then
69293   eval "$as_ac_var=yes"
69294 else
69295   $as_echo "$as_me: failed program was:" >&5
69296 sed 's/^/| /' conftest.$ac_ext >&5
69297
69298         eval "$as_ac_var=no"
69299 fi
69300
69301 rm -rf conftest.dSYM
69302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69303       conftest$ac_exeext conftest.$ac_ext
69304 fi
69305 ac_res=`eval 'as_val=${'$as_ac_var'}
69306                  $as_echo "$as_val"'`
69307                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69308 $as_echo "$ac_res" >&6; }
69309 as_val=`eval 'as_val=${'$as_ac_var'}
69310                  $as_echo "$as_val"'`
69311    if test "x$as_val" = x""yes; then
69312   cat >>confdefs.h <<_ACEOF
69313 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69314 _ACEOF
69315  ice_have_setresgid=yes
69316 fi
69317 done
69318
69319 if test "${ice_have_setresgid}" = yes; then
69320 { $as_echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
69321 $as_echo_n "checking for setresgid declaration in unistd.h... " >&6; }
69322 if test "${ice_cv_have_setresgid_decl+set}" = set; then
69323   $as_echo_n "(cached) " >&6
69324 else
69325
69326 ice_cv_have_setresgid_decl=no
69327 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69328 ice_re_word='(^|[^a-zA-Z0-9_])'
69329 for header in unistd.h; do
69330 # Check for ordinary declaration
69331 cat >conftest.$ac_ext <<_ACEOF
69332 /* confdefs.h.  */
69333 _ACEOF
69334 cat confdefs.h >>conftest.$ac_ext
69335 cat >>conftest.$ac_ext <<_ACEOF
69336 /* end confdefs.h.  */
69337 #include <$header>
69338
69339 _ACEOF
69340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69341   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
69342   ice_cv_have_setresgid_decl=yes
69343 fi
69344 rm -f conftest*
69345
69346 if test "$ice_cv_have_setresgid_decl" = yes; then
69347         break
69348 fi
69349 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69350 cat >conftest.$ac_ext <<_ACEOF
69351 /* confdefs.h.  */
69352 _ACEOF
69353 cat confdefs.h >>conftest.$ac_ext
69354 cat >>conftest.$ac_ext <<_ACEOF
69355 /* end confdefs.h.  */
69356 #include <$header>
69357
69358 _ACEOF
69359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69360   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69361   ice_cv_have_setresgid_decl=yes
69362 fi
69363 rm -f conftest*
69364
69365 if test "$ice_cv_have_setresgid_decl" = yes; then
69366         break
69367 fi
69368 done
69369
69370 fi
69371
69372 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
69373 $as_echo "$ice_cv_have_setresgid_decl" >&6; }
69374 if test "$ice_cv_have_setresgid_decl" = yes; then
69375
69376 cat >>confdefs.h <<_ACEOF
69377 #define HAVE_SETRESGID_DECL 1
69378 _ACEOF
69379
69380 fi
69381 fi
69382
69383
69384 ice_have_setresuid=no
69385
69386 for ac_func in setresuid
69387 do
69388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69390 $as_echo_n "checking for $ac_func... " >&6; }
69391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69392   $as_echo_n "(cached) " >&6
69393 else
69394   cat >conftest.$ac_ext <<_ACEOF
69395 /* confdefs.h.  */
69396 _ACEOF
69397 cat confdefs.h >>conftest.$ac_ext
69398 cat >>conftest.$ac_ext <<_ACEOF
69399 /* end confdefs.h.  */
69400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69402 #define $ac_func innocuous_$ac_func
69403
69404 /* System header to define __stub macros and hopefully few prototypes,
69405     which can conflict with char $ac_func (); below.
69406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69407     <limits.h> exists even on freestanding compilers.  */
69408
69409 #ifdef __STDC__
69410 # include <limits.h>
69411 #else
69412 # include <assert.h>
69413 #endif
69414
69415 #undef $ac_func
69416
69417 /* Override any GCC internal prototype to avoid an error.
69418    Use char because int might match the return type of a GCC
69419    builtin and then its argument prototype would still apply.  */
69420 #ifdef __cplusplus
69421 extern "C"
69422 #endif
69423 char $ac_func ();
69424 /* The GNU C library defines this for functions which it implements
69425     to always fail with ENOSYS.  Some functions are actually named
69426     something starting with __ and the normal name is an alias.  */
69427 #if defined __stub_$ac_func || defined __stub___$ac_func
69428 choke me
69429 #endif
69430
69431 int
69432 main ()
69433 {
69434 return $ac_func ();
69435   ;
69436   return 0;
69437 }
69438 _ACEOF
69439 rm -f conftest.$ac_objext conftest$ac_exeext
69440 if { (ac_try="$ac_link"
69441 case "(($ac_try" in
69442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69443   *) ac_try_echo=$ac_try;;
69444 esac
69445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69446 $as_echo "$ac_try_echo") >&5
69447   (eval "$ac_link") 2>conftest.er1
69448   ac_status=$?
69449   grep -v '^ *+' conftest.er1 >conftest.err
69450   rm -f conftest.er1
69451   cat conftest.err >&5
69452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69453   (exit $ac_status); } && {
69454          test -z "$ac_c_werror_flag" ||
69455          test ! -s conftest.err
69456        } && test -s conftest$ac_exeext && {
69457          test "$cross_compiling" = yes ||
69458          $as_test_x conftest$ac_exeext
69459        }; then
69460   eval "$as_ac_var=yes"
69461 else
69462   $as_echo "$as_me: failed program was:" >&5
69463 sed 's/^/| /' conftest.$ac_ext >&5
69464
69465         eval "$as_ac_var=no"
69466 fi
69467
69468 rm -rf conftest.dSYM
69469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69470       conftest$ac_exeext conftest.$ac_ext
69471 fi
69472 ac_res=`eval 'as_val=${'$as_ac_var'}
69473                  $as_echo "$as_val"'`
69474                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69475 $as_echo "$ac_res" >&6; }
69476 as_val=`eval 'as_val=${'$as_ac_var'}
69477                  $as_echo "$as_val"'`
69478    if test "x$as_val" = x""yes; then
69479   cat >>confdefs.h <<_ACEOF
69480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69481 _ACEOF
69482  ice_have_setresuid=yes
69483 fi
69484 done
69485
69486 if test "${ice_have_setresuid}" = yes; then
69487 { $as_echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
69488 $as_echo_n "checking for setresuid declaration in unistd.h... " >&6; }
69489 if test "${ice_cv_have_setresuid_decl+set}" = set; then
69490   $as_echo_n "(cached) " >&6
69491 else
69492
69493 ice_cv_have_setresuid_decl=no
69494 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69495 ice_re_word='(^|[^a-zA-Z0-9_])'
69496 for header in unistd.h; do
69497 # Check for ordinary declaration
69498 cat >conftest.$ac_ext <<_ACEOF
69499 /* confdefs.h.  */
69500 _ACEOF
69501 cat confdefs.h >>conftest.$ac_ext
69502 cat >>conftest.$ac_ext <<_ACEOF
69503 /* end confdefs.h.  */
69504 #include <$header>
69505
69506 _ACEOF
69507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69508   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
69509   ice_cv_have_setresuid_decl=yes
69510 fi
69511 rm -f conftest*
69512
69513 if test "$ice_cv_have_setresuid_decl" = yes; then
69514         break
69515 fi
69516 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69517 cat >conftest.$ac_ext <<_ACEOF
69518 /* confdefs.h.  */
69519 _ACEOF
69520 cat confdefs.h >>conftest.$ac_ext
69521 cat >>conftest.$ac_ext <<_ACEOF
69522 /* end confdefs.h.  */
69523 #include <$header>
69524
69525 _ACEOF
69526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69527   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69528   ice_cv_have_setresuid_decl=yes
69529 fi
69530 rm -f conftest*
69531
69532 if test "$ice_cv_have_setresuid_decl" = yes; then
69533         break
69534 fi
69535 done
69536
69537 fi
69538
69539 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
69540 $as_echo "$ice_cv_have_setresuid_decl" >&6; }
69541 if test "$ice_cv_have_setresuid_decl" = yes; then
69542
69543 cat >>confdefs.h <<_ACEOF
69544 #define HAVE_SETRESUID_DECL 1
69545 _ACEOF
69546
69547 fi
69548 fi
69549
69550
69551 ice_have_snprintf=no
69552
69553 for ac_func in snprintf
69554 do
69555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69556 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69557 $as_echo_n "checking for $ac_func... " >&6; }
69558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69559   $as_echo_n "(cached) " >&6
69560 else
69561   cat >conftest.$ac_ext <<_ACEOF
69562 /* confdefs.h.  */
69563 _ACEOF
69564 cat confdefs.h >>conftest.$ac_ext
69565 cat >>conftest.$ac_ext <<_ACEOF
69566 /* end confdefs.h.  */
69567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69569 #define $ac_func innocuous_$ac_func
69570
69571 /* System header to define __stub macros and hopefully few prototypes,
69572     which can conflict with char $ac_func (); below.
69573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69574     <limits.h> exists even on freestanding compilers.  */
69575
69576 #ifdef __STDC__
69577 # include <limits.h>
69578 #else
69579 # include <assert.h>
69580 #endif
69581
69582 #undef $ac_func
69583
69584 /* Override any GCC internal prototype to avoid an error.
69585    Use char because int might match the return type of a GCC
69586    builtin and then its argument prototype would still apply.  */
69587 #ifdef __cplusplus
69588 extern "C"
69589 #endif
69590 char $ac_func ();
69591 /* The GNU C library defines this for functions which it implements
69592     to always fail with ENOSYS.  Some functions are actually named
69593     something starting with __ and the normal name is an alias.  */
69594 #if defined __stub_$ac_func || defined __stub___$ac_func
69595 choke me
69596 #endif
69597
69598 int
69599 main ()
69600 {
69601 return $ac_func ();
69602   ;
69603   return 0;
69604 }
69605 _ACEOF
69606 rm -f conftest.$ac_objext conftest$ac_exeext
69607 if { (ac_try="$ac_link"
69608 case "(($ac_try" in
69609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69610   *) ac_try_echo=$ac_try;;
69611 esac
69612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69613 $as_echo "$ac_try_echo") >&5
69614   (eval "$ac_link") 2>conftest.er1
69615   ac_status=$?
69616   grep -v '^ *+' conftest.er1 >conftest.err
69617   rm -f conftest.er1
69618   cat conftest.err >&5
69619   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69620   (exit $ac_status); } && {
69621          test -z "$ac_c_werror_flag" ||
69622          test ! -s conftest.err
69623        } && test -s conftest$ac_exeext && {
69624          test "$cross_compiling" = yes ||
69625          $as_test_x conftest$ac_exeext
69626        }; then
69627   eval "$as_ac_var=yes"
69628 else
69629   $as_echo "$as_me: failed program was:" >&5
69630 sed 's/^/| /' conftest.$ac_ext >&5
69631
69632         eval "$as_ac_var=no"
69633 fi
69634
69635 rm -rf conftest.dSYM
69636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69637       conftest$ac_exeext conftest.$ac_ext
69638 fi
69639 ac_res=`eval 'as_val=${'$as_ac_var'}
69640                  $as_echo "$as_val"'`
69641                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69642 $as_echo "$ac_res" >&6; }
69643 as_val=`eval 'as_val=${'$as_ac_var'}
69644                  $as_echo "$as_val"'`
69645    if test "x$as_val" = x""yes; then
69646   cat >>confdefs.h <<_ACEOF
69647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69648 _ACEOF
69649  ice_have_snprintf=yes
69650 fi
69651 done
69652
69653 if test "${ice_have_snprintf}" = yes; then
69654 { $as_echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
69655 $as_echo_n "checking for snprintf declaration in stdio.h... " >&6; }
69656 if test "${ice_cv_have_snprintf_decl+set}" = set; then
69657   $as_echo_n "(cached) " >&6
69658 else
69659
69660 ice_cv_have_snprintf_decl=no
69661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69662 ice_re_word='(^|[^a-zA-Z0-9_])'
69663 for header in stdio.h; do
69664 # Check for ordinary declaration
69665 cat >conftest.$ac_ext <<_ACEOF
69666 /* confdefs.h.  */
69667 _ACEOF
69668 cat confdefs.h >>conftest.$ac_ext
69669 cat >>conftest.$ac_ext <<_ACEOF
69670 /* end confdefs.h.  */
69671 #include <$header>
69672
69673 _ACEOF
69674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69675   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
69676   ice_cv_have_snprintf_decl=yes
69677 fi
69678 rm -f conftest*
69679
69680 if test "$ice_cv_have_snprintf_decl" = yes; then
69681         break
69682 fi
69683 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69684 cat >conftest.$ac_ext <<_ACEOF
69685 /* confdefs.h.  */
69686 _ACEOF
69687 cat confdefs.h >>conftest.$ac_ext
69688 cat >>conftest.$ac_ext <<_ACEOF
69689 /* end confdefs.h.  */
69690 #include <$header>
69691
69692 _ACEOF
69693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69694   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69695   ice_cv_have_snprintf_decl=yes
69696 fi
69697 rm -f conftest*
69698
69699 if test "$ice_cv_have_snprintf_decl" = yes; then
69700         break
69701 fi
69702 done
69703
69704 fi
69705
69706 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
69707 $as_echo "$ice_cv_have_snprintf_decl" >&6; }
69708 if test "$ice_cv_have_snprintf_decl" = yes; then
69709
69710 cat >>confdefs.h <<_ACEOF
69711 #define HAVE_SNPRINTF_DECL 1
69712 _ACEOF
69713
69714 fi
69715 fi
69716
69717
69718 ice_have_vsnprintf=no
69719
69720 for ac_func in vsnprintf
69721 do
69722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69724 $as_echo_n "checking for $ac_func... " >&6; }
69725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69726   $as_echo_n "(cached) " >&6
69727 else
69728   cat >conftest.$ac_ext <<_ACEOF
69729 /* confdefs.h.  */
69730 _ACEOF
69731 cat confdefs.h >>conftest.$ac_ext
69732 cat >>conftest.$ac_ext <<_ACEOF
69733 /* end confdefs.h.  */
69734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69736 #define $ac_func innocuous_$ac_func
69737
69738 /* System header to define __stub macros and hopefully few prototypes,
69739     which can conflict with char $ac_func (); below.
69740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69741     <limits.h> exists even on freestanding compilers.  */
69742
69743 #ifdef __STDC__
69744 # include <limits.h>
69745 #else
69746 # include <assert.h>
69747 #endif
69748
69749 #undef $ac_func
69750
69751 /* Override any GCC internal prototype to avoid an error.
69752    Use char because int might match the return type of a GCC
69753    builtin and then its argument prototype would still apply.  */
69754 #ifdef __cplusplus
69755 extern "C"
69756 #endif
69757 char $ac_func ();
69758 /* The GNU C library defines this for functions which it implements
69759     to always fail with ENOSYS.  Some functions are actually named
69760     something starting with __ and the normal name is an alias.  */
69761 #if defined __stub_$ac_func || defined __stub___$ac_func
69762 choke me
69763 #endif
69764
69765 int
69766 main ()
69767 {
69768 return $ac_func ();
69769   ;
69770   return 0;
69771 }
69772 _ACEOF
69773 rm -f conftest.$ac_objext conftest$ac_exeext
69774 if { (ac_try="$ac_link"
69775 case "(($ac_try" in
69776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69777   *) ac_try_echo=$ac_try;;
69778 esac
69779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69780 $as_echo "$ac_try_echo") >&5
69781   (eval "$ac_link") 2>conftest.er1
69782   ac_status=$?
69783   grep -v '^ *+' conftest.er1 >conftest.err
69784   rm -f conftest.er1
69785   cat conftest.err >&5
69786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69787   (exit $ac_status); } && {
69788          test -z "$ac_c_werror_flag" ||
69789          test ! -s conftest.err
69790        } && test -s conftest$ac_exeext && {
69791          test "$cross_compiling" = yes ||
69792          $as_test_x conftest$ac_exeext
69793        }; then
69794   eval "$as_ac_var=yes"
69795 else
69796   $as_echo "$as_me: failed program was:" >&5
69797 sed 's/^/| /' conftest.$ac_ext >&5
69798
69799         eval "$as_ac_var=no"
69800 fi
69801
69802 rm -rf conftest.dSYM
69803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69804       conftest$ac_exeext conftest.$ac_ext
69805 fi
69806 ac_res=`eval 'as_val=${'$as_ac_var'}
69807                  $as_echo "$as_val"'`
69808                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
69809 $as_echo "$ac_res" >&6; }
69810 as_val=`eval 'as_val=${'$as_ac_var'}
69811                  $as_echo "$as_val"'`
69812    if test "x$as_val" = x""yes; then
69813   cat >>confdefs.h <<_ACEOF
69814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
69815 _ACEOF
69816  ice_have_vsnprintf=yes
69817 fi
69818 done
69819
69820 if test "${ice_have_vsnprintf}" = yes; then
69821 { $as_echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
69822 $as_echo_n "checking for vsnprintf declaration in stdio.h... " >&6; }
69823 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
69824   $as_echo_n "(cached) " >&6
69825 else
69826
69827 ice_cv_have_vsnprintf_decl=no
69828 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
69829 ice_re_word='(^|[^a-zA-Z0-9_])'
69830 for header in stdio.h; do
69831 # Check for ordinary declaration
69832 cat >conftest.$ac_ext <<_ACEOF
69833 /* confdefs.h.  */
69834 _ACEOF
69835 cat confdefs.h >>conftest.$ac_ext
69836 cat >>conftest.$ac_ext <<_ACEOF
69837 /* end confdefs.h.  */
69838 #include <$header>
69839
69840 _ACEOF
69841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69842   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
69843   ice_cv_have_vsnprintf_decl=yes
69844 fi
69845 rm -f conftest*
69846
69847 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69848         break
69849 fi
69850 # Check for "fixed" declaration like "getpid _PARAMS((int))"
69851 cat >conftest.$ac_ext <<_ACEOF
69852 /* confdefs.h.  */
69853 _ACEOF
69854 cat confdefs.h >>conftest.$ac_ext
69855 cat >>conftest.$ac_ext <<_ACEOF
69856 /* end confdefs.h.  */
69857 #include <$header>
69858
69859 _ACEOF
69860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
69861   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
69862   ice_cv_have_vsnprintf_decl=yes
69863 fi
69864 rm -f conftest*
69865
69866 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69867         break
69868 fi
69869 done
69870
69871 fi
69872
69873 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
69874 $as_echo "$ice_cv_have_vsnprintf_decl" >&6; }
69875 if test "$ice_cv_have_vsnprintf_decl" = yes; then
69876
69877 cat >>confdefs.h <<_ACEOF
69878 #define HAVE_VSNPRINTF_DECL 1
69879 _ACEOF
69880
69881 fi
69882 fi
69883
69884
69885     { $as_echo "$as_me:$LINENO: checking for setpgid" >&5
69886 $as_echo_n "checking for setpgid... " >&6; }
69887 if test "${ac_cv_func_setpgid+set}" = set; then
69888   $as_echo_n "(cached) " >&6
69889 else
69890   cat >conftest.$ac_ext <<_ACEOF
69891 /* confdefs.h.  */
69892 _ACEOF
69893 cat confdefs.h >>conftest.$ac_ext
69894 cat >>conftest.$ac_ext <<_ACEOF
69895 /* end confdefs.h.  */
69896 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
69897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69898 #define setpgid innocuous_setpgid
69899
69900 /* System header to define __stub macros and hopefully few prototypes,
69901     which can conflict with char setpgid (); below.
69902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69903     <limits.h> exists even on freestanding compilers.  */
69904
69905 #ifdef __STDC__
69906 # include <limits.h>
69907 #else
69908 # include <assert.h>
69909 #endif
69910
69911 #undef setpgid
69912
69913 /* Override any GCC internal prototype to avoid an error.
69914    Use char because int might match the return type of a GCC
69915    builtin and then its argument prototype would still apply.  */
69916 #ifdef __cplusplus
69917 extern "C"
69918 #endif
69919 char setpgid ();
69920 /* The GNU C library defines this for functions which it implements
69921     to always fail with ENOSYS.  Some functions are actually named
69922     something starting with __ and the normal name is an alias.  */
69923 #if defined __stub_setpgid || defined __stub___setpgid
69924 choke me
69925 #endif
69926
69927 int
69928 main ()
69929 {
69930 return setpgid ();
69931   ;
69932   return 0;
69933 }
69934 _ACEOF
69935 rm -f conftest.$ac_objext conftest$ac_exeext
69936 if { (ac_try="$ac_link"
69937 case "(($ac_try" in
69938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
69939   *) ac_try_echo=$ac_try;;
69940 esac
69941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
69942 $as_echo "$ac_try_echo") >&5
69943   (eval "$ac_link") 2>conftest.er1
69944   ac_status=$?
69945   grep -v '^ *+' conftest.er1 >conftest.err
69946   rm -f conftest.er1
69947   cat conftest.err >&5
69948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
69949   (exit $ac_status); } && {
69950          test -z "$ac_c_werror_flag" ||
69951          test ! -s conftest.err
69952        } && test -s conftest$ac_exeext && {
69953          test "$cross_compiling" = yes ||
69954          $as_test_x conftest$ac_exeext
69955        }; then
69956   ac_cv_func_setpgid=yes
69957 else
69958   $as_echo "$as_me: failed program was:" >&5
69959 sed 's/^/| /' conftest.$ac_ext >&5
69960
69961         ac_cv_func_setpgid=no
69962 fi
69963
69964 rm -rf conftest.dSYM
69965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
69966       conftest$ac_exeext conftest.$ac_ext
69967 fi
69968 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
69969 $as_echo "$ac_cv_func_setpgid" >&6; }
69970 if test "x$ac_cv_func_setpgid" = x""yes; then
69971
69972
69973 cat >>confdefs.h <<\_ACEOF
69974 #define HAVE_SETPGID 1
69975 _ACEOF
69976
69977
69978 ice_have_setpgid=no
69979
69980 for ac_func in setpgid
69981 do
69982 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
69983 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
69984 $as_echo_n "checking for $ac_func... " >&6; }
69985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
69986   $as_echo_n "(cached) " >&6
69987 else
69988   cat >conftest.$ac_ext <<_ACEOF
69989 /* confdefs.h.  */
69990 _ACEOF
69991 cat confdefs.h >>conftest.$ac_ext
69992 cat >>conftest.$ac_ext <<_ACEOF
69993 /* end confdefs.h.  */
69994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69996 #define $ac_func innocuous_$ac_func
69997
69998 /* System header to define __stub macros and hopefully few prototypes,
69999     which can conflict with char $ac_func (); below.
70000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70001     <limits.h> exists even on freestanding compilers.  */
70002
70003 #ifdef __STDC__
70004 # include <limits.h>
70005 #else
70006 # include <assert.h>
70007 #endif
70008
70009 #undef $ac_func
70010
70011 /* Override any GCC internal prototype to avoid an error.
70012    Use char because int might match the return type of a GCC
70013    builtin and then its argument prototype would still apply.  */
70014 #ifdef __cplusplus
70015 extern "C"
70016 #endif
70017 char $ac_func ();
70018 /* The GNU C library defines this for functions which it implements
70019     to always fail with ENOSYS.  Some functions are actually named
70020     something starting with __ and the normal name is an alias.  */
70021 #if defined __stub_$ac_func || defined __stub___$ac_func
70022 choke me
70023 #endif
70024
70025 int
70026 main ()
70027 {
70028 return $ac_func ();
70029   ;
70030   return 0;
70031 }
70032 _ACEOF
70033 rm -f conftest.$ac_objext conftest$ac_exeext
70034 if { (ac_try="$ac_link"
70035 case "(($ac_try" in
70036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70037   *) ac_try_echo=$ac_try;;
70038 esac
70039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70040 $as_echo "$ac_try_echo") >&5
70041   (eval "$ac_link") 2>conftest.er1
70042   ac_status=$?
70043   grep -v '^ *+' conftest.er1 >conftest.err
70044   rm -f conftest.er1
70045   cat conftest.err >&5
70046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70047   (exit $ac_status); } && {
70048          test -z "$ac_c_werror_flag" ||
70049          test ! -s conftest.err
70050        } && test -s conftest$ac_exeext && {
70051          test "$cross_compiling" = yes ||
70052          $as_test_x conftest$ac_exeext
70053        }; then
70054   eval "$as_ac_var=yes"
70055 else
70056   $as_echo "$as_me: failed program was:" >&5
70057 sed 's/^/| /' conftest.$ac_ext >&5
70058
70059         eval "$as_ac_var=no"
70060 fi
70061
70062 rm -rf conftest.dSYM
70063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70064       conftest$ac_exeext conftest.$ac_ext
70065 fi
70066 ac_res=`eval 'as_val=${'$as_ac_var'}
70067                  $as_echo "$as_val"'`
70068                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70069 $as_echo "$ac_res" >&6; }
70070 as_val=`eval 'as_val=${'$as_ac_var'}
70071                  $as_echo "$as_val"'`
70072    if test "x$as_val" = x""yes; then
70073   cat >>confdefs.h <<_ACEOF
70074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70075 _ACEOF
70076  ice_have_setpgid=yes
70077 fi
70078 done
70079
70080 if test "${ice_have_setpgid}" = yes; then
70081 { $as_echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
70082 $as_echo_n "checking for setpgid declaration in sys/types.h unistd.h... " >&6; }
70083 if test "${ice_cv_have_setpgid_decl+set}" = set; then
70084   $as_echo_n "(cached) " >&6
70085 else
70086
70087 ice_cv_have_setpgid_decl=no
70088 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70089 ice_re_word='(^|[^a-zA-Z0-9_])'
70090 for header in sys/types.h unistd.h; do
70091 # Check for ordinary declaration
70092 cat >conftest.$ac_ext <<_ACEOF
70093 /* confdefs.h.  */
70094 _ACEOF
70095 cat confdefs.h >>conftest.$ac_ext
70096 cat >>conftest.$ac_ext <<_ACEOF
70097 /* end confdefs.h.  */
70098 #include <$header>
70099
70100 _ACEOF
70101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70102   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
70103   ice_cv_have_setpgid_decl=yes
70104 fi
70105 rm -f conftest*
70106
70107 if test "$ice_cv_have_setpgid_decl" = yes; then
70108         break
70109 fi
70110 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70111 cat >conftest.$ac_ext <<_ACEOF
70112 /* confdefs.h.  */
70113 _ACEOF
70114 cat confdefs.h >>conftest.$ac_ext
70115 cat >>conftest.$ac_ext <<_ACEOF
70116 /* end confdefs.h.  */
70117 #include <$header>
70118
70119 _ACEOF
70120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70121   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70122   ice_cv_have_setpgid_decl=yes
70123 fi
70124 rm -f conftest*
70125
70126 if test "$ice_cv_have_setpgid_decl" = yes; then
70127         break
70128 fi
70129 done
70130
70131 fi
70132
70133 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
70134 $as_echo "$ice_cv_have_setpgid_decl" >&6; }
70135 if test "$ice_cv_have_setpgid_decl" = yes; then
70136
70137 cat >>confdefs.h <<_ACEOF
70138 #define HAVE_SETPGID_DECL 1
70139 _ACEOF
70140
70141 fi
70142 fi
70143
70144
70145 fi
70146
70147
70148 { $as_echo "$as_me:$LINENO: checking for setpgrp" >&5
70149 $as_echo_n "checking for setpgrp... " >&6; }
70150 if test "${ac_cv_func_setpgrp+set}" = set; then
70151   $as_echo_n "(cached) " >&6
70152 else
70153   cat >conftest.$ac_ext <<_ACEOF
70154 /* confdefs.h.  */
70155 _ACEOF
70156 cat confdefs.h >>conftest.$ac_ext
70157 cat >>conftest.$ac_ext <<_ACEOF
70158 /* end confdefs.h.  */
70159 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
70160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70161 #define setpgrp innocuous_setpgrp
70162
70163 /* System header to define __stub macros and hopefully few prototypes,
70164     which can conflict with char setpgrp (); below.
70165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70166     <limits.h> exists even on freestanding compilers.  */
70167
70168 #ifdef __STDC__
70169 # include <limits.h>
70170 #else
70171 # include <assert.h>
70172 #endif
70173
70174 #undef setpgrp
70175
70176 /* Override any GCC internal prototype to avoid an error.
70177    Use char because int might match the return type of a GCC
70178    builtin and then its argument prototype would still apply.  */
70179 #ifdef __cplusplus
70180 extern "C"
70181 #endif
70182 char setpgrp ();
70183 /* The GNU C library defines this for functions which it implements
70184     to always fail with ENOSYS.  Some functions are actually named
70185     something starting with __ and the normal name is an alias.  */
70186 #if defined __stub_setpgrp || defined __stub___setpgrp
70187 choke me
70188 #endif
70189
70190 int
70191 main ()
70192 {
70193 return setpgrp ();
70194   ;
70195   return 0;
70196 }
70197 _ACEOF
70198 rm -f conftest.$ac_objext conftest$ac_exeext
70199 if { (ac_try="$ac_link"
70200 case "(($ac_try" in
70201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70202   *) ac_try_echo=$ac_try;;
70203 esac
70204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70205 $as_echo "$ac_try_echo") >&5
70206   (eval "$ac_link") 2>conftest.er1
70207   ac_status=$?
70208   grep -v '^ *+' conftest.er1 >conftest.err
70209   rm -f conftest.er1
70210   cat conftest.err >&5
70211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70212   (exit $ac_status); } && {
70213          test -z "$ac_c_werror_flag" ||
70214          test ! -s conftest.err
70215        } && test -s conftest$ac_exeext && {
70216          test "$cross_compiling" = yes ||
70217          $as_test_x conftest$ac_exeext
70218        }; then
70219   ac_cv_func_setpgrp=yes
70220 else
70221   $as_echo "$as_me: failed program was:" >&5
70222 sed 's/^/| /' conftest.$ac_ext >&5
70223
70224         ac_cv_func_setpgrp=no
70225 fi
70226
70227 rm -rf conftest.dSYM
70228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70229       conftest$ac_exeext conftest.$ac_ext
70230 fi
70231 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
70232 $as_echo "$ac_cv_func_setpgrp" >&6; }
70233 if test "x$ac_cv_func_setpgrp" = x""yes; then
70234   { $as_echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
70235 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
70236 if test "${ac_cv_func_setpgrp_void+set}" = set; then
70237   $as_echo_n "(cached) " >&6
70238 else
70239   if test "$cross_compiling" = yes; then
70240   { { $as_echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
70241 $as_echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
70242    { (exit 1); exit 1; }; }
70243 else
70244   cat >conftest.$ac_ext <<_ACEOF
70245 /* confdefs.h.  */
70246 _ACEOF
70247 cat confdefs.h >>conftest.$ac_ext
70248 cat >>conftest.$ac_ext <<_ACEOF
70249 /* end confdefs.h.  */
70250 $ac_includes_default
70251 int
70252 main ()
70253 {
70254 /* If this system has a BSD-style setpgrp which takes arguments,
70255   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
70256   exit successfully. */
70257   return setpgrp (1,1) != -1;
70258   ;
70259   return 0;
70260 }
70261 _ACEOF
70262 rm -f conftest$ac_exeext
70263 if { (ac_try="$ac_link"
70264 case "(($ac_try" in
70265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70266   *) ac_try_echo=$ac_try;;
70267 esac
70268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70269 $as_echo "$ac_try_echo") >&5
70270   (eval "$ac_link") 2>&5
70271   ac_status=$?
70272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
70274   { (case "(($ac_try" in
70275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70276   *) ac_try_echo=$ac_try;;
70277 esac
70278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70279 $as_echo "$ac_try_echo") >&5
70280   (eval "$ac_try") 2>&5
70281   ac_status=$?
70282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70283   (exit $ac_status); }; }; then
70284   ac_cv_func_setpgrp_void=no
70285 else
70286   $as_echo "$as_me: program exited with status $ac_status" >&5
70287 $as_echo "$as_me: failed program was:" >&5
70288 sed 's/^/| /' conftest.$ac_ext >&5
70289
70290 ( exit $ac_status )
70291 ac_cv_func_setpgrp_void=yes
70292 fi
70293 rm -rf conftest.dSYM
70294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
70295 fi
70296
70297
70298 fi
70299 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
70300 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
70301 if test $ac_cv_func_setpgrp_void = yes; then
70302
70303 cat >>confdefs.h <<\_ACEOF
70304 #define SETPGRP_VOID 1
70305 _ACEOF
70306
70307 fi
70308
70309 fi
70310
70311
70312 ice_have_setpgrp=no
70313
70314 for ac_func in setpgrp
70315 do
70316 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70317 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70318 $as_echo_n "checking for $ac_func... " >&6; }
70319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70320   $as_echo_n "(cached) " >&6
70321 else
70322   cat >conftest.$ac_ext <<_ACEOF
70323 /* confdefs.h.  */
70324 _ACEOF
70325 cat confdefs.h >>conftest.$ac_ext
70326 cat >>conftest.$ac_ext <<_ACEOF
70327 /* end confdefs.h.  */
70328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70330 #define $ac_func innocuous_$ac_func
70331
70332 /* System header to define __stub macros and hopefully few prototypes,
70333     which can conflict with char $ac_func (); below.
70334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70335     <limits.h> exists even on freestanding compilers.  */
70336
70337 #ifdef __STDC__
70338 # include <limits.h>
70339 #else
70340 # include <assert.h>
70341 #endif
70342
70343 #undef $ac_func
70344
70345 /* Override any GCC internal prototype to avoid an error.
70346    Use char because int might match the return type of a GCC
70347    builtin and then its argument prototype would still apply.  */
70348 #ifdef __cplusplus
70349 extern "C"
70350 #endif
70351 char $ac_func ();
70352 /* The GNU C library defines this for functions which it implements
70353     to always fail with ENOSYS.  Some functions are actually named
70354     something starting with __ and the normal name is an alias.  */
70355 #if defined __stub_$ac_func || defined __stub___$ac_func
70356 choke me
70357 #endif
70358
70359 int
70360 main ()
70361 {
70362 return $ac_func ();
70363   ;
70364   return 0;
70365 }
70366 _ACEOF
70367 rm -f conftest.$ac_objext conftest$ac_exeext
70368 if { (ac_try="$ac_link"
70369 case "(($ac_try" in
70370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70371   *) ac_try_echo=$ac_try;;
70372 esac
70373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70374 $as_echo "$ac_try_echo") >&5
70375   (eval "$ac_link") 2>conftest.er1
70376   ac_status=$?
70377   grep -v '^ *+' conftest.er1 >conftest.err
70378   rm -f conftest.er1
70379   cat conftest.err >&5
70380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70381   (exit $ac_status); } && {
70382          test -z "$ac_c_werror_flag" ||
70383          test ! -s conftest.err
70384        } && test -s conftest$ac_exeext && {
70385          test "$cross_compiling" = yes ||
70386          $as_test_x conftest$ac_exeext
70387        }; then
70388   eval "$as_ac_var=yes"
70389 else
70390   $as_echo "$as_me: failed program was:" >&5
70391 sed 's/^/| /' conftest.$ac_ext >&5
70392
70393         eval "$as_ac_var=no"
70394 fi
70395
70396 rm -rf conftest.dSYM
70397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70398       conftest$ac_exeext conftest.$ac_ext
70399 fi
70400 ac_res=`eval 'as_val=${'$as_ac_var'}
70401                  $as_echo "$as_val"'`
70402                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70403 $as_echo "$ac_res" >&6; }
70404 as_val=`eval 'as_val=${'$as_ac_var'}
70405                  $as_echo "$as_val"'`
70406    if test "x$as_val" = x""yes; then
70407   cat >>confdefs.h <<_ACEOF
70408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70409 _ACEOF
70410  ice_have_setpgrp=yes
70411 fi
70412 done
70413
70414 if test "${ice_have_setpgrp}" = yes; then
70415 { $as_echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
70416 $as_echo_n "checking for setpgrp declaration in sys/types.h unistd.h libc.h... " >&6; }
70417 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
70418   $as_echo_n "(cached) " >&6
70419 else
70420
70421 ice_cv_have_setpgrp_decl=no
70422 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70423 ice_re_word='(^|[^a-zA-Z0-9_])'
70424 for header in sys/types.h unistd.h libc.h; do
70425 # Check for ordinary declaration
70426 cat >conftest.$ac_ext <<_ACEOF
70427 /* confdefs.h.  */
70428 _ACEOF
70429 cat confdefs.h >>conftest.$ac_ext
70430 cat >>conftest.$ac_ext <<_ACEOF
70431 /* end confdefs.h.  */
70432 #include <$header>
70433
70434 _ACEOF
70435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70436   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
70437   ice_cv_have_setpgrp_decl=yes
70438 fi
70439 rm -f conftest*
70440
70441 if test "$ice_cv_have_setpgrp_decl" = yes; then
70442         break
70443 fi
70444 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70445 cat >conftest.$ac_ext <<_ACEOF
70446 /* confdefs.h.  */
70447 _ACEOF
70448 cat confdefs.h >>conftest.$ac_ext
70449 cat >>conftest.$ac_ext <<_ACEOF
70450 /* end confdefs.h.  */
70451 #include <$header>
70452
70453 _ACEOF
70454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70455   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70456   ice_cv_have_setpgrp_decl=yes
70457 fi
70458 rm -f conftest*
70459
70460 if test "$ice_cv_have_setpgrp_decl" = yes; then
70461         break
70462 fi
70463 done
70464
70465 fi
70466
70467 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
70468 $as_echo "$ice_cv_have_setpgrp_decl" >&6; }
70469 if test "$ice_cv_have_setpgrp_decl" = yes; then
70470
70471 cat >>confdefs.h <<_ACEOF
70472 #define HAVE_SETPGRP_DECL 1
70473 _ACEOF
70474
70475 fi
70476 fi
70477
70478
70479 ice_have_setsockopt=no
70480
70481 for ac_func in setsockopt
70482 do
70483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70484 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70485 $as_echo_n "checking for $ac_func... " >&6; }
70486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70487   $as_echo_n "(cached) " >&6
70488 else
70489   cat >conftest.$ac_ext <<_ACEOF
70490 /* confdefs.h.  */
70491 _ACEOF
70492 cat confdefs.h >>conftest.$ac_ext
70493 cat >>conftest.$ac_ext <<_ACEOF
70494 /* end confdefs.h.  */
70495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70497 #define $ac_func innocuous_$ac_func
70498
70499 /* System header to define __stub macros and hopefully few prototypes,
70500     which can conflict with char $ac_func (); below.
70501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70502     <limits.h> exists even on freestanding compilers.  */
70503
70504 #ifdef __STDC__
70505 # include <limits.h>
70506 #else
70507 # include <assert.h>
70508 #endif
70509
70510 #undef $ac_func
70511
70512 /* Override any GCC internal prototype to avoid an error.
70513    Use char because int might match the return type of a GCC
70514    builtin and then its argument prototype would still apply.  */
70515 #ifdef __cplusplus
70516 extern "C"
70517 #endif
70518 char $ac_func ();
70519 /* The GNU C library defines this for functions which it implements
70520     to always fail with ENOSYS.  Some functions are actually named
70521     something starting with __ and the normal name is an alias.  */
70522 #if defined __stub_$ac_func || defined __stub___$ac_func
70523 choke me
70524 #endif
70525
70526 int
70527 main ()
70528 {
70529 return $ac_func ();
70530   ;
70531   return 0;
70532 }
70533 _ACEOF
70534 rm -f conftest.$ac_objext conftest$ac_exeext
70535 if { (ac_try="$ac_link"
70536 case "(($ac_try" in
70537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70538   *) ac_try_echo=$ac_try;;
70539 esac
70540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70541 $as_echo "$ac_try_echo") >&5
70542   (eval "$ac_link") 2>conftest.er1
70543   ac_status=$?
70544   grep -v '^ *+' conftest.er1 >conftest.err
70545   rm -f conftest.er1
70546   cat conftest.err >&5
70547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70548   (exit $ac_status); } && {
70549          test -z "$ac_c_werror_flag" ||
70550          test ! -s conftest.err
70551        } && test -s conftest$ac_exeext && {
70552          test "$cross_compiling" = yes ||
70553          $as_test_x conftest$ac_exeext
70554        }; then
70555   eval "$as_ac_var=yes"
70556 else
70557   $as_echo "$as_me: failed program was:" >&5
70558 sed 's/^/| /' conftest.$ac_ext >&5
70559
70560         eval "$as_ac_var=no"
70561 fi
70562
70563 rm -rf conftest.dSYM
70564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70565       conftest$ac_exeext conftest.$ac_ext
70566 fi
70567 ac_res=`eval 'as_val=${'$as_ac_var'}
70568                  $as_echo "$as_val"'`
70569                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70570 $as_echo "$ac_res" >&6; }
70571 as_val=`eval 'as_val=${'$as_ac_var'}
70572                  $as_echo "$as_val"'`
70573    if test "x$as_val" = x""yes; then
70574   cat >>confdefs.h <<_ACEOF
70575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70576 _ACEOF
70577  ice_have_setsockopt=yes
70578 fi
70579 done
70580
70581 if test "${ice_have_setsockopt}" = yes; then
70582 { $as_echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
70583 $as_echo_n "checking for setsockopt declaration in sys/types.h sys/socket.h... " >&6; }
70584 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
70585   $as_echo_n "(cached) " >&6
70586 else
70587
70588 ice_cv_have_setsockopt_decl=no
70589 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70590 ice_re_word='(^|[^a-zA-Z0-9_])'
70591 for header in sys/types.h sys/socket.h; do
70592 # Check for ordinary declaration
70593 cat >conftest.$ac_ext <<_ACEOF
70594 /* confdefs.h.  */
70595 _ACEOF
70596 cat confdefs.h >>conftest.$ac_ext
70597 cat >>conftest.$ac_ext <<_ACEOF
70598 /* end confdefs.h.  */
70599 #include <$header>
70600
70601 _ACEOF
70602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70603   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
70604   ice_cv_have_setsockopt_decl=yes
70605 fi
70606 rm -f conftest*
70607
70608 if test "$ice_cv_have_setsockopt_decl" = yes; then
70609         break
70610 fi
70611 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70612 cat >conftest.$ac_ext <<_ACEOF
70613 /* confdefs.h.  */
70614 _ACEOF
70615 cat confdefs.h >>conftest.$ac_ext
70616 cat >>conftest.$ac_ext <<_ACEOF
70617 /* end confdefs.h.  */
70618 #include <$header>
70619
70620 _ACEOF
70621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70622   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70623   ice_cv_have_setsockopt_decl=yes
70624 fi
70625 rm -f conftest*
70626
70627 if test "$ice_cv_have_setsockopt_decl" = yes; then
70628         break
70629 fi
70630 done
70631
70632 fi
70633
70634 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
70635 $as_echo "$ice_cv_have_setsockopt_decl" >&6; }
70636 if test "$ice_cv_have_setsockopt_decl" = yes; then
70637
70638 cat >>confdefs.h <<_ACEOF
70639 #define HAVE_SETSOCKOPT_DECL 1
70640 _ACEOF
70641
70642 fi
70643 fi
70644
70645
70646
70647
70648 for ac_func in sigaction sigemptyset sigvec
70649 do
70650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70652 $as_echo_n "checking for $ac_func... " >&6; }
70653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70654   $as_echo_n "(cached) " >&6
70655 else
70656   cat >conftest.$ac_ext <<_ACEOF
70657 /* confdefs.h.  */
70658 _ACEOF
70659 cat confdefs.h >>conftest.$ac_ext
70660 cat >>conftest.$ac_ext <<_ACEOF
70661 /* end confdefs.h.  */
70662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70664 #define $ac_func innocuous_$ac_func
70665
70666 /* System header to define __stub macros and hopefully few prototypes,
70667     which can conflict with char $ac_func (); below.
70668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70669     <limits.h> exists even on freestanding compilers.  */
70670
70671 #ifdef __STDC__
70672 # include <limits.h>
70673 #else
70674 # include <assert.h>
70675 #endif
70676
70677 #undef $ac_func
70678
70679 /* Override any GCC internal prototype to avoid an error.
70680    Use char because int might match the return type of a GCC
70681    builtin and then its argument prototype would still apply.  */
70682 #ifdef __cplusplus
70683 extern "C"
70684 #endif
70685 char $ac_func ();
70686 /* The GNU C library defines this for functions which it implements
70687     to always fail with ENOSYS.  Some functions are actually named
70688     something starting with __ and the normal name is an alias.  */
70689 #if defined __stub_$ac_func || defined __stub___$ac_func
70690 choke me
70691 #endif
70692
70693 int
70694 main ()
70695 {
70696 return $ac_func ();
70697   ;
70698   return 0;
70699 }
70700 _ACEOF
70701 rm -f conftest.$ac_objext conftest$ac_exeext
70702 if { (ac_try="$ac_link"
70703 case "(($ac_try" in
70704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70705   *) ac_try_echo=$ac_try;;
70706 esac
70707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70708 $as_echo "$ac_try_echo") >&5
70709   (eval "$ac_link") 2>conftest.er1
70710   ac_status=$?
70711   grep -v '^ *+' conftest.er1 >conftest.err
70712   rm -f conftest.er1
70713   cat conftest.err >&5
70714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70715   (exit $ac_status); } && {
70716          test -z "$ac_c_werror_flag" ||
70717          test ! -s conftest.err
70718        } && test -s conftest$ac_exeext && {
70719          test "$cross_compiling" = yes ||
70720          $as_test_x conftest$ac_exeext
70721        }; then
70722   eval "$as_ac_var=yes"
70723 else
70724   $as_echo "$as_me: failed program was:" >&5
70725 sed 's/^/| /' conftest.$ac_ext >&5
70726
70727         eval "$as_ac_var=no"
70728 fi
70729
70730 rm -rf conftest.dSYM
70731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70732       conftest$ac_exeext conftest.$ac_ext
70733 fi
70734 ac_res=`eval 'as_val=${'$as_ac_var'}
70735                  $as_echo "$as_val"'`
70736                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70737 $as_echo "$ac_res" >&6; }
70738 as_val=`eval 'as_val=${'$as_ac_var'}
70739                  $as_echo "$as_val"'`
70740    if test "x$as_val" = x""yes; then
70741   cat >>confdefs.h <<_ACEOF
70742 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70743 _ACEOF
70744
70745 fi
70746 done
70747
70748
70749 ice_have_socket=no
70750
70751 for ac_func in socket
70752 do
70753 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70754 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70755 $as_echo_n "checking for $ac_func... " >&6; }
70756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70757   $as_echo_n "(cached) " >&6
70758 else
70759   cat >conftest.$ac_ext <<_ACEOF
70760 /* confdefs.h.  */
70761 _ACEOF
70762 cat confdefs.h >>conftest.$ac_ext
70763 cat >>conftest.$ac_ext <<_ACEOF
70764 /* end confdefs.h.  */
70765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70767 #define $ac_func innocuous_$ac_func
70768
70769 /* System header to define __stub macros and hopefully few prototypes,
70770     which can conflict with char $ac_func (); below.
70771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70772     <limits.h> exists even on freestanding compilers.  */
70773
70774 #ifdef __STDC__
70775 # include <limits.h>
70776 #else
70777 # include <assert.h>
70778 #endif
70779
70780 #undef $ac_func
70781
70782 /* Override any GCC internal prototype to avoid an error.
70783    Use char because int might match the return type of a GCC
70784    builtin and then its argument prototype would still apply.  */
70785 #ifdef __cplusplus
70786 extern "C"
70787 #endif
70788 char $ac_func ();
70789 /* The GNU C library defines this for functions which it implements
70790     to always fail with ENOSYS.  Some functions are actually named
70791     something starting with __ and the normal name is an alias.  */
70792 #if defined __stub_$ac_func || defined __stub___$ac_func
70793 choke me
70794 #endif
70795
70796 int
70797 main ()
70798 {
70799 return $ac_func ();
70800   ;
70801   return 0;
70802 }
70803 _ACEOF
70804 rm -f conftest.$ac_objext conftest$ac_exeext
70805 if { (ac_try="$ac_link"
70806 case "(($ac_try" in
70807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70808   *) ac_try_echo=$ac_try;;
70809 esac
70810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70811 $as_echo "$ac_try_echo") >&5
70812   (eval "$ac_link") 2>conftest.er1
70813   ac_status=$?
70814   grep -v '^ *+' conftest.er1 >conftest.err
70815   rm -f conftest.er1
70816   cat conftest.err >&5
70817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70818   (exit $ac_status); } && {
70819          test -z "$ac_c_werror_flag" ||
70820          test ! -s conftest.err
70821        } && test -s conftest$ac_exeext && {
70822          test "$cross_compiling" = yes ||
70823          $as_test_x conftest$ac_exeext
70824        }; then
70825   eval "$as_ac_var=yes"
70826 else
70827   $as_echo "$as_me: failed program was:" >&5
70828 sed 's/^/| /' conftest.$ac_ext >&5
70829
70830         eval "$as_ac_var=no"
70831 fi
70832
70833 rm -rf conftest.dSYM
70834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70835       conftest$ac_exeext conftest.$ac_ext
70836 fi
70837 ac_res=`eval 'as_val=${'$as_ac_var'}
70838                  $as_echo "$as_val"'`
70839                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
70840 $as_echo "$ac_res" >&6; }
70841 as_val=`eval 'as_val=${'$as_ac_var'}
70842                  $as_echo "$as_val"'`
70843    if test "x$as_val" = x""yes; then
70844   cat >>confdefs.h <<_ACEOF
70845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
70846 _ACEOF
70847  ice_have_socket=yes
70848 fi
70849 done
70850
70851 if test "${ice_have_socket}" = yes; then
70852 { $as_echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
70853 $as_echo_n "checking for socket declaration in sys/types.h sys/socket.h... " >&6; }
70854 if test "${ice_cv_have_socket_decl+set}" = set; then
70855   $as_echo_n "(cached) " >&6
70856 else
70857
70858 ice_cv_have_socket_decl=no
70859 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
70860 ice_re_word='(^|[^a-zA-Z0-9_])'
70861 for header in sys/types.h sys/socket.h; do
70862 # Check for ordinary declaration
70863 cat >conftest.$ac_ext <<_ACEOF
70864 /* confdefs.h.  */
70865 _ACEOF
70866 cat confdefs.h >>conftest.$ac_ext
70867 cat >>conftest.$ac_ext <<_ACEOF
70868 /* end confdefs.h.  */
70869 #include <$header>
70870
70871 _ACEOF
70872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70873   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
70874   ice_cv_have_socket_decl=yes
70875 fi
70876 rm -f conftest*
70877
70878 if test "$ice_cv_have_socket_decl" = yes; then
70879         break
70880 fi
70881 # Check for "fixed" declaration like "getpid _PARAMS((int))"
70882 cat >conftest.$ac_ext <<_ACEOF
70883 /* confdefs.h.  */
70884 _ACEOF
70885 cat confdefs.h >>conftest.$ac_ext
70886 cat >>conftest.$ac_ext <<_ACEOF
70887 /* end confdefs.h.  */
70888 #include <$header>
70889
70890 _ACEOF
70891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
70892   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
70893   ice_cv_have_socket_decl=yes
70894 fi
70895 rm -f conftest*
70896
70897 if test "$ice_cv_have_socket_decl" = yes; then
70898         break
70899 fi
70900 done
70901
70902 fi
70903
70904 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
70905 $as_echo "$ice_cv_have_socket_decl" >&6; }
70906 if test "$ice_cv_have_socket_decl" = yes; then
70907
70908 cat >>confdefs.h <<_ACEOF
70909 #define HAVE_SOCKET_DECL 1
70910 _ACEOF
70911
70912 fi
70913 fi
70914
70915
70916 ice_have_socketpair=no
70917
70918 for ac_func in socketpair
70919 do
70920 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
70921 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
70922 $as_echo_n "checking for $ac_func... " >&6; }
70923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
70924   $as_echo_n "(cached) " >&6
70925 else
70926   cat >conftest.$ac_ext <<_ACEOF
70927 /* confdefs.h.  */
70928 _ACEOF
70929 cat confdefs.h >>conftest.$ac_ext
70930 cat >>conftest.$ac_ext <<_ACEOF
70931 /* end confdefs.h.  */
70932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70934 #define $ac_func innocuous_$ac_func
70935
70936 /* System header to define __stub macros and hopefully few prototypes,
70937     which can conflict with char $ac_func (); below.
70938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70939     <limits.h> exists even on freestanding compilers.  */
70940
70941 #ifdef __STDC__
70942 # include <limits.h>
70943 #else
70944 # include <assert.h>
70945 #endif
70946
70947 #undef $ac_func
70948
70949 /* Override any GCC internal prototype to avoid an error.
70950    Use char because int might match the return type of a GCC
70951    builtin and then its argument prototype would still apply.  */
70952 #ifdef __cplusplus
70953 extern "C"
70954 #endif
70955 char $ac_func ();
70956 /* The GNU C library defines this for functions which it implements
70957     to always fail with ENOSYS.  Some functions are actually named
70958     something starting with __ and the normal name is an alias.  */
70959 #if defined __stub_$ac_func || defined __stub___$ac_func
70960 choke me
70961 #endif
70962
70963 int
70964 main ()
70965 {
70966 return $ac_func ();
70967   ;
70968   return 0;
70969 }
70970 _ACEOF
70971 rm -f conftest.$ac_objext conftest$ac_exeext
70972 if { (ac_try="$ac_link"
70973 case "(($ac_try" in
70974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
70975   *) ac_try_echo=$ac_try;;
70976 esac
70977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
70978 $as_echo "$ac_try_echo") >&5
70979   (eval "$ac_link") 2>conftest.er1
70980   ac_status=$?
70981   grep -v '^ *+' conftest.er1 >conftest.err
70982   rm -f conftest.er1
70983   cat conftest.err >&5
70984   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
70985   (exit $ac_status); } && {
70986          test -z "$ac_c_werror_flag" ||
70987          test ! -s conftest.err
70988        } && test -s conftest$ac_exeext && {
70989          test "$cross_compiling" = yes ||
70990          $as_test_x conftest$ac_exeext
70991        }; then
70992   eval "$as_ac_var=yes"
70993 else
70994   $as_echo "$as_me: failed program was:" >&5
70995 sed 's/^/| /' conftest.$ac_ext >&5
70996
70997         eval "$as_ac_var=no"
70998 fi
70999
71000 rm -rf conftest.dSYM
71001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71002       conftest$ac_exeext conftest.$ac_ext
71003 fi
71004 ac_res=`eval 'as_val=${'$as_ac_var'}
71005                  $as_echo "$as_val"'`
71006                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71007 $as_echo "$ac_res" >&6; }
71008 as_val=`eval 'as_val=${'$as_ac_var'}
71009                  $as_echo "$as_val"'`
71010    if test "x$as_val" = x""yes; then
71011   cat >>confdefs.h <<_ACEOF
71012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71013 _ACEOF
71014  ice_have_socketpair=yes
71015 fi
71016 done
71017
71018 if test "${ice_have_socketpair}" = yes; then
71019 { $as_echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
71020 $as_echo_n "checking for socketpair declaration in sys/types.h sys/socket.h... " >&6; }
71021 if test "${ice_cv_have_socketpair_decl+set}" = set; then
71022   $as_echo_n "(cached) " >&6
71023 else
71024
71025 ice_cv_have_socketpair_decl=no
71026 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71027 ice_re_word='(^|[^a-zA-Z0-9_])'
71028 for header in sys/types.h sys/socket.h; do
71029 # Check for ordinary declaration
71030 cat >conftest.$ac_ext <<_ACEOF
71031 /* confdefs.h.  */
71032 _ACEOF
71033 cat confdefs.h >>conftest.$ac_ext
71034 cat >>conftest.$ac_ext <<_ACEOF
71035 /* end confdefs.h.  */
71036 #include <$header>
71037
71038 _ACEOF
71039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71040   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
71041   ice_cv_have_socketpair_decl=yes
71042 fi
71043 rm -f conftest*
71044
71045 if test "$ice_cv_have_socketpair_decl" = yes; then
71046         break
71047 fi
71048 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71049 cat >conftest.$ac_ext <<_ACEOF
71050 /* confdefs.h.  */
71051 _ACEOF
71052 cat confdefs.h >>conftest.$ac_ext
71053 cat >>conftest.$ac_ext <<_ACEOF
71054 /* end confdefs.h.  */
71055 #include <$header>
71056
71057 _ACEOF
71058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71059   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71060   ice_cv_have_socketpair_decl=yes
71061 fi
71062 rm -f conftest*
71063
71064 if test "$ice_cv_have_socketpair_decl" = yes; then
71065         break
71066 fi
71067 done
71068
71069 fi
71070
71071 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
71072 $as_echo "$ice_cv_have_socketpair_decl" >&6; }
71073 if test "$ice_cv_have_socketpair_decl" = yes; then
71074
71075 cat >>confdefs.h <<_ACEOF
71076 #define HAVE_SOCKETPAIR_DECL 1
71077 _ACEOF
71078
71079 fi
71080 fi
71081
71082
71083 ice_have_sscanf=no
71084
71085 for ac_func in sscanf
71086 do
71087 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71088 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71089 $as_echo_n "checking for $ac_func... " >&6; }
71090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71091   $as_echo_n "(cached) " >&6
71092 else
71093   cat >conftest.$ac_ext <<_ACEOF
71094 /* confdefs.h.  */
71095 _ACEOF
71096 cat confdefs.h >>conftest.$ac_ext
71097 cat >>conftest.$ac_ext <<_ACEOF
71098 /* end confdefs.h.  */
71099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71101 #define $ac_func innocuous_$ac_func
71102
71103 /* System header to define __stub macros and hopefully few prototypes,
71104     which can conflict with char $ac_func (); below.
71105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71106     <limits.h> exists even on freestanding compilers.  */
71107
71108 #ifdef __STDC__
71109 # include <limits.h>
71110 #else
71111 # include <assert.h>
71112 #endif
71113
71114 #undef $ac_func
71115
71116 /* Override any GCC internal prototype to avoid an error.
71117    Use char because int might match the return type of a GCC
71118    builtin and then its argument prototype would still apply.  */
71119 #ifdef __cplusplus
71120 extern "C"
71121 #endif
71122 char $ac_func ();
71123 /* The GNU C library defines this for functions which it implements
71124     to always fail with ENOSYS.  Some functions are actually named
71125     something starting with __ and the normal name is an alias.  */
71126 #if defined __stub_$ac_func || defined __stub___$ac_func
71127 choke me
71128 #endif
71129
71130 int
71131 main ()
71132 {
71133 return $ac_func ();
71134   ;
71135   return 0;
71136 }
71137 _ACEOF
71138 rm -f conftest.$ac_objext conftest$ac_exeext
71139 if { (ac_try="$ac_link"
71140 case "(($ac_try" in
71141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71142   *) ac_try_echo=$ac_try;;
71143 esac
71144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71145 $as_echo "$ac_try_echo") >&5
71146   (eval "$ac_link") 2>conftest.er1
71147   ac_status=$?
71148   grep -v '^ *+' conftest.er1 >conftest.err
71149   rm -f conftest.er1
71150   cat conftest.err >&5
71151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71152   (exit $ac_status); } && {
71153          test -z "$ac_c_werror_flag" ||
71154          test ! -s conftest.err
71155        } && test -s conftest$ac_exeext && {
71156          test "$cross_compiling" = yes ||
71157          $as_test_x conftest$ac_exeext
71158        }; then
71159   eval "$as_ac_var=yes"
71160 else
71161   $as_echo "$as_me: failed program was:" >&5
71162 sed 's/^/| /' conftest.$ac_ext >&5
71163
71164         eval "$as_ac_var=no"
71165 fi
71166
71167 rm -rf conftest.dSYM
71168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71169       conftest$ac_exeext conftest.$ac_ext
71170 fi
71171 ac_res=`eval 'as_val=${'$as_ac_var'}
71172                  $as_echo "$as_val"'`
71173                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71174 $as_echo "$ac_res" >&6; }
71175 as_val=`eval 'as_val=${'$as_ac_var'}
71176                  $as_echo "$as_val"'`
71177    if test "x$as_val" = x""yes; then
71178   cat >>confdefs.h <<_ACEOF
71179 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71180 _ACEOF
71181  ice_have_sscanf=yes
71182 fi
71183 done
71184
71185 if test "${ice_have_sscanf}" = yes; then
71186 { $as_echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
71187 $as_echo_n "checking for sscanf declaration in stdio.h... " >&6; }
71188 if test "${ice_cv_have_sscanf_decl+set}" = set; then
71189   $as_echo_n "(cached) " >&6
71190 else
71191
71192 ice_cv_have_sscanf_decl=no
71193 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71194 ice_re_word='(^|[^a-zA-Z0-9_])'
71195 for header in stdio.h; do
71196 # Check for ordinary declaration
71197 cat >conftest.$ac_ext <<_ACEOF
71198 /* confdefs.h.  */
71199 _ACEOF
71200 cat confdefs.h >>conftest.$ac_ext
71201 cat >>conftest.$ac_ext <<_ACEOF
71202 /* end confdefs.h.  */
71203 #include <$header>
71204
71205 _ACEOF
71206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71207   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
71208   ice_cv_have_sscanf_decl=yes
71209 fi
71210 rm -f conftest*
71211
71212 if test "$ice_cv_have_sscanf_decl" = yes; then
71213         break
71214 fi
71215 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71216 cat >conftest.$ac_ext <<_ACEOF
71217 /* confdefs.h.  */
71218 _ACEOF
71219 cat confdefs.h >>conftest.$ac_ext
71220 cat >>conftest.$ac_ext <<_ACEOF
71221 /* end confdefs.h.  */
71222 #include <$header>
71223
71224 _ACEOF
71225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71226   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71227   ice_cv_have_sscanf_decl=yes
71228 fi
71229 rm -f conftest*
71230
71231 if test "$ice_cv_have_sscanf_decl" = yes; then
71232         break
71233 fi
71234 done
71235
71236 fi
71237
71238 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
71239 $as_echo "$ice_cv_have_sscanf_decl" >&6; }
71240 if test "$ice_cv_have_sscanf_decl" = yes; then
71241
71242 cat >>confdefs.h <<_ACEOF
71243 #define HAVE_SSCANF_DECL 1
71244 _ACEOF
71245
71246 fi
71247 fi
71248
71249
71250 ice_have_strerror=no
71251
71252 for ac_func in strerror
71253 do
71254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71255 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71256 $as_echo_n "checking for $ac_func... " >&6; }
71257 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71258   $as_echo_n "(cached) " >&6
71259 else
71260   cat >conftest.$ac_ext <<_ACEOF
71261 /* confdefs.h.  */
71262 _ACEOF
71263 cat confdefs.h >>conftest.$ac_ext
71264 cat >>conftest.$ac_ext <<_ACEOF
71265 /* end confdefs.h.  */
71266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71268 #define $ac_func innocuous_$ac_func
71269
71270 /* System header to define __stub macros and hopefully few prototypes,
71271     which can conflict with char $ac_func (); below.
71272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71273     <limits.h> exists even on freestanding compilers.  */
71274
71275 #ifdef __STDC__
71276 # include <limits.h>
71277 #else
71278 # include <assert.h>
71279 #endif
71280
71281 #undef $ac_func
71282
71283 /* Override any GCC internal prototype to avoid an error.
71284    Use char because int might match the return type of a GCC
71285    builtin and then its argument prototype would still apply.  */
71286 #ifdef __cplusplus
71287 extern "C"
71288 #endif
71289 char $ac_func ();
71290 /* The GNU C library defines this for functions which it implements
71291     to always fail with ENOSYS.  Some functions are actually named
71292     something starting with __ and the normal name is an alias.  */
71293 #if defined __stub_$ac_func || defined __stub___$ac_func
71294 choke me
71295 #endif
71296
71297 int
71298 main ()
71299 {
71300 return $ac_func ();
71301   ;
71302   return 0;
71303 }
71304 _ACEOF
71305 rm -f conftest.$ac_objext conftest$ac_exeext
71306 if { (ac_try="$ac_link"
71307 case "(($ac_try" in
71308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71309   *) ac_try_echo=$ac_try;;
71310 esac
71311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71312 $as_echo "$ac_try_echo") >&5
71313   (eval "$ac_link") 2>conftest.er1
71314   ac_status=$?
71315   grep -v '^ *+' conftest.er1 >conftest.err
71316   rm -f conftest.er1
71317   cat conftest.err >&5
71318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71319   (exit $ac_status); } && {
71320          test -z "$ac_c_werror_flag" ||
71321          test ! -s conftest.err
71322        } && test -s conftest$ac_exeext && {
71323          test "$cross_compiling" = yes ||
71324          $as_test_x conftest$ac_exeext
71325        }; then
71326   eval "$as_ac_var=yes"
71327 else
71328   $as_echo "$as_me: failed program was:" >&5
71329 sed 's/^/| /' conftest.$ac_ext >&5
71330
71331         eval "$as_ac_var=no"
71332 fi
71333
71334 rm -rf conftest.dSYM
71335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71336       conftest$ac_exeext conftest.$ac_ext
71337 fi
71338 ac_res=`eval 'as_val=${'$as_ac_var'}
71339                  $as_echo "$as_val"'`
71340                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71341 $as_echo "$ac_res" >&6; }
71342 as_val=`eval 'as_val=${'$as_ac_var'}
71343                  $as_echo "$as_val"'`
71344    if test "x$as_val" = x""yes; then
71345   cat >>confdefs.h <<_ACEOF
71346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71347 _ACEOF
71348  ice_have_strerror=yes
71349 fi
71350 done
71351
71352 if test "${ice_have_strerror}" = yes; then
71353 { $as_echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
71354 $as_echo_n "checking for strerror declaration in string.h strings.h... " >&6; }
71355 if test "${ice_cv_have_strerror_decl+set}" = set; then
71356   $as_echo_n "(cached) " >&6
71357 else
71358
71359 ice_cv_have_strerror_decl=no
71360 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71361 ice_re_word='(^|[^a-zA-Z0-9_])'
71362 for header in string.h strings.h; do
71363 # Check for ordinary declaration
71364 cat >conftest.$ac_ext <<_ACEOF
71365 /* confdefs.h.  */
71366 _ACEOF
71367 cat confdefs.h >>conftest.$ac_ext
71368 cat >>conftest.$ac_ext <<_ACEOF
71369 /* end confdefs.h.  */
71370 #include <$header>
71371
71372 _ACEOF
71373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71374   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
71375   ice_cv_have_strerror_decl=yes
71376 fi
71377 rm -f conftest*
71378
71379 if test "$ice_cv_have_strerror_decl" = yes; then
71380         break
71381 fi
71382 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71383 cat >conftest.$ac_ext <<_ACEOF
71384 /* confdefs.h.  */
71385 _ACEOF
71386 cat confdefs.h >>conftest.$ac_ext
71387 cat >>conftest.$ac_ext <<_ACEOF
71388 /* end confdefs.h.  */
71389 #include <$header>
71390
71391 _ACEOF
71392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71393   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71394   ice_cv_have_strerror_decl=yes
71395 fi
71396 rm -f conftest*
71397
71398 if test "$ice_cv_have_strerror_decl" = yes; then
71399         break
71400 fi
71401 done
71402
71403 fi
71404
71405 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
71406 $as_echo "$ice_cv_have_strerror_decl" >&6; }
71407 if test "$ice_cv_have_strerror_decl" = yes; then
71408
71409 cat >>confdefs.h <<_ACEOF
71410 #define HAVE_STRERROR_DECL 1
71411 _ACEOF
71412
71413 fi
71414 fi
71415
71416
71417 for ac_func in strftime
71418 do
71419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71421 $as_echo_n "checking for $ac_func... " >&6; }
71422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71423   $as_echo_n "(cached) " >&6
71424 else
71425   cat >conftest.$ac_ext <<_ACEOF
71426 /* confdefs.h.  */
71427 _ACEOF
71428 cat confdefs.h >>conftest.$ac_ext
71429 cat >>conftest.$ac_ext <<_ACEOF
71430 /* end confdefs.h.  */
71431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71433 #define $ac_func innocuous_$ac_func
71434
71435 /* System header to define __stub macros and hopefully few prototypes,
71436     which can conflict with char $ac_func (); below.
71437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71438     <limits.h> exists even on freestanding compilers.  */
71439
71440 #ifdef __STDC__
71441 # include <limits.h>
71442 #else
71443 # include <assert.h>
71444 #endif
71445
71446 #undef $ac_func
71447
71448 /* Override any GCC internal prototype to avoid an error.
71449    Use char because int might match the return type of a GCC
71450    builtin and then its argument prototype would still apply.  */
71451 #ifdef __cplusplus
71452 extern "C"
71453 #endif
71454 char $ac_func ();
71455 /* The GNU C library defines this for functions which it implements
71456     to always fail with ENOSYS.  Some functions are actually named
71457     something starting with __ and the normal name is an alias.  */
71458 #if defined __stub_$ac_func || defined __stub___$ac_func
71459 choke me
71460 #endif
71461
71462 int
71463 main ()
71464 {
71465 return $ac_func ();
71466   ;
71467   return 0;
71468 }
71469 _ACEOF
71470 rm -f conftest.$ac_objext conftest$ac_exeext
71471 if { (ac_try="$ac_link"
71472 case "(($ac_try" in
71473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71474   *) ac_try_echo=$ac_try;;
71475 esac
71476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71477 $as_echo "$ac_try_echo") >&5
71478   (eval "$ac_link") 2>conftest.er1
71479   ac_status=$?
71480   grep -v '^ *+' conftest.er1 >conftest.err
71481   rm -f conftest.er1
71482   cat conftest.err >&5
71483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71484   (exit $ac_status); } && {
71485          test -z "$ac_c_werror_flag" ||
71486          test ! -s conftest.err
71487        } && test -s conftest$ac_exeext && {
71488          test "$cross_compiling" = yes ||
71489          $as_test_x conftest$ac_exeext
71490        }; then
71491   eval "$as_ac_var=yes"
71492 else
71493   $as_echo "$as_me: failed program was:" >&5
71494 sed 's/^/| /' conftest.$ac_ext >&5
71495
71496         eval "$as_ac_var=no"
71497 fi
71498
71499 rm -rf conftest.dSYM
71500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71501       conftest$ac_exeext conftest.$ac_ext
71502 fi
71503 ac_res=`eval 'as_val=${'$as_ac_var'}
71504                  $as_echo "$as_val"'`
71505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71506 $as_echo "$ac_res" >&6; }
71507 as_val=`eval 'as_val=${'$as_ac_var'}
71508                  $as_echo "$as_val"'`
71509    if test "x$as_val" = x""yes; then
71510   cat >>confdefs.h <<_ACEOF
71511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71512 _ACEOF
71513
71514 else
71515   # strftime is in -lintl on SCO UNIX.
71516 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
71517 $as_echo_n "checking for strftime in -lintl... " >&6; }
71518 if test "${ac_cv_lib_intl_strftime+set}" = set; then
71519   $as_echo_n "(cached) " >&6
71520 else
71521   ac_check_lib_save_LIBS=$LIBS
71522 LIBS="-lintl  $LIBS"
71523 cat >conftest.$ac_ext <<_ACEOF
71524 /* confdefs.h.  */
71525 _ACEOF
71526 cat confdefs.h >>conftest.$ac_ext
71527 cat >>conftest.$ac_ext <<_ACEOF
71528 /* end confdefs.h.  */
71529
71530 /* Override any GCC internal prototype to avoid an error.
71531    Use char because int might match the return type of a GCC
71532    builtin and then its argument prototype would still apply.  */
71533 #ifdef __cplusplus
71534 extern "C"
71535 #endif
71536 char strftime ();
71537 int
71538 main ()
71539 {
71540 return strftime ();
71541   ;
71542   return 0;
71543 }
71544 _ACEOF
71545 rm -f conftest.$ac_objext conftest$ac_exeext
71546 if { (ac_try="$ac_link"
71547 case "(($ac_try" in
71548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71549   *) ac_try_echo=$ac_try;;
71550 esac
71551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71552 $as_echo "$ac_try_echo") >&5
71553   (eval "$ac_link") 2>conftest.er1
71554   ac_status=$?
71555   grep -v '^ *+' conftest.er1 >conftest.err
71556   rm -f conftest.er1
71557   cat conftest.err >&5
71558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71559   (exit $ac_status); } && {
71560          test -z "$ac_c_werror_flag" ||
71561          test ! -s conftest.err
71562        } && test -s conftest$ac_exeext && {
71563          test "$cross_compiling" = yes ||
71564          $as_test_x conftest$ac_exeext
71565        }; then
71566   ac_cv_lib_intl_strftime=yes
71567 else
71568   $as_echo "$as_me: failed program was:" >&5
71569 sed 's/^/| /' conftest.$ac_ext >&5
71570
71571         ac_cv_lib_intl_strftime=no
71572 fi
71573
71574 rm -rf conftest.dSYM
71575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71576       conftest$ac_exeext conftest.$ac_ext
71577 LIBS=$ac_check_lib_save_LIBS
71578 fi
71579 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
71580 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
71581 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
71582   cat >>confdefs.h <<\_ACEOF
71583 #define HAVE_STRFTIME 1
71584 _ACEOF
71585
71586 LIBS="-lintl $LIBS"
71587 fi
71588
71589 fi
71590 done
71591
71592
71593 ice_have_strftime=no
71594
71595 for ac_func in strftime
71596 do
71597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71598 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71599 $as_echo_n "checking for $ac_func... " >&6; }
71600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71601   $as_echo_n "(cached) " >&6
71602 else
71603   cat >conftest.$ac_ext <<_ACEOF
71604 /* confdefs.h.  */
71605 _ACEOF
71606 cat confdefs.h >>conftest.$ac_ext
71607 cat >>conftest.$ac_ext <<_ACEOF
71608 /* end confdefs.h.  */
71609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71611 #define $ac_func innocuous_$ac_func
71612
71613 /* System header to define __stub macros and hopefully few prototypes,
71614     which can conflict with char $ac_func (); below.
71615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71616     <limits.h> exists even on freestanding compilers.  */
71617
71618 #ifdef __STDC__
71619 # include <limits.h>
71620 #else
71621 # include <assert.h>
71622 #endif
71623
71624 #undef $ac_func
71625
71626 /* Override any GCC internal prototype to avoid an error.
71627    Use char because int might match the return type of a GCC
71628    builtin and then its argument prototype would still apply.  */
71629 #ifdef __cplusplus
71630 extern "C"
71631 #endif
71632 char $ac_func ();
71633 /* The GNU C library defines this for functions which it implements
71634     to always fail with ENOSYS.  Some functions are actually named
71635     something starting with __ and the normal name is an alias.  */
71636 #if defined __stub_$ac_func || defined __stub___$ac_func
71637 choke me
71638 #endif
71639
71640 int
71641 main ()
71642 {
71643 return $ac_func ();
71644   ;
71645   return 0;
71646 }
71647 _ACEOF
71648 rm -f conftest.$ac_objext conftest$ac_exeext
71649 if { (ac_try="$ac_link"
71650 case "(($ac_try" in
71651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71652   *) ac_try_echo=$ac_try;;
71653 esac
71654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71655 $as_echo "$ac_try_echo") >&5
71656   (eval "$ac_link") 2>conftest.er1
71657   ac_status=$?
71658   grep -v '^ *+' conftest.er1 >conftest.err
71659   rm -f conftest.er1
71660   cat conftest.err >&5
71661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71662   (exit $ac_status); } && {
71663          test -z "$ac_c_werror_flag" ||
71664          test ! -s conftest.err
71665        } && test -s conftest$ac_exeext && {
71666          test "$cross_compiling" = yes ||
71667          $as_test_x conftest$ac_exeext
71668        }; then
71669   eval "$as_ac_var=yes"
71670 else
71671   $as_echo "$as_me: failed program was:" >&5
71672 sed 's/^/| /' conftest.$ac_ext >&5
71673
71674         eval "$as_ac_var=no"
71675 fi
71676
71677 rm -rf conftest.dSYM
71678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71679       conftest$ac_exeext conftest.$ac_ext
71680 fi
71681 ac_res=`eval 'as_val=${'$as_ac_var'}
71682                  $as_echo "$as_val"'`
71683                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71684 $as_echo "$ac_res" >&6; }
71685 as_val=`eval 'as_val=${'$as_ac_var'}
71686                  $as_echo "$as_val"'`
71687    if test "x$as_val" = x""yes; then
71688   cat >>confdefs.h <<_ACEOF
71689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71690 _ACEOF
71691  ice_have_strftime=yes
71692 fi
71693 done
71694
71695 if test "${ice_have_strftime}" = yes; then
71696 { $as_echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
71697 $as_echo_n "checking for strftime declaration in time.h sys/time.h... " >&6; }
71698 if test "${ice_cv_have_strftime_decl+set}" = set; then
71699   $as_echo_n "(cached) " >&6
71700 else
71701
71702 ice_cv_have_strftime_decl=no
71703 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71704 ice_re_word='(^|[^a-zA-Z0-9_])'
71705 for header in time.h sys/time.h; do
71706 # Check for ordinary declaration
71707 cat >conftest.$ac_ext <<_ACEOF
71708 /* confdefs.h.  */
71709 _ACEOF
71710 cat confdefs.h >>conftest.$ac_ext
71711 cat >>conftest.$ac_ext <<_ACEOF
71712 /* end confdefs.h.  */
71713 #include <$header>
71714
71715 _ACEOF
71716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71717   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
71718   ice_cv_have_strftime_decl=yes
71719 fi
71720 rm -f conftest*
71721
71722 if test "$ice_cv_have_strftime_decl" = yes; then
71723         break
71724 fi
71725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71726 cat >conftest.$ac_ext <<_ACEOF
71727 /* confdefs.h.  */
71728 _ACEOF
71729 cat confdefs.h >>conftest.$ac_ext
71730 cat >>conftest.$ac_ext <<_ACEOF
71731 /* end confdefs.h.  */
71732 #include <$header>
71733
71734 _ACEOF
71735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71736   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71737   ice_cv_have_strftime_decl=yes
71738 fi
71739 rm -f conftest*
71740
71741 if test "$ice_cv_have_strftime_decl" = yes; then
71742         break
71743 fi
71744 done
71745
71746 fi
71747
71748 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
71749 $as_echo "$ice_cv_have_strftime_decl" >&6; }
71750 if test "$ice_cv_have_strftime_decl" = yes; then
71751
71752 cat >>confdefs.h <<_ACEOF
71753 #define HAVE_STRFTIME_DECL 1
71754 _ACEOF
71755
71756 fi
71757 fi
71758
71759
71760 ice_have_strncasecmp=no
71761
71762 for ac_func in strncasecmp
71763 do
71764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71765 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71766 $as_echo_n "checking for $ac_func... " >&6; }
71767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71768   $as_echo_n "(cached) " >&6
71769 else
71770   cat >conftest.$ac_ext <<_ACEOF
71771 /* confdefs.h.  */
71772 _ACEOF
71773 cat confdefs.h >>conftest.$ac_ext
71774 cat >>conftest.$ac_ext <<_ACEOF
71775 /* end confdefs.h.  */
71776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71778 #define $ac_func innocuous_$ac_func
71779
71780 /* System header to define __stub macros and hopefully few prototypes,
71781     which can conflict with char $ac_func (); below.
71782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71783     <limits.h> exists even on freestanding compilers.  */
71784
71785 #ifdef __STDC__
71786 # include <limits.h>
71787 #else
71788 # include <assert.h>
71789 #endif
71790
71791 #undef $ac_func
71792
71793 /* Override any GCC internal prototype to avoid an error.
71794    Use char because int might match the return type of a GCC
71795    builtin and then its argument prototype would still apply.  */
71796 #ifdef __cplusplus
71797 extern "C"
71798 #endif
71799 char $ac_func ();
71800 /* The GNU C library defines this for functions which it implements
71801     to always fail with ENOSYS.  Some functions are actually named
71802     something starting with __ and the normal name is an alias.  */
71803 #if defined __stub_$ac_func || defined __stub___$ac_func
71804 choke me
71805 #endif
71806
71807 int
71808 main ()
71809 {
71810 return $ac_func ();
71811   ;
71812   return 0;
71813 }
71814 _ACEOF
71815 rm -f conftest.$ac_objext conftest$ac_exeext
71816 if { (ac_try="$ac_link"
71817 case "(($ac_try" in
71818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71819   *) ac_try_echo=$ac_try;;
71820 esac
71821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71822 $as_echo "$ac_try_echo") >&5
71823   (eval "$ac_link") 2>conftest.er1
71824   ac_status=$?
71825   grep -v '^ *+' conftest.er1 >conftest.err
71826   rm -f conftest.er1
71827   cat conftest.err >&5
71828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71829   (exit $ac_status); } && {
71830          test -z "$ac_c_werror_flag" ||
71831          test ! -s conftest.err
71832        } && test -s conftest$ac_exeext && {
71833          test "$cross_compiling" = yes ||
71834          $as_test_x conftest$ac_exeext
71835        }; then
71836   eval "$as_ac_var=yes"
71837 else
71838   $as_echo "$as_me: failed program was:" >&5
71839 sed 's/^/| /' conftest.$ac_ext >&5
71840
71841         eval "$as_ac_var=no"
71842 fi
71843
71844 rm -rf conftest.dSYM
71845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
71846       conftest$ac_exeext conftest.$ac_ext
71847 fi
71848 ac_res=`eval 'as_val=${'$as_ac_var'}
71849                  $as_echo "$as_val"'`
71850                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
71851 $as_echo "$ac_res" >&6; }
71852 as_val=`eval 'as_val=${'$as_ac_var'}
71853                  $as_echo "$as_val"'`
71854    if test "x$as_val" = x""yes; then
71855   cat >>confdefs.h <<_ACEOF
71856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
71857 _ACEOF
71858  ice_have_strncasecmp=yes
71859 fi
71860 done
71861
71862 if test "${ice_have_strncasecmp}" = yes; then
71863 { $as_echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
71864 $as_echo_n "checking for strncasecmp declaration in string.h strings.h... " >&6; }
71865 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
71866   $as_echo_n "(cached) " >&6
71867 else
71868
71869 ice_cv_have_strncasecmp_decl=no
71870 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
71871 ice_re_word='(^|[^a-zA-Z0-9_])'
71872 for header in string.h strings.h; do
71873 # Check for ordinary declaration
71874 cat >conftest.$ac_ext <<_ACEOF
71875 /* confdefs.h.  */
71876 _ACEOF
71877 cat confdefs.h >>conftest.$ac_ext
71878 cat >>conftest.$ac_ext <<_ACEOF
71879 /* end confdefs.h.  */
71880 #include <$header>
71881
71882 _ACEOF
71883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71884   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
71885   ice_cv_have_strncasecmp_decl=yes
71886 fi
71887 rm -f conftest*
71888
71889 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71890         break
71891 fi
71892 # Check for "fixed" declaration like "getpid _PARAMS((int))"
71893 cat >conftest.$ac_ext <<_ACEOF
71894 /* confdefs.h.  */
71895 _ACEOF
71896 cat confdefs.h >>conftest.$ac_ext
71897 cat >>conftest.$ac_ext <<_ACEOF
71898 /* end confdefs.h.  */
71899 #include <$header>
71900
71901 _ACEOF
71902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
71903   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
71904   ice_cv_have_strncasecmp_decl=yes
71905 fi
71906 rm -f conftest*
71907
71908 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71909         break
71910 fi
71911 done
71912
71913 fi
71914
71915 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
71916 $as_echo "$ice_cv_have_strncasecmp_decl" >&6; }
71917 if test "$ice_cv_have_strncasecmp_decl" = yes; then
71918
71919 cat >>confdefs.h <<_ACEOF
71920 #define HAVE_STRNCASECMP_DECL 1
71921 _ACEOF
71922
71923 fi
71924 fi
71925
71926
71927 ice_have_syslog=no
71928
71929 for ac_func in syslog
71930 do
71931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
71932 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
71933 $as_echo_n "checking for $ac_func... " >&6; }
71934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
71935   $as_echo_n "(cached) " >&6
71936 else
71937   cat >conftest.$ac_ext <<_ACEOF
71938 /* confdefs.h.  */
71939 _ACEOF
71940 cat confdefs.h >>conftest.$ac_ext
71941 cat >>conftest.$ac_ext <<_ACEOF
71942 /* end confdefs.h.  */
71943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71945 #define $ac_func innocuous_$ac_func
71946
71947 /* System header to define __stub macros and hopefully few prototypes,
71948     which can conflict with char $ac_func (); below.
71949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71950     <limits.h> exists even on freestanding compilers.  */
71951
71952 #ifdef __STDC__
71953 # include <limits.h>
71954 #else
71955 # include <assert.h>
71956 #endif
71957
71958 #undef $ac_func
71959
71960 /* Override any GCC internal prototype to avoid an error.
71961    Use char because int might match the return type of a GCC
71962    builtin and then its argument prototype would still apply.  */
71963 #ifdef __cplusplus
71964 extern "C"
71965 #endif
71966 char $ac_func ();
71967 /* The GNU C library defines this for functions which it implements
71968     to always fail with ENOSYS.  Some functions are actually named
71969     something starting with __ and the normal name is an alias.  */
71970 #if defined __stub_$ac_func || defined __stub___$ac_func
71971 choke me
71972 #endif
71973
71974 int
71975 main ()
71976 {
71977 return $ac_func ();
71978   ;
71979   return 0;
71980 }
71981 _ACEOF
71982 rm -f conftest.$ac_objext conftest$ac_exeext
71983 if { (ac_try="$ac_link"
71984 case "(($ac_try" in
71985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
71986   *) ac_try_echo=$ac_try;;
71987 esac
71988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
71989 $as_echo "$ac_try_echo") >&5
71990   (eval "$ac_link") 2>conftest.er1
71991   ac_status=$?
71992   grep -v '^ *+' conftest.er1 >conftest.err
71993   rm -f conftest.er1
71994   cat conftest.err >&5
71995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
71996   (exit $ac_status); } && {
71997          test -z "$ac_c_werror_flag" ||
71998          test ! -s conftest.err
71999        } && test -s conftest$ac_exeext && {
72000          test "$cross_compiling" = yes ||
72001          $as_test_x conftest$ac_exeext
72002        }; then
72003   eval "$as_ac_var=yes"
72004 else
72005   $as_echo "$as_me: failed program was:" >&5
72006 sed 's/^/| /' conftest.$ac_ext >&5
72007
72008         eval "$as_ac_var=no"
72009 fi
72010
72011 rm -rf conftest.dSYM
72012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72013       conftest$ac_exeext conftest.$ac_ext
72014 fi
72015 ac_res=`eval 'as_val=${'$as_ac_var'}
72016                  $as_echo "$as_val"'`
72017                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72018 $as_echo "$ac_res" >&6; }
72019 as_val=`eval 'as_val=${'$as_ac_var'}
72020                  $as_echo "$as_val"'`
72021    if test "x$as_val" = x""yes; then
72022   cat >>confdefs.h <<_ACEOF
72023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72024 _ACEOF
72025  ice_have_syslog=yes
72026 fi
72027 done
72028
72029 if test "${ice_have_syslog}" = yes; then
72030 { $as_echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
72031 $as_echo_n "checking for syslog declaration in syslog.h... " >&6; }
72032 if test "${ice_cv_have_syslog_decl+set}" = set; then
72033   $as_echo_n "(cached) " >&6
72034 else
72035
72036 ice_cv_have_syslog_decl=no
72037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72038 ice_re_word='(^|[^a-zA-Z0-9_])'
72039 for header in syslog.h; do
72040 # Check for ordinary declaration
72041 cat >conftest.$ac_ext <<_ACEOF
72042 /* confdefs.h.  */
72043 _ACEOF
72044 cat confdefs.h >>conftest.$ac_ext
72045 cat >>conftest.$ac_ext <<_ACEOF
72046 /* end confdefs.h.  */
72047 #include <$header>
72048
72049 _ACEOF
72050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72051   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
72052   ice_cv_have_syslog_decl=yes
72053 fi
72054 rm -f conftest*
72055
72056 if test "$ice_cv_have_syslog_decl" = yes; then
72057         break
72058 fi
72059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72060 cat >conftest.$ac_ext <<_ACEOF
72061 /* confdefs.h.  */
72062 _ACEOF
72063 cat confdefs.h >>conftest.$ac_ext
72064 cat >>conftest.$ac_ext <<_ACEOF
72065 /* end confdefs.h.  */
72066 #include <$header>
72067
72068 _ACEOF
72069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72070   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72071   ice_cv_have_syslog_decl=yes
72072 fi
72073 rm -f conftest*
72074
72075 if test "$ice_cv_have_syslog_decl" = yes; then
72076         break
72077 fi
72078 done
72079
72080 fi
72081
72082 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
72083 $as_echo "$ice_cv_have_syslog_decl" >&6; }
72084 if test "$ice_cv_have_syslog_decl" = yes; then
72085
72086 cat >>confdefs.h <<_ACEOF
72087 #define HAVE_SYSLOG_DECL 1
72088 _ACEOF
72089
72090 fi
72091 fi
72092
72093
72094 ice_have_system=no
72095
72096 for ac_func in system
72097 do
72098 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72099 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72100 $as_echo_n "checking for $ac_func... " >&6; }
72101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72102   $as_echo_n "(cached) " >&6
72103 else
72104   cat >conftest.$ac_ext <<_ACEOF
72105 /* confdefs.h.  */
72106 _ACEOF
72107 cat confdefs.h >>conftest.$ac_ext
72108 cat >>conftest.$ac_ext <<_ACEOF
72109 /* end confdefs.h.  */
72110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72112 #define $ac_func innocuous_$ac_func
72113
72114 /* System header to define __stub macros and hopefully few prototypes,
72115     which can conflict with char $ac_func (); below.
72116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72117     <limits.h> exists even on freestanding compilers.  */
72118
72119 #ifdef __STDC__
72120 # include <limits.h>
72121 #else
72122 # include <assert.h>
72123 #endif
72124
72125 #undef $ac_func
72126
72127 /* Override any GCC internal prototype to avoid an error.
72128    Use char because int might match the return type of a GCC
72129    builtin and then its argument prototype would still apply.  */
72130 #ifdef __cplusplus
72131 extern "C"
72132 #endif
72133 char $ac_func ();
72134 /* The GNU C library defines this for functions which it implements
72135     to always fail with ENOSYS.  Some functions are actually named
72136     something starting with __ and the normal name is an alias.  */
72137 #if defined __stub_$ac_func || defined __stub___$ac_func
72138 choke me
72139 #endif
72140
72141 int
72142 main ()
72143 {
72144 return $ac_func ();
72145   ;
72146   return 0;
72147 }
72148 _ACEOF
72149 rm -f conftest.$ac_objext conftest$ac_exeext
72150 if { (ac_try="$ac_link"
72151 case "(($ac_try" in
72152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72153   *) ac_try_echo=$ac_try;;
72154 esac
72155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72156 $as_echo "$ac_try_echo") >&5
72157   (eval "$ac_link") 2>conftest.er1
72158   ac_status=$?
72159   grep -v '^ *+' conftest.er1 >conftest.err
72160   rm -f conftest.er1
72161   cat conftest.err >&5
72162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72163   (exit $ac_status); } && {
72164          test -z "$ac_c_werror_flag" ||
72165          test ! -s conftest.err
72166        } && test -s conftest$ac_exeext && {
72167          test "$cross_compiling" = yes ||
72168          $as_test_x conftest$ac_exeext
72169        }; then
72170   eval "$as_ac_var=yes"
72171 else
72172   $as_echo "$as_me: failed program was:" >&5
72173 sed 's/^/| /' conftest.$ac_ext >&5
72174
72175         eval "$as_ac_var=no"
72176 fi
72177
72178 rm -rf conftest.dSYM
72179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72180       conftest$ac_exeext conftest.$ac_ext
72181 fi
72182 ac_res=`eval 'as_val=${'$as_ac_var'}
72183                  $as_echo "$as_val"'`
72184                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72185 $as_echo "$ac_res" >&6; }
72186 as_val=`eval 'as_val=${'$as_ac_var'}
72187                  $as_echo "$as_val"'`
72188    if test "x$as_val" = x""yes; then
72189   cat >>confdefs.h <<_ACEOF
72190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72191 _ACEOF
72192  ice_have_system=yes
72193 fi
72194 done
72195
72196 if test "${ice_have_system}" = yes; then
72197 { $as_echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
72198 $as_echo_n "checking for system declaration in stdlib.h... " >&6; }
72199 if test "${ice_cv_have_system_decl+set}" = set; then
72200   $as_echo_n "(cached) " >&6
72201 else
72202
72203 ice_cv_have_system_decl=no
72204 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72205 ice_re_word='(^|[^a-zA-Z0-9_])'
72206 for header in stdlib.h; do
72207 # Check for ordinary declaration
72208 cat >conftest.$ac_ext <<_ACEOF
72209 /* confdefs.h.  */
72210 _ACEOF
72211 cat confdefs.h >>conftest.$ac_ext
72212 cat >>conftest.$ac_ext <<_ACEOF
72213 /* end confdefs.h.  */
72214 #include <$header>
72215
72216 _ACEOF
72217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72218   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
72219   ice_cv_have_system_decl=yes
72220 fi
72221 rm -f conftest*
72222
72223 if test "$ice_cv_have_system_decl" = yes; then
72224         break
72225 fi
72226 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72227 cat >conftest.$ac_ext <<_ACEOF
72228 /* confdefs.h.  */
72229 _ACEOF
72230 cat confdefs.h >>conftest.$ac_ext
72231 cat >>conftest.$ac_ext <<_ACEOF
72232 /* end confdefs.h.  */
72233 #include <$header>
72234
72235 _ACEOF
72236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72237   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72238   ice_cv_have_system_decl=yes
72239 fi
72240 rm -f conftest*
72241
72242 if test "$ice_cv_have_system_decl" = yes; then
72243         break
72244 fi
72245 done
72246
72247 fi
72248
72249 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
72250 $as_echo "$ice_cv_have_system_decl" >&6; }
72251 if test "$ice_cv_have_system_decl" = yes; then
72252
72253 cat >>confdefs.h <<_ACEOF
72254 #define HAVE_SYSTEM_DECL 1
72255 _ACEOF
72256
72257 fi
72258 fi
72259
72260
72261 ice_have_time=no
72262
72263 for ac_func in time
72264 do
72265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72266 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72267 $as_echo_n "checking for $ac_func... " >&6; }
72268 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72269   $as_echo_n "(cached) " >&6
72270 else
72271   cat >conftest.$ac_ext <<_ACEOF
72272 /* confdefs.h.  */
72273 _ACEOF
72274 cat confdefs.h >>conftest.$ac_ext
72275 cat >>conftest.$ac_ext <<_ACEOF
72276 /* end confdefs.h.  */
72277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72279 #define $ac_func innocuous_$ac_func
72280
72281 /* System header to define __stub macros and hopefully few prototypes,
72282     which can conflict with char $ac_func (); below.
72283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72284     <limits.h> exists even on freestanding compilers.  */
72285
72286 #ifdef __STDC__
72287 # include <limits.h>
72288 #else
72289 # include <assert.h>
72290 #endif
72291
72292 #undef $ac_func
72293
72294 /* Override any GCC internal prototype to avoid an error.
72295    Use char because int might match the return type of a GCC
72296    builtin and then its argument prototype would still apply.  */
72297 #ifdef __cplusplus
72298 extern "C"
72299 #endif
72300 char $ac_func ();
72301 /* The GNU C library defines this for functions which it implements
72302     to always fail with ENOSYS.  Some functions are actually named
72303     something starting with __ and the normal name is an alias.  */
72304 #if defined __stub_$ac_func || defined __stub___$ac_func
72305 choke me
72306 #endif
72307
72308 int
72309 main ()
72310 {
72311 return $ac_func ();
72312   ;
72313   return 0;
72314 }
72315 _ACEOF
72316 rm -f conftest.$ac_objext conftest$ac_exeext
72317 if { (ac_try="$ac_link"
72318 case "(($ac_try" in
72319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72320   *) ac_try_echo=$ac_try;;
72321 esac
72322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72323 $as_echo "$ac_try_echo") >&5
72324   (eval "$ac_link") 2>conftest.er1
72325   ac_status=$?
72326   grep -v '^ *+' conftest.er1 >conftest.err
72327   rm -f conftest.er1
72328   cat conftest.err >&5
72329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72330   (exit $ac_status); } && {
72331          test -z "$ac_c_werror_flag" ||
72332          test ! -s conftest.err
72333        } && test -s conftest$ac_exeext && {
72334          test "$cross_compiling" = yes ||
72335          $as_test_x conftest$ac_exeext
72336        }; then
72337   eval "$as_ac_var=yes"
72338 else
72339   $as_echo "$as_me: failed program was:" >&5
72340 sed 's/^/| /' conftest.$ac_ext >&5
72341
72342         eval "$as_ac_var=no"
72343 fi
72344
72345 rm -rf conftest.dSYM
72346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72347       conftest$ac_exeext conftest.$ac_ext
72348 fi
72349 ac_res=`eval 'as_val=${'$as_ac_var'}
72350                  $as_echo "$as_val"'`
72351                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72352 $as_echo "$ac_res" >&6; }
72353 as_val=`eval 'as_val=${'$as_ac_var'}
72354                  $as_echo "$as_val"'`
72355    if test "x$as_val" = x""yes; then
72356   cat >>confdefs.h <<_ACEOF
72357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72358 _ACEOF
72359  ice_have_time=yes
72360 fi
72361 done
72362
72363 if test "${ice_have_time}" = yes; then
72364 { $as_echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
72365 $as_echo_n "checking for time declaration in time.h sys/time.h... " >&6; }
72366 if test "${ice_cv_have_time_decl+set}" = set; then
72367   $as_echo_n "(cached) " >&6
72368 else
72369
72370 ice_cv_have_time_decl=no
72371 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72372 ice_re_word='(^|[^a-zA-Z0-9_])'
72373 for header in time.h sys/time.h; do
72374 # Check for ordinary declaration
72375 cat >conftest.$ac_ext <<_ACEOF
72376 /* confdefs.h.  */
72377 _ACEOF
72378 cat confdefs.h >>conftest.$ac_ext
72379 cat >>conftest.$ac_ext <<_ACEOF
72380 /* end confdefs.h.  */
72381 #include <$header>
72382
72383 _ACEOF
72384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72385   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
72386   ice_cv_have_time_decl=yes
72387 fi
72388 rm -f conftest*
72389
72390 if test "$ice_cv_have_time_decl" = yes; then
72391         break
72392 fi
72393 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72394 cat >conftest.$ac_ext <<_ACEOF
72395 /* confdefs.h.  */
72396 _ACEOF
72397 cat confdefs.h >>conftest.$ac_ext
72398 cat >>conftest.$ac_ext <<_ACEOF
72399 /* end confdefs.h.  */
72400 #include <$header>
72401
72402 _ACEOF
72403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72404   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72405   ice_cv_have_time_decl=yes
72406 fi
72407 rm -f conftest*
72408
72409 if test "$ice_cv_have_time_decl" = yes; then
72410         break
72411 fi
72412 done
72413
72414 fi
72415
72416 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
72417 $as_echo "$ice_cv_have_time_decl" >&6; }
72418 if test "$ice_cv_have_time_decl" = yes; then
72419
72420 cat >>confdefs.h <<_ACEOF
72421 #define HAVE_TIME_DECL 1
72422 _ACEOF
72423
72424 fi
72425 fi
72426
72427
72428 ice_have_tolower=no
72429
72430 for ac_func in tolower
72431 do
72432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72433 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72434 $as_echo_n "checking for $ac_func... " >&6; }
72435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72436   $as_echo_n "(cached) " >&6
72437 else
72438   cat >conftest.$ac_ext <<_ACEOF
72439 /* confdefs.h.  */
72440 _ACEOF
72441 cat confdefs.h >>conftest.$ac_ext
72442 cat >>conftest.$ac_ext <<_ACEOF
72443 /* end confdefs.h.  */
72444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72446 #define $ac_func innocuous_$ac_func
72447
72448 /* System header to define __stub macros and hopefully few prototypes,
72449     which can conflict with char $ac_func (); below.
72450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72451     <limits.h> exists even on freestanding compilers.  */
72452
72453 #ifdef __STDC__
72454 # include <limits.h>
72455 #else
72456 # include <assert.h>
72457 #endif
72458
72459 #undef $ac_func
72460
72461 /* Override any GCC internal prototype to avoid an error.
72462    Use char because int might match the return type of a GCC
72463    builtin and then its argument prototype would still apply.  */
72464 #ifdef __cplusplus
72465 extern "C"
72466 #endif
72467 char $ac_func ();
72468 /* The GNU C library defines this for functions which it implements
72469     to always fail with ENOSYS.  Some functions are actually named
72470     something starting with __ and the normal name is an alias.  */
72471 #if defined __stub_$ac_func || defined __stub___$ac_func
72472 choke me
72473 #endif
72474
72475 int
72476 main ()
72477 {
72478 return $ac_func ();
72479   ;
72480   return 0;
72481 }
72482 _ACEOF
72483 rm -f conftest.$ac_objext conftest$ac_exeext
72484 if { (ac_try="$ac_link"
72485 case "(($ac_try" in
72486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72487   *) ac_try_echo=$ac_try;;
72488 esac
72489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72490 $as_echo "$ac_try_echo") >&5
72491   (eval "$ac_link") 2>conftest.er1
72492   ac_status=$?
72493   grep -v '^ *+' conftest.er1 >conftest.err
72494   rm -f conftest.er1
72495   cat conftest.err >&5
72496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72497   (exit $ac_status); } && {
72498          test -z "$ac_c_werror_flag" ||
72499          test ! -s conftest.err
72500        } && test -s conftest$ac_exeext && {
72501          test "$cross_compiling" = yes ||
72502          $as_test_x conftest$ac_exeext
72503        }; then
72504   eval "$as_ac_var=yes"
72505 else
72506   $as_echo "$as_me: failed program was:" >&5
72507 sed 's/^/| /' conftest.$ac_ext >&5
72508
72509         eval "$as_ac_var=no"
72510 fi
72511
72512 rm -rf conftest.dSYM
72513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72514       conftest$ac_exeext conftest.$ac_ext
72515 fi
72516 ac_res=`eval 'as_val=${'$as_ac_var'}
72517                  $as_echo "$as_val"'`
72518                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72519 $as_echo "$ac_res" >&6; }
72520 as_val=`eval 'as_val=${'$as_ac_var'}
72521                  $as_echo "$as_val"'`
72522    if test "x$as_val" = x""yes; then
72523   cat >>confdefs.h <<_ACEOF
72524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72525 _ACEOF
72526  ice_have_tolower=yes
72527 fi
72528 done
72529
72530 if test "${ice_have_tolower}" = yes; then
72531 { $as_echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
72532 $as_echo_n "checking for tolower declaration in ctype.h... " >&6; }
72533 if test "${ice_cv_have_tolower_decl+set}" = set; then
72534   $as_echo_n "(cached) " >&6
72535 else
72536
72537 ice_cv_have_tolower_decl=no
72538 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72539 ice_re_word='(^|[^a-zA-Z0-9_])'
72540 for header in ctype.h; do
72541 # Check for ordinary declaration
72542 cat >conftest.$ac_ext <<_ACEOF
72543 /* confdefs.h.  */
72544 _ACEOF
72545 cat confdefs.h >>conftest.$ac_ext
72546 cat >>conftest.$ac_ext <<_ACEOF
72547 /* end confdefs.h.  */
72548 #include <$header>
72549
72550 _ACEOF
72551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72552   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
72553   ice_cv_have_tolower_decl=yes
72554 fi
72555 rm -f conftest*
72556
72557 if test "$ice_cv_have_tolower_decl" = yes; then
72558         break
72559 fi
72560 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72561 cat >conftest.$ac_ext <<_ACEOF
72562 /* confdefs.h.  */
72563 _ACEOF
72564 cat confdefs.h >>conftest.$ac_ext
72565 cat >>conftest.$ac_ext <<_ACEOF
72566 /* end confdefs.h.  */
72567 #include <$header>
72568
72569 _ACEOF
72570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72571   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72572   ice_cv_have_tolower_decl=yes
72573 fi
72574 rm -f conftest*
72575
72576 if test "$ice_cv_have_tolower_decl" = yes; then
72577         break
72578 fi
72579 done
72580
72581 fi
72582
72583 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
72584 $as_echo "$ice_cv_have_tolower_decl" >&6; }
72585 if test "$ice_cv_have_tolower_decl" = yes; then
72586
72587 cat >>confdefs.h <<_ACEOF
72588 #define HAVE_TOLOWER_DECL 1
72589 _ACEOF
72590
72591 fi
72592 fi
72593
72594
72595 ice_have_toupper=no
72596
72597 for ac_func in toupper
72598 do
72599 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72600 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72601 $as_echo_n "checking for $ac_func... " >&6; }
72602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72603   $as_echo_n "(cached) " >&6
72604 else
72605   cat >conftest.$ac_ext <<_ACEOF
72606 /* confdefs.h.  */
72607 _ACEOF
72608 cat confdefs.h >>conftest.$ac_ext
72609 cat >>conftest.$ac_ext <<_ACEOF
72610 /* end confdefs.h.  */
72611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72613 #define $ac_func innocuous_$ac_func
72614
72615 /* System header to define __stub macros and hopefully few prototypes,
72616     which can conflict with char $ac_func (); below.
72617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72618     <limits.h> exists even on freestanding compilers.  */
72619
72620 #ifdef __STDC__
72621 # include <limits.h>
72622 #else
72623 # include <assert.h>
72624 #endif
72625
72626 #undef $ac_func
72627
72628 /* Override any GCC internal prototype to avoid an error.
72629    Use char because int might match the return type of a GCC
72630    builtin and then its argument prototype would still apply.  */
72631 #ifdef __cplusplus
72632 extern "C"
72633 #endif
72634 char $ac_func ();
72635 /* The GNU C library defines this for functions which it implements
72636     to always fail with ENOSYS.  Some functions are actually named
72637     something starting with __ and the normal name is an alias.  */
72638 #if defined __stub_$ac_func || defined __stub___$ac_func
72639 choke me
72640 #endif
72641
72642 int
72643 main ()
72644 {
72645 return $ac_func ();
72646   ;
72647   return 0;
72648 }
72649 _ACEOF
72650 rm -f conftest.$ac_objext conftest$ac_exeext
72651 if { (ac_try="$ac_link"
72652 case "(($ac_try" in
72653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72654   *) ac_try_echo=$ac_try;;
72655 esac
72656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72657 $as_echo "$ac_try_echo") >&5
72658   (eval "$ac_link") 2>conftest.er1
72659   ac_status=$?
72660   grep -v '^ *+' conftest.er1 >conftest.err
72661   rm -f conftest.er1
72662   cat conftest.err >&5
72663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72664   (exit $ac_status); } && {
72665          test -z "$ac_c_werror_flag" ||
72666          test ! -s conftest.err
72667        } && test -s conftest$ac_exeext && {
72668          test "$cross_compiling" = yes ||
72669          $as_test_x conftest$ac_exeext
72670        }; then
72671   eval "$as_ac_var=yes"
72672 else
72673   $as_echo "$as_me: failed program was:" >&5
72674 sed 's/^/| /' conftest.$ac_ext >&5
72675
72676         eval "$as_ac_var=no"
72677 fi
72678
72679 rm -rf conftest.dSYM
72680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72681       conftest$ac_exeext conftest.$ac_ext
72682 fi
72683 ac_res=`eval 'as_val=${'$as_ac_var'}
72684                  $as_echo "$as_val"'`
72685                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72686 $as_echo "$ac_res" >&6; }
72687 as_val=`eval 'as_val=${'$as_ac_var'}
72688                  $as_echo "$as_val"'`
72689    if test "x$as_val" = x""yes; then
72690   cat >>confdefs.h <<_ACEOF
72691 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72692 _ACEOF
72693  ice_have_toupper=yes
72694 fi
72695 done
72696
72697 if test "${ice_have_toupper}" = yes; then
72698 { $as_echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
72699 $as_echo_n "checking for toupper declaration in ctype.h... " >&6; }
72700 if test "${ice_cv_have_toupper_decl+set}" = set; then
72701   $as_echo_n "(cached) " >&6
72702 else
72703
72704 ice_cv_have_toupper_decl=no
72705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72706 ice_re_word='(^|[^a-zA-Z0-9_])'
72707 for header in ctype.h; do
72708 # Check for ordinary declaration
72709 cat >conftest.$ac_ext <<_ACEOF
72710 /* confdefs.h.  */
72711 _ACEOF
72712 cat confdefs.h >>conftest.$ac_ext
72713 cat >>conftest.$ac_ext <<_ACEOF
72714 /* end confdefs.h.  */
72715 #include <$header>
72716
72717 _ACEOF
72718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72719   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
72720   ice_cv_have_toupper_decl=yes
72721 fi
72722 rm -f conftest*
72723
72724 if test "$ice_cv_have_toupper_decl" = yes; then
72725         break
72726 fi
72727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72728 cat >conftest.$ac_ext <<_ACEOF
72729 /* confdefs.h.  */
72730 _ACEOF
72731 cat confdefs.h >>conftest.$ac_ext
72732 cat >>conftest.$ac_ext <<_ACEOF
72733 /* end confdefs.h.  */
72734 #include <$header>
72735
72736 _ACEOF
72737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72738   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72739   ice_cv_have_toupper_decl=yes
72740 fi
72741 rm -f conftest*
72742
72743 if test "$ice_cv_have_toupper_decl" = yes; then
72744         break
72745 fi
72746 done
72747
72748 fi
72749
72750 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
72751 $as_echo "$ice_cv_have_toupper_decl" >&6; }
72752 if test "$ice_cv_have_toupper_decl" = yes; then
72753
72754 cat >>confdefs.h <<_ACEOF
72755 #define HAVE_TOUPPER_DECL 1
72756 _ACEOF
72757
72758 fi
72759 fi
72760
72761
72762 ice_have_ungetc=no
72763
72764 for ac_func in ungetc
72765 do
72766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72767 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72768 $as_echo_n "checking for $ac_func... " >&6; }
72769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72770   $as_echo_n "(cached) " >&6
72771 else
72772   cat >conftest.$ac_ext <<_ACEOF
72773 /* confdefs.h.  */
72774 _ACEOF
72775 cat confdefs.h >>conftest.$ac_ext
72776 cat >>conftest.$ac_ext <<_ACEOF
72777 /* end confdefs.h.  */
72778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72780 #define $ac_func innocuous_$ac_func
72781
72782 /* System header to define __stub macros and hopefully few prototypes,
72783     which can conflict with char $ac_func (); below.
72784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72785     <limits.h> exists even on freestanding compilers.  */
72786
72787 #ifdef __STDC__
72788 # include <limits.h>
72789 #else
72790 # include <assert.h>
72791 #endif
72792
72793 #undef $ac_func
72794
72795 /* Override any GCC internal prototype to avoid an error.
72796    Use char because int might match the return type of a GCC
72797    builtin and then its argument prototype would still apply.  */
72798 #ifdef __cplusplus
72799 extern "C"
72800 #endif
72801 char $ac_func ();
72802 /* The GNU C library defines this for functions which it implements
72803     to always fail with ENOSYS.  Some functions are actually named
72804     something starting with __ and the normal name is an alias.  */
72805 #if defined __stub_$ac_func || defined __stub___$ac_func
72806 choke me
72807 #endif
72808
72809 int
72810 main ()
72811 {
72812 return $ac_func ();
72813   ;
72814   return 0;
72815 }
72816 _ACEOF
72817 rm -f conftest.$ac_objext conftest$ac_exeext
72818 if { (ac_try="$ac_link"
72819 case "(($ac_try" in
72820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72821   *) ac_try_echo=$ac_try;;
72822 esac
72823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72824 $as_echo "$ac_try_echo") >&5
72825   (eval "$ac_link") 2>conftest.er1
72826   ac_status=$?
72827   grep -v '^ *+' conftest.er1 >conftest.err
72828   rm -f conftest.er1
72829   cat conftest.err >&5
72830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72831   (exit $ac_status); } && {
72832          test -z "$ac_c_werror_flag" ||
72833          test ! -s conftest.err
72834        } && test -s conftest$ac_exeext && {
72835          test "$cross_compiling" = yes ||
72836          $as_test_x conftest$ac_exeext
72837        }; then
72838   eval "$as_ac_var=yes"
72839 else
72840   $as_echo "$as_me: failed program was:" >&5
72841 sed 's/^/| /' conftest.$ac_ext >&5
72842
72843         eval "$as_ac_var=no"
72844 fi
72845
72846 rm -rf conftest.dSYM
72847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
72848       conftest$ac_exeext conftest.$ac_ext
72849 fi
72850 ac_res=`eval 'as_val=${'$as_ac_var'}
72851                  $as_echo "$as_val"'`
72852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
72853 $as_echo "$ac_res" >&6; }
72854 as_val=`eval 'as_val=${'$as_ac_var'}
72855                  $as_echo "$as_val"'`
72856    if test "x$as_val" = x""yes; then
72857   cat >>confdefs.h <<_ACEOF
72858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72859 _ACEOF
72860  ice_have_ungetc=yes
72861 fi
72862 done
72863
72864 if test "${ice_have_ungetc}" = yes; then
72865 { $as_echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
72866 $as_echo_n "checking for ungetc declaration in stdio.h... " >&6; }
72867 if test "${ice_cv_have_ungetc_decl+set}" = set; then
72868   $as_echo_n "(cached) " >&6
72869 else
72870
72871 ice_cv_have_ungetc_decl=no
72872 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
72873 ice_re_word='(^|[^a-zA-Z0-9_])'
72874 for header in stdio.h; do
72875 # Check for ordinary declaration
72876 cat >conftest.$ac_ext <<_ACEOF
72877 /* confdefs.h.  */
72878 _ACEOF
72879 cat confdefs.h >>conftest.$ac_ext
72880 cat >>conftest.$ac_ext <<_ACEOF
72881 /* end confdefs.h.  */
72882 #include <$header>
72883
72884 _ACEOF
72885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72886   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
72887   ice_cv_have_ungetc_decl=yes
72888 fi
72889 rm -f conftest*
72890
72891 if test "$ice_cv_have_ungetc_decl" = yes; then
72892         break
72893 fi
72894 # Check for "fixed" declaration like "getpid _PARAMS((int))"
72895 cat >conftest.$ac_ext <<_ACEOF
72896 /* confdefs.h.  */
72897 _ACEOF
72898 cat confdefs.h >>conftest.$ac_ext
72899 cat >>conftest.$ac_ext <<_ACEOF
72900 /* end confdefs.h.  */
72901 #include <$header>
72902
72903 _ACEOF
72904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
72905   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
72906   ice_cv_have_ungetc_decl=yes
72907 fi
72908 rm -f conftest*
72909
72910 if test "$ice_cv_have_ungetc_decl" = yes; then
72911         break
72912 fi
72913 done
72914
72915 fi
72916
72917 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
72918 $as_echo "$ice_cv_have_ungetc_decl" >&6; }
72919 if test "$ice_cv_have_ungetc_decl" = yes; then
72920
72921 cat >>confdefs.h <<_ACEOF
72922 #define HAVE_UNGETC_DECL 1
72923 _ACEOF
72924
72925 fi
72926 fi
72927
72928
72929 for ac_func in unsetenv
72930 do
72931 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
72932 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
72933 $as_echo_n "checking for $ac_func... " >&6; }
72934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
72935   $as_echo_n "(cached) " >&6
72936 else
72937   cat >conftest.$ac_ext <<_ACEOF
72938 /* confdefs.h.  */
72939 _ACEOF
72940 cat confdefs.h >>conftest.$ac_ext
72941 cat >>conftest.$ac_ext <<_ACEOF
72942 /* end confdefs.h.  */
72943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72944    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72945 #define $ac_func innocuous_$ac_func
72946
72947 /* System header to define __stub macros and hopefully few prototypes,
72948     which can conflict with char $ac_func (); below.
72949     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72950     <limits.h> exists even on freestanding compilers.  */
72951
72952 #ifdef __STDC__
72953 # include <limits.h>
72954 #else
72955 # include <assert.h>
72956 #endif
72957
72958 #undef $ac_func
72959
72960 /* Override any GCC internal prototype to avoid an error.
72961    Use char because int might match the return type of a GCC
72962    builtin and then its argument prototype would still apply.  */
72963 #ifdef __cplusplus
72964 extern "C"
72965 #endif
72966 char $ac_func ();
72967 /* The GNU C library defines this for functions which it implements
72968     to always fail with ENOSYS.  Some functions are actually named
72969     something starting with __ and the normal name is an alias.  */
72970 #if defined __stub_$ac_func || defined __stub___$ac_func
72971 choke me
72972 #endif
72973
72974 int
72975 main ()
72976 {
72977 return $ac_func ();
72978   ;
72979   return 0;
72980 }
72981 _ACEOF
72982 rm -f conftest.$ac_objext conftest$ac_exeext
72983 if { (ac_try="$ac_link"
72984 case "(($ac_try" in
72985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
72986   *) ac_try_echo=$ac_try;;
72987 esac
72988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
72989 $as_echo "$ac_try_echo") >&5
72990   (eval "$ac_link") 2>conftest.er1
72991   ac_status=$?
72992   grep -v '^ *+' conftest.er1 >conftest.err
72993   rm -f conftest.er1
72994   cat conftest.err >&5
72995   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
72996   (exit $ac_status); } && {
72997          test -z "$ac_c_werror_flag" ||
72998          test ! -s conftest.err
72999        } && test -s conftest$ac_exeext && {
73000          test "$cross_compiling" = yes ||
73001          $as_test_x conftest$ac_exeext
73002        }; then
73003   eval "$as_ac_var=yes"
73004 else
73005   $as_echo "$as_me: failed program was:" >&5
73006 sed 's/^/| /' conftest.$ac_ext >&5
73007
73008         eval "$as_ac_var=no"
73009 fi
73010
73011 rm -rf conftest.dSYM
73012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73013       conftest$ac_exeext conftest.$ac_ext
73014 fi
73015 ac_res=`eval 'as_val=${'$as_ac_var'}
73016                  $as_echo "$as_val"'`
73017                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73018 $as_echo "$ac_res" >&6; }
73019 as_val=`eval 'as_val=${'$as_ac_var'}
73020                  $as_echo "$as_val"'`
73021    if test "x$as_val" = x""yes; then
73022   cat >>confdefs.h <<_ACEOF
73023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73024 _ACEOF
73025
73026 fi
73027 done
73028
73029
73030 ice_have_vfprintf=no
73031
73032 for ac_func in vfprintf
73033 do
73034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73035 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73036 $as_echo_n "checking for $ac_func... " >&6; }
73037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73038   $as_echo_n "(cached) " >&6
73039 else
73040   cat >conftest.$ac_ext <<_ACEOF
73041 /* confdefs.h.  */
73042 _ACEOF
73043 cat confdefs.h >>conftest.$ac_ext
73044 cat >>conftest.$ac_ext <<_ACEOF
73045 /* end confdefs.h.  */
73046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73048 #define $ac_func innocuous_$ac_func
73049
73050 /* System header to define __stub macros and hopefully few prototypes,
73051     which can conflict with char $ac_func (); below.
73052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73053     <limits.h> exists even on freestanding compilers.  */
73054
73055 #ifdef __STDC__
73056 # include <limits.h>
73057 #else
73058 # include <assert.h>
73059 #endif
73060
73061 #undef $ac_func
73062
73063 /* Override any GCC internal prototype to avoid an error.
73064    Use char because int might match the return type of a GCC
73065    builtin and then its argument prototype would still apply.  */
73066 #ifdef __cplusplus
73067 extern "C"
73068 #endif
73069 char $ac_func ();
73070 /* The GNU C library defines this for functions which it implements
73071     to always fail with ENOSYS.  Some functions are actually named
73072     something starting with __ and the normal name is an alias.  */
73073 #if defined __stub_$ac_func || defined __stub___$ac_func
73074 choke me
73075 #endif
73076
73077 int
73078 main ()
73079 {
73080 return $ac_func ();
73081   ;
73082   return 0;
73083 }
73084 _ACEOF
73085 rm -f conftest.$ac_objext conftest$ac_exeext
73086 if { (ac_try="$ac_link"
73087 case "(($ac_try" in
73088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73089   *) ac_try_echo=$ac_try;;
73090 esac
73091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73092 $as_echo "$ac_try_echo") >&5
73093   (eval "$ac_link") 2>conftest.er1
73094   ac_status=$?
73095   grep -v '^ *+' conftest.er1 >conftest.err
73096   rm -f conftest.er1
73097   cat conftest.err >&5
73098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73099   (exit $ac_status); } && {
73100          test -z "$ac_c_werror_flag" ||
73101          test ! -s conftest.err
73102        } && test -s conftest$ac_exeext && {
73103          test "$cross_compiling" = yes ||
73104          $as_test_x conftest$ac_exeext
73105        }; then
73106   eval "$as_ac_var=yes"
73107 else
73108   $as_echo "$as_me: failed program was:" >&5
73109 sed 's/^/| /' conftest.$ac_ext >&5
73110
73111         eval "$as_ac_var=no"
73112 fi
73113
73114 rm -rf conftest.dSYM
73115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73116       conftest$ac_exeext conftest.$ac_ext
73117 fi
73118 ac_res=`eval 'as_val=${'$as_ac_var'}
73119                  $as_echo "$as_val"'`
73120                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73121 $as_echo "$ac_res" >&6; }
73122 as_val=`eval 'as_val=${'$as_ac_var'}
73123                  $as_echo "$as_val"'`
73124    if test "x$as_val" = x""yes; then
73125   cat >>confdefs.h <<_ACEOF
73126 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73127 _ACEOF
73128  ice_have_vfprintf=yes
73129 fi
73130 done
73131
73132 if test "${ice_have_vfprintf}" = yes; then
73133 { $as_echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
73134 $as_echo_n "checking for vfprintf declaration in stdio.h stdlib.h... " >&6; }
73135 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
73136   $as_echo_n "(cached) " >&6
73137 else
73138
73139 ice_cv_have_vfprintf_decl=no
73140 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73141 ice_re_word='(^|[^a-zA-Z0-9_])'
73142 for header in stdio.h stdlib.h; do
73143 # Check for ordinary declaration
73144 cat >conftest.$ac_ext <<_ACEOF
73145 /* confdefs.h.  */
73146 _ACEOF
73147 cat confdefs.h >>conftest.$ac_ext
73148 cat >>conftest.$ac_ext <<_ACEOF
73149 /* end confdefs.h.  */
73150 #include <$header>
73151
73152 _ACEOF
73153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73154   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
73155   ice_cv_have_vfprintf_decl=yes
73156 fi
73157 rm -f conftest*
73158
73159 if test "$ice_cv_have_vfprintf_decl" = yes; then
73160         break
73161 fi
73162 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73163 cat >conftest.$ac_ext <<_ACEOF
73164 /* confdefs.h.  */
73165 _ACEOF
73166 cat confdefs.h >>conftest.$ac_ext
73167 cat >>conftest.$ac_ext <<_ACEOF
73168 /* end confdefs.h.  */
73169 #include <$header>
73170
73171 _ACEOF
73172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73173   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73174   ice_cv_have_vfprintf_decl=yes
73175 fi
73176 rm -f conftest*
73177
73178 if test "$ice_cv_have_vfprintf_decl" = yes; then
73179         break
73180 fi
73181 done
73182
73183 fi
73184
73185 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
73186 $as_echo "$ice_cv_have_vfprintf_decl" >&6; }
73187 if test "$ice_cv_have_vfprintf_decl" = yes; then
73188
73189 cat >>confdefs.h <<_ACEOF
73190 #define HAVE_VFPRINTF_DECL 1
73191 _ACEOF
73192
73193 fi
73194 fi
73195
73196
73197 ice_have_vprintf=no
73198
73199 for ac_func in vprintf
73200 do
73201 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73202 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73203 $as_echo_n "checking for $ac_func... " >&6; }
73204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73205   $as_echo_n "(cached) " >&6
73206 else
73207   cat >conftest.$ac_ext <<_ACEOF
73208 /* confdefs.h.  */
73209 _ACEOF
73210 cat confdefs.h >>conftest.$ac_ext
73211 cat >>conftest.$ac_ext <<_ACEOF
73212 /* end confdefs.h.  */
73213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73215 #define $ac_func innocuous_$ac_func
73216
73217 /* System header to define __stub macros and hopefully few prototypes,
73218     which can conflict with char $ac_func (); below.
73219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73220     <limits.h> exists even on freestanding compilers.  */
73221
73222 #ifdef __STDC__
73223 # include <limits.h>
73224 #else
73225 # include <assert.h>
73226 #endif
73227
73228 #undef $ac_func
73229
73230 /* Override any GCC internal prototype to avoid an error.
73231    Use char because int might match the return type of a GCC
73232    builtin and then its argument prototype would still apply.  */
73233 #ifdef __cplusplus
73234 extern "C"
73235 #endif
73236 char $ac_func ();
73237 /* The GNU C library defines this for functions which it implements
73238     to always fail with ENOSYS.  Some functions are actually named
73239     something starting with __ and the normal name is an alias.  */
73240 #if defined __stub_$ac_func || defined __stub___$ac_func
73241 choke me
73242 #endif
73243
73244 int
73245 main ()
73246 {
73247 return $ac_func ();
73248   ;
73249   return 0;
73250 }
73251 _ACEOF
73252 rm -f conftest.$ac_objext conftest$ac_exeext
73253 if { (ac_try="$ac_link"
73254 case "(($ac_try" in
73255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73256   *) ac_try_echo=$ac_try;;
73257 esac
73258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73259 $as_echo "$ac_try_echo") >&5
73260   (eval "$ac_link") 2>conftest.er1
73261   ac_status=$?
73262   grep -v '^ *+' conftest.er1 >conftest.err
73263   rm -f conftest.er1
73264   cat conftest.err >&5
73265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73266   (exit $ac_status); } && {
73267          test -z "$ac_c_werror_flag" ||
73268          test ! -s conftest.err
73269        } && test -s conftest$ac_exeext && {
73270          test "$cross_compiling" = yes ||
73271          $as_test_x conftest$ac_exeext
73272        }; then
73273   eval "$as_ac_var=yes"
73274 else
73275   $as_echo "$as_me: failed program was:" >&5
73276 sed 's/^/| /' conftest.$ac_ext >&5
73277
73278         eval "$as_ac_var=no"
73279 fi
73280
73281 rm -rf conftest.dSYM
73282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73283       conftest$ac_exeext conftest.$ac_ext
73284 fi
73285 ac_res=`eval 'as_val=${'$as_ac_var'}
73286                  $as_echo "$as_val"'`
73287                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73288 $as_echo "$ac_res" >&6; }
73289 as_val=`eval 'as_val=${'$as_ac_var'}
73290                  $as_echo "$as_val"'`
73291    if test "x$as_val" = x""yes; then
73292   cat >>confdefs.h <<_ACEOF
73293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73294 _ACEOF
73295  ice_have_vprintf=yes
73296 fi
73297 done
73298
73299 if test "${ice_have_vprintf}" = yes; then
73300 { $as_echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
73301 $as_echo_n "checking for vprintf declaration in stdio.h stdlib.h... " >&6; }
73302 if test "${ice_cv_have_vprintf_decl+set}" = set; then
73303   $as_echo_n "(cached) " >&6
73304 else
73305
73306 ice_cv_have_vprintf_decl=no
73307 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73308 ice_re_word='(^|[^a-zA-Z0-9_])'
73309 for header in stdio.h stdlib.h; do
73310 # Check for ordinary declaration
73311 cat >conftest.$ac_ext <<_ACEOF
73312 /* confdefs.h.  */
73313 _ACEOF
73314 cat confdefs.h >>conftest.$ac_ext
73315 cat >>conftest.$ac_ext <<_ACEOF
73316 /* end confdefs.h.  */
73317 #include <$header>
73318
73319 _ACEOF
73320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73321   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
73322   ice_cv_have_vprintf_decl=yes
73323 fi
73324 rm -f conftest*
73325
73326 if test "$ice_cv_have_vprintf_decl" = yes; then
73327         break
73328 fi
73329 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73330 cat >conftest.$ac_ext <<_ACEOF
73331 /* confdefs.h.  */
73332 _ACEOF
73333 cat confdefs.h >>conftest.$ac_ext
73334 cat >>conftest.$ac_ext <<_ACEOF
73335 /* end confdefs.h.  */
73336 #include <$header>
73337
73338 _ACEOF
73339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73340   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73341   ice_cv_have_vprintf_decl=yes
73342 fi
73343 rm -f conftest*
73344
73345 if test "$ice_cv_have_vprintf_decl" = yes; then
73346         break
73347 fi
73348 done
73349
73350 fi
73351
73352 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
73353 $as_echo "$ice_cv_have_vprintf_decl" >&6; }
73354 if test "$ice_cv_have_vprintf_decl" = yes; then
73355
73356 cat >>confdefs.h <<_ACEOF
73357 #define HAVE_VPRINTF_DECL 1
73358 _ACEOF
73359
73360 fi
73361 fi
73362
73363 { $as_echo "$as_me:$LINENO: checking for wait4" >&5
73364 $as_echo_n "checking for wait4... " >&6; }
73365 if test "${ac_cv_func_wait4+set}" = set; then
73366   $as_echo_n "(cached) " >&6
73367 else
73368   cat >conftest.$ac_ext <<_ACEOF
73369 /* confdefs.h.  */
73370 _ACEOF
73371 cat confdefs.h >>conftest.$ac_ext
73372 cat >>conftest.$ac_ext <<_ACEOF
73373 /* end confdefs.h.  */
73374 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
73375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73376 #define wait4 innocuous_wait4
73377
73378 /* System header to define __stub macros and hopefully few prototypes,
73379     which can conflict with char wait4 (); below.
73380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73381     <limits.h> exists even on freestanding compilers.  */
73382
73383 #ifdef __STDC__
73384 # include <limits.h>
73385 #else
73386 # include <assert.h>
73387 #endif
73388
73389 #undef wait4
73390
73391 /* Override any GCC internal prototype to avoid an error.
73392    Use char because int might match the return type of a GCC
73393    builtin and then its argument prototype would still apply.  */
73394 #ifdef __cplusplus
73395 extern "C"
73396 #endif
73397 char wait4 ();
73398 /* The GNU C library defines this for functions which it implements
73399     to always fail with ENOSYS.  Some functions are actually named
73400     something starting with __ and the normal name is an alias.  */
73401 #if defined __stub_wait4 || defined __stub___wait4
73402 choke me
73403 #endif
73404
73405 int
73406 main ()
73407 {
73408 return wait4 ();
73409   ;
73410   return 0;
73411 }
73412 _ACEOF
73413 rm -f conftest.$ac_objext conftest$ac_exeext
73414 if { (ac_try="$ac_link"
73415 case "(($ac_try" in
73416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73417   *) ac_try_echo=$ac_try;;
73418 esac
73419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73420 $as_echo "$ac_try_echo") >&5
73421   (eval "$ac_link") 2>conftest.er1
73422   ac_status=$?
73423   grep -v '^ *+' conftest.er1 >conftest.err
73424   rm -f conftest.er1
73425   cat conftest.err >&5
73426   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73427   (exit $ac_status); } && {
73428          test -z "$ac_c_werror_flag" ||
73429          test ! -s conftest.err
73430        } && test -s conftest$ac_exeext && {
73431          test "$cross_compiling" = yes ||
73432          $as_test_x conftest$ac_exeext
73433        }; then
73434   ac_cv_func_wait4=yes
73435 else
73436   $as_echo "$as_me: failed program was:" >&5
73437 sed 's/^/| /' conftest.$ac_ext >&5
73438
73439         ac_cv_func_wait4=no
73440 fi
73441
73442 rm -rf conftest.dSYM
73443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73444       conftest$ac_exeext conftest.$ac_ext
73445 fi
73446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
73447 $as_echo "$ac_cv_func_wait4" >&6; }
73448
73449
73450 ice_have_writev=no
73451
73452 for ac_func in writev
73453 do
73454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73456 $as_echo_n "checking for $ac_func... " >&6; }
73457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73458   $as_echo_n "(cached) " >&6
73459 else
73460   cat >conftest.$ac_ext <<_ACEOF
73461 /* confdefs.h.  */
73462 _ACEOF
73463 cat confdefs.h >>conftest.$ac_ext
73464 cat >>conftest.$ac_ext <<_ACEOF
73465 /* end confdefs.h.  */
73466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73468 #define $ac_func innocuous_$ac_func
73469
73470 /* System header to define __stub macros and hopefully few prototypes,
73471     which can conflict with char $ac_func (); below.
73472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73473     <limits.h> exists even on freestanding compilers.  */
73474
73475 #ifdef __STDC__
73476 # include <limits.h>
73477 #else
73478 # include <assert.h>
73479 #endif
73480
73481 #undef $ac_func
73482
73483 /* Override any GCC internal prototype to avoid an error.
73484    Use char because int might match the return type of a GCC
73485    builtin and then its argument prototype would still apply.  */
73486 #ifdef __cplusplus
73487 extern "C"
73488 #endif
73489 char $ac_func ();
73490 /* The GNU C library defines this for functions which it implements
73491     to always fail with ENOSYS.  Some functions are actually named
73492     something starting with __ and the normal name is an alias.  */
73493 #if defined __stub_$ac_func || defined __stub___$ac_func
73494 choke me
73495 #endif
73496
73497 int
73498 main ()
73499 {
73500 return $ac_func ();
73501   ;
73502   return 0;
73503 }
73504 _ACEOF
73505 rm -f conftest.$ac_objext conftest$ac_exeext
73506 if { (ac_try="$ac_link"
73507 case "(($ac_try" in
73508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73509   *) ac_try_echo=$ac_try;;
73510 esac
73511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73512 $as_echo "$ac_try_echo") >&5
73513   (eval "$ac_link") 2>conftest.er1
73514   ac_status=$?
73515   grep -v '^ *+' conftest.er1 >conftest.err
73516   rm -f conftest.er1
73517   cat conftest.err >&5
73518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73519   (exit $ac_status); } && {
73520          test -z "$ac_c_werror_flag" ||
73521          test ! -s conftest.err
73522        } && test -s conftest$ac_exeext && {
73523          test "$cross_compiling" = yes ||
73524          $as_test_x conftest$ac_exeext
73525        }; then
73526   eval "$as_ac_var=yes"
73527 else
73528   $as_echo "$as_me: failed program was:" >&5
73529 sed 's/^/| /' conftest.$ac_ext >&5
73530
73531         eval "$as_ac_var=no"
73532 fi
73533
73534 rm -rf conftest.dSYM
73535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73536       conftest$ac_exeext conftest.$ac_ext
73537 fi
73538 ac_res=`eval 'as_val=${'$as_ac_var'}
73539                  $as_echo "$as_val"'`
73540                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73541 $as_echo "$ac_res" >&6; }
73542 as_val=`eval 'as_val=${'$as_ac_var'}
73543                  $as_echo "$as_val"'`
73544    if test "x$as_val" = x""yes; then
73545   cat >>confdefs.h <<_ACEOF
73546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73547 _ACEOF
73548  ice_have_writev=yes
73549 fi
73550 done
73551
73552 if test "${ice_have_writev}" = yes; then
73553 { $as_echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
73554 $as_echo_n "checking for writev declaration in unistd.h sys/uio.h... " >&6; }
73555 if test "${ice_cv_have_writev_decl+set}" = set; then
73556   $as_echo_n "(cached) " >&6
73557 else
73558
73559 ice_cv_have_writev_decl=no
73560 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73561 ice_re_word='(^|[^a-zA-Z0-9_])'
73562 for header in unistd.h sys/uio.h; do
73563 # Check for ordinary declaration
73564 cat >conftest.$ac_ext <<_ACEOF
73565 /* confdefs.h.  */
73566 _ACEOF
73567 cat confdefs.h >>conftest.$ac_ext
73568 cat >>conftest.$ac_ext <<_ACEOF
73569 /* end confdefs.h.  */
73570 #include <$header>
73571
73572 _ACEOF
73573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73574   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
73575   ice_cv_have_writev_decl=yes
73576 fi
73577 rm -f conftest*
73578
73579 if test "$ice_cv_have_writev_decl" = yes; then
73580         break
73581 fi
73582 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73583 cat >conftest.$ac_ext <<_ACEOF
73584 /* confdefs.h.  */
73585 _ACEOF
73586 cat confdefs.h >>conftest.$ac_ext
73587 cat >>conftest.$ac_ext <<_ACEOF
73588 /* end confdefs.h.  */
73589 #include <$header>
73590
73591 _ACEOF
73592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73593   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73594   ice_cv_have_writev_decl=yes
73595 fi
73596 rm -f conftest*
73597
73598 if test "$ice_cv_have_writev_decl" = yes; then
73599         break
73600 fi
73601 done
73602
73603 fi
73604
73605 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
73606 $as_echo "$ice_cv_have_writev_decl" >&6; }
73607 if test "$ice_cv_have_writev_decl" = yes; then
73608
73609 cat >>confdefs.h <<_ACEOF
73610 #define HAVE_WRITEV_DECL 1
73611 _ACEOF
73612
73613 fi
73614 fi
73615
73616
73617 ice_have_strcasecmp=no
73618
73619 for ac_func in strcasecmp
73620 do
73621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
73622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
73623 $as_echo_n "checking for $ac_func... " >&6; }
73624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
73625   $as_echo_n "(cached) " >&6
73626 else
73627   cat >conftest.$ac_ext <<_ACEOF
73628 /* confdefs.h.  */
73629 _ACEOF
73630 cat confdefs.h >>conftest.$ac_ext
73631 cat >>conftest.$ac_ext <<_ACEOF
73632 /* end confdefs.h.  */
73633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
73634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
73635 #define $ac_func innocuous_$ac_func
73636
73637 /* System header to define __stub macros and hopefully few prototypes,
73638     which can conflict with char $ac_func (); below.
73639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
73640     <limits.h> exists even on freestanding compilers.  */
73641
73642 #ifdef __STDC__
73643 # include <limits.h>
73644 #else
73645 # include <assert.h>
73646 #endif
73647
73648 #undef $ac_func
73649
73650 /* Override any GCC internal prototype to avoid an error.
73651    Use char because int might match the return type of a GCC
73652    builtin and then its argument prototype would still apply.  */
73653 #ifdef __cplusplus
73654 extern "C"
73655 #endif
73656 char $ac_func ();
73657 /* The GNU C library defines this for functions which it implements
73658     to always fail with ENOSYS.  Some functions are actually named
73659     something starting with __ and the normal name is an alias.  */
73660 #if defined __stub_$ac_func || defined __stub___$ac_func
73661 choke me
73662 #endif
73663
73664 int
73665 main ()
73666 {
73667 return $ac_func ();
73668   ;
73669   return 0;
73670 }
73671 _ACEOF
73672 rm -f conftest.$ac_objext conftest$ac_exeext
73673 if { (ac_try="$ac_link"
73674 case "(($ac_try" in
73675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
73676   *) ac_try_echo=$ac_try;;
73677 esac
73678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
73679 $as_echo "$ac_try_echo") >&5
73680   (eval "$ac_link") 2>conftest.er1
73681   ac_status=$?
73682   grep -v '^ *+' conftest.er1 >conftest.err
73683   rm -f conftest.er1
73684   cat conftest.err >&5
73685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
73686   (exit $ac_status); } && {
73687          test -z "$ac_c_werror_flag" ||
73688          test ! -s conftest.err
73689        } && test -s conftest$ac_exeext && {
73690          test "$cross_compiling" = yes ||
73691          $as_test_x conftest$ac_exeext
73692        }; then
73693   eval "$as_ac_var=yes"
73694 else
73695   $as_echo "$as_me: failed program was:" >&5
73696 sed 's/^/| /' conftest.$ac_ext >&5
73697
73698         eval "$as_ac_var=no"
73699 fi
73700
73701 rm -rf conftest.dSYM
73702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73703       conftest$ac_exeext conftest.$ac_ext
73704 fi
73705 ac_res=`eval 'as_val=${'$as_ac_var'}
73706                  $as_echo "$as_val"'`
73707                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
73708 $as_echo "$ac_res" >&6; }
73709 as_val=`eval 'as_val=${'$as_ac_var'}
73710                  $as_echo "$as_val"'`
73711    if test "x$as_val" = x""yes; then
73712   cat >>confdefs.h <<_ACEOF
73713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
73714 _ACEOF
73715  ice_have_strcasecmp=yes
73716 fi
73717 done
73718
73719 if test "${ice_have_strcasecmp}" = yes; then
73720 { $as_echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
73721 $as_echo_n "checking for strcasecmp declaration in string.h strings.h... " >&6; }
73722 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
73723   $as_echo_n "(cached) " >&6
73724 else
73725
73726 ice_cv_have_strcasecmp_decl=no
73727 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
73728 ice_re_word='(^|[^a-zA-Z0-9_])'
73729 for header in string.h strings.h; do
73730 # Check for ordinary declaration
73731 cat >conftest.$ac_ext <<_ACEOF
73732 /* confdefs.h.  */
73733 _ACEOF
73734 cat confdefs.h >>conftest.$ac_ext
73735 cat >>conftest.$ac_ext <<_ACEOF
73736 /* end confdefs.h.  */
73737 #include <$header>
73738
73739 _ACEOF
73740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73741   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
73742   ice_cv_have_strcasecmp_decl=yes
73743 fi
73744 rm -f conftest*
73745
73746 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73747         break
73748 fi
73749 # Check for "fixed" declaration like "getpid _PARAMS((int))"
73750 cat >conftest.$ac_ext <<_ACEOF
73751 /* confdefs.h.  */
73752 _ACEOF
73753 cat confdefs.h >>conftest.$ac_ext
73754 cat >>conftest.$ac_ext <<_ACEOF
73755 /* end confdefs.h.  */
73756 #include <$header>
73757
73758 _ACEOF
73759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
73760   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
73761   ice_cv_have_strcasecmp_decl=yes
73762 fi
73763 rm -f conftest*
73764
73765 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73766         break
73767 fi
73768 done
73769
73770 fi
73771
73772 { $as_echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
73773 $as_echo "$ice_cv_have_strcasecmp_decl" >&6; }
73774 if test "$ice_cv_have_strcasecmp_decl" = yes; then
73775
73776 cat >>confdefs.h <<_ACEOF
73777 #define HAVE_STRCASECMP_DECL 1
73778 _ACEOF
73779
73780 fi
73781 fi
73782
73783
73784
73785 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"
73786
73787
73788 cat >confcache <<\_ACEOF
73789 # This file is a shell script that caches the results of configure
73790 # tests run on this system so they can be shared between configure
73791 # scripts and configure runs, see configure's option --config-cache.
73792 # It is not useful on other systems.  If it contains results you don't
73793 # want to keep, you may remove or edit it.
73794 #
73795 # config.status only pays attention to the cache file if you give it
73796 # the --recheck option to rerun configure.
73797 #
73798 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73799 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73800 # following values.
73801
73802 _ACEOF
73803
73804 # The following way of writing the cache mishandles newlines in values,
73805 # but we know of no workaround that is simple, portable, and efficient.
73806 # So, we kill variables containing newlines.
73807 # Ultrix sh set writes to stderr and can't be redirected directly,
73808 # and sets the high bit in the cache file unless we assign to the vars.
73809 (
73810   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
73811     eval ac_val=\$$ac_var
73812     case $ac_val in #(
73813     *${as_nl}*)
73814       case $ac_var in #(
73815       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
73816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
73817       esac
73818       case $ac_var in #(
73819       _ | IFS | as_nl) ;; #(
73820       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
73821       *) $as_unset $ac_var ;;
73822       esac ;;
73823     esac
73824   done
73825
73826   (set) 2>&1 |
73827     case $as_nl`(ac_space=' '; set) 2>&1` in #(
73828     *${as_nl}ac_space=\ *)
73829       # `set' does not quote correctly, so add quotes (double-quote
73830       # substitution turns \\\\ into \\, and sed turns \\ into \).
73831       sed -n \
73832         "s/'/'\\\\''/g;
73833           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73834       ;; #(
73835     *)
73836       # `set' quotes correctly as required by POSIX, so do not add quotes.
73837       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
73838       ;;
73839     esac |
73840     sort
73841 ) |
73842   sed '
73843      /^ac_cv_env_/b end
73844      t clear
73845      :clear
73846      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73847      t end
73848      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73849      :end' >>confcache
73850 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
73851   if test -w "$cache_file"; then
73852     test "x$cache_file" != "x/dev/null" &&
73853       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
73854 $as_echo "$as_me: updating cache $cache_file" >&6;}
73855     cat confcache >$cache_file
73856   else
73857     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
73858 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
73859   fi
73860 fi
73861 rm -f confcache
73862
73863 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73864 # Let make expand exec_prefix.
73865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73866
73867 DEFS=-DHAVE_CONFIG_H
73868
73869 ac_libobjs=
73870 ac_ltlibobjs=
73871 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73872   # 1. Remove the extension, and $U if already installed.
73873   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
73874   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
73875   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
73876   #    will be set to the directory where LIBOBJS objects are built.
73877   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
73878   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
73879 done
73880 LIBOBJS=$ac_libobjs
73881
73882 LTLIBOBJS=$ac_ltlibobjs
73883
73884
73885  if test -n "$EXEEXT"; then
73886   am__EXEEXT_TRUE=
73887   am__EXEEXT_FALSE='#'
73888 else
73889   am__EXEEXT_TRUE='#'
73890   am__EXEEXT_FALSE=
73891 fi
73892
73893 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
73894   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
73895 Usually this means the macro was only invoked conditionally." >&5
73896 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
73897 Usually this means the macro was only invoked conditionally." >&2;}
73898    { (exit 1); exit 1; }; }
73899 fi
73900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
73901   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
73902 Usually this means the macro was only invoked conditionally." >&5
73903 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
73904 Usually this means the macro was only invoked conditionally." >&2;}
73905    { (exit 1); exit 1; }; }
73906 fi
73907 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
73908   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
73909 Usually this means the macro was only invoked conditionally." >&5
73910 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
73911 Usually this means the macro was only invoked conditionally." >&2;}
73912    { (exit 1); exit 1; }; }
73913 fi
73914
73915     gl_libobjs=
73916     gl_ltlibobjs=
73917     if test -n "$gl_LIBOBJS"; then
73918       # Remove the extension.
73919       sed_drop_objext='s/\.o$//;s/\.obj$//'
73920       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
73921         gl_libobjs="$gl_libobjs $i.$ac_objext"
73922         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
73923       done
73924     fi
73925     gl_LIBOBJS=$gl_libobjs
73926
73927     gl_LTLIBOBJS=$gl_ltlibobjs
73928
73929
73930
73931     gltests_libobjs=
73932     gltests_ltlibobjs=
73933     if test -n "$gltests_LIBOBJS"; then
73934       # Remove the extension.
73935       sed_drop_objext='s/\.o$//;s/\.obj$//'
73936       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
73937         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
73938         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
73939       done
73940     fi
73941     gltests_LIBOBJS=$gltests_libobjs
73942
73943     gltests_LTLIBOBJS=$gltests_ltlibobjs
73944
73945
73946 if test -z "${CHECK_USERID_TRUE}" && test -z "${CHECK_USERID_FALSE}"; then
73947   { { $as_echo "$as_me:$LINENO: error: conditional \"CHECK_USERID\" was never defined.
73948 Usually this means the macro was only invoked conditionally." >&5
73949 $as_echo "$as_me: error: conditional \"CHECK_USERID\" was never defined.
73950 Usually this means the macro was only invoked conditionally." >&2;}
73951    { (exit 1); exit 1; }; }
73952 fi
73953 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
73954   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
73955 Usually this means the macro was only invoked conditionally." >&5
73956 $as_echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
73957 Usually this means the macro was only invoked conditionally." >&2;}
73958    { (exit 1); exit 1; }; }
73959 fi
73960 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
73961   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
73962 Usually this means the macro was only invoked conditionally." >&5
73963 $as_echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
73964 Usually this means the macro was only invoked conditionally." >&2;}
73965    { (exit 1); exit 1; }; }
73966 fi
73967 if test -z "${SYNTAX_CHECKS_TRUE}" && test -z "${SYNTAX_CHECKS_FALSE}"; then
73968   { { $as_echo "$as_me:$LINENO: error: conditional \"SYNTAX_CHECKS\" was never defined.
73969 Usually this means the macro was only invoked conditionally." >&5
73970 $as_echo "$as_me: error: conditional \"SYNTAX_CHECKS\" was never defined.
73971 Usually this means the macro was only invoked conditionally." >&2;}
73972    { (exit 1); exit 1; }; }
73973 fi
73974 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
73975   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
73976 Usually this means the macro was only invoked conditionally." >&5
73977 $as_echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
73978 Usually this means the macro was only invoked conditionally." >&2;}
73979    { (exit 1); exit 1; }; }
73980 fi
73981 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
73982   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
73983 Usually this means the macro was only invoked conditionally." >&5
73984 $as_echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
73985 Usually this means the macro was only invoked conditionally." >&2;}
73986    { (exit 1); exit 1; }; }
73987 fi
73988 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
73989   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
73990 Usually this means the macro was only invoked conditionally." >&5
73991 $as_echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
73992 Usually this means the macro was only invoked conditionally." >&2;}
73993    { (exit 1); exit 1; }; }
73994 fi
73995 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
73996   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
73997 Usually this means the macro was only invoked conditionally." >&5
73998 $as_echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
73999 Usually this means the macro was only invoked conditionally." >&2;}
74000    { (exit 1); exit 1; }; }
74001 fi
74002 if test -z "${WANT_NDMP_TRUE}" && test -z "${WANT_NDMP_FALSE}"; then
74003   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP\" was never defined.
74004 Usually this means the macro was only invoked conditionally." >&5
74005 $as_echo "$as_me: error: conditional \"WANT_NDMP\" was never defined.
74006 Usually this means the macro was only invoked conditionally." >&2;}
74007    { (exit 1); exit 1; }; }
74008 fi
74009 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
74010   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
74011 Usually this means the macro was only invoked conditionally." >&5
74012 $as_echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
74013 Usually this means the macro was only invoked conditionally." >&2;}
74014    { (exit 1); exit 1; }; }
74015 fi
74016 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
74017   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
74018 Usually this means the macro was only invoked conditionally." >&5
74019 $as_echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
74020 Usually this means the macro was only invoked conditionally." >&2;}
74021    { (exit 1); exit 1; }; }
74022 fi
74023 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
74024   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
74025 Usually this means the macro was only invoked conditionally." >&5
74026 $as_echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
74027 Usually this means the macro was only invoked conditionally." >&2;}
74028    { (exit 1); exit 1; }; }
74029 fi
74030 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
74031   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
74032 Usually this means the macro was only invoked conditionally." >&5
74033 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
74034 Usually this means the macro was only invoked conditionally." >&2;}
74035    { (exit 1); exit 1; }; }
74036 fi
74037 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
74038   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
74039 Usually this means the macro was only invoked conditionally." >&5
74040 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
74041 Usually this means the macro was only invoked conditionally." >&2;}
74042    { (exit 1); exit 1; }; }
74043 fi
74044 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
74045   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74046 Usually this means the macro was only invoked conditionally." >&5
74047 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
74048 Usually this means the macro was only invoked conditionally." >&2;}
74049    { (exit 1); exit 1; }; }
74050 fi
74051 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
74052   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74053 Usually this means the macro was only invoked conditionally." >&5
74054 $as_echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
74055 Usually this means the macro was only invoked conditionally." >&2;}
74056    { (exit 1); exit 1; }; }
74057 fi
74058 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
74059   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74060 Usually this means the macro was only invoked conditionally." >&5
74061 $as_echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
74062 Usually this means the macro was only invoked conditionally." >&2;}
74063    { (exit 1); exit 1; }; }
74064 fi
74065 if test -z "${WANT_MANDATORY_THREAD_CHECK_TRUE}" && test -z "${WANT_MANDATORY_THREAD_CHECK_FALSE}"; then
74066   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74067 Usually this means the macro was only invoked conditionally." >&5
74068 $as_echo "$as_me: error: conditional \"WANT_MANDATORY_THREAD_CHECK\" was never defined.
74069 Usually this means the macro was only invoked conditionally." >&2;}
74070    { (exit 1); exit 1; }; }
74071 fi
74072 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
74073   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
74074 Usually this means the macro was only invoked conditionally." >&5
74075 $as_echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
74076 Usually this means the macro was only invoked conditionally." >&2;}
74077    { (exit 1); exit 1; }; }
74078 fi
74079 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
74080   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74081 Usually this means the macro was only invoked conditionally." >&5
74082 $as_echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
74083 Usually this means the macro was only invoked conditionally." >&2;}
74084    { (exit 1); exit 1; }; }
74085 fi
74086 if test -z "${WANT_DVDRW_DEVICE_TRUE}" && test -z "${WANT_DVDRW_DEVICE_FALSE}"; then
74087   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74088 Usually this means the macro was only invoked conditionally." >&5
74089 $as_echo "$as_me: error: conditional \"WANT_DVDRW_DEVICE\" was never defined.
74090 Usually this means the macro was only invoked conditionally." >&2;}
74091    { (exit 1); exit 1; }; }
74092 fi
74093 if test -z "${WANT_NDMP_DEVICE_TRUE}" && test -z "${WANT_NDMP_DEVICE_FALSE}"; then
74094   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74095 Usually this means the macro was only invoked conditionally." >&5
74096 $as_echo "$as_me: error: conditional \"WANT_NDMP_DEVICE\" was never defined.
74097 Usually this means the macro was only invoked conditionally." >&2;}
74098    { (exit 1); exit 1; }; }
74099 fi
74100 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
74101   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74102 Usually this means the macro was only invoked conditionally." >&5
74103 $as_echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
74104 Usually this means the macro was only invoked conditionally." >&2;}
74105    { (exit 1); exit 1; }; }
74106 fi
74107 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
74108   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74109 Usually this means the macro was only invoked conditionally." >&5
74110 $as_echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
74111 Usually this means the macro was only invoked conditionally." >&2;}
74112    { (exit 1); exit 1; }; }
74113 fi
74114 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
74115   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74116 Usually this means the macro was only invoked conditionally." >&5
74117 $as_echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
74118 Usually this means the macro was only invoked conditionally." >&2;}
74119    { (exit 1); exit 1; }; }
74120 fi
74121 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
74122   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74123 Usually this means the macro was only invoked conditionally." >&5
74124 $as_echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
74125 Usually this means the macro was only invoked conditionally." >&2;}
74126    { (exit 1); exit 1; }; }
74127 fi
74128 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
74129   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74130 Usually this means the macro was only invoked conditionally." >&5
74131 $as_echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
74132 Usually this means the macro was only invoked conditionally." >&2;}
74133    { (exit 1); exit 1; }; }
74134 fi
74135 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
74136   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74137 Usually this means the macro was only invoked conditionally." >&5
74138 $as_echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
74139 Usually this means the macro was only invoked conditionally." >&2;}
74140    { (exit 1); exit 1; }; }
74141 fi
74142 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
74143   { { $as_echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
74144 Usually this means the macro was only invoked conditionally." >&5
74145 $as_echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
74146 Usually this means the macro was only invoked conditionally." >&2;}
74147    { (exit 1); exit 1; }; }
74148 fi
74149
74150 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
74151   { { $as_echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
74152 Usually this means the macro was only invoked conditionally." >&5
74153 $as_echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
74154 Usually this means the macro was only invoked conditionally." >&2;}
74155    { (exit 1); exit 1; }; }
74156 fi
74157
74158 : ${CONFIG_STATUS=./config.status}
74159 ac_write_fail=0
74160 ac_clean_files_save=$ac_clean_files
74161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
74162 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
74163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
74164 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74165 #! $SHELL
74166 # Generated by $as_me.
74167 # Run this file to recreate the current configuration.
74168 # Compiler output produced by configure, useful for debugging
74169 # configure, is in config.log if it exists.
74170
74171 debug=false
74172 ac_cs_recheck=false
74173 ac_cs_silent=false
74174 SHELL=\${CONFIG_SHELL-$SHELL}
74175 _ACEOF
74176
74177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74178 ## --------------------- ##
74179 ## M4sh Initialization.  ##
74180 ## --------------------- ##
74181
74182 # Be more Bourne compatible
74183 DUALCASE=1; export DUALCASE # for MKS sh
74184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
74185   emulate sh
74186   NULLCMD=:
74187   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
74188   # is contrary to our usage.  Disable this feature.
74189   alias -g '${1+"$@"}'='"$@"'
74190   setopt NO_GLOB_SUBST
74191 else
74192   case `(set -o) 2>/dev/null` in
74193   *posix*) set -o posix ;;
74194 esac
74195
74196 fi
74197
74198
74199
74200
74201 # PATH needs CR
74202 # Avoid depending upon Character Ranges.
74203 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
74204 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
74205 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
74206 as_cr_digits='0123456789'
74207 as_cr_alnum=$as_cr_Letters$as_cr_digits
74208
74209 as_nl='
74210 '
74211 export as_nl
74212 # Printing a long string crashes Solaris 7 /usr/bin/printf.
74213 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
74214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
74215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
74216 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
74217   as_echo='printf %s\n'
74218   as_echo_n='printf %s'
74219 else
74220   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74221     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
74222     as_echo_n='/usr/ucb/echo -n'
74223   else
74224     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
74225     as_echo_n_body='eval
74226       arg=$1;
74227       case $arg in
74228       *"$as_nl"*)
74229         expr "X$arg" : "X\\(.*\\)$as_nl";
74230         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
74231       esac;
74232       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
74233     '
74234     export as_echo_n_body
74235     as_echo_n='sh -c $as_echo_n_body as_echo'
74236   fi
74237   export as_echo_body
74238   as_echo='sh -c $as_echo_body as_echo'
74239 fi
74240
74241 # The user is always right.
74242 if test "${PATH_SEPARATOR+set}" != set; then
74243   PATH_SEPARATOR=:
74244   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
74245     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
74246       PATH_SEPARATOR=';'
74247   }
74248 fi
74249
74250 # Support unset when possible.
74251 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
74252   as_unset=unset
74253 else
74254   as_unset=false
74255 fi
74256
74257
74258 # IFS
74259 # We need space, tab and new line, in precisely that order.  Quoting is
74260 # there to prevent editors from complaining about space-tab.
74261 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
74262 # splitting by setting IFS to empty value.)
74263 IFS=" ""        $as_nl"
74264
74265 # Find who we are.  Look in the path if we contain no directory separator.
74266 case $0 in
74267   *[\\/]* ) as_myself=$0 ;;
74268   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74269 for as_dir in $PATH
74270 do
74271   IFS=$as_save_IFS
74272   test -z "$as_dir" && as_dir=.
74273   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
74274 done
74275 IFS=$as_save_IFS
74276
74277      ;;
74278 esac
74279 # We did not find ourselves, most probably we were run as `sh COMMAND'
74280 # in which case we are not to be found in the path.
74281 if test "x$as_myself" = x; then
74282   as_myself=$0
74283 fi
74284 if test ! -f "$as_myself"; then
74285   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
74286   { (exit 1); exit 1; }
74287 fi
74288
74289 # Work around bugs in pre-3.0 UWIN ksh.
74290 for as_var in ENV MAIL MAILPATH
74291 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
74292 done
74293 PS1='$ '
74294 PS2='> '
74295 PS4='+ '
74296
74297 # NLS nuisances.
74298 LC_ALL=C
74299 export LC_ALL
74300 LANGUAGE=C
74301 export LANGUAGE
74302
74303 # Required to use basename.
74304 if expr a : '\(a\)' >/dev/null 2>&1 &&
74305    test "X`expr 00001 : '.*\(...\)'`" = X001; then
74306   as_expr=expr
74307 else
74308   as_expr=false
74309 fi
74310
74311 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
74312   as_basename=basename
74313 else
74314   as_basename=false
74315 fi
74316
74317
74318 # Name of the executable.
74319 as_me=`$as_basename -- "$0" ||
74320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
74321          X"$0" : 'X\(//\)$' \| \
74322          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
74323 $as_echo X/"$0" |
74324     sed '/^.*\/\([^/][^/]*\)\/*$/{
74325             s//\1/
74326             q
74327           }
74328           /^X\/\(\/\/\)$/{
74329             s//\1/
74330             q
74331           }
74332           /^X\/\(\/\).*/{
74333             s//\1/
74334             q
74335           }
74336           s/.*/./; q'`
74337
74338 # CDPATH.
74339 $as_unset CDPATH
74340
74341
74342
74343   as_lineno_1=$LINENO
74344   as_lineno_2=$LINENO
74345   test "x$as_lineno_1" != "x$as_lineno_2" &&
74346   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
74347
74348   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
74349   # uniformly replaced by the line number.  The first 'sed' inserts a
74350   # line-number line after each line using $LINENO; the second 'sed'
74351   # does the real work.  The second script uses 'N' to pair each
74352   # line-number line with the line containing $LINENO, and appends
74353   # trailing '-' during substitution so that $LINENO is not a special
74354   # case at line end.
74355   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
74356   # scripts with optimization help from Paolo Bonzini.  Blame Lee
74357   # E. McMahon (1931-1989) for sed's syntax.  :-)
74358   sed -n '
74359     p
74360     /[$]LINENO/=
74361   ' <$as_myself |
74362     sed '
74363       s/[$]LINENO.*/&-/
74364       t lineno
74365       b
74366       :lineno
74367       N
74368       :loop
74369       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
74370       t loop
74371       s/-\n.*//
74372     ' >$as_me.lineno &&
74373   chmod +x "$as_me.lineno" ||
74374     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
74375    { (exit 1); exit 1; }; }
74376
74377   # Don't try to exec as it changes $[0], causing all sort of problems
74378   # (the dirname of $[0] is not the place where we might find the
74379   # original and so on.  Autoconf is especially sensitive to this).
74380   . "./$as_me.lineno"
74381   # Exit status is that of the last command.
74382   exit
74383 }
74384
74385
74386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
74387   as_dirname=dirname
74388 else
74389   as_dirname=false
74390 fi
74391
74392 ECHO_C= ECHO_N= ECHO_T=
74393 case `echo -n x` in
74394 -n*)
74395   case `echo 'x\c'` in
74396   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
74397   *)   ECHO_C='\c';;
74398   esac;;
74399 *)
74400   ECHO_N='-n';;
74401 esac
74402 if expr a : '\(a\)' >/dev/null 2>&1 &&
74403    test "X`expr 00001 : '.*\(...\)'`" = X001; then
74404   as_expr=expr
74405 else
74406   as_expr=false
74407 fi
74408
74409 rm -f conf$$ conf$$.exe conf$$.file
74410 if test -d conf$$.dir; then
74411   rm -f conf$$.dir/conf$$.file
74412 else
74413   rm -f conf$$.dir
74414   mkdir conf$$.dir 2>/dev/null
74415 fi
74416 if (echo >conf$$.file) 2>/dev/null; then
74417   if ln -s conf$$.file conf$$ 2>/dev/null; then
74418     as_ln_s='ln -s'
74419     # ... but there are two gotchas:
74420     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
74421     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
74422     # In both cases, we have to default to `cp -p'.
74423     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
74424       as_ln_s='cp -p'
74425   elif ln conf$$.file conf$$ 2>/dev/null; then
74426     as_ln_s=ln
74427   else
74428     as_ln_s='cp -p'
74429   fi
74430 else
74431   as_ln_s='cp -p'
74432 fi
74433 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
74434 rmdir conf$$.dir 2>/dev/null
74435
74436 if mkdir -p . 2>/dev/null; then
74437   as_mkdir_p=:
74438 else
74439   test -d ./-p && rmdir ./-p
74440   as_mkdir_p=false
74441 fi
74442
74443 if test -x / >/dev/null 2>&1; then
74444   as_test_x='test -x'
74445 else
74446   if ls -dL / >/dev/null 2>&1; then
74447     as_ls_L_option=L
74448   else
74449     as_ls_L_option=
74450   fi
74451   as_test_x='
74452     eval sh -c '\''
74453       if test -d "$1"; then
74454         test -d "$1/.";
74455       else
74456         case $1 in
74457         -*)set "./$1";;
74458         esac;
74459         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
74460         ???[sx]*):;;*)false;;esac;fi
74461     '\'' sh
74462   '
74463 fi
74464 as_executable_p=$as_test_x
74465
74466 # Sed expression to map a string onto a valid CPP name.
74467 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
74468
74469 # Sed expression to map a string onto a valid variable name.
74470 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
74471
74472
74473 exec 6>&1
74474
74475 # Save the log message, to keep $[0] and so on meaningful, and to
74476 # report actual input values of CONFIG_FILES etc. instead of their
74477 # values after options handling.
74478 ac_log="
74479 This file was extended by $as_me, which was
74480 generated by GNU Autoconf 2.63.  Invocation command line was
74481
74482   CONFIG_FILES    = $CONFIG_FILES
74483   CONFIG_HEADERS  = $CONFIG_HEADERS
74484   CONFIG_LINKS    = $CONFIG_LINKS
74485   CONFIG_COMMANDS = $CONFIG_COMMANDS
74486   $ $0 $@
74487
74488 on `(hostname || uname -n) 2>/dev/null | sed 1q`
74489 "
74490
74491 _ACEOF
74492
74493 case $ac_config_files in *"
74494 "*) set x $ac_config_files; shift; ac_config_files=$*;;
74495 esac
74496
74497 case $ac_config_headers in *"
74498 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
74499 esac
74500
74501
74502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74503 # Files that config.status was made for.
74504 config_files="$ac_config_files"
74505 config_headers="$ac_config_headers"
74506 config_commands="$ac_config_commands"
74507
74508 _ACEOF
74509
74510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74511 ac_cs_usage="\
74512 \`$as_me' instantiates files from templates according to the
74513 current configuration.
74514
74515 Usage: $0 [OPTION]... [FILE]...
74516
74517   -h, --help       print this help, then exit
74518   -V, --version    print version number and configuration settings, then exit
74519   -q, --quiet, --silent
74520                    do not print progress messages
74521   -d, --debug      don't remove temporary files
74522       --recheck    update $as_me by reconfiguring in the same conditions
74523       --file=FILE[:TEMPLATE]
74524                    instantiate the configuration file FILE
74525       --header=FILE[:TEMPLATE]
74526                    instantiate the configuration header FILE
74527
74528 Configuration files:
74529 $config_files
74530
74531 Configuration headers:
74532 $config_headers
74533
74534 Configuration commands:
74535 $config_commands
74536
74537 Report bugs to <bug-autoconf@gnu.org>."
74538
74539 _ACEOF
74540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74541 ac_cs_version="\\
74542 config.status
74543 configured by $0, generated by GNU Autoconf 2.63,
74544   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
74545
74546 Copyright (C) 2008 Free Software Foundation, Inc.
74547 This config.status script is free software; the Free Software Foundation
74548 gives unlimited permission to copy, distribute and modify it."
74549
74550 ac_pwd='$ac_pwd'
74551 srcdir='$srcdir'
74552 INSTALL='$INSTALL'
74553 MKDIR_P='$MKDIR_P'
74554 AWK='$AWK'
74555 test -n "\$AWK" || AWK=awk
74556 _ACEOF
74557
74558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74559 # The default lists apply if the user does not specify any file.
74560 ac_need_defaults=:
74561 while test $# != 0
74562 do
74563   case $1 in
74564   --*=*)
74565     ac_option=`expr "X$1" : 'X\([^=]*\)='`
74566     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
74567     ac_shift=:
74568     ;;
74569   *)
74570     ac_option=$1
74571     ac_optarg=$2
74572     ac_shift=shift
74573     ;;
74574   esac
74575
74576   case $ac_option in
74577   # Handling of the options.
74578   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
74579     ac_cs_recheck=: ;;
74580   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
74581     $as_echo "$ac_cs_version"; exit ;;
74582   --debug | --debu | --deb | --de | --d | -d )
74583     debug=: ;;
74584   --file | --fil | --fi | --f )
74585     $ac_shift
74586     case $ac_optarg in
74587     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74588     esac
74589     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
74590     ac_need_defaults=false;;
74591   --header | --heade | --head | --hea )
74592     $ac_shift
74593     case $ac_optarg in
74594     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
74595     esac
74596     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
74597     ac_need_defaults=false;;
74598   --he | --h)
74599     # Conflict between --help and --header
74600     { $as_echo "$as_me: error: ambiguous option: $1
74601 Try \`$0 --help' for more information." >&2
74602    { (exit 1); exit 1; }; };;
74603   --help | --hel | -h )
74604     $as_echo "$ac_cs_usage"; exit ;;
74605   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
74606   | -silent | --silent | --silen | --sile | --sil | --si | --s)
74607     ac_cs_silent=: ;;
74608
74609   # This is an error.
74610   -*) { $as_echo "$as_me: error: unrecognized option: $1
74611 Try \`$0 --help' for more information." >&2
74612    { (exit 1); exit 1; }; } ;;
74613
74614   *) ac_config_targets="$ac_config_targets $1"
74615      ac_need_defaults=false ;;
74616
74617   esac
74618   shift
74619 done
74620
74621 ac_configure_extra_args=
74622
74623 if $ac_cs_silent; then
74624   exec 6>/dev/null
74625   ac_configure_extra_args="$ac_configure_extra_args --silent"
74626 fi
74627
74628 _ACEOF
74629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74630 if \$ac_cs_recheck; then
74631   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
74632   shift
74633   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
74634   CONFIG_SHELL='$SHELL'
74635   export CONFIG_SHELL
74636   exec "\$@"
74637 fi
74638
74639 _ACEOF
74640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74641 exec 5>>config.log
74642 {
74643   echo
74644   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
74645 ## Running $as_me. ##
74646 _ASBOX
74647   $as_echo "$ac_log"
74648 } >&5
74649
74650 _ACEOF
74651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
74652 #
74653 # INIT-COMMANDS
74654 #
74655 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
74656 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
74657     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
74658     # from automake < 1.5.
74659     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
74660     # Capture the value of LINGUAS because we need it to compute CATALOGS.
74661     LINGUAS="${LINGUAS-%UNSET%}"
74662
74663
74664
74665 # The HP-UX ksh and POSIX shell print the target directory to stdout
74666 # if CDPATH is set.
74667 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
74668
74669 sed_quote_subst='$sed_quote_subst'
74670 double_quote_subst='$double_quote_subst'
74671 delay_variable_subst='$delay_variable_subst'
74672 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
74673 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
74674 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
74675 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
74676 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
74677 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
74678 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
74679 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
74680 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
74681 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
74682 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
74683 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
74684 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
74685 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
74686 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
74687 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
74688 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
74689 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
74690 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
74691 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
74692 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
74693 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
74694 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
74695 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
74696 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
74697 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
74698 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
74699 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74700 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
74701 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
74702 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
74703 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74704 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
74705 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
74706 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74707 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74708 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74709 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
74710 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
74711 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
74712 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
74713 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
74714 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
74715 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"`'
74716 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"`'
74717 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
74718 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
74719 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
74720 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
74721 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
74722 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
74723 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
74724 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
74725 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
74726 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
74727 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
74728 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
74729 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
74730 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
74731 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
74732 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
74733 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74734 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74735 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
74736 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
74737 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74738 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74739 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
74740 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74741 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74742 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74743 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74744 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74745 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74746 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
74747 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74748 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
74749 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
74750 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
74751 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
74752 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
74753 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
74754 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
74755 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74756 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
74757 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
74758 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
74759 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
74760 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
74761 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74762 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74763 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
74764 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74765 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
74766 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
74767 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
74768 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
74769 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
74770 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74771 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
74772 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
74773 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74774 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
74775 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
74776 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74777 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74778 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
74779 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
74780 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
74781 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74782 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
74783 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
74784 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
74785 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
74786 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
74787 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
74788 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
74789
74790 LTCC='$LTCC'
74791 LTCFLAGS='$LTCFLAGS'
74792 compiler='$compiler_DEFAULT'
74793
74794 # Quote evaled strings.
74795 for var in SED \
74796 GREP \
74797 EGREP \
74798 FGREP \
74799 LD \
74800 NM \
74801 LN_S \
74802 lt_SP2NL \
74803 lt_NL2SP \
74804 reload_flag \
74805 deplibs_check_method \
74806 file_magic_cmd \
74807 AR \
74808 AR_FLAGS \
74809 STRIP \
74810 RANLIB \
74811 CC \
74812 CFLAGS \
74813 compiler \
74814 lt_cv_sys_global_symbol_pipe \
74815 lt_cv_sys_global_symbol_to_cdecl \
74816 lt_cv_sys_global_symbol_to_c_name_address \
74817 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
74818 SHELL \
74819 ECHO \
74820 lt_prog_compiler_no_builtin_flag \
74821 lt_prog_compiler_wl \
74822 lt_prog_compiler_pic \
74823 lt_prog_compiler_static \
74824 lt_cv_prog_compiler_c_o \
74825 need_locks \
74826 DSYMUTIL \
74827 NMEDIT \
74828 LIPO \
74829 OTOOL \
74830 OTOOL64 \
74831 shrext_cmds \
74832 export_dynamic_flag_spec \
74833 whole_archive_flag_spec \
74834 compiler_needs_object \
74835 with_gnu_ld \
74836 allow_undefined_flag \
74837 no_undefined_flag \
74838 hardcode_libdir_flag_spec \
74839 hardcode_libdir_flag_spec_ld \
74840 hardcode_libdir_separator \
74841 fix_srcfile_path \
74842 exclude_expsyms \
74843 include_expsyms \
74844 file_list_spec \
74845 variables_saved_for_relink \
74846 libname_spec \
74847 library_names_spec \
74848 soname_spec \
74849 finish_eval \
74850 old_striplib \
74851 striplib; do
74852     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74853     *[\\\\\\\`\\"\\\$]*)
74854       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
74855       ;;
74856     *)
74857       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
74858       ;;
74859     esac
74860 done
74861
74862 # Double-quote double-evaled strings.
74863 for var in reload_cmds \
74864 old_postinstall_cmds \
74865 old_postuninstall_cmds \
74866 old_archive_cmds \
74867 extract_expsyms_cmds \
74868 old_archive_from_new_cmds \
74869 old_archive_from_expsyms_cmds \
74870 archive_cmds \
74871 archive_expsym_cmds \
74872 module_cmds \
74873 module_expsym_cmds \
74874 export_symbols_cmds \
74875 prelink_cmds \
74876 postinstall_cmds \
74877 postuninstall_cmds \
74878 finish_cmds \
74879 sys_lib_search_path_spec \
74880 sys_lib_dlsearch_path_spec; do
74881     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
74882     *[\\\\\\\`\\"\\\$]*)
74883       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
74884       ;;
74885     *)
74886       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
74887       ;;
74888     esac
74889 done
74890
74891 # Fix-up fallback echo if it was mangled by the above quoting rules.
74892 case \$lt_ECHO in
74893 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
74894   ;;
74895 esac
74896
74897 ac_aux_dir='$ac_aux_dir'
74898 xsi_shell='$xsi_shell'
74899 lt_shell_append='$lt_shell_append'
74900
74901 # See if we are running on zsh, and set the options which allow our
74902 # commands through without removal of \ escapes INIT.
74903 if test -n "\${ZSH_VERSION+set}" ; then
74904    setopt NO_GLOB_SUBST
74905 fi
74906
74907
74908     PACKAGE='$PACKAGE'
74909     VERSION='$VERSION'
74910     TIMESTAMP='$TIMESTAMP'
74911     RM='$RM'
74912     ofile='$ofile'
74913
74914
74915
74916
74917 _ACEOF
74918
74919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
74920
74921 # Handling of arguments.
74922 for ac_config_target in $ac_config_targets
74923 do
74924   case $ac_config_target in
74925     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
74926     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
74927     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
74928     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
74929     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
74930     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
74931     "amar-src/Makefile") CONFIG_FILES="$CONFIG_FILES amar-src/Makefile" ;;
74932     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
74933     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
74934     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
74935     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
74936     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
74937     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
74938     "application-src/Makefile") CONFIG_FILES="$CONFIG_FILES application-src/Makefile" ;;
74939     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
74940     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
74941     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
74942     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
74943     "ndmp-src/Makefile") CONFIG_FILES="$CONFIG_FILES ndmp-src/Makefile" ;;
74944     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
74945     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
74946     "perl/amglue/Makefile") CONFIG_FILES="$CONFIG_FILES perl/amglue/Makefile" ;;
74947     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
74948     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
74949     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
74950     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
74951     "xfer-src/Makefile") CONFIG_FILES="$CONFIG_FILES xfer-src/Makefile" ;;
74952
74953   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
74954 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
74955    { (exit 1); exit 1; }; };;
74956   esac
74957 done
74958
74959
74960 # If the user did not use the arguments to specify the items to instantiate,
74961 # then the envvar interface is used.  Set only those that are not.
74962 # We use the long form for the default assignment because of an extremely
74963 # bizarre bug on SunOS 4.1.3.
74964 if $ac_need_defaults; then
74965   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
74966   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
74967   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
74968 fi
74969
74970 # Have a temporary directory for convenience.  Make it in the build tree
74971 # simply because there is no reason against having it here, and in addition,
74972 # creating and moving files from /tmp can sometimes cause problems.
74973 # Hook for its removal unless debugging.
74974 # Note that there is a small window in which the directory will not be cleaned:
74975 # after its creation but before its name has been assigned to `$tmp'.
74976 $debug ||
74977 {
74978   tmp=
74979   trap 'exit_status=$?
74980   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
74981 ' 0
74982   trap '{ (exit 1); exit 1; }' 1 2 13 15
74983 }
74984 # Create a (secure) tmp directory for tmp files.
74985
74986 {
74987   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
74988   test -n "$tmp" && test -d "$tmp"
74989 }  ||
74990 {
74991   tmp=./conf$$-$RANDOM
74992   (umask 077 && mkdir "$tmp")
74993 } ||
74994 {
74995    $as_echo "$as_me: cannot create a temporary directory in ." >&2
74996    { (exit 1); exit 1; }
74997 }
74998
74999 # Set up the scripts for CONFIG_FILES section.
75000 # No need to generate them if there are no CONFIG_FILES.
75001 # This happens for instance with `./config.status config.h'.
75002 if test -n "$CONFIG_FILES"; then
75003
75004
75005 ac_cr='\r'
75006 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
75007 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
75008   ac_cs_awk_cr='\\r'
75009 else
75010   ac_cs_awk_cr=$ac_cr
75011 fi
75012
75013 echo 'BEGIN {' >"$tmp/subs1.awk" &&
75014 _ACEOF
75015
75016
75017 {
75018   echo "cat >conf$$subs.awk <<_ACEOF" &&
75019   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
75020   echo "_ACEOF"
75021 } >conf$$subs.sh ||
75022   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75023 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75024    { (exit 1); exit 1; }; }
75025 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
75026 ac_delim='%!_!# '
75027 for ac_last_try in false false false false false :; do
75028   . ./conf$$subs.sh ||
75029     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75030 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75031    { (exit 1); exit 1; }; }
75032
75033   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
75034   if test $ac_delim_n = $ac_delim_num; then
75035     break
75036   elif $ac_last_try; then
75037     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
75038 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
75039    { (exit 1); exit 1; }; }
75040   else
75041     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75042   fi
75043 done
75044 rm -f conf$$subs.sh
75045
75046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75047 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
75048 _ACEOF
75049 sed -n '
75050 h
75051 s/^/S["/; s/!.*/"]=/
75052 p
75053 g
75054 s/^[^!]*!//
75055 :repl
75056 t repl
75057 s/'"$ac_delim"'$//
75058 t delim
75059 :nl
75060 h
75061 s/\(.\{148\}\).*/\1/
75062 t more1
75063 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
75064 p
75065 n
75066 b repl
75067 :more1
75068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75069 p
75070 g
75071 s/.\{148\}//
75072 t nl
75073 :delim
75074 h
75075 s/\(.\{148\}\).*/\1/
75076 t more2
75077 s/["\\]/\\&/g; s/^/"/; s/$/"/
75078 p
75079 b
75080 :more2
75081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
75082 p
75083 g
75084 s/.\{148\}//
75085 t delim
75086 ' <conf$$subs.awk | sed '
75087 /^[^""]/{
75088   N
75089   s/\n//
75090 }
75091 ' >>$CONFIG_STATUS || ac_write_fail=1
75092 rm -f conf$$subs.awk
75093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75094 _ACAWK
75095 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
75096   for (key in S) S_is_set[key] = 1
75097   FS = "\a"
75098
75099 }
75100 {
75101   line = $ 0
75102   nfields = split(line, field, "@")
75103   substed = 0
75104   len = length(field[1])
75105   for (i = 2; i < nfields; i++) {
75106     key = field[i]
75107     keylen = length(key)
75108     if (S_is_set[key]) {
75109       value = S[key]
75110       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
75111       len += length(value) + length(field[++i])
75112       substed = 1
75113     } else
75114       len += 1 + keylen
75115   }
75116
75117   print line
75118 }
75119
75120 _ACAWK
75121 _ACEOF
75122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75123 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
75124   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
75125 else
75126   cat
75127 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
75128   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
75129 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
75130    { (exit 1); exit 1; }; }
75131 _ACEOF
75132
75133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
75134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
75135 # trailing colons and then remove the whole line if VPATH becomes empty
75136 # (actually we leave an empty line to preserve line numbers).
75137 if test "x$srcdir" = x.; then
75138   ac_vpsub='/^[  ]*VPATH[        ]*=/{
75139 s/:*\$(srcdir):*/:/
75140 s/:*\${srcdir}:*/:/
75141 s/:*@srcdir@:*/:/
75142 s/^\([^=]*=[     ]*\):*/\1/
75143 s/:*$//
75144 s/^[^=]*=[       ]*$//
75145 }'
75146 fi
75147
75148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75149 fi # test -n "$CONFIG_FILES"
75150
75151 # Set up the scripts for CONFIG_HEADERS section.
75152 # No need to generate them if there are no CONFIG_HEADERS.
75153 # This happens for instance with `./config.status Makefile'.
75154 if test -n "$CONFIG_HEADERS"; then
75155 cat >"$tmp/defines.awk" <<\_ACAWK ||
75156 BEGIN {
75157 _ACEOF
75158
75159 # Transform confdefs.h into an awk script `defines.awk', embedded as
75160 # here-document in config.status, that substitutes the proper values into
75161 # config.h.in to produce config.h.
75162
75163 # Create a delimiter string that does not exist in confdefs.h, to ease
75164 # handling of long lines.
75165 ac_delim='%!_!# '
75166 for ac_last_try in false false :; do
75167   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
75168   if test -z "$ac_t"; then
75169     break
75170   elif $ac_last_try; then
75171     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
75172 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
75173    { (exit 1); exit 1; }; }
75174   else
75175     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
75176   fi
75177 done
75178
75179 # For the awk script, D is an array of macro values keyed by name,
75180 # likewise P contains macro parameters if any.  Preserve backslash
75181 # newline sequences.
75182
75183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
75184 sed -n '
75185 s/.\{148\}/&'"$ac_delim"'/g
75186 t rset
75187 :rset
75188 s/^[     ]*#[    ]*define[       ][      ]*/ /
75189 t def
75190 d
75191 :def
75192 s/\\$//
75193 t bsnl
75194 s/["\\]/\\&/g
75195 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
75196 D["\1"]=" \3"/p
75197 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
75198 d
75199 :bsnl
75200 s/["\\]/\\&/g
75201 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
75202 D["\1"]=" \3\\\\\\n"\\/p
75203 t cont
75204 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
75205 t cont
75206 d
75207 :cont
75208 n
75209 s/.\{148\}/&'"$ac_delim"'/g
75210 t clear
75211 :clear
75212 s/\\$//
75213 t bsnlc
75214 s/["\\]/\\&/g; s/^/"/; s/$/"/p
75215 d
75216 :bsnlc
75217 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
75218 b cont
75219 ' <confdefs.h | sed '
75220 s/'"$ac_delim"'/"\\\
75221 "/g' >>$CONFIG_STATUS || ac_write_fail=1
75222
75223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75224   for (key in D) D_is_set[key] = 1
75225   FS = "\a"
75226 }
75227 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
75228   line = \$ 0
75229   split(line, arg, " ")
75230   if (arg[1] == "#") {
75231     defundef = arg[2]
75232     mac1 = arg[3]
75233   } else {
75234     defundef = substr(arg[1], 2)
75235     mac1 = arg[2]
75236   }
75237   split(mac1, mac2, "(") #)
75238   macro = mac2[1]
75239   prefix = substr(line, 1, index(line, defundef) - 1)
75240   if (D_is_set[macro]) {
75241     # Preserve the white space surrounding the "#".
75242     print prefix "define", macro P[macro] D[macro]
75243     next
75244   } else {
75245     # Replace #undef with comments.  This is necessary, for example,
75246     # in the case of _POSIX_SOURCE, which is predefined and required
75247     # on some systems where configure will not decide to define it.
75248     if (defundef == "undef") {
75249       print "/*", prefix defundef, macro, "*/"
75250       next
75251     }
75252   }
75253 }
75254 { print }
75255 _ACAWK
75256 _ACEOF
75257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75258   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
75259 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
75260    { (exit 1); exit 1; }; }
75261 fi # test -n "$CONFIG_HEADERS"
75262
75263
75264 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
75265 shift
75266 for ac_tag
75267 do
75268   case $ac_tag in
75269   :[FHLC]) ac_mode=$ac_tag; continue;;
75270   esac
75271   case $ac_mode$ac_tag in
75272   :[FHL]*:*);;
75273   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
75274 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
75275    { (exit 1); exit 1; }; };;
75276   :[FH]-) ac_tag=-:-;;
75277   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
75278   esac
75279   ac_save_IFS=$IFS
75280   IFS=:
75281   set x $ac_tag
75282   IFS=$ac_save_IFS
75283   shift
75284   ac_file=$1
75285   shift
75286
75287   case $ac_mode in
75288   :L) ac_source=$1;;
75289   :[FH])
75290     ac_file_inputs=
75291     for ac_f
75292     do
75293       case $ac_f in
75294       -) ac_f="$tmp/stdin";;
75295       *) # Look for the file first in the build tree, then in the source tree
75296          # (if the path is not absolute).  The absolute path cannot be DOS-style,
75297          # because $ac_f cannot contain `:'.
75298          test -f "$ac_f" ||
75299            case $ac_f in
75300            [\\/$]*) false;;
75301            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
75302            esac ||
75303            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
75304 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
75305    { (exit 1); exit 1; }; };;
75306       esac
75307       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
75308       ac_file_inputs="$ac_file_inputs '$ac_f'"
75309     done
75310
75311     # Let's still pretend it is `configure' which instantiates (i.e., don't
75312     # use $as_me), people would be surprised to read:
75313     #    /* config.h.  Generated by config.status.  */
75314     configure_input='Generated from '`
75315           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
75316         `' by configure.'
75317     if test x"$ac_file" != x-; then
75318       configure_input="$ac_file.  $configure_input"
75319       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
75320 $as_echo "$as_me: creating $ac_file" >&6;}
75321     fi
75322     # Neutralize special characters interpreted by sed in replacement strings.
75323     case $configure_input in #(
75324     *\&* | *\|* | *\\* )
75325        ac_sed_conf_input=`$as_echo "$configure_input" |
75326        sed 's/[\\\\&|]/\\\\&/g'`;; #(
75327     *) ac_sed_conf_input=$configure_input;;
75328     esac
75329
75330     case $ac_tag in
75331     *:-:* | *:-) cat >"$tmp/stdin" \
75332       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75333 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75334    { (exit 1); exit 1; }; } ;;
75335     esac
75336     ;;
75337   esac
75338
75339   ac_dir=`$as_dirname -- "$ac_file" ||
75340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75341          X"$ac_file" : 'X\(//\)[^/]' \| \
75342          X"$ac_file" : 'X\(//\)$' \| \
75343          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
75344 $as_echo X"$ac_file" |
75345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75346             s//\1/
75347             q
75348           }
75349           /^X\(\/\/\)[^/].*/{
75350             s//\1/
75351             q
75352           }
75353           /^X\(\/\/\)$/{
75354             s//\1/
75355             q
75356           }
75357           /^X\(\/\).*/{
75358             s//\1/
75359             q
75360           }
75361           s/.*/./; q'`
75362   { as_dir="$ac_dir"
75363   case $as_dir in #(
75364   -*) as_dir=./$as_dir;;
75365   esac
75366   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75367     as_dirs=
75368     while :; do
75369       case $as_dir in #(
75370       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75371       *) as_qdir=$as_dir;;
75372       esac
75373       as_dirs="'$as_qdir' $as_dirs"
75374       as_dir=`$as_dirname -- "$as_dir" ||
75375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75376          X"$as_dir" : 'X\(//\)[^/]' \| \
75377          X"$as_dir" : 'X\(//\)$' \| \
75378          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75379 $as_echo X"$as_dir" |
75380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75381             s//\1/
75382             q
75383           }
75384           /^X\(\/\/\)[^/].*/{
75385             s//\1/
75386             q
75387           }
75388           /^X\(\/\/\)$/{
75389             s//\1/
75390             q
75391           }
75392           /^X\(\/\).*/{
75393             s//\1/
75394             q
75395           }
75396           s/.*/./; q'`
75397       test -d "$as_dir" && break
75398     done
75399     test -z "$as_dirs" || eval "mkdir $as_dirs"
75400   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75401 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75402    { (exit 1); exit 1; }; }; }
75403   ac_builddir=.
75404
75405 case "$ac_dir" in
75406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
75407 *)
75408   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
75409   # A ".." for each directory in $ac_dir_suffix.
75410   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
75411   case $ac_top_builddir_sub in
75412   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
75413   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
75414   esac ;;
75415 esac
75416 ac_abs_top_builddir=$ac_pwd
75417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
75418 # for backward compatibility:
75419 ac_top_builddir=$ac_top_build_prefix
75420
75421 case $srcdir in
75422   .)  # We are building in place.
75423     ac_srcdir=.
75424     ac_top_srcdir=$ac_top_builddir_sub
75425     ac_abs_top_srcdir=$ac_pwd ;;
75426   [\\/]* | ?:[\\/]* )  # Absolute name.
75427     ac_srcdir=$srcdir$ac_dir_suffix;
75428     ac_top_srcdir=$srcdir
75429     ac_abs_top_srcdir=$srcdir ;;
75430   *) # Relative name.
75431     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
75432     ac_top_srcdir=$ac_top_build_prefix$srcdir
75433     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
75434 esac
75435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
75436
75437
75438   case $ac_mode in
75439   :F)
75440   #
75441   # CONFIG_FILE
75442   #
75443
75444   case $INSTALL in
75445   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
75446   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
75447   esac
75448   ac_MKDIR_P=$MKDIR_P
75449   case $MKDIR_P in
75450   [\\/$]* | ?:[\\/]* ) ;;
75451   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
75452   esac
75453 _ACEOF
75454
75455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75456 # If the template does not know about datarootdir, expand it.
75457 # FIXME: This hack should be removed a few years after 2.60.
75458 ac_datarootdir_hack=; ac_datarootdir_seen=
75459
75460 ac_sed_dataroot='
75461 /datarootdir/ {
75462   p
75463   q
75464 }
75465 /@datadir@/p
75466 /@docdir@/p
75467 /@infodir@/p
75468 /@localedir@/p
75469 /@mandir@/p
75470 '
75471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
75472 *datarootdir*) ac_datarootdir_seen=yes;;
75473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
75474   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
75475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
75476 _ACEOF
75477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75478   ac_datarootdir_hack='
75479   s&@datadir@&$datadir&g
75480   s&@docdir@&$docdir&g
75481   s&@infodir@&$infodir&g
75482   s&@localedir@&$localedir&g
75483   s&@mandir@&$mandir&g
75484     s&\\\${datarootdir}&$datarootdir&g' ;;
75485 esac
75486 _ACEOF
75487
75488 # Neutralize VPATH when `$srcdir' = `.'.
75489 # Shell code in configure.ac might set extrasub.
75490 # FIXME: do we really want to maintain this feature?
75491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75492 ac_sed_extra="$ac_vpsub
75493 $extrasub
75494 _ACEOF
75495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75496 :t
75497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
75498 s|@configure_input@|$ac_sed_conf_input|;t t
75499 s&@top_builddir@&$ac_top_builddir_sub&;t t
75500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
75501 s&@srcdir@&$ac_srcdir&;t t
75502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
75503 s&@top_srcdir@&$ac_top_srcdir&;t t
75504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
75505 s&@builddir@&$ac_builddir&;t t
75506 s&@abs_builddir@&$ac_abs_builddir&;t t
75507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
75508 s&@INSTALL@&$ac_INSTALL&;t t
75509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
75510 $ac_datarootdir_hack
75511 "
75512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
75513   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75514 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75515    { (exit 1); exit 1; }; }
75516
75517 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
75518   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
75519   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
75520   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75521 which seems to be undefined.  Please make sure it is defined." >&5
75522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
75523 which seems to be undefined.  Please make sure it is defined." >&2;}
75524
75525   rm -f "$tmp/stdin"
75526   case $ac_file in
75527   -) cat "$tmp/out" && rm -f "$tmp/out";;
75528   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
75529   esac \
75530   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75531 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75532    { (exit 1); exit 1; }; }
75533  ;;
75534   :H)
75535   #
75536   # CONFIG_HEADER
75537   #
75538   if test x"$ac_file" != x-; then
75539     {
75540       $as_echo "/* $configure_input  */" \
75541       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
75542     } >"$tmp/config.h" \
75543       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75544 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75545    { (exit 1); exit 1; }; }
75546     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
75547       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
75548 $as_echo "$as_me: $ac_file is unchanged" >&6;}
75549     else
75550       rm -f "$ac_file"
75551       mv "$tmp/config.h" "$ac_file" \
75552         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
75553 $as_echo "$as_me: error: could not create $ac_file" >&2;}
75554    { (exit 1); exit 1; }; }
75555     fi
75556   else
75557     $as_echo "/* $configure_input  */" \
75558       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
75559       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
75560 $as_echo "$as_me: error: could not create -" >&2;}
75561    { (exit 1); exit 1; }; }
75562   fi
75563 # Compute "$ac_file"'s index in $config_headers.
75564 _am_arg="$ac_file"
75565 _am_stamp_count=1
75566 for _am_header in $config_headers :; do
75567   case $_am_header in
75568     $_am_arg | $_am_arg:* )
75569       break ;;
75570     * )
75571       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
75572   esac
75573 done
75574 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
75575 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75576          X"$_am_arg" : 'X\(//\)[^/]' \| \
75577          X"$_am_arg" : 'X\(//\)$' \| \
75578          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
75579 $as_echo X"$_am_arg" |
75580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75581             s//\1/
75582             q
75583           }
75584           /^X\(\/\/\)[^/].*/{
75585             s//\1/
75586             q
75587           }
75588           /^X\(\/\/\)$/{
75589             s//\1/
75590             q
75591           }
75592           /^X\(\/\).*/{
75593             s//\1/
75594             q
75595           }
75596           s/.*/./; q'`/stamp-h$_am_stamp_count
75597  ;;
75598
75599   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
75600 $as_echo "$as_me: executing $ac_file commands" >&6;}
75601  ;;
75602   esac
75603
75604
75605   case $ac_file$ac_mode in
75606     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
75607   # Autoconf 2.62 quotes --file arguments for eval, but not when files
75608   # are listed without --file.  Let's play safe and only enable the eval
75609   # if we detect the quoting.
75610   case $CONFIG_FILES in
75611   *\'*) eval set x "$CONFIG_FILES" ;;
75612   *)   set x $CONFIG_FILES ;;
75613   esac
75614   shift
75615   for mf
75616   do
75617     # Strip MF so we end up with the name of the file.
75618     mf=`echo "$mf" | sed -e 's/:.*$//'`
75619     # Check whether this is an Automake generated Makefile or not.
75620     # We used to match only the files named `Makefile.in', but
75621     # some people rename them; so instead we look at the file content.
75622     # Grep'ing the first line is not enough: some people post-process
75623     # each Makefile.in and add a new line on top of each file to say so.
75624     # Grep'ing the whole file is not good either: AIX grep has a line
75625     # limit of 2048, but all sed's we know have understand at least 4000.
75626     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
75627       dirpart=`$as_dirname -- "$mf" ||
75628 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75629          X"$mf" : 'X\(//\)[^/]' \| \
75630          X"$mf" : 'X\(//\)$' \| \
75631          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
75632 $as_echo X"$mf" |
75633     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75634             s//\1/
75635             q
75636           }
75637           /^X\(\/\/\)[^/].*/{
75638             s//\1/
75639             q
75640           }
75641           /^X\(\/\/\)$/{
75642             s//\1/
75643             q
75644           }
75645           /^X\(\/\).*/{
75646             s//\1/
75647             q
75648           }
75649           s/.*/./; q'`
75650     else
75651       continue
75652     fi
75653     # Extract the definition of DEPDIR, am__include, and am__quote
75654     # from the Makefile without running `make'.
75655     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
75656     test -z "$DEPDIR" && continue
75657     am__include=`sed -n 's/^am__include = //p' < "$mf"`
75658     test -z "am__include" && continue
75659     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
75660     # When using ansi2knr, U may be empty or an underscore; expand it
75661     U=`sed -n 's/^U = //p' < "$mf"`
75662     # Find all dependency output files, they are included files with
75663     # $(DEPDIR) in their names.  We invoke sed twice because it is the
75664     # simplest approach to changing $(DEPDIR) to its actual value in the
75665     # expansion.
75666     for file in `sed -n "
75667       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
75668          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
75669       # Make sure the directory exists.
75670       test -f "$dirpart/$file" && continue
75671       fdir=`$as_dirname -- "$file" ||
75672 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75673          X"$file" : 'X\(//\)[^/]' \| \
75674          X"$file" : 'X\(//\)$' \| \
75675          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
75676 $as_echo X"$file" |
75677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75678             s//\1/
75679             q
75680           }
75681           /^X\(\/\/\)[^/].*/{
75682             s//\1/
75683             q
75684           }
75685           /^X\(\/\/\)$/{
75686             s//\1/
75687             q
75688           }
75689           /^X\(\/\).*/{
75690             s//\1/
75691             q
75692           }
75693           s/.*/./; q'`
75694       { as_dir=$dirpart/$fdir
75695   case $as_dir in #(
75696   -*) as_dir=./$as_dir;;
75697   esac
75698   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
75699     as_dirs=
75700     while :; do
75701       case $as_dir in #(
75702       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
75703       *) as_qdir=$as_dir;;
75704       esac
75705       as_dirs="'$as_qdir' $as_dirs"
75706       as_dir=`$as_dirname -- "$as_dir" ||
75707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
75708          X"$as_dir" : 'X\(//\)[^/]' \| \
75709          X"$as_dir" : 'X\(//\)$' \| \
75710          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
75711 $as_echo X"$as_dir" |
75712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75713             s//\1/
75714             q
75715           }
75716           /^X\(\/\/\)[^/].*/{
75717             s//\1/
75718             q
75719           }
75720           /^X\(\/\/\)$/{
75721             s//\1/
75722             q
75723           }
75724           /^X\(\/\).*/{
75725             s//\1/
75726             q
75727           }
75728           s/.*/./; q'`
75729       test -d "$as_dir" && break
75730     done
75731     test -z "$as_dirs" || eval "mkdir $as_dirs"
75732   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
75733 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
75734    { (exit 1); exit 1; }; }; }
75735       # echo "creating $dirpart/$file"
75736       echo '# dummy' > "$dirpart/$file"
75737     done
75738   done
75739 }
75740  ;;
75741     "po-directories":C)
75742     for ac_file in $CONFIG_FILES; do
75743       # Support "outfile[:infile[:infile...]]"
75744       case "$ac_file" in
75745         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
75746       esac
75747       # PO directories have a Makefile.in generated from Makefile.in.in.
75748       case "$ac_file" in */Makefile.in)
75749         # Adjust a relative srcdir.
75750         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
75751         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
75752         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
75753         # In autoconf-2.13 it is called $ac_given_srcdir.
75754         # In autoconf-2.50 it is called $srcdir.
75755         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
75756         case "$ac_given_srcdir" in
75757           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
75758           /*) top_srcdir="$ac_given_srcdir" ;;
75759           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
75760         esac
75761         # Treat a directory as a PO directory if and only if it has a
75762         # POTFILES.in file. This allows packages to have multiple PO
75763         # directories under different names or in different locations.
75764         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
75765           rm -f "$ac_dir/POTFILES"
75766           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
75767           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
75768           POMAKEFILEDEPS="POTFILES.in"
75769           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
75770           # on $ac_dir but don't depend on user-specified configuration
75771           # parameters.
75772           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
75773             # The LINGUAS file contains the set of available languages.
75774             if test -n "$OBSOLETE_ALL_LINGUAS"; then
75775               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
75776             fi
75777             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
75778             # Hide the ALL_LINGUAS assigment from automake < 1.5.
75779             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
75780             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
75781           else
75782             # The set of available languages was given in configure.in.
75783             # Hide the ALL_LINGUAS assigment from automake < 1.5.
75784             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
75785           fi
75786           # Compute POFILES
75787           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
75788           # Compute UPDATEPOFILES
75789           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
75790           # Compute DUMMYPOFILES
75791           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
75792           # Compute GMOFILES
75793           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
75794           case "$ac_given_srcdir" in
75795             .) srcdirpre= ;;
75796             *) srcdirpre='$(srcdir)/' ;;
75797           esac
75798           POFILES=
75799           UPDATEPOFILES=
75800           DUMMYPOFILES=
75801           GMOFILES=
75802           for lang in $ALL_LINGUAS; do
75803             POFILES="$POFILES $srcdirpre$lang.po"
75804             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
75805             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
75806             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
75807           done
75808           # CATALOGS depends on both $ac_dir and the user's LINGUAS
75809           # environment variable.
75810           INST_LINGUAS=
75811           if test -n "$ALL_LINGUAS"; then
75812             for presentlang in $ALL_LINGUAS; do
75813               useit=no
75814               if test "%UNSET%" != "$LINGUAS"; then
75815                 desiredlanguages="$LINGUAS"
75816               else
75817                 desiredlanguages="$ALL_LINGUAS"
75818               fi
75819               for desiredlang in $desiredlanguages; do
75820                 # Use the presentlang catalog if desiredlang is
75821                 #   a. equal to presentlang, or
75822                 #   b. a variant of presentlang (because in this case,
75823                 #      presentlang can be used as a fallback for messages
75824                 #      which are not translated in the desiredlang catalog).
75825                 case "$desiredlang" in
75826                   "$presentlang"*) useit=yes;;
75827                 esac
75828               done
75829               if test $useit = yes; then
75830                 INST_LINGUAS="$INST_LINGUAS $presentlang"
75831               fi
75832             done
75833           fi
75834           CATALOGS=
75835           if test -n "$INST_LINGUAS"; then
75836             for lang in $INST_LINGUAS; do
75837               CATALOGS="$CATALOGS $lang.gmo"
75838             done
75839           fi
75840           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
75841           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"
75842           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
75843             if test -f "$f"; then
75844               case "$f" in
75845                 *.orig | *.bak | *~) ;;
75846                 *) cat "$f" >> "$ac_dir/Makefile" ;;
75847               esac
75848             fi
75849           done
75850         fi
75851         ;;
75852       esac
75853     done ;;
75854     "libtool":C)
75855
75856     # See if we are running on zsh, and set the options which allow our
75857     # commands through without removal of \ escapes.
75858     if test -n "${ZSH_VERSION+set}" ; then
75859       setopt NO_GLOB_SUBST
75860     fi
75861
75862     cfgfile="${ofile}T"
75863     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
75864     $RM "$cfgfile"
75865
75866     cat <<_LT_EOF >> "$cfgfile"
75867 #! $SHELL
75868
75869 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
75870 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
75871 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
75872 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
75873 #
75874 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
75875 #                 2006, 2007, 2008 Free Software Foundation, Inc.
75876 #   Written by Gordon Matzigkeit, 1996
75877 #
75878 #   This file is part of GNU Libtool.
75879 #
75880 # GNU Libtool is free software; you can redistribute it and/or
75881 # modify it under the terms of the GNU General Public License as
75882 # published by the Free Software Foundation; either version 2 of
75883 # the License, or (at your option) any later version.
75884 #
75885 # As a special exception to the GNU General Public License,
75886 # if you distribute this file as part of a program or library that
75887 # is built using GNU Libtool, you may include this file under the
75888 # same distribution terms that you use for the rest of that program.
75889 #
75890 # GNU Libtool is distributed in the hope that it will be useful,
75891 # but WITHOUT ANY WARRANTY; without even the implied warranty of
75892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
75893 # GNU General Public License for more details.
75894 #
75895 # You should have received a copy of the GNU General Public License
75896 # along with GNU Libtool; see the file COPYING.  If not, a copy
75897 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
75898 # obtained by writing to the Free Software Foundation, Inc.,
75899 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
75900
75901
75902 # The names of the tagged configurations supported by this script.
75903 available_tags=""
75904
75905 # ### BEGIN LIBTOOL CONFIG
75906
75907 # Which release of libtool.m4 was used?
75908 macro_version=$macro_version
75909 macro_revision=$macro_revision
75910
75911 # Whether or not to build shared libraries.
75912 build_libtool_libs=$enable_shared
75913
75914 # Whether or not to build static libraries.
75915 build_old_libs=$enable_static
75916
75917 # What type of objects to build.
75918 pic_mode=$pic_mode
75919
75920 # Whether or not to optimize for fast installation.
75921 fast_install=$enable_fast_install
75922
75923 # The host system.
75924 host_alias=$host_alias
75925 host=$host
75926 host_os=$host_os
75927
75928 # The build system.
75929 build_alias=$build_alias
75930 build=$build
75931 build_os=$build_os
75932
75933 # A sed program that does not truncate output.
75934 SED=$lt_SED
75935
75936 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
75937 Xsed="\$SED -e 1s/^X//"
75938
75939 # A grep program that handles long lines.
75940 GREP=$lt_GREP
75941
75942 # An ERE matcher.
75943 EGREP=$lt_EGREP
75944
75945 # A literal string matcher.
75946 FGREP=$lt_FGREP
75947
75948 # A BSD- or MS-compatible name lister.
75949 NM=$lt_NM
75950
75951 # Whether we need soft or hard links.
75952 LN_S=$lt_LN_S
75953
75954 # What is the maximum length of a command?
75955 max_cmd_len=$max_cmd_len
75956
75957 # Object file suffix (normally "o").
75958 objext=$ac_objext
75959
75960 # Executable file suffix (normally "").
75961 exeext=$exeext
75962
75963 # whether the shell understands "unset".
75964 lt_unset=$lt_unset
75965
75966 # turn spaces into newlines.
75967 SP2NL=$lt_lt_SP2NL
75968
75969 # turn newlines into spaces.
75970 NL2SP=$lt_lt_NL2SP
75971
75972 # How to create reloadable object files.
75973 reload_flag=$lt_reload_flag
75974 reload_cmds=$lt_reload_cmds
75975
75976 # Method to check whether dependent libraries are shared objects.
75977 deplibs_check_method=$lt_deplibs_check_method
75978
75979 # Command to use when deplibs_check_method == "file_magic".
75980 file_magic_cmd=$lt_file_magic_cmd
75981
75982 # The archiver.
75983 AR=$lt_AR
75984 AR_FLAGS=$lt_AR_FLAGS
75985
75986 # A symbol stripping program.
75987 STRIP=$lt_STRIP
75988
75989 # Commands used to install an old-style archive.
75990 RANLIB=$lt_RANLIB
75991 old_postinstall_cmds=$lt_old_postinstall_cmds
75992 old_postuninstall_cmds=$lt_old_postuninstall_cmds
75993
75994 # A C compiler.
75995 LTCC=$lt_CC
75996
75997 # LTCC compiler flags.
75998 LTCFLAGS=$lt_CFLAGS
75999
76000 # Take the output of nm and produce a listing of raw symbols and C names.
76001 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
76002
76003 # Transform the output of nm in a proper C declaration.
76004 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
76005
76006 # Transform the output of nm in a C name address pair.
76007 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
76008
76009 # Transform the output of nm in a C name address pair when lib prefix is needed.
76010 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
76011
76012 # The name of the directory that contains temporary libtool files.
76013 objdir=$objdir
76014
76015 # Shell to use when invoking shell scripts.
76016 SHELL=$lt_SHELL
76017
76018 # An echo program that does not interpret backslashes.
76019 ECHO=$lt_ECHO
76020
76021 # Used to examine libraries when file_magic_cmd begins with "file".
76022 MAGIC_CMD=$MAGIC_CMD
76023
76024 # Must we lock files when doing compilation?
76025 need_locks=$lt_need_locks
76026
76027 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
76028 DSYMUTIL=$lt_DSYMUTIL
76029
76030 # Tool to change global to local symbols on Mac OS X.
76031 NMEDIT=$lt_NMEDIT
76032
76033 # Tool to manipulate fat objects and archives on Mac OS X.
76034 LIPO=$lt_LIPO
76035
76036 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
76037 OTOOL=$lt_OTOOL
76038
76039 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
76040 OTOOL64=$lt_OTOOL64
76041
76042 # Old archive suffix (normally "a").
76043 libext=$libext
76044
76045 # Shared library suffix (normally ".so").
76046 shrext_cmds=$lt_shrext_cmds
76047
76048 # The commands to extract the exported symbol list from a shared archive.
76049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
76050
76051 # Variables whose values should be saved in libtool wrapper scripts and
76052 # restored at link time.
76053 variables_saved_for_relink=$lt_variables_saved_for_relink
76054
76055 # Do we need the "lib" prefix for modules?
76056 need_lib_prefix=$need_lib_prefix
76057
76058 # Do we need a version for libraries?
76059 need_version=$need_version
76060
76061 # Library versioning type.
76062 version_type=$version_type
76063
76064 # Shared library runtime path variable.
76065 runpath_var=$runpath_var
76066
76067 # Shared library path variable.
76068 shlibpath_var=$shlibpath_var
76069
76070 # Is shlibpath searched before the hard-coded library search path?
76071 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
76072
76073 # Format of library name prefix.
76074 libname_spec=$lt_libname_spec
76075
76076 # List of archive names.  First name is the real one, the rest are links.
76077 # The last name is the one that the linker finds with -lNAME
76078 library_names_spec=$lt_library_names_spec
76079
76080 # The coded name of the library, if different from the real name.
76081 soname_spec=$lt_soname_spec
76082
76083 # Command to use after installation of a shared archive.
76084 postinstall_cmds=$lt_postinstall_cmds
76085
76086 # Command to use after uninstallation of a shared archive.
76087 postuninstall_cmds=$lt_postuninstall_cmds
76088
76089 # Commands used to finish a libtool library installation in a directory.
76090 finish_cmds=$lt_finish_cmds
76091
76092 # As "finish_cmds", except a single script fragment to be evaled but
76093 # not shown.
76094 finish_eval=$lt_finish_eval
76095
76096 # Whether we should hardcode library paths into libraries.
76097 hardcode_into_libs=$hardcode_into_libs
76098
76099 # Compile-time system search path for libraries.
76100 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
76101
76102 # Run-time system search path for libraries.
76103 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
76104
76105 # Whether dlopen is supported.
76106 dlopen_support=$enable_dlopen
76107
76108 # Whether dlopen of programs is supported.
76109 dlopen_self=$enable_dlopen_self
76110
76111 # Whether dlopen of statically linked programs is supported.
76112 dlopen_self_static=$enable_dlopen_self_static
76113
76114 # Commands to strip libraries.
76115 old_striplib=$lt_old_striplib
76116 striplib=$lt_striplib
76117
76118
76119 # The linker used to build libraries.
76120 LD=$lt_LD
76121
76122 # Commands used to build an old-style archive.
76123 old_archive_cmds=$lt_old_archive_cmds
76124
76125 # A language specific compiler.
76126 CC=$lt_compiler
76127
76128 # Is the compiler the GNU compiler?
76129 with_gcc=$GCC
76130
76131 # Compiler flag to turn off builtin functions.
76132 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
76133
76134 # How to pass a linker flag through the compiler.
76135 wl=$lt_lt_prog_compiler_wl
76136
76137 # Additional compiler flags for building library objects.
76138 pic_flag=$lt_lt_prog_compiler_pic
76139
76140 # Compiler flag to prevent dynamic linking.
76141 link_static_flag=$lt_lt_prog_compiler_static
76142
76143 # Does compiler simultaneously support -c and -o options?
76144 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
76145
76146 # Whether or not to add -lc for building shared libraries.
76147 build_libtool_need_lc=$archive_cmds_need_lc
76148
76149 # Whether or not to disallow shared libs when runtime libs are static.
76150 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
76151
76152 # Compiler flag to allow reflexive dlopens.
76153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
76154
76155 # Compiler flag to generate shared objects directly from archives.
76156 whole_archive_flag_spec=$lt_whole_archive_flag_spec
76157
76158 # Whether the compiler copes with passing no objects directly.
76159 compiler_needs_object=$lt_compiler_needs_object
76160
76161 # Create an old-style archive from a shared archive.
76162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
76163
76164 # Create a temporary old-style archive to link instead of a shared archive.
76165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
76166
76167 # Commands used to build a shared archive.
76168 archive_cmds=$lt_archive_cmds
76169 archive_expsym_cmds=$lt_archive_expsym_cmds
76170
76171 # Commands used to build a loadable module if different from building
76172 # a shared archive.
76173 module_cmds=$lt_module_cmds
76174 module_expsym_cmds=$lt_module_expsym_cmds
76175
76176 # Whether we are building with GNU ld or not.
76177 with_gnu_ld=$lt_with_gnu_ld
76178
76179 # Flag that allows shared libraries with undefined symbols to be built.
76180 allow_undefined_flag=$lt_allow_undefined_flag
76181
76182 # Flag that enforces no undefined symbols.
76183 no_undefined_flag=$lt_no_undefined_flag
76184
76185 # Flag to hardcode \$libdir into a binary during linking.
76186 # This must work even if \$libdir does not exist
76187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
76188
76189 # If ld is used when linking, flag to hardcode \$libdir into a binary
76190 # during linking.  This must work even if \$libdir does not exist.
76191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
76192
76193 # Whether we need a single "-rpath" flag with a separated argument.
76194 hardcode_libdir_separator=$lt_hardcode_libdir_separator
76195
76196 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76197 # DIR into the resulting binary.
76198 hardcode_direct=$hardcode_direct
76199
76200 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
76201 # DIR into the resulting binary and the resulting library dependency is
76202 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
76203 # library is relocated.
76204 hardcode_direct_absolute=$hardcode_direct_absolute
76205
76206 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
76207 # into the resulting binary.
76208 hardcode_minus_L=$hardcode_minus_L
76209
76210 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
76211 # into the resulting binary.
76212 hardcode_shlibpath_var=$hardcode_shlibpath_var
76213
76214 # Set to "yes" if building a shared library automatically hardcodes DIR
76215 # into the library and all subsequent libraries and executables linked
76216 # against it.
76217 hardcode_automatic=$hardcode_automatic
76218
76219 # Set to yes if linker adds runtime paths of dependent libraries
76220 # to runtime path list.
76221 inherit_rpath=$inherit_rpath
76222
76223 # Whether libtool must link a program against all its dependency libraries.
76224 link_all_deplibs=$link_all_deplibs
76225
76226 # Fix the shell variable \$srcfile for the compiler.
76227 fix_srcfile_path=$lt_fix_srcfile_path
76228
76229 # Set to "yes" if exported symbols are required.
76230 always_export_symbols=$always_export_symbols
76231
76232 # The commands to list exported symbols.
76233 export_symbols_cmds=$lt_export_symbols_cmds
76234
76235 # Symbols that should not be listed in the preloaded symbols.
76236 exclude_expsyms=$lt_exclude_expsyms
76237
76238 # Symbols that must always be exported.
76239 include_expsyms=$lt_include_expsyms
76240
76241 # Commands necessary for linking programs (against libraries) with templates.
76242 prelink_cmds=$lt_prelink_cmds
76243
76244 # Specify filename containing input files.
76245 file_list_spec=$lt_file_list_spec
76246
76247 # How to hardcode a shared library path into an executable.
76248 hardcode_action=$hardcode_action
76249
76250 # ### END LIBTOOL CONFIG
76251
76252 _LT_EOF
76253
76254   case $host_os in
76255   aix3*)
76256     cat <<\_LT_EOF >> "$cfgfile"
76257 # AIX sometimes has problems with the GCC collect2 program.  For some
76258 # reason, if we set the COLLECT_NAMES environment variable, the problems
76259 # vanish in a puff of smoke.
76260 if test "X${COLLECT_NAMES+set}" != Xset; then
76261   COLLECT_NAMES=
76262   export COLLECT_NAMES
76263 fi
76264 _LT_EOF
76265     ;;
76266   esac
76267
76268
76269 ltmain="$ac_aux_dir/ltmain.sh"
76270
76271
76272   # We use sed instead of cat because bash on DJGPP gets confused if
76273   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
76274   # text mode, it properly converts lines to CR/LF.  This bash problem
76275   # is reportedly fixed, but why not run on old versions too?
76276   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
76277     || (rm -f "$cfgfile"; exit 1)
76278
76279   case $xsi_shell in
76280   yes)
76281     cat << \_LT_EOF >> "$cfgfile"
76282
76283 # func_dirname file append nondir_replacement
76284 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
76285 # otherwise set result to NONDIR_REPLACEMENT.
76286 func_dirname ()
76287 {
76288   case ${1} in
76289     */*) func_dirname_result="${1%/*}${2}" ;;
76290     *  ) func_dirname_result="${3}" ;;
76291   esac
76292 }
76293
76294 # func_basename file
76295 func_basename ()
76296 {
76297   func_basename_result="${1##*/}"
76298 }
76299
76300 # func_dirname_and_basename file append nondir_replacement
76301 # perform func_basename and func_dirname in a single function
76302 # call:
76303 #   dirname:  Compute the dirname of FILE.  If nonempty,
76304 #             add APPEND to the result, otherwise set result
76305 #             to NONDIR_REPLACEMENT.
76306 #             value returned in "$func_dirname_result"
76307 #   basename: Compute filename of FILE.
76308 #             value retuned in "$func_basename_result"
76309 # Implementation must be kept synchronized with func_dirname
76310 # and func_basename. For efficiency, we do not delegate to
76311 # those functions but instead duplicate the functionality here.
76312 func_dirname_and_basename ()
76313 {
76314   case ${1} in
76315     */*) func_dirname_result="${1%/*}${2}" ;;
76316     *  ) func_dirname_result="${3}" ;;
76317   esac
76318   func_basename_result="${1##*/}"
76319 }
76320
76321 # func_stripname prefix suffix name
76322 # strip PREFIX and SUFFIX off of NAME.
76323 # PREFIX and SUFFIX must not contain globbing or regex special
76324 # characters, hashes, percent signs, but SUFFIX may contain a leading
76325 # dot (in which case that matches only a dot).
76326 func_stripname ()
76327 {
76328   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
76329   # positional parameters, so assign one to ordinary parameter first.
76330   func_stripname_result=${3}
76331   func_stripname_result=${func_stripname_result#"${1}"}
76332   func_stripname_result=${func_stripname_result%"${2}"}
76333 }
76334
76335 # func_opt_split
76336 func_opt_split ()
76337 {
76338   func_opt_split_opt=${1%%=*}
76339   func_opt_split_arg=${1#*=}
76340 }
76341
76342 # func_lo2o object
76343 func_lo2o ()
76344 {
76345   case ${1} in
76346     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
76347     *)    func_lo2o_result=${1} ;;
76348   esac
76349 }
76350
76351 # func_xform libobj-or-source
76352 func_xform ()
76353 {
76354   func_xform_result=${1%.*}.lo
76355 }
76356
76357 # func_arith arithmetic-term...
76358 func_arith ()
76359 {
76360   func_arith_result=$(( $* ))
76361 }
76362
76363 # func_len string
76364 # STRING may not start with a hyphen.
76365 func_len ()
76366 {
76367   func_len_result=${#1}
76368 }
76369
76370 _LT_EOF
76371     ;;
76372   *) # Bourne compatible functions.
76373     cat << \_LT_EOF >> "$cfgfile"
76374
76375 # func_dirname file append nondir_replacement
76376 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
76377 # otherwise set result to NONDIR_REPLACEMENT.
76378 func_dirname ()
76379 {
76380   # Extract subdirectory from the argument.
76381   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
76382   if test "X$func_dirname_result" = "X${1}"; then
76383     func_dirname_result="${3}"
76384   else
76385     func_dirname_result="$func_dirname_result${2}"
76386   fi
76387 }
76388
76389 # func_basename file
76390 func_basename ()
76391 {
76392   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
76393 }
76394
76395
76396 # func_stripname prefix suffix name
76397 # strip PREFIX and SUFFIX off of NAME.
76398 # PREFIX and SUFFIX must not contain globbing or regex special
76399 # characters, hashes, percent signs, but SUFFIX may contain a leading
76400 # dot (in which case that matches only a dot).
76401 # func_strip_suffix prefix name
76402 func_stripname ()
76403 {
76404   case ${2} in
76405     .*) func_stripname_result=`$ECHO "X${3}" \
76406            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
76407     *)  func_stripname_result=`$ECHO "X${3}" \
76408            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
76409   esac
76410 }
76411
76412 # sed scripts:
76413 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
76414 my_sed_long_arg='1s/^-[^=]*=//'
76415
76416 # func_opt_split
76417 func_opt_split ()
76418 {
76419   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
76420   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
76421 }
76422
76423 # func_lo2o object
76424 func_lo2o ()
76425 {
76426   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
76427 }
76428
76429 # func_xform libobj-or-source
76430 func_xform ()
76431 {
76432   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
76433 }
76434
76435 # func_arith arithmetic-term...
76436 func_arith ()
76437 {
76438   func_arith_result=`expr "$@"`
76439 }
76440
76441 # func_len string
76442 # STRING may not start with a hyphen.
76443 func_len ()
76444 {
76445   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
76446 }
76447
76448 _LT_EOF
76449 esac
76450
76451 case $lt_shell_append in
76452   yes)
76453     cat << \_LT_EOF >> "$cfgfile"
76454
76455 # func_append var value
76456 # Append VALUE to the end of shell variable VAR.
76457 func_append ()
76458 {
76459   eval "$1+=\$2"
76460 }
76461 _LT_EOF
76462     ;;
76463   *)
76464     cat << \_LT_EOF >> "$cfgfile"
76465
76466 # func_append var value
76467 # Append VALUE to the end of shell variable VAR.
76468 func_append ()
76469 {
76470   eval "$1=\$$1\$2"
76471 }
76472
76473 _LT_EOF
76474     ;;
76475   esac
76476
76477
76478   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
76479     || (rm -f "$cfgfile"; exit 1)
76480
76481   mv -f "$cfgfile" "$ofile" ||
76482     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
76483   chmod +x "$ofile"
76484
76485  ;;
76486
76487   esac
76488 done # for ac_tag
76489
76490
76491 { (exit 0); exit 0; }
76492 _ACEOF
76493 chmod +x $CONFIG_STATUS
76494 ac_clean_files=$ac_clean_files_save
76495
76496 test $ac_write_fail = 0 ||
76497   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
76498 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
76499    { (exit 1); exit 1; }; }
76500
76501
76502 # configure is writing to config.log, and then calls config.status.
76503 # config.status does its own redirection, appending to config.log.
76504 # Unfortunately, on DOS this fails, as config.log is still kept open
76505 # by configure, so config.status won't be able to write to it; its
76506 # output is simply discarded.  So we exec the FD to /dev/null,
76507 # effectively closing config.log, so it can be properly (re)opened and
76508 # appended to by config.status.  When coming back to configure, we
76509 # need to make the FD available again.
76510 if test "$no_create" != yes; then
76511   ac_cs_success=:
76512   ac_config_status_args=
76513   test "$silent" = yes &&
76514     ac_config_status_args="$ac_config_status_args --quiet"
76515   exec 5>/dev/null
76516   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
76517   exec 5>>config.log
76518   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
76519   # would make configure fail if this is the last instruction.
76520   $ac_cs_success || { (exit 1); exit 1; }
76521 fi
76522 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
76523   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
76524 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
76525 fi
76526
76527
76528
76529     echo "Compiler Flags:"
76530     echo "  CFLAGS: ${CFLAGS-(none)}"
76531     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
76532     echo "  LDFLAGS: ${LDFLAGS-(none)}"
76533     echo "  LIBS: ${LIBS-(none)}"
76534
76535
76536     echo "Amanda Components:$AMANDA_COMPONENTS$missing_components"
76537
76538
76539     echo "Working IPv6:" $WORKING_IPV6
76540
76541
76542     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
76543
76544
76545     echo "Directories:"
76546     echo "  Application: $APPLICATION_DIR"
76547     echo "  Configuration: $CONFIG_DIR"
76548     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
76549     echo "  Perl modules (amperldir): $amperldir"
76550     echo "  Template and example data files (amdatadir): $amdatadir"
76551     echo "  Temporary: $AMANDA_TMPDIR"
76552
76553     if test -f config.warnings; then
76554         echo "WARNINGS:"
76555         cat config.warnings | sed -e 's/^/  /g'
76556         rm config.warnings
76557     fi
76558